	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_resize_tables             ## -- Begin function ipfw_resize_tables
	.p2align	4, 0x90
_ipfw_resize_tables:                    ## @ipfw_resize_tables
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_IPFW_TABLES_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	cmovbl	%eax, %esi
	movl	%esi, %edi
	callq	_roundup2p
	movq	%rax, %r15
	leal	(,%rax,8), %edi
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ipfw_objhash_bitmap_alloc
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	movq	_V_fw_tables_max@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	cmpl	%r15d, %r13d
	cmovael	%r15d, %r13d
	movq	%r14, %rdi
	callq	_CHAIN_TO_NI
	cmpl	%r15d, (%rbx)
	jbe	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_4:
	movq	%rax, %r12
	movq	(%r14), %rsi
	leal	(,%r13,8), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_memcpy
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ipfw_objhash_bitmap_merge
	movq	%r14, %rdi
	callq	_IPFW_WLOCK
	movq	(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%r14)
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_ipfw_objhash_bitmap_swap
	movq	_V_fw_tables_max@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	%r14, %rdi
	callq	_IPFW_WUNLOCK
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.5:
	movq	(%r14), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	addq	$8, %r15
	cmpl	%ebx, %r13d
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ipfw_objhash_lookup_kidx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	*%rcx
	jmp	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	callq	_ipfw_objhash_bitmap_free
	xorl	%eax, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPFW_TABLES_MAX,4,2            ## @IPFW_TABLES_MAX
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_V_fw_tables_max,4,2            ## @V_fw_tables_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipfw_resize_tables             ; -- Begin function ipfw_resize_tables
	.p2align	2
_ipfw_resize_tables:                    ; @ipfw_resize_tables
	.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
	cbz	w1, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _IPFW_TABLES_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPFW_TABLES_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	csel	w0, w8, w1, lo
	bl	_roundup2p
	mov	x21, x0
	lsl	w0, w21, #3
Lloh3:
	adrp	x24, _M_IPFW@GOTPAGE
Lloh4:
	ldr	x24, [x24, _M_IPFW@GOTPAGEOFF]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	mov	x23, x0
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x21
	bl	_ipfw_objhash_bitmap_alloc
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
Lloh11:
	adrp	x26, _V_fw_tables_max@GOTPAGE
Lloh12:
	ldr	x26, [x26, _V_fw_tables_max@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w21
	csel	w25, w8, w21, lo
	mov	x0, x19
	bl	_CHAIN_TO_NI
	ldr	w8, [x26]
	cmp	w8, w21
	b.ls	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_4:
	mov	x20, x0
	ldr	x1, [x19]
	lsl	w2, w25, #3
	mov	x0, x23
	bl	_memcpy
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_ipfw_objhash_bitmap_merge
	mov	x0, x19
	bl	_IPFW_WLOCK
	ldr	x22, [x19]
	str	x23, [x19]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_ipfw_objhash_bitmap_swap
	str	w21, [x26]
	mov	x0, x19
	bl	_IPFW_WUNLOCK
	cbz	w25, LBB0_11
; %bb.5:
	mov	w21, #0
	ldr	x23, [x19]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	add	x23, x23, #8
	cmp	w25, w21
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ipfw_objhash_lookup_kidx
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x0]
	mov	x1, x23
	blr	x8
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	ldr	w1, [x24]
	mov	x0, x22
	bl	_free
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #4]
	bl	_ipfw_objhash_bitmap_free
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPFW_TABLES_MAX,4,2            ; @IPFW_TABLES_MAX
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_V_fw_tables_max,4,2            ; @V_fw_tables_max
.subsections_via_symbols
