	.file	"extr_pf_table.c_pfr_tst_addrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pfr_tst_addrs
	.type	pfr_tst_addrs, @function
pfr_tst_addrs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	call	PF_RULES_RASSERT@PLT
	mov	esi, DWORD PTR PFR_FLAG_REPLACE[rip]
	mov	edi, ebp
	call	ACCEPT_FLAGS@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	pfr_validate_table@PLT
	test	rax, rax
	je	.L2
.L28:
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	pfr_lookup_table@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR PFR_TFLAG_ACTIVE[rip], eax
	je	.L4
	xor	r15d, r15d
	test	r14d, r14d
	jle	.L6
	lea	eax, -1[r14]
	xor	r15d, r15d
	lea	r14, 4[rbx+rax*4]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L31:
	mov	eax, DWORD PTR PFR_FB_NOTMATCH[rip]
	mov	DWORD PTR [rbx], eax
.L12:
	add	rbx, 4
	cmp	r14, rbx
	je	.L6
.L13:
	mov	rdi, rbx
	call	pfr_validate_addr@PLT
	test	rax, rax
	jne	.L28
	mov	rdi, rbx
	call	ADDR_NETWORK@PLT
	test	rax, rax
	jne	.L28
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, r12
	call	pfr_lookup_addr@PLT
	mov	r13, rax
	test	DWORD PTR PFR_FLAG_REPLACE[rip], ebp
	jne	.L30
	test	r13, r13
	je	.L10
.L32:
	cmp	QWORD PTR 0[r13], 0
	jne	.L31
	mov	eax, DWORD PTR PFR_FB_MATCH[rip]
	add	r15d, 1
	mov	DWORD PTR [rbx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rsi, rax
	mov	rdi, rbx
	call	pfr_copyout_addr@PLT
	test	r13, r13
	jne	.L32
.L10:
	mov	eax, DWORD PTR PFR_FB_NONE[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR ESRCH[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[rsp]
	xor	eax, eax
	test	rcx, rcx
	je	.L1
	mov	DWORD PTR [rcx], r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pfr_tst_addrs, .-pfr_tst_addrs
	.comm	PFR_TFLAG_ACTIVE,4,4
	.comm	PFR_FLAG_REPLACE,4,4
	.comm	PFR_FB_NOTMATCH,4,4
	.comm	PFR_FB_NONE,4,4
	.comm	PFR_FB_MATCH,4,4
	.comm	ESRCH,4,4
	.comm	EINVAL,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_pf_table.c_pfr_tst_addrs.c"
	.text
	.align	2
	.global	pfr_tst_addrs
	.syntax unified
	.arm
	.fpu softvfp
	.type	pfr_tst_addrs, %function
pfr_tst_addrs:
	@ 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
	ldr	r8, [sp, #48]
	ldr	r9, .L33
	mov	r6, r2
	str	r3, [sp]
	mov	r4, r0
	mov	fp, r1
	bl	PF_RULES_RASSERT
	ldr	r1, [r9]
	mov	r0, r8
	bl	ACCEPT_FLAGS
	mov	r2, #0
	mov	r0, r4
	mov	r1, r2
	bl	pfr_validate_table
	subs	r5, r0, #0
	beq	.L2
.L29:
	ldr	r3, .L33+4
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r4
	bl	pfr_lookup_table
	subs	r7, r0, #0
	beq	.L4
	ldr	r2, .L33+8
	ldr	r1, [r7]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L4
	cmp	r6, #0
	mov	r10, r5
	movgt	r4, r5
	strgt	r5, [sp, #4]
	bgt	.L5
	b	.L6
.L9:
	cmp	r5, #0
	beq	.L10
.L32:
	ldr	r3, [r5]
	cmp	r3, #0
	ldrne	r3, .L33+12
	ldreq	r3, .L33+16
	ldrne	r3, [r3]
	ldreq	r3, [r3]
	addeq	r10, r10, #1
	str	r3, [fp]
.L12:
	add	r4, r4, #1
	cmp	r6, r4
	add	fp, fp, #4
	beq	.L31
.L5:
	mov	r0, fp
	bl	pfr_validate_addr
	cmp	r0, #0
	bne	.L29
	mov	r0, fp
	bl	ADDR_NETWORK
	subs	r2, r0, #0
	bne	.L29
	mov	r1, fp
	mov	r0, r7
	bl	pfr_lookup_addr
	ldr	r3, [r9]
	mov	r5, r0
	tst	r8, r3
	beq	.L9
	mov	r1, r0
	mov	r0, fp
	bl	pfr_copyout_addr
	cmp	r5, #0
	bne	.L32
.L10:
	ldr	r3, .L33+20
	ldr	r3, [r3]
	str	r3, [fp]
	b	.L12
.L4:
	ldr	r3, .L33+24
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r5, [sp, #4]
.L6:
	ldr	r3, [sp]
	cmp	r3, #0
	strne	r10, [r3]
	b	.L1
.L34:
	.align	2
.L33:
	.word	PFR_FLAG_REPLACE
	.word	EINVAL
	.word	PFR_TFLAG_ACTIVE
	.word	PFR_FB_NOTMATCH
	.word	PFR_FB_MATCH
	.word	PFR_FB_NONE
	.word	ESRCH
	.size	pfr_tst_addrs, .-pfr_tst_addrs
	.comm	PFR_TFLAG_ACTIVE,4,4
	.comm	PFR_FLAG_REPLACE,4,4
	.comm	PFR_FB_NOTMATCH,4,4
	.comm	PFR_FB_NONE,4,4
	.comm	PFR_FB_MATCH,4,4
	.comm	ESRCH,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
