	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_table_internal
_create_table_internal:                 ## @create_table_internal
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_CHAIN_TO_NI
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_CHAIN_TO_TCFG
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_find_table_algo
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	12(%r13), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_alloc_table_config
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	8(%r13), %eax
	movl	%eax, 36(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 32(%rbx)
	movq	_TA_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, (%r12)
	jne	LBB0_6
## %bb.5:
	movq	_IPFW_TGFLAGS_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r13)
	setne	%al
LBB0_6:
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_find_table
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.8:
	movq	8(%rax), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %r15
	movq	%rax, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_10:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_free_table_config
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_11:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ipfw_objhash_alloc_idx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_free_table_config
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_13:
	movl	-48(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	_IPFW_TLV_TBL_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_link_table
	xorl	%r15d, %r15d
	movq	%rbx, %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_15
LBB0_14:
	incl	20(%rax)
LBB0_15:
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:
	movl	16(%rbx), %eax
	movl	%eax, (%rcx)
LBB0_17:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_free_table_config
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TA_FLAG_READONLY,4,2           ## @TA_FLAG_READONLY
	.comm	_IPFW_TGFLAGS_LOCKED,4,2        ## @IPFW_TGFLAGS_LOCKED
	.comm	_EEXIST,4,2                     ## @EEXIST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate table index. Consider increasing net.inet.ip.fw.tables_max"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IPFW_TLV_TBL_NAME,4,2          ## @IPFW_TLV_TBL_NAME
	.no_dead_strip	_create_table_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_table_internal
_create_table_internal:                 ; @create_table_internal
	.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	x23, x5
	mov	x21, x4
	mov	x25, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	bl	_CHAIN_TO_NI
	mov	x19, x0
	mov	x0, x20
	bl	_CHAIN_TO_TCFG
	mov	x1, x24
	mov	x2, x22
	bl	_find_table_algo
	cbz	x0, LBB0_4
; %bb.1:
	mov	x26, x0
	ldr	w4, [x25, #12]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x26
	mov	x3, x22
	bl	_alloc_table_config
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	ldur	d0, [x25, #4]
	str	d0, [x0, #32]
	ldr	w8, [x26]
Lloh0:
	adrp	x9, _TA_FLAG_READONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TA_FLAG_READONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	w8, #1
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_6:
	ldr	w8, [x25]
Lloh9:
	adrp	x9, _IPFW_TGFLAGS_LOCKED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPFW_TGFLAGS_LOCKED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
LBB0_7:
	str	w8, [x22]
	mov	x0, x20
	bl	_IPFW_UH_WLOCK
	mov	x0, x19
	mov	x1, x24
	bl	_find_table
	cbz	x0, LBB0_12
; %bb.8:
	cbz	w23, LBB0_11
; %bb.9:
	ldr	x8, [x0, #8]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x1, x22
	mov	x22, x0
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
	mov	x0, x19
	mov	x1, x22
	bl	_free_table_config
Lloh12:
	adrp	x8, _EEXIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_12:
	add	x1, sp, #12
	mov	x0, x19
	bl	_ipfw_objhash_alloc_idx
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x19
	mov	x1, x22
	bl	_free_table_config
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_14:
	ldr	w8, [sp, #12]
	str	w8, [x22, #16]
Lloh20:
	adrp	x8, _IPFW_TLV_TBL_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IPFW_TLV_TBL_NAME@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	mov	x0, x20
	mov	x1, x22
	bl	_link_table
	mov	x1, #0
	mov	x24, #0
	mov	x0, x22
	cbz	w23, LBB0_16
LBB0_15:
	ldr	w8, [x0, #20]
	add	w8, w8, #1
	str	w8, [x0, #20]
	mov	x24, x1
LBB0_16:
	cbz	x21, LBB0_18
; %bb.17:
	ldr	w8, [x22, #16]
	str	w8, [x21]
LBB0_18:
	mov	x0, x20
	bl	_IPFW_UH_WUNLOCK
	cbz	x24, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x24
	bl	_free_table_config
LBB0_20:
	mov	w0, #0
LBB0_21:
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TA_FLAG_READONLY,4,2           ; @TA_FLAG_READONLY
	.comm	_IPFW_TGFLAGS_LOCKED,4,2        ; @IPFW_TGFLAGS_LOCKED
	.comm	_EEXIST,4,2                     ; @EEXIST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate table index. Consider increasing net.inet.ip.fw.tables_max"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IPFW_TLV_TBL_NAME,4,2          ; @IPFW_TLV_TBL_NAME
	.no_dead_strip	_create_table_internal
.subsections_via_symbols
