	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_table_space
_check_table_space:                     ## @check_table_space
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TA_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	callq	_IPFW_UH_WLOCK_ASSERT
	movq	16(%r14), %r13
	movq	(%r13), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	incl	(%r14)
	movq	$0, -56(%rbp)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	leaq	-56(%rbp), %rcx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	callq	*%r8
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	*24(%r13)
	movq	$0, -56(%rbp)
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movl	%r12d, %r14d
	movl	%r12d, %edx
	leaq	-56(%rbp), %rcx
	callq	*(%r13)
	testq	%rax, %rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_add_toperation_state
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	*8(%r13)
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_IPFW_UH_WLOCK
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_del_toperation_state
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_KIDX_TO_TI
	movl	%r14d, %edx
	movq	%rax, %r14
	movl	8(%rbx), %edi
	movq	%rax, %rsi
	movl	%edx, %r12d
	leaq	-56(%rbp), %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	callq	*(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	leaq	-56(%rbp), %rcx
	callq	*16(%r13)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IPFW_WLOCK
	movl	8(%rbx), %edi
	movq	-56(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*32(%r13)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IPFW_WUNLOCK
	jmp	LBB0_15
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IPFW_UH_WUNLOCK
LBB0_12:
	movq	%r15, %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	callq	*24(%rax)
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	decl	(%rax)
LBB0_18:
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TA_BUF_SZ,4,2                  ## @TA_BUF_SZ
	.no_dead_strip	_check_table_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_table_space
_check_table_space:                     ; @check_table_space
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x25, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _TA_BUF_SZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TA_BUF_SZ@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	bl	_IPFW_UH_WLOCK_ASSERT
	ldr	x27, [x19, #16]
	ldr	x8, [x27]
	cbz	x8, LBB0_13
; %bb.1:
	ldr	w9, [x19]
	add	w9, w9, #1
	str	w9, [x19]
	stur	xzr, [x29, #-96]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27, #24]
	mov	x0, x24
	blr	x8
	stur	xzr, [x29, #-96]
	ldr	x8, [x27]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	sub	x3, x29, #96
	mov	x1, x25
	mov	x2, x20
	blr	x8
	cbz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_add_toperation_state
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_IPFW_UH_WUNLOCK
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	x8, [x27, #8]
	sub	x1, x29, #96
	mov	x0, x24
	blr	x8
	mov	x25, x0
	mov	x0, x21
	bl	_IPFW_UH_WLOCK
	cbz	x22, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_del_toperation_state
	cbnz	w25, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_10
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w25, LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_KIDX_TO_TI
	mov	x25, x0
	ldr	x8, [x27]
	ldr	w0, [x19, #8]
	sub	x3, x29, #96
	mov	x1, x25
	mov	x2, x20
	blr	x8
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27, #16]
	ldr	w0, [x19, #8]
	sub	x3, x29, #96
	mov	x1, x25
	mov	x2, x24
	blr	x8
	cbnz	w0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_IPFW_WLOCK
	ldr	x8, [x27, #32]
	ldr	w0, [x19, #8]
	ldur	x3, [x29, #-96]
	mov	x1, x25
	mov	x2, x24
	blr	x8
	mov	x0, x21
	bl	_IPFW_WUNLOCK
	b	LBB0_2
LBB0_13:
	mov	w25, #0
	b	LBB0_18
LBB0_14:
	mov	x0, x21
	bl	_IPFW_UH_WUNLOCK
LBB0_15:
	ldr	x8, [x27, #24]
	mov	x0, x24
	blr	x8
LBB0_16:
	mov	w25, #0
LBB0_17:
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_18:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x25
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TA_BUF_SZ,4,2                  ; @TA_BUF_SZ
	.no_dead_strip	_check_table_space
.subsections_via_symbols
