	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ref_table
_find_ref_table:                        ## @find_ref_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_IPFW_UH_WLOCK_ASSERT
	movq	%rbx, %rdi
	callq	_CHAIN_TO_NI
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_find_table
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_10:
	movq	_OP_DEL@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_11
## %bb.12:
	movq	_TEI_FLAGS_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.13:
	movq	%rbx, %rdi
	callq	_IPFW_UH_WUNLOCK
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_create_table_compat
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_IPFW_UH_WLOCK
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.14:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	callq	_ipfw_objhash_lookup_kidx
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movslq	-44(%rbp), %rsi
	callq	_KASSERT
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_15
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_11:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_5:
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.6:
	movq	_OP_ADD@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_check_table_limit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_9:
	incl	16(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_OP_ADD,4,2                     ## @OP_ADD
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_OP_DEL,4,2                     ## @OP_DEL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_TEI_FLAGS_COMPAT,4,2           ## @TEI_FLAGS_COMPAT
	.no_dead_strip	_find_ref_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ref_table
_find_ref_table:                        ; @find_ref_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x24, x4
	mov	x26, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	bl	_IPFW_UH_WLOCK_ASSERT
	mov	x0, x22
	bl	_CHAIN_TO_NI
	mov	x21, x0
	mov	x1, x23
	bl	_find_table
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x25]
	cbz	x8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_4:
Lloh3:
	adrp	x8, _OP_DEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OP_DEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w24
	b.eq	LBB0_9
; %bb.5:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _TEI_FLAGS_COMPAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEI_FLAGS_COMPAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_IPFW_UH_WUNLOCK
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x23
	bl	_create_table_compat
	mov	x20, x0
	mov	x0, x22
	bl	_IPFW_UH_WLOCK
	cbnz	w20, LBB0_15
; %bb.7:
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_ipfw_objhash_lookup_kidx
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	ldrsw	x1, [sp, #12]
	bl	_KASSERT
	str	x21, [x19]
	b	LBB0_15
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_9:
Lloh12:
	adrp	x8, _ESRCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_10:
	cmp	w26, #1
	b.ne	LBB0_14
; %bb.11:
Lloh15:
	adrp	x8, _OP_ADD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OP_ADD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x25
	mov	x1, x20
	bl	_check_table_limit
	cbz	x0, LBB0_14
; %bb.13:
Lloh18:
	adrp	x8, _EFBIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_14:
	mov	w20, #0
	ldr	w8, [x25, #16]
	add	w8, w8, #1
	str	w8, [x25, #16]
	str	x25, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_OP_ADD,4,2                     ; @OP_ADD
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_OP_DEL,4,2                     ; @OP_DEL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_TEI_FLAGS_COMPAT,4,2           ; @TEI_FLAGS_COMPAT
	.no_dead_strip	_find_ref_table
.subsections_via_symbols
