	.file	"extr_6366.c_sendudp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Malloc failed\n"
.LC1:
	.string	"sendto() failed"
	.text
	.p2align 4
	.globl	sendudp
	.type	sendudp, @function
sendudp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14d, DWORD PTR 112[rsp]
	mov	DWORD PTR [rsp], edi
	mov	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 4[rsp], ecx
	lea	r12d, 80[r14]
	mov	edi, r12d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	malloc@PLT
	xor	esi, esi
	mov	edx, r12d
	mov	rbp, rax
	mov	rdi, rax
	call	memset@PLT
	test	rbp, rbp
	mov	r11, QWORD PTR 8[rsp]
	je	.L7
.L2:
	mov	rax, QWORD PTR [r11]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR [rbx]
	mov	DWORD PTR 24[rbp], 255
	mov	QWORD PTR 8[rbp], rax
	movabs	rax, 21474836484
	mov	QWORD PTR 16[rbp], rax
	xor	eax, eax
	call	rand@PLT
	movzx	edi, ax
	call	htons@PLT
	mov	edi, r12d
	mov	QWORD PTR 48[rbp], rax
	mov	eax, DWORD PTR IPPROTO_UDP[rip]
	mov	DWORD PTR 40[rbp], eax
	call	htons@PLT
	mov	esi, 56
	mov	rdi, rbp
	mov	QWORD PTR 32[rbp], rax
	call	in_cksum@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	DWORD PTR 28[rbp], eax
	call	htons@PLT
	mov	edi, r15d
	mov	QWORD PTR 72[rbp], rax
	call	htons@PLT
	lea	edi, 24[r14]
	mov	QWORD PTR 64[rbp], rax
	call	htons@PLT
	lea	rdi, 80[rbp]
	mov	edx, r14d
	mov	rsi, r13
	mov	QWORD PTR 56[rbp], rax
	call	memcpy@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR [rsp]
	xor	ecx, ecx
	mov	r9d, 16
	lea	r8, 16[rsp]
	mov	edx, r12d
	mov	rsi, rbp
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 16[rsp], rax
	call	sendto@PLT
	test	rax, rax
	js	.L8
.L3:
	mov	rdi, rbp
	call	free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
	mov	r11, QWORD PTR 8[rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sendudp, .-sendudp
	.comm	IPPROTO_UDP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_6366.c_sendudp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Malloc failed\012\000"
	.align	2
.LC1:
	.ascii	"sendto() failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendudp
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendudp, %function
sendudp:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r8, [sp, #72]
	mov	r9, r3
	add	r5, r8, #48
	ldr	r3, .L10
	mov	r7, r0
	mov	r0, r5
	mov	r10, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	fp, [sp, #68]
	bl	malloc
	mov	r4, r0
	mov	r2, r5
	mov	r1, #0
	bl	memset
	cmp	r4, #0
	beq	.L7
.L2:
	mov	r2, #255
	mov	r1, #5
	mov	r0, #4
	ldr	r3, [r10]
	str	r2, [r4, #16]
	str	r3, [r4]
	ldr	r3, [r6]
	str	r1, [r4, #12]
	str	r3, [r4, #4]
	str	r0, [r4, #8]
	bl	rand
	lsl	r0, r0, #16
	lsr	r0, r0, #16
	bl	htons
	ldr	r3, .L10+4
	str	r0, [r4, #32]
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [r4, #28]
	bl	htons
	mov	r3, r0
	mov	r1, #36
	mov	r0, r4
	str	r3, [r4, #24]
	bl	in_cksum
	mov	r3, r0
	mov	r0, r9
	str	r3, [r4, #20]
	bl	htons
	mov	r3, r0
	ldr	r0, [sp, #64]
	str	r3, [r4, #44]
	bl	htons
	mov	r3, r0
	add	r0, r8, #12
	str	r3, [r4, #40]
	bl	htons
	mov	r3, r0
	mov	r2, r8
	mov	r1, fp
	add	r0, r4, #48
	str	r3, [r4, #36]
	bl	memcpy
	mov	r1, #8
	ldr	r3, .L10+8
	ldr	lr, [r6]
	ldr	ip, [r3]
	add	r3, sp, #12
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r2, r5
	mov	r0, r7
	mov	r3, #0
	mov	r1, r4
	str	lr, [sp, #12]
	str	ip, [sp, #16]
	bl	sendto
	cmp	r0, #0
	blt	.L8
.L3:
	mov	r0, r4
	bl	free
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r0, .L10+12
	bl	perror
	b	.L3
.L7:
	ldr	r0, .L10+16
	bl	printf
	mvn	r0, #0
	bl	exit
	b	.L2
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	IPPROTO_UDP
	.word	AF_INET
	.word	.LC1
	.word	.LC0
	.size	sendudp, .-sendudp
	.comm	IPPROTO_UDP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
