	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_find_rule                 ## -- Begin function ipfw_find_rule
	.p2align	4, 0x90
_ipfw_find_rule:                        ## @ipfw_find_rule
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	leal	-1(%rcx), %eax
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.1:
	movq	8(%rdi), %r8
	xorl	%r9d, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movl	%ecx, %r9d
	cmpl	%eax, %r9d
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rax), %edi
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rdi
	movq	(%r8,%rdi,8), %rdi
	cmpq	%rsi, (%rdi)
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdx, 8(%rdi)
	jl	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %eax
	cmpl	%eax, %r9d
	jl	LBB0_2
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_find_rule                 ; -- Begin function ipfw_find_rule
	.p2align	2
_ipfw_find_rule:                        ; @ipfw_find_rule
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0]
	sub	w0, w9, #1
	cmp	w9, #2
	b.lt	LBB0_8
; %bb.1:
	mov	w9, #0
	ldr	x8, [x8, #8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w0
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w9, w0
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	ldr	x11, [x8, w10, sxtw #3]
	ldr	x12, [x11]
	cmp	x12, x1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	b.le	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x10
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x11, #8]
	cmp	x11, x2
	csel	w0, w0, w10, lt
	csinc	w9, w9, w10, ge
	b	LBB0_3
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
