	.file	"extr_ifpifa.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"kvm_openfiles: %s"
.LC1:
	.string	"kvm_nlist: %s"
.LC2:
	.string	"kvm_nlist: no namelist"
.LC3:
	.string	"%s\n"
.LC4:
	.string	"<Link type %#x>"
.LC5:
	.string	"family=%d"
.LC6:
	.string	"\t%s ifa_refcnt=%u\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR _POSIX2_LINE_MAX[rip]
	mov	rbx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L35:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L35
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L36
.L4:
	movsx	rax, DWORD PTR INET6_ADDRSTRLEN[rip]
	mov	rbx, rsp
	mov	r12, rsp
	mov	DWORD PTR -148[rbp], eax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
.L5:
	cmp	rsp, rax
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L36:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L7:
	mov	ecx, DWORD PTR O_RDONLY[rip]
	mov	r8, r12
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	mov	r15, rsp
	call	kvm_openfiles@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L8
	lea	rdi, .LC0[rip]
	mov	rsi, r12
	xor	eax, eax
	call	warnx@PLT
	xor	edi, edi
	call	exit@PLT
.L8:
	mov	rsi, QWORD PTR nl[rip]
	mov	rdi, r14
	call	kvm_nlist@PLT
	test	rax, rax
	js	.L38
	mov	rax, QWORD PTR N_IFNET[rip]
	sal	rax, 4
	add	rax, QWORD PTR nl[rip]
	cmp	QWORD PTR [rax], 0
	je	.L39
	lea	r12, -132[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	ecx, 4
	mov	rdi, r14
	mov	rdx, r12
	call	kread@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, r12
	call	TAILQ_FIRST@PLT
	mov	QWORD PTR -160[rbp], rax
.L13:
	cmp	QWORD PTR -160[rbp], 0
	je	.L10
	lea	r12, -128[rbp]
	mov	rsi, QWORD PTR -160[rbp]
	mov	ecx, 32
	mov	rdi, r14
	mov	rdx, r12
	call	kread@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR if_link[rip]
	mov	rdi, r12
	call	TAILQ_NEXT@PLT
	mov	rsi, QWORD PTR -128[rbp]
	lea	rdi, .LC3[rip]
	mov	QWORD PTR -160[rbp], rax
	xor	eax, eax
	call	printf@PLT
	lea	rdi, -104[rbp]
	call	TAILQ_FIRST@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	lea	r13, -96[rbp]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	cmp	ecx, 131
	je	.L40
	mov	esi, DWORD PTR -148[rbp]
	lea	rdx, .LC5[rip]
	mov	rdi, r15
	call	snprintf@PLT
.L19:
	mov	edx, DWORD PTR -88[rbp]
	xor	eax, eax
	mov	rsi, r15
	lea	rdi, .LC6[rip]
	call	printf@PLT
	test	rbx, rbx
	je	.L13
	mov	r12, rbx
.L20:
	mov	ecx, 32
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r14
	call	kread@PLT
	test	rax, rax
	jne	.L10
	mov	esi, DWORD PTR ifa_link[rip]
	mov	rdi, r13
	call	TAILQ_NEXT@PLT
	mov	rsi, r13
	sub	rsi, r12
	add	rsi, QWORD PTR -80[rbp]
	mov	rbx, rax
	mov	ecx, DWORD PTR [rsi]
	cmp	ecx, 132
	je	.L16
	cmp	ecx, 133
	jne	.L41
	mov	ecx, DWORD PTR -148[rbp]
	mov	rdx, r15
	mov	edi, 133
	call	inet_ntop@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, DWORD PTR -148[rbp]
	mov	rdx, r15
	mov	edi, 132
	call	inet_ntop@PLT
	jmp	.L19
.L38:
	mov	rdi, r14
	call	kvm_geterr@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	warnx@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r14
	call	kvm_close@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L40:
	.cfi_restore_state
	mov	esi, DWORD PTR -148[rbp]
	lea	rdx, .LC4[rip]
	mov	rdi, r15
	call	snprintf@PLT
	jmp	.L19
.L39:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	warnx@PLT
	jmp	.L10
.L37:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	nl,8,8
	.comm	ifa_link,4,4
	.comm	if_link,4,4
	.comm	_POSIX2_LINE_MAX,4,4
	.comm	O_RDONLY,4,4
	.comm	N_IFNET,8,8
	.comm	INET6_ADDRSTRLEN,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_ifpifa.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kvm_openfiles: %s\000"
	.align	2
.LC1:
	.ascii	"kvm_nlist: %s\000"
	.align	2
.LC2:
	.ascii	"kvm_nlist: no namelist\000"
	.align	2
.LC3:
	.ascii	"%s\012\000"
	.align	2
.LC4:
	.ascii	"<Link type %#x>\000"
	.align	2
.LC5:
	.ascii	"family=%d\000"
	.align	2
.LC6:
	.ascii	"\011%s ifa_refcnt=%u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldr	r3, .L32
	ldr	r2, .L32+4
	ldr	r3, [r3]
	ldr	r8, [r2]
	add	r3, r3, #7
	bic	r3, r3, #7
	add	r2, r8, #7
	sub	sp, sp, r3
	bic	r3, r2, #7
	add	r4, sp, #8
	sub	sp, sp, r3
	mov	r7, sp
	mov	r2, #0
	ldr	r3, .L32+8
	str	r4, [r7], #8
	ldr	ip, .L32+12
	mov	r1, r2
	mov	r0, r2
	ldr	r3, [r3]
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	bl	kvm_openfiles
	subs	r6, r0, #0
	beq	.L25
.L2:
	ldr	r4, .L32+16
	mov	r0, r6
	ldr	r1, [r4]
	bl	kvm_nlist
	cmp	r0, #0
	blt	.L26
	ldr	r2, .L32+20
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r1, [r3, r2, lsl #3]
	add	r3, r3, r2, lsl #3
	cmp	r1, #0
	beq	.L27
	ldr	r1, [r3, #4]
	mov	r0, r6
	mov	r3, #4
	sub	r2, fp, #76
	bl	kread
	cmp	r0, #0
	beq	.L28
.L4:
	mov	r0, r6
	bl	kvm_close
	ldr	r3, .L32+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	sub	r0, fp, #76
	bl	TAILQ_FIRST
	ldr	r10, .L32+24
	str	r0, [fp, #-80]
.L7:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L4
	mov	r3, #16
	mov	r0, r6
	ldr	r1, [fp, #-80]
	sub	r2, fp, #72
	bl	kread
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L32+28
	sub	r0, fp, #72
	ldr	r1, [r3]
	bl	TAILQ_NEXT
	mov	r3, r0
	ldr	r1, [fp, #-72]
	ldr	r0, .L32+32
	str	r3, [fp, #-80]
	bl	printf
	sub	r0, fp, #60
	bl	TAILQ_FIRST
	subs	r4, r0, #0
	beq	.L7
	ldr	r9, .L32+36
	b	.L14
.L31:
	cmp	r0, #131
	mov	r3, r0
	beq	.L30
	mov	r1, r8
	mov	r0, r7
	ldr	r2, .L32+40
	bl	snprintf
.L13:
	mov	r1, r7
	mov	r0, r9
	ldr	r2, [fp, #-52]
	bl	printf
	cmp	r5, #0
	beq	.L7
	mov	r4, r5
.L14:
	mov	r3, #16
	mov	r1, r4
	mov	r0, r6
	sub	r2, fp, #56
	bl	kread
	cmp	r0, #0
	bne	.L4
	ldr	r1, [r10]
	sub	r0, fp, #56
	bl	TAILQ_NEXT
	ldr	r1, [fp, #-48]
	sub	r3, fp, #56
	sub	r1, r1, r4
	mov	r5, r0
	ldr	r0, [r3, r1]
	add	r1, r3, r1
	cmp	r0, #132
	beq	.L10
	cmp	r0, #133
	bne	.L31
.L10:
	mov	r3, r8
	mov	r2, r7
	bl	inet_ntop
	b	.L13
.L30:
	mov	r1, r8
	mov	r0, r7
	ldr	r2, .L32+44
	bl	snprintf
	b	.L13
.L27:
	ldr	r0, .L32+48
	bl	warnx
	b	.L4
.L25:
	mov	r1, r4
	ldr	r0, .L32+52
	bl	warnx
	mov	r0, r6
	bl	exit
	b	.L2
.L26:
	mov	r0, r6
	bl	kvm_geterr
	mov	r1, r0
	ldr	r0, .L32+56
	bl	warnx
	b	.L4
.L29:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	_POSIX2_LINE_MAX
	.word	INET6_ADDRSTRLEN
	.word	O_RDONLY
	.word	.LC7
	.word	nl
	.word	N_IFNET
	.word	ifa_link
	.word	if_link
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.word	.LC4
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.comm	nl,4,4
	.comm	ifa_link,4,4
	.comm	if_link,4,4
	.comm	_POSIX2_LINE_MAX,4,4
	.comm	O_RDONLY,4,4
	.comm	N_IFNET,4,4
	.comm	INET6_ADDRSTRLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
