	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_switch_tables_namespace   ## -- Begin function ipfw_switch_tables_namespace
	.p2align	4, 0x90
_ipfw_switch_tables_namespace:          ## @ipfw_switch_tables_namespace
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_IPFW_UH_WLOCK
	movq	_V_fw_tables_sets@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_21
## %bb.1:
	movq	%r14, %rdi
	callq	_CHAIN_TO_NI
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_2
LBB0_5:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.6:
	xorl	%edx, %edx
	movq	_opcodes@GOTPCREL(%rip), %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_2:
	movq	_test_sets_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPFW_TLV_TBL_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ipfw_objhash_foreach_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_20
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	8(%r14), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movslq	%ecx, %rax
	leaq	(%r14,%rax,8), %r14
	subl	%ecx, %r15d
	jle	LBB0_18
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%r14, %rdi
	callq	_F_LEN
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	$0, -64(%rbp)
	movq	(%rbx), %r12
	movq	%r12, %rdi
	callq	_nitems
	testl	%eax, %eax
	jg	LBB0_10
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	addq	$16, %r12
	movq	(%rbx), %r13
	movq	%r13, %rdi
	callq	_nitems
	cltq
	shlq	$4, %rax
	addq	%r13, %rax
	cmpq	%rax, %r12
	jae	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	leaq	-92(%rbp), %rdx
	callq	*8(%r12)
	testq	%rax, %rax
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ipfw_objhash_lookup_kidx
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_17
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	callq	_IPFW_UH_WUNLOCK
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_V_fw_tables_sets@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_21:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	xorl	%eax, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_fw_tables_sets,4,2           ## @V_fw_tables_sets
	.comm	_test_sets_cb,4,2               ## @test_sets_cb
	.comm	_IPFW_TLV_TBL_NAME,4,2          ## @IPFW_TLV_TBL_NAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_opcodes,8,3                    ## @opcodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_switch_tables_namespace   ; -- Begin function ipfw_switch_tables_namespace
	.p2align	2
_ipfw_switch_tables_namespace:          ; @ipfw_switch_tables_namespace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_IPFW_UH_WLOCK
Lloh0:
	adrp	x8, _V_fw_tables_sets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_fw_tables_sets@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_CHAIN_TO_NI
	mov	x21, x0
	cbz	w20, LBB0_4
LBB0_2:
	str	w20, [sp]                       ; 4-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x27, #0
Lloh3:
	adrp	x28, _opcodes@GOTPAGE
Lloh4:
	ldr	x28, [x28, _opcodes@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _test_sets_cb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _test_sets_cb@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IPFW_TLV_TBL_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPFW_TLV_TBL_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_ipfw_objhash_foreach_type
	cbnz	x0, LBB0_17
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x9, [x19, #8]
	ldr	x26, [x9, x27, lsl #3]
	ldr	w20, [x26]
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x26, #16]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	sub	w20, w20, w23
	add	x22, x22, w23, sxtw #3
	cmp	w20, #0
	b.le	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	mov	x0, x22
	bl	_F_LEN
	mov	x23, x0
	str	xzr, [sp, #8]
	ldr	x24, [x28]
	mov	x0, x24
	bl	_nitems
	cmp	w0, #1
	b.ge	LBB0_12
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x24, x24, #16
	ldr	x25, [x28]
	mov	x0, x25
	bl	_nitems
	add	x8, x25, w0, sxtw #4
	cmp	x24, x8
	b.hs	LBB0_14
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	ldr	x8, [x24, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x22
	blr	x8
	cbnz	x0, LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x21
	bl	_ipfw_objhash_lookup_kidx
	ldr	x8, [x0]
	cbnz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_9
LBB0_17:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_18:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
Lloh14:
	adrp	x9, _V_fw_tables_sets@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V_fw_tables_sets@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_19:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V_fw_tables_sets,4,2           ; @V_fw_tables_sets
	.comm	_test_sets_cb,4,2               ; @test_sets_cb
	.comm	_IPFW_TLV_TBL_NAME,4,2          ; @IPFW_TLV_TBL_NAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_opcodes,8,3                    ; @opcodes
.subsections_via_symbols
