	.file	"337802.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: talker hostname message\n"
.LC1:
	.string	"4950"
.LC2:
	.string	"getaddrinfo: %s\n"
.LC3:
	.string	"talker: socket"
	.align 8
.LC4:
	.string	"talker: failed to bind socket\n"
.LC5:
	.string	"r"
.LC6:
	.string	"filesize is:%d\n"
.LC7:
	.string	"File contains:"
.LC9:
	.string	"%lf microsecs\n"
.LC10:
	.string	"talker: sendto"
.LC11:
	.string	"talker: sent %d bytes to %s\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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3136
	mov	DWORD PTR -15412[rbp], edi
	mov	QWORD PTR -15424[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -15412[rbp], 3
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -15344[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -15340[rbp], 0
	mov	DWORD PTR -15336[rbp], 2
	mov	rax, QWORD PTR -15424[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -15392[rbp]
	lea	rdx, -15344[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -15400[rbp], eax
	cmp	DWORD PTR -15400[rbp], 0
	je	.L3
	mov	eax, DWORD PTR -15400[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L13
.L3:
	mov	rax, QWORD PTR -15392[rbp]
	mov	QWORD PTR -15384[rbp], rax
	jmp	.L5
.L8:
	mov	rax, QWORD PTR -15384[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -15384[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -15384[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -15408[rbp], eax
	cmp	DWORD PTR -15408[rbp], -1
	jne	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -15384[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -15384[rbp], rax
.L5:
	cmp	QWORD PTR -15384[rbp], 0
	jne	.L8
	jmp	.L7
.L15:
	nop
.L7:
	cmp	QWORD PTR -15384[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 2
	jmp	.L13
.L9:
	mov	rax, QWORD PTR -15424[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -15376[rbp], rax
	mov	rax, QWORD PTR -15424[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -15296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -15248[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -15404[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -15376[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -15404[rbp]
	cdqe
	mov	BYTE PTR -15152[rbp+rax], dl
	add	DWORD PTR -15404[rbp], 1
.L10:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -15404[rbp], eax
	jl	.L11
	lea	rax, -15360[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -15360[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -15352[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -15368[rbp], xmm0
	mov	rax, QWORD PTR -15368[rbp]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -15384[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -15384[rbp]
	mov	rdx, QWORD PTR 24[rax]
	lea	rsi, -15152[rbp]
	mov	eax, DWORD PTR -15408[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 15132
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -15396[rbp], eax
	cmp	DWORD PTR -15396[rbp], -1
	jne	.L12
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -15360[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -15360[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -15352[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -15368[rbp], xmm0
	mov	rax, QWORD PTR -15368[rbp]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -15392[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	rax, QWORD PTR -15424[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -15396[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -15408[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.long	0
	.long	1093567616
	.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	"337802.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: talker hostname message\012\000"
	.align	2
.LC1:
	.ascii	"4950\000"
	.align	2
.LC2:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC3:
	.ascii	"talker: socket\000"
	.align	2
.LC4:
	.ascii	"talker: failed to bind socket\012\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"filesize is:%d\012\000"
	.align	2
.LC7:
	.ascii	"File contains:\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC8:
	.ascii	"%lf microsecs\012\000"
	.align	2
.LC9:
	.ascii	"talker: sendto\000"
	.align	2
.LC10:
	.ascii	"talker: sent %d bytes to %s\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 15312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #15296
	sub	sp, sp, #28
	sub	r3, fp, #12288
	sub	r3, r3, #20
	str	r0, [r3, #-3020]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	str	r1, [r3, #-3024]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3020]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L16+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #24
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2964]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2960]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3024]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #15296
	sub	r3, r3, #20
	sub	r3, r3, #4
	sub	r2, fp, #15232
	sub	r2, r2, #20
	sub	r2, r2, #24
	ldr	r1, .L16+12
	bl	getaddrinfo
	str	r0, [r4, #-2996]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2996]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L16+4
	ldr	r4, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r0, [r3, #-2996]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L16+16
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L13
.L3:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3012]
	str	r3, [r2, #-3004]
	b	.L5
.L8:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	ldr	r0, [r3, #4]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	ldr	r1, [r3, #8]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	ldr	r3, [r3, #12]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	mov	r4, r2
	mov	r2, r3
	bl	socket
	str	r0, [r4, #-3008]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3008]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L16+20
	bl	perror
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	ldr	r3, [r3, #28]
	str	r3, [r2, #-3004]
.L5:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	cmp	r3, #0
	bne	.L8
	b	.L7
.L15:
	nop
.L7:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L16+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L16+24
	bl	fwrite
	mov	r3, #2
	b	.L13
.L9:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3024]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	mov	r4, r2
	ldr	r1, .L16+28
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-2992]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3024]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #15168
	sub	r3, r3, #20
	sub	r3, r3, #56
	mov	r1, r3
	mov	r0, r2
	bl	stat
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2892]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	add	r2, r2, #8192
	str	r3, [r2, #4080]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	add	r3, r3, #8192
	ldr	r3, [r3, #4080]
	mov	r1, r3
	ldr	r0, .L16+32
	bl	printf
	ldr	r0, .L16+36
	bl	puts
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3000]
	b	.L10
.L11:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r0, [r3, #-2992]
	bl	fgetc
	mov	r3, r0
	and	r2, r3, #255
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3000]
	add	r3, r1, r3
	sub	r3, r3, #2848
	strb	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3000]
	add	r3, r3, #1
	str	r3, [r2, #-3000]
.L10:
	sub	r3, fp, #12288
	sub	r3, r3, #20
	add	r3, r3, #8192
	ldr	r3, [r3, #4080]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	ldr	r2, [r2, #-3000]
	cmp	r2, r3
	blt	.L11
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2976]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2972]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r6, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r6, {r2-r3}
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	ldr	r0, .L16+44
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3004]
	ldr	r3, [r3, #20]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	ldr	r2, [r2, #-3004]
	ldr	r2, [r2, #16]
	sub	r1, fp, #12288
	sub	r1, r1, #20
	mov	r4, r1
	sub	r1, fp, #15104
	sub	r1, r1, #20
	sub	r1, r1, #32
	sub	r0, fp, #12288
	sub	r0, r0, #20
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L16+48
	ldr	r0, [r0, #-3008]
	bl	sendto
	str	r0, [r4, #-2988]
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2988]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L16+52
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2976]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-2972]
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	mov	r6, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stmdb	r6, {r2-r3}
	sub	r3, fp, #15232
	sub	r3, r3, #20
	sub	r3, r3, #32
	ldmdb	r3, {r2-r3}
	ldr	r0, .L16+44
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3012]
	mov	r0, r3
	bl	freeaddrinfo
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r3, [r3, #-3024]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #12288
	sub	r2, r2, #20
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2988]
	ldr	r0, .L16+56
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #20
	ldr	r0, [r3, #-3008]
	bl	close
	mov	r3, #0
.L13:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC11
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1093567616
	.word	.LC8
	.word	15132
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
