	.file	"extr_if_stf.c_stf_getsrcifa6.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stf_getsrcifa6, @function
stf_getsrcifa6:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ifnet_lock_shared@PLT
	mov	r12, QWORD PTR 0[r13]
	test	r12, r12
	je	.L2
	mov	rbx, rsp
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r12
	call	IFA_UNLOCK@PLT
	mov	r12, QWORD PTR 8[r12]
	test	r12, r12
	je	.L2
.L11:
	mov	rdi, r12
	call	IFA_LOCK@PLT
	mov	rbp, QWORD PTR [r12]
	test	rbp, rbp
	je	.L22
	mov	rax, QWORD PTR AF_INET6[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L22
	mov	rdi, rbp
	call	IN6_IS_ADDR_6TO4@PLT
	test	eax, eax
	je	.L22
	mov	rdi, rbp
	call	GET_V4@PLT
	mov	edx, 8
	mov	rsi, rbx
	mov	edi, eax
	call	bcopy@PLT
	mov	rdi, r12
	call	IFA_UNLOCK@PLT
	mov	edi, DWORD PTR in_ifaddr_rwlock[rip]
	call	lck_rw_lock_shared@PLT
	lea	rdi, in_ifaddrhead[rip]
	call	TAILQ_FIRST@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L10
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	call	IFA_UNLOCK@PLT
	mov	esi, DWORD PTR ia_link[rip]
	mov	rdi, rbp
	call	TAILQ_NEXT@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L7
.L10:
	mov	rdi, rbp
	call	IFA_LOCK@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbp
	cmp	QWORD PTR 16[rbp], rax
	jne	.L8
	call	IFA_UNLOCK@PLT
	mov	edi, DWORD PTR in_ifaddr_rwlock[rip]
	call	lck_rw_done@PLT
	mov	rdi, r12
	call	IFA_ADDREF@PLT
	mov	rdi, r13
	call	ifnet_lock_done@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	mov	edi, DWORD PTR in_ifaddr_rwlock[rip]
	call	lck_rw_done@PLT
	mov	r12, QWORD PTR 8[r12]
	test	r12, r12
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r13
	xor	r12d, r12d
	call	ifnet_lock_done@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stf_getsrcifa6, .-stf_getsrcifa6
	.comm	in_ifaddrhead,4,4
	.comm	in_ifaddr_rwlock,4,4
	.comm	ia_link,4,4
	.comm	AF_INET6,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_if_stf.c_stf_getsrcifa6.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stf_getsrcifa6, %function
stf_getsrcifa6:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	r3, .L25
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ifnet_lock_shared
	ldr	r5, [r8]
	cmp	r5, #0
	beq	.L2
	ldr	r7, .L25+4
	ldr	r9, .L25+8
	ldr	r10, .L25+12
	ldr	r6, .L25+16
	b	.L11
.L22:
	mov	r0, r5
	bl	IFA_UNLOCK
	ldr	r5, [r5, #4]
	cmp	r5, #0
	beq	.L2
.L11:
	mov	r0, r5
	bl	IFA_LOCK
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L22
	ldr	r2, [r4]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L22
	mov	r0, r4
	bl	IN6_IS_ADDR_6TO4
	cmp	r0, #0
	beq	.L22
	mov	r0, r4
	bl	GET_V4
	mov	r2, #4
	mov	r1, sp
	bl	bcopy
	mov	r0, r5
	bl	IFA_UNLOCK
	ldr	r0, [r9]
	bl	lck_rw_lock_shared
	mov	r0, r10
	bl	TAILQ_FIRST
	subs	r4, r0, #0
	bne	.L10
	b	.L7
.L8:
	bl	IFA_UNLOCK
	mov	r0, r4
	ldr	r1, [r6]
	bl	TAILQ_NEXT
	subs	r4, r0, #0
	beq	.L7
.L10:
	mov	r0, r4
	bl	IFA_LOCK
	ldr	r2, [r4, #8]
	ldr	r3, [sp]
	mov	r0, r4
	cmp	r2, r3
	bne	.L8
	bl	IFA_UNLOCK
	ldr	r0, [r9]
	bl	lck_rw_done
	mov	r0, r5
	bl	IFA_ADDREF
	mov	r0, r8
	bl	ifnet_lock_done
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r0, [r9]
	bl	lck_rw_done
	ldr	r5, [r5, #4]
	cmp	r5, #0
	bne	.L11
.L2:
	mov	r0, r8
	bl	ifnet_lock_done
	mov	r5, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	AF_INET6
	.word	in_ifaddr_rwlock
	.word	in_ifaddrhead
	.word	ia_link
	.size	stf_getsrcifa6, .-stf_getsrcifa6
	.comm	in_ifaddrhead,4,4
	.comm	in_ifaddr_rwlock,4,4
	.comm	ia_link,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
