	.file	"extr_net.c_net_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"net_get: ub_dev_recv() failed, error=%d\n"
	.text
	.p2align 4
	.type	net_get, @function
net_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	r13, 4[rsp]
	mov	rbx, QWORD PTR [rax]
	xor	eax, eax
	call	getsecs@PLT
	mov	ebp, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 4[rsp]
	lea	eax, 1[rdi]
	cmp	eax, 1
	ja	.L4
	xor	eax, eax
	call	getsecs@PLT
	sub	eax, ebp
	cmp	eax, r12d
	jge	.L15
.L5:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	rcx, r13
	mov	edx, 4
	call	ub_dev_recv@PLT
	test	eax, eax
	je	.L2
	mov	esi, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 4[rsp]
.L4:
	test	edi, edi
	jle	.L7
	add	edi, DWORD PTR ETHER_ALIGN[rip]
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L7
	movsx	rdi, DWORD PTR ETHER_ALIGN[rip]
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR [rbx]
	add	rdi, rax
	call	memcpy@PLT
	mov	QWORD PTR [r14], rbp
	mov	eax, DWORD PTR 4[rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	net_get, .-net_get
	.comm	ETHER_ALIGN,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_net.c_net_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"net_get: ub_dev_recv() failed, error=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	net_get, %function
net_get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #12
	ldr	r4, [r3]
	ldr	r3, .L17
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	getsecs
	mov	r5, r0
	b	.L5
.L2:
	ldr	r0, [sp]
	add	r3, r0, #1
	cmp	r3, #1
	bhi	.L4
	bl	getsecs
	sub	r0, r0, r5
	cmp	r0, r6
	bge	.L15
.L5:
	mov	r3, sp
	mov	r2, #4
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	ub_dev_recv
	cmp	r0, #0
	beq	.L2
	mov	r1, r0
	ldr	r0, .L17+4
	bl	printf
	mvn	r0, #0
	b	.L1
.L15:
	ldr	r0, [sp]
.L4:
	cmp	r0, #0
	ble	.L7
	ldr	r3, .L17+8
	ldr	r6, [r3]
	add	r0, r6, r0
	bl	malloc
	subs	r5, r0, #0
	beq	.L7
	ldr	r1, [r4]
	ldr	r2, [sp]
	add	r0, r5, r6
	bl	memcpy
	ldr	r0, [sp]
	str	r5, [r7]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	bl	__stack_chk_fail
.L7:
	mvn	r0, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC0
	.word	ETHER_ALIGN
	.size	net_get, .-net_get
	.comm	ETHER_ALIGN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
