	.file	"extr_rawsock-getif.c_read_netlink.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SOCK READ: "
.LC1:
	.string	"Error in received packet"
	.text
	.p2align 4
	.type	read_netlink, @function
read_netlink:
.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
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], r8d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbx, rax
.L2:
	movsx	rax, r12d
	mov	rdx, rbp
	xor	ecx, ecx
	mov	rsi, rbx
	sub	rdx, rax
	mov	edi, r13d
	call	recv@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L16
	mov	esi, eax
	mov	rdi, rbx
	call	NLMSG_OK@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR NLMSG_ERROR[rip]
	je	.L5
	cmp	rax, QWORD PTR NLMSG_DONE[rip]
	je	.L1
	movsx	rax, r15d
	mov	edx, DWORD PTR 16[rbx]
	add	r12d, r15d
	add	rax, rbx
	test	DWORD PTR NLM_F_MULTI[rip], edx
	je	.L1
	cmp	DWORD PTR [rbx], r14d
	jne	.L7
	mov	ecx, DWORD PTR 12[rsp]
	cmp	DWORD PTR 4[rbx], ecx
	jne	.L7
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	mov	r12d, -1
	call	perror@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC0[rip]
	mov	r12d, -1
	call	perror@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	read_netlink, .-read_netlink
	.comm	NLM_F_MULTI,4,4
	.comm	NLMSG_ERROR,8,8
	.comm	NLMSG_DONE,8,8
	.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_rawsock-getif.c_read_netlink.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SOCK READ: \000"
	.align	2
.LC1:
	.ascii	"Error in received packet\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_netlink, %function
read_netlink:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r0
	mov	r4, r1
	mov	r6, r2
	mov	r5, #0
	ldr	r9, .L19
	ldr	r10, .L19+4
	ldr	fp, .L19+8
	str	r3, [sp, #4]
	b	.L2
.L7:
	mov	r4, r0
.L2:
	mov	r3, #0
	mov	r1, r4
	mov	r0, r7
	sub	r2, r6, r5
	bl	recv
	subs	r8, r0, #0
	blt	.L18
	mov	r1, r8
	mov	r0, r4
	bl	NLMSG_OK
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r4, #8]
	ldr	r2, [r9]
	add	r0, r4, r8
	cmp	r3, r2
	beq	.L5
	ldr	r2, [r10]
	cmp	r3, r2
	beq	.L1
	ldr	r2, [r4, #12]
	ldr	r3, [fp]
	add	r5, r5, r8
	tst	r2, r3
	beq	.L1
	ldr	r3, [r4]
	ldr	r2, [sp, #4]
	cmp	r3, r2
	bne	.L7
	ldr	r3, [r4, #4]
	ldr	r2, [sp, #48]
	cmp	r3, r2
	bne	.L7
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mvn	r5, #0
	ldr	r0, .L19+12
	bl	perror
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mvn	r5, #0
	ldr	r0, .L19+16
	bl	perror
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	NLMSG_ERROR
	.word	NLMSG_DONE
	.word	NLM_F_MULTI
	.word	.LC1
	.word	.LC0
	.size	read_netlink, .-read_netlink
	.comm	NLM_F_MULTI,4,4
	.comm	NLMSG_ERROR,4,4
	.comm	NLMSG_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
