	.file	"extr_getifaddrs.c_nl_getmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nl_getmsg, @function
nl_getmsg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, 65536
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	DWORD PTR 8[rsp], edi
	lea	r15, 36[rsp]
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR 16[rsp], rcx
	mov	QWORD PTR 24[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	QWORD PTR [rsp], 0
	mov	rbp, rax
.L5:
	mov	rsi, r13
	mov	rdi, r14
	call	realloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L2
	cmp	r13, QWORD PTR [rsp]
	jb	.L2
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 8[rsp]
	mov	r9, r15
	mov	r8, r13
	mov	rcx, rax
	mov	edx, r12d
	call	nl_recvmsg@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L3
	mov	eax, DWORD PTR 36[rsp]
	test	DWORD PTR MSG_TRUNC[rip], eax
	jne	.L3
	mov	r13, rbx
	test	r14d, r14d
	jne	.L7
.L6:
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rbx
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L12:
	.cfi_restore_state
	cmp	QWORD PTR 0[r13], rbp
	jne	.L8
	cmp	DWORD PTR 8[r13], r12d
	jne	.L8
	mov	rax, QWORD PTR 16[r13]
	cmp	rax, QWORD PTR NLMSG_DONE[rip]
	je	.L21
	cmp	rax, QWORD PTR NLMSG_ERROR[rip]
	je	.L22
.L8:
	mov	rdi, r13
	mov	esi, r14d
	call	NLMSG_NEXT@PLT
	mov	r13, rax
.L7:
	mov	esi, r14d
	mov	rdi, r13
	call	NLMSG_OK@PLT
	test	rax, rax
	jne	.L12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rsp], r13
	mov	r14, rbx
	add	r13, r13
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	test	r14, r14
	jne	.L11
	xor	ebx, ebx
	mov	r14d, -1
	jmp	.L6
.L22:
	mov	rdi, r13
	call	NLMSG_DATA@PLT
	mov	r12, QWORD PTR 24[r13]
	mov	edi, 4
	mov	rbp, rax
	call	NLMSG_LENGTH@PLT
	cmp	r12, rax
	jge	.L10
	mov	edi, DWORD PTR EIO[rip]
	mov	r14, rbx
	call	__set_errno@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ebp, DWORD PTR errno[rip]
	mov	rdi, r14
	mov	rbx, r14
	mov	r14d, -1
	call	free@PLT
	mov	edi, ebp
	call	__set_errno@PLT
	jmp	.L6
.L21:
	mov	rax, QWORD PTR 24[rsp]
	add	DWORD PTR [rax], 1
	jmp	.L6
.L10:
	mov	edi, DWORD PTR 0[rbp]
	mov	r14, rbx
	neg	edi
	call	__set_errno@PLT
	jmp	.L11
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nl_getmsg, .-nl_getmsg
	.comm	errno,4,4
	.comm	NLMSG_ERROR,8,8
	.comm	NLMSG_DONE,8,8
	.comm	MSG_TRUNC,4,4
	.comm	EIO,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_getifaddrs.c_nl_getmsg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nl_getmsg, %function
nl_getmsg:
	@ args = 4, 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
	str	r3, [sp, #8]
	ldr	r3, .L24
	mov	r9, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [sp, #64]
	mov	r8, r1
	mov	r7, r2
	mov	r10, #0
	str	r3, [sp, #12]
	bl	getpid
	mov	r4, r10
	mov	r5, r0
	mov	r6, #65536
	ldr	fp, .L24+4
.L5:
	mov	r1, r6
	mov	r0, r10
	bl	realloc
	cmp	r6, r4
	movcs	r2, #0
	movcc	r2, #1
	cmp	r0, #0
	moveq	r2, #1
	cmp	r2, #0
	mov	r4, r0
	bne	.L2
	add	r3, sp, #16
	str	r3, [sp, #4]
	mov	r2, r7
	mov	r3, r0
	mov	r1, r8
	mov	r0, r9
	str	r6, [sp]
	bl	nl_recvmsg
	subs	r10, r0, #0
	blt	.L3
	ldr	r2, [sp, #16]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L3
	cmp	r10, #0
	beq	.L6
	mov	r6, r4
	ldr	r8, .L24+8
	ldr	r9, .L24+12
	b	.L7
.L12:
	ldr	r3, [r6]
	cmp	r3, r5
	bne	.L8
	ldr	r3, [r6, #4]
	cmp	r3, r7
	bne	.L8
	ldr	r3, [r6, #8]
	ldr	r2, [r8]
	cmp	r3, r2
	beq	.L21
	ldr	r2, [r9]
	cmp	r3, r2
	beq	.L22
.L8:
	mov	r0, r6
	mov	r1, r10
	bl	NLMSG_NEXT
	mov	r6, r0
.L7:
	mov	r1, r10
	mov	r0, r6
	bl	NLMSG_OK
	cmp	r0, #0
	bne	.L12
.L6:
	ldr	r3, [sp, #8]
	str	r4, [r3]
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r10, r4
	mov	r4, r6
	lsl	r6, r6, #1
	b	.L5
.L2:
	cmp	r10, #0
	bne	.L11
	mov	r4, r10
	mvn	r10, #0
	b	.L6
.L22:
	mov	r0, r6
	bl	NLMSG_DATA
	mov	r5, r0
	mov	r0, #4
	ldr	r6, [r6, #12]
	bl	NLMSG_LENGTH
	cmp	r6, r0
	ldrlt	r2, .L24+16
	ldrge	r0, [r5]
	ldrlt	r0, [r2]
	rsbge	r0, r0, #0
	movlt	r10, r4
	movge	r10, r4
	bl	__set_errno
.L11:
	ldr	r2, .L24+20
	mov	r0, r10
	ldr	r4, [r2]
	bl	free
	mov	r0, r4
	bl	__set_errno
	mov	r4, r10
	mvn	r10, #0
	b	.L6
.L21:
	ldr	r2, [sp, #12]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	b	.L6
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	MSG_TRUNC
	.word	NLMSG_DONE
	.word	NLMSG_ERROR
	.word	EIO
	.word	errno
	.size	nl_getmsg, .-nl_getmsg
	.comm	errno,4,4
	.comm	NLMSG_ERROR,4,4
	.comm	NLMSG_DONE,4,4
	.comm	MSG_TRUNC,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
