	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_table
_destroy_table:                         ## @destroy_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_IPFW_UH_WLOCK
	movq	%r15, %rdi
	callq	_CHAIN_TO_NI
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_find_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	jle	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	movq	%r15, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_IPFW_WLOCK
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_unlink_table
	movq	%r15, %rdi
	callq	_IPFW_WUNLOCK
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_ipfw_objhash_free_idx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	32(%rbx), %esi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_6:
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	movq	%rbx, %r8
	addq	$8, %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ipfw_unref_table_values
	movq	%r15, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_free_table_config
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error unlinking kidx %d from table %s\n"

	.no_dead_strip	_destroy_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_table
_destroy_table:                         ; @destroy_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_IPFW_UH_WLOCK
	mov	x0, x19
	bl	_CHAIN_TO_NI
	mov	x20, x0
	mov	x1, x21
	bl	_find_table
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #24]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_IPFW_WLOCK
	mov	x0, x19
	mov	x1, x21
	bl	_unlink_table
	mov	x0, x19
	bl	_IPFW_WUNLOCK
	ldr	w1, [x21, #32]
	mov	x0, x20
	bl	_ipfw_objhash_free_idx
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x21, #32]
	ldr	x2, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_6:
	ldp	w3, w2, [x21, #12]
	add	x4, x21, #8
	mov	x0, x19
	mov	x1, x21
	bl	_ipfw_unref_table_values
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	mov	x0, x20
	mov	x1, x21
	bl	_free_table_config
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error unlinking kidx %d from table %s\n"

	.no_dead_strip	_destroy_table
.subsections_via_symbols
