	.file	"extr_trans_inet.c_inet_alloc_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	inet_alloc_buf, @function
inet_alloc_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 2024
	.cfi_def_cfa_offset 2048
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 2008[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	je	.L8
.L1:
	mov	rax, QWORD PTR 2008[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 2024
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rbx, rdi
	xor	edi, edi
	call	buf_alloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L10
	xor	edi, edi
	call	buf_size@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L1
.L10:
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, rsp
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, 2000
	or	r12d, -1
	call	recvfrom@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	inet_alloc_buf, .-inet_alloc_buf
	.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_trans_inet.c_inet_alloc_buf.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inet_alloc_buf, %function
inet_alloc_buf:
	@ args = 0, pretend = 0, frame = 2008
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r4, [r0, #8]
	ldr	r3, .L11
	sub	sp, sp, #2016
	sub	sp, sp, #4
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #2012]
	mov	r3,#0
	movne	r0, #0
	beq	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #2012]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #2016
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	mov	r5, r0
	mov	r0, r4
	bl	buf_alloc
	cmp	r0, #0
	str	r0, [r5, #8]
	beq	.L10
	mov	r0, r4
	bl	buf_size
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5]
	b	.L1
.L10:
	str	r0, [sp, #4]
	str	r0, [sp]
	mov	r3, r0
	mov	r2, #2000
	ldr	r0, [r5, #4]
	add	r1, sp, #12
	bl	recvfrom
	mvn	r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	inet_alloc_buf, .-inet_alloc_buf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
