	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_dyn_lookup_state          ## -- Begin function ipfw_dyn_lookup_state
	.p2align	4, 0x90
_ipfw_dyn_lookup_state:                 ## @ipfw_dyn_lookup_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_V_layer3_chain@GOTPCREL(%rip), %rdi
	callq	_IPFW_RLOCK_ASSERT
	movl	(%rbx), %eax
	movl	%eax, 20(%r15)
	movq	_MATCH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	callq	_hash_packet
	movl	%eax, 16(%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DYNSTATE_CRITICAL_ENTER
	movq	%r14, %rdi
	callq	_IS_IP4_FLOW_ID
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_dyn_lookup_ipv4_state
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rcx
	movq	24(%rax), %r12
	movq	_O_LIMIT@GOTPCREL(%rip), %rdx
	leaq	24(%r12), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	movq	16(%rax), %rax
LBB0_5:
	movq	_V_layer3_chain@GOTPCREL(%rip), %r14
	movq	(%rax), %rbx
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.11:
	movq	8(%r12), %rax
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_6:
	movl	16(%r12), %esi
	movl	20(%r12), %edx
	movq	%r14, %rdi
	callq	_ipfw_find_rule
	movq	%rax, 8(%r12)
	movq	16(%r14), %rcx
	cmpq	%rbx, (%rcx,%rax,8)
	je	LBB0_7
## %bb.8:
	movq	_V_dyn_keep_states@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	cmpl	$2, 8(%r14)
	setge	%dil
	callq	_MPASS
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movslq	8(%r14), %rax
	addq	$-2, %rax
	movq	%rax, 8(%r12)
	jmp	LBB0_12
LBB0_7:
	movq	(%r14), %rcx
	movq	%rcx, (%r12)
LBB0_12:
	movq	%rax, (%r15)
LBB0_13:
	xorl	%eax, %eax
	callq	_DYNSTATE_CRITICAL_EXIT
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MATCH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	16(%r12), %ecx
	movl	20(%r12), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r12, %r8
	callq	_DYN_DEBUG
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_V_layer3_chain,24,3            ## @V_layer3_chain
	.comm	_MATCH_NONE,8,3                 ## @MATCH_NONE
	.comm	_O_LIMIT,8,3                    ## @O_LIMIT
	.comm	_V_dyn_keep_states,8,3          ## @V_dyn_keep_states
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rule %p  [%u, %u] is considered invalid in data %p"

	.comm	_V_set_disable,4,2              ## @V_set_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_dyn_lookup_state          ; -- Begin function ipfw_dyn_lookup_state
	.p2align	2
_ipfw_dyn_lookup_state:                 ; @ipfw_dyn_lookup_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x20, _V_layer3_chain@GOTPAGE
Lloh1:
	ldr	x20, [x20, _V_layer3_chain@GOTPAGEOFF]
	mov	x0, x20
	bl	_IPFW_RLOCK_ASSERT
	ldr	w8, [x24]
	str	w8, [x19, #20]
Lloh2:
	adrp	x24, _MATCH_NONE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MATCH_NONE@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x19, #8]
	mov	x0, x23
	bl	_hash_packet
	str	w0, [x19, #16]
	bl	_DYNSTATE_CRITICAL_ENTER
	mov	x0, x23
	bl	_IS_IP4_FLOW_ID
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_dyn_lookup_ipv4_state
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x21, [x0, #24]
	ldr	x9, [x0]
Lloh4:
	adrp	x8, _O_LIMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_LIMIT@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x8]
	add	x8, x21, #24
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
LBB0_4:
	ldr	x22, [x8]
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
	str	x8, [x19]
	b	LBB0_12
LBB0_6:
	ldp	w1, w2, [x21, #16]
	mov	x0, x20
	bl	_ipfw_find_rule
	str	x0, [x21, #8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x0, lsl #3]
	cmp	x8, x22
	b.eq	LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _V_dyn_keep_states@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V_dyn_keep_states@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	cset	w0, gt
	bl	_MPASS
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	sub	x9, x9, #2
	stp	x8, x9, [x21]
	str	x9, [x19]
	b	LBB0_12
LBB0_9:
	ldr	x8, [x20]
	str	x8, [x21]
	str	x0, [x19]
	b	LBB0_12
LBB0_10:
	ldr	x8, [x24]
	str	x8, [x19, #8]
	ldp	w3, w2, [x21, #16]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x4, x21
	bl	_DYN_DEBUG
LBB0_11:
	mov	x22, #0
LBB0_12:
	bl	_DYNSTATE_CRITICAL_EXIT
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V_layer3_chain,24,3            ; @V_layer3_chain
	.comm	_MATCH_NONE,8,3                 ; @MATCH_NONE
	.comm	_O_LIMIT,8,3                    ; @O_LIMIT
	.comm	_V_dyn_keep_states,8,3          ; @V_dyn_keep_states
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rule %p  [%u, %u] is considered invalid in data %p"

	.comm	_V_set_disable,4,2              ; @V_set_disable
.subsections_via_symbols
