	.file	"119673.c"
	.intel_syntax noprefix
	.text
	.globl	logfile
	.bss
	.align 8
	.type	logfile, @object
	.size	logfile, 8
logfile:
	.zero	8
	.section	.rodata
.LC0:
	.string	"a+"
.LC1:
	.string	"/tmp/sasreceiver.log"
.LC2:
	.string	"%s: error opening logfile\n"
.LC3:
	.string	"%s (errno = %d)\n"
	.align 8
.LC4:
	.string	"usage %s <host_name> <port_base>\n"
.LC5:
	.string	"%s: invalid port base: %s\n"
.LC6:
	.string	"GP_SEGMENT_ID"
	.align 8
.LC7:
	.string	"%s: $GP_SEGMENT_ID is not set\n"
	.align 8
.LC8:
	.string	"%s: invalid $GP_SEGMENT_ID: %s\n"
.LC9:
	.string	"%s: port base = %d\n"
.LC10:
	.string	"%s: segment id = %d\n"
.LC11:
	.string	"%s: port = %d\n"
.LC12:
	.string	"%s: error opening socket"
.LC13:
	.string	"%s: no such host: %s\n"
.LC14:
	.string	"%s: error connecting\n"
.LC15:
	.string	"connection established\n"
.LC16:
	.string	"%s: error writing to stdout\n"
	.align 8
.LC17:
	.string	"%s: error reading from socket\n"
.LC18:
	.string	"%s: read %d bytes\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1160
	.cfi_offset 3, -24
	mov	DWORD PTR -1156[rbp], edi
	mov	QWORD PTR -1168[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR logfile[rip], rax
	mov	rax, QWORD PTR logfile[rip]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	lea	rsi, sighandler[rip]
	mov	edi, 1
	call	signal@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 13
	call	signal@PLT
	cmp	DWORD PTR -1156[rbp], 3
	je	.L3
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -1168[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1096[rbp], rax
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1112[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -1132[rbp], eax
	mov	rax, QWORD PTR -1112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L4
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC6[rip]
	call	getenv@PLT
	mov	QWORD PTR -1088[rbp], rax
	cmp	QWORD PTR -1088[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rcx, -1112[rbp]
	mov	rax, QWORD PTR -1088[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -1128[rbp], eax
	mov	rax, QWORD PTR -1112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -1088[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	ecx, DWORD PTR -1132[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	ecx, DWORD PTR -1128[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -1128[rbp]
	add	DWORD PTR -1132[rbp], eax
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	ecx, DWORD PTR -1132[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1124[rbp], eax
	cmp	DWORD PTR -1124[rbp], 0
	jns	.L7
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -1080[rbp], rax
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, QWORD PTR -1096[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rax, -1072[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1072[rbp], 2
	mov	rax, QWORD PTR -1080[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1072[rbp]
	add	rcx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -1132[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1070[rbp], ax
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L9
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -1140[rbp], 0
.L14:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1120[rbp], eax
	mov	eax, DWORD PTR -1120[rbp]
	add	DWORD PTR -1140[rbp], eax
	cmp	DWORD PTR -1120[rbp], 0
	jle	.L10
	lea	rax, -1056[rbp]
	mov	QWORD PTR -1104[rbp], rax
	mov	eax, DWORD PTR -1120[rbp]
	mov	DWORD PTR -1136[rbp], eax
	jmp	.L11
.L13:
	mov	rcx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -1136[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1104[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -1116[rbp], eax
	cmp	DWORD PTR -1116[rbp], 0
	jns	.L12
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -1116[rbp]
	cdqe
	add	QWORD PTR -1104[rbp], rax
	mov	eax, DWORD PTR -1116[rbp]
	sub	DWORD PTR -1136[rbp], eax
.L11:
	cmp	DWORD PTR -1136[rbp], 0
	jg	.L13
.L10:
	cmp	DWORD PTR -1120[rbp], 0
	jg	.L14
	cmp	DWORD PTR -1120[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR logfile[rip]
	mov	ecx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR logfile[rip]
	mov	ecx, DWORD PTR -1140[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -1124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC19:
	.string	"\nInterupped by signal %d\n"
	.text
	.globl	sighandler
	.type	sighandler, @function
sighandler:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR logfile[rip]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR logfile[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
.L19:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	sighandler, .-sighandler
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"119673.c"
	.text
	.global	logfile
	.bss
	.align	2
	.type	logfile, %object
	.size	logfile, 4
logfile:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"a+\000"
	.align	2
.LC1:
	.ascii	"/tmp/sasreceiver.log\000"
	.align	2
.LC2:
	.ascii	"%s: error opening logfile\012\000"
	.align	2
.LC3:
	.ascii	"%s (errno = %d)\012\000"
	.align	2
.LC4:
	.ascii	"usage %s <host_name> <port_base>\012\000"
	.align	2
.LC5:
	.ascii	"%s: invalid port base: %s\012\000"
	.align	2
.LC6:
	.ascii	"GP_SEGMENT_ID\000"
	.align	2
.LC7:
	.ascii	"%s: $GP_SEGMENT_ID is not set\012\000"
	.align	2
.LC8:
	.ascii	"%s: invalid $GP_SEGMENT_ID: %s\012\000"
	.align	2
.LC9:
	.ascii	"%s: port base = %d\012\000"
	.align	2
.LC10:
	.ascii	"%s: segment id = %d\012\000"
	.align	2
.LC11:
	.ascii	"%s: port = %d\012\000"
	.align	2
.LC12:
	.ascii	"%s: error opening socket\000"
	.align	2
.LC13:
	.ascii	"%s: no such host: %s\012\000"
	.align	2
.LC14:
	.ascii	"%s: error connecting\012\000"
	.align	2
.LC15:
	.ascii	"connection established\012\000"
	.align	2
.LC16:
	.ascii	"%s: error writing to stdout\012\000"
	.align	2
.LC17:
	.ascii	"%s: error reading from socket\012\000"
	.align	2
.LC18:
	.ascii	"%s: read %d bytes\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1104
	str	r0, [fp, #-1112]
	str	r1, [fp, #-1116]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L18+12
	str	r3, [r2]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L18+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+20
	bl	fprintf
	ldr	r3, .L18+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r5, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r1, .L18+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	exit
.L2:
	ldr	r1, .L18+28
	mov	r0, #1
	bl	signal
	ldr	r1, .L18+28
	mov	r0, #2
	bl	signal
	ldr	r1, .L18+28
	mov	r0, #3
	bl	signal
	ldr	r1, .L18+28
	mov	r0, #13
	bl	signal
	ldr	r3, [fp, #-1112]
	cmp	r3, #3
	beq	.L3
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+32
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1116]
	add	r3, r3, #8
	ldr	r0, [r3]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, r3
	bl	strtol
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1116]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L18+36
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L18+40
	bl	getenv
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+44
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-1080]
	bl	strtol
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1104]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1080]
	ldr	r1, .L18+48
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1084]
	ldr	r1, .L18+52
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1076]
	ldr	r1, .L18+56
	bl	fprintf
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1076]
	add	r3, r2, r3
	str	r3, [fp, #-1084]
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1084]
	ldr	r1, .L18+60
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+64
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, [fp, #-1088]
	bl	gethostbyname
	str	r0, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1088]
	ldr	r1, .L18+68
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-1068]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-1084]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+72
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L18+76
	bl	fwrite
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-1100]
.L14:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1072]
	bl	read
	str	r0, [fp, #-1064]
	ldr	r2, [fp, #-1100]
	ldr	r3, [fp, #-1064]
	add	r3, r2, r3
	str	r3, [fp, #-1100]
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	ble	.L10
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1096]
	ldr	r3, [fp, #-1064]
	str	r3, [fp, #-1092]
	b	.L11
.L13:
	ldr	r2, [fp, #-1092]
	ldr	r3, .L18+80
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-1096]
	bl	fwrite
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L18+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+84
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-1060]
	ldr	r2, [fp, #-1096]
	add	r3, r2, r3
	str	r3, [fp, #-1096]
	ldr	r2, [fp, #-1092]
	ldr	r3, [fp, #-1060]
	sub	r3, r2, r3
	str	r3, [fp, #-1092]
.L11:
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	bgt	.L13
.L10:
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bgt	.L14
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bge	.L15
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+88
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r5, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r1, .L18+24
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-1116]
	ldr	r2, [r3]
	ldr	r3, [fp, #-1100]
	ldr	r1, .L18+92
	bl	fprintf
	ldr	r3, .L18+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-1072]
	bl	close
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC19
	.word	.LC0
	.word	.LC1
	.word	logfile
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	sighandler
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdout
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.section	.rodata
	.align	2
.LC20:
	.ascii	"\012Interupped by signal %d\012\000"
	.text
	.align	2
	.global	sighandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L21:
	ldr	r0, [fp, #-8]
	bl	exit
.L23:
	.align	2
.L22:
	.word	logfile
	.word	.LC20
	.size	sighandler, .-sighandler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
