	.file	"extr_if_stf.c_stf_checkaddr4.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: packet from 0x%x dropped due to ingress filter\n"
	.text
	.p2align 4
	.type	stf_checkaddr4, @function
stf_checkaddr4:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ntohl@PLT
	mov	edi, eax
	call	IN_MULTICAST@PLT
	test	rax, rax
	jne	.L17
	mov	rdi, QWORD PTR [rbx]
	call	ntohl@PLT
	shr	eax, 24
	mov	edx, eax
	and	dl, 127
	cmp	edx, 127
	je	.L17
	test	eax, eax
	je	.L17
	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	.L7
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	cmp	QWORD PTR [rbx], rax
	je	.L32
	call	IFA_UNLOCK@PLT
.L5:
	mov	esi, DWORD PTR ia_link[rip]
	mov	rdi, rbp
	call	TAILQ_NEXT@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
.L7:
	mov	rdi, rbp
	call	IFA_LOCK@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR IFF_BROADCAST[rip], eax
	jne	.L4
	mov	rdi, rbp
	call	IFA_UNLOCK@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR in_ifaddr_rwlock[rip]
	call	lck_rw_done@PLT
	test	r12, r12
	je	.L30
	mov	edi, DWORD PTR [r12]
	call	ifnet_flags@PLT
	test	DWORD PTR IFF_LINK2[rip], eax
	jne	.L30
	test	r13, r13
	je	.L30
	mov	rbp, rsp
	mov	esi, 24
	mov	rdi, rbp
	call	bzero@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	rdi, rbp
	xor	edx, edx
	xor	esi, esi
	mov	DWORD PTR [rsp], 24
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rax
	call	rtalloc1@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	rdi, rax
	call	RT_LOCK@PLT
	cmp	QWORD PTR 0[rbp], r13
	jne	.L33
	mov	rdi, rbp
	call	RT_UNLOCK@PLT
	mov	rdi, rbp
	call	rtfree@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L34
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L32:
	.cfi_restore_state
	call	IFA_UNLOCK@PLT
	mov	edi, DWORD PTR in_ifaddr_rwlock[rip]
	call	lck_rw_done@PLT
	mov	eax, -1
	jmp	.L1
.L10:
	mov	rdi, QWORD PTR 8[rsp]
	call	ntohl@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, eax
	call	if_name@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	mov	ecx, r13d
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	log@PLT
.L17:
	mov	eax, -1
	jmp	.L1
.L33:
	mov	rdi, QWORD PTR 8[rsp]
	call	ntohl@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, eax
	call	if_name@PLT
	mov	edi, DWORD PTR LOG_WARNING[rip]
	mov	ecx, r13d
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	log@PLT
	mov	rdi, rbp
	call	RT_UNLOCK@PLT
	mov	rdi, rbp
	call	rtfree@PLT
	jmp	.L17
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stf_checkaddr4, .-stf_checkaddr4
	.comm	in_ifaddrhead,4,4
	.comm	in_ifaddr_rwlock,4,4
	.comm	ia_link,4,4
	.comm	LOG_WARNING,4,4
	.comm	IFF_LINK2,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	AF_INET,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_if_stf.c_stf_checkaddr4.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: packet from 0x%x dropped due to ingress filter\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stf_checkaddr4, %function
stf_checkaddr4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L32
	sub	sp, sp, #20
	mov	r9, r0
	ldr	r0, [r1]
	mov	r5, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	ntohl
	bl	IN_MULTICAST
	subs	r8, r0, #0
	bne	.L17
	ldr	r0, [r5]
	bl	ntohl
	lsr	r0, r0, #24
	bic	r3, r0, #128
	cmp	r3, #127
	beq	.L17
	cmp	r0, #0
	beq	.L17
	ldr	fp, .L32+4
	ldr	r0, [fp]
	bl	lck_rw_lock_shared
	ldr	r0, .L32+8
	bl	TAILQ_FIRST
	subs	r4, r0, #0
	beq	.L3
	ldr	r6, .L32+12
	ldr	r7, .L32+16
	b	.L7
.L4:
	ldr	r2, [r5]
	ldr	r3, [r4, #4]
	mov	r0, r4
	cmp	r2, r3
	beq	.L28
	bl	IFA_UNLOCK
.L5:
	mov	r0, r4
	ldr	r1, [r7]
	bl	TAILQ_NEXT
	subs	r4, r0, #0
	beq	.L3
.L7:
	mov	r0, r4
	bl	IFA_LOCK
	ldr	r2, [r4]
	ldr	r3, [r6]
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L4
	mov	r0, r4
	bl	IFA_UNLOCK
	b	.L5
.L3:
	ldr	r0, [fp]
	bl	lck_rw_done
	cmp	r9, #0
	beq	.L1
	ldr	r0, [r9]
	bl	ifnet_flags
	ldr	r3, .L32+20
	ldr	r3, [r3]
	tst	r0, r3
	moveq	r3, #1
	movne	r3, #0
	cmp	r10, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L29
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	bl	IFA_UNLOCK
	ldr	r0, [fp]
	bl	lck_rw_done
	mvn	r8, #0
	b	.L1
.L29:
	mov	r1, #12
	mov	r0, sp
	bl	bzero
	mov	r2, #0
	mov	r3, #12
	ldr	r0, .L32+24
	ldr	r1, [r5]
	ldr	ip, [r0]
	str	r1, [sp, #4]
	mov	r0, sp
	mov	r1, r2
	str	ip, [sp, #8]
	str	r3, [sp]
	bl	rtalloc1
	subs	r4, r0, #0
	beq	.L10
	bl	RT_LOCK
	ldr	r3, [r4]
	cmp	r3, r10
	bne	.L31
	mov	r0, r4
	bl	RT_UNLOCK
	mov	r0, r4
	bl	rtfree
	b	.L1
.L10:
	ldr	r3, .L32+28
	ldr	r0, [r9]
	ldr	r5, [r3]
	bl	if_name
	mov	r4, r0
	ldr	r0, [sp, #4]
	bl	ntohl
	mov	r2, r4
	mov	r3, r0
	ldr	r1, .L32+32
	mov	r0, r5
	bl	log
.L17:
	mvn	r8, #0
	b	.L1
.L31:
	ldr	r3, .L32+28
	ldr	r0, [r9]
	ldr	r6, [r3]
	bl	if_name
	mov	r5, r0
	ldr	r0, [sp, #4]
	bl	ntohl
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L32+32
	mov	r0, r6
	bl	log
	mov	r0, r4
	bl	RT_UNLOCK
	mov	r0, r4
	bl	rtfree
	b	.L17
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	in_ifaddr_rwlock
	.word	in_ifaddrhead
	.word	IFF_BROADCAST
	.word	ia_link
	.word	IFF_LINK2
	.word	AF_INET
	.word	LOG_WARNING
	.word	.LC0
	.size	stf_checkaddr4, .-stf_checkaddr4
	.comm	in_ifaddrhead,4,4
	.comm	in_ifaddr_rwlock,4,4
	.comm	ia_link,4,4
	.comm	LOG_WARNING,4,4
	.comm	IFF_LINK2,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
