	.file	"extr_in6.c_in6_autoconf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	in6_autoconf, @function
in6_autoconf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	setne	dil
	movzx	edi, dil
	call	VERIFY@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR EINVAL[rip]
	test	DWORD PTR IFF_LOOPBACK[rip], eax
	jne	.L1
	mov	rdi, rbp
	test	ebx, ebx
	jne	.L19
	call	ifnet_lock_exclusive@PLT
	mov	eax, DWORD PTR IFEF_ACCEPT_RTADV[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 4[rbp], eax
	call	ifnet_lock_done@PLT
	lea	rdi, in6_ifaddr_rwlock[rip]
	call	lck_rw_lock_exclusive@PLT
	mov	rbx, QWORD PTR in6_ifaddrs[rip]
	test	rbx, rbx
	je	.L7
	lea	r13, in6_ifaddr_rwlock[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rbx, QWORD PTR 8[rbx]
.L9:
	test	rbx, rbx
	je	.L7
.L11:
	cmp	QWORD PTR 16[rbx], rbp
	jne	.L17
	lea	r12, 16[rbx]
	mov	rdi, r12
	call	IFA_LOCK@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rdi, r12
	test	DWORD PTR IN6_IFF_AUTOCONF[rip], eax
	jne	.L20
	call	IFA_UNLOCK@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	call	ifnet_lock_exclusive@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	r12d, eax
	and	r12d, DWORD PTR IFEF_IPV6_ROUTER[rip]
	jne	.L21
	or	eax, DWORD PTR IFEF_ACCEPT_RTADV[rip]
	mov	DWORD PTR 4[rbp], eax
.L6:
	mov	rdi, rbp
	call	ifnet_lock_done@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, in6_ifaddr_rwlock[rip]
	xor	r12d, r12d
	call	lck_rw_done@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	IFA_ADDREF_LOCKED@PLT
	mov	rdi, r12
	call	IFA_UNLOCK@PLT
	mov	rdi, r13
	call	lck_rw_done@PLT
	mov	rdi, r12
	call	in6_purgeaddr@PLT
	mov	rdi, r12
	call	IFA_REMREF@PLT
	mov	rdi, r13
	call	lck_rw_lock_exclusive@PLT
	mov	rbx, QWORD PTR in6_ifaddrs[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR IFEF_ACCEPT_RTADV[rip]
	mov	r12d, DWORD PTR EBUSY[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR 4[rbp], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	in6_autoconf, .-in6_autoconf
	.comm	in6_ifaddrs,8,8
	.comm	in6_ifaddr_rwlock,4,4
	.comm	IN6_IFF_AUTOCONF,4,4
	.comm	IFF_LOOPBACK,4,4
	.comm	IFEF_IPV6_ROUTER,4,4
	.comm	IFEF_ACCEPT_RTADV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_in6.c_in6_autoconf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	in6_autoconf, %function
in6_autoconf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	mov	r4, r1
	bl	VERIFY
	ldr	r3, .L22
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L19
	cmp	r4, #0
	mov	r0, r5
	bne	.L20
	bl	ifnet_lock_exclusive
	ldr	r2, .L22+4
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	mov	r0, r5
	bic	r3, r3, r2
	str	r3, [r5, #4]
	ldr	r8, .L22+8
	bl	ifnet_lock_done
	ldr	r0, .L22+12
	bl	lck_rw_lock_exclusive
	ldr	r4, [r8]
	cmp	r4, #0
	beq	.L7
	ldr	r7, .L22+16
	ldr	r9, .L22+12
	b	.L11
.L17:
	ldr	r4, [r4, #4]
.L9:
	cmp	r4, #0
	beq	.L7
.L11:
	ldr	r3, [r4, #8]
	cmp	r3, r5
	bne	.L17
	add	r6, r4, #8
	mov	r0, r6
	bl	IFA_LOCK
	ldr	r2, [r4]
	ldr	r3, [r7]
	mov	r0, r6
	tst	r2, r3
	bne	.L21
	bl	IFA_UNLOCK
	b	.L17
.L20:
	bl	ifnet_lock_exclusive
	ldr	r2, .L22+20
	ldr	r3, [r5, #4]
	ldr	r4, [r2]
	ldr	r2, .L22+4
	ands	r4, r3, r4
	ldrne	r1, .L22+24
	ldrne	r2, [r2]
	ldreq	r2, [r2]
	ldrne	r4, [r1]
	bicne	r3, r3, r2
	orreq	r3, r2, r3
	mov	r0, r5
	str	r3, [r5, #4]
	bl	ifnet_lock_done
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, .L22+28
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r4, #0
	ldr	r0, .L22+12
	bl	lck_rw_done
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	bl	IFA_ADDREF_LOCKED
	mov	r0, r6
	bl	IFA_UNLOCK
	mov	r0, r9
	bl	lck_rw_done
	mov	r0, r6
	bl	in6_purgeaddr
	mov	r0, r6
	bl	IFA_REMREF
	mov	r0, r9
	bl	lck_rw_lock_exclusive
	ldr	r4, [r8]
	b	.L9
.L23:
	.align	2
.L22:
	.word	IFF_LOOPBACK
	.word	IFEF_ACCEPT_RTADV
	.word	in6_ifaddrs
	.word	in6_ifaddr_rwlock
	.word	IN6_IFF_AUTOCONF
	.word	IFEF_IPV6_ROUTER
	.word	EBUSY
	.word	EINVAL
	.size	in6_autoconf, .-in6_autoconf
	.comm	in6_ifaddrs,4,4
	.comm	in6_ifaddr_rwlock,4,4
	.comm	IN6_IFF_AUTOCONF,4,4
	.comm	IFF_LOOPBACK,4,4
	.comm	IFEF_IPV6_ROUTER,4,4
	.comm	IFEF_ACCEPT_RTADV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
