	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resize_shared_value_storage
_resize_shared_value_storage:           ## @resize_shared_value_storage
	.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
	movq	%rdi, %r14
	callq	_IPFW_UH_WLOCK_ASSERT
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	callq	_CHAIN_TO_VI
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_CHAIN_TO_TCFG
	movl	(%rax), %ebx
	cmpl	$536870912, %ebx                ## imm = 0x20000000
	jne	LBB0_2
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	movq	%rax, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx), %r12d
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
	shll	$3, %ebx
	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
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, %r13
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%r12d, %edi
	callq	_ipfw_objhash_bitmap_alloc
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	cmpl	%r12d, (%r15)
	jge	LBB0_4
## %bb.3:
	movq	(%r14), %rbx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_rollback_toperation_state
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r14, %rdi
	callq	_CHAIN_TO_VI
	leaq	-56(%rbp), %rbx
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_ipfw_objhash_bitmap_merge
	movq	%r14, %rdi
	callq	_IPFW_WLOCK
	movq	(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, (%r14)
	movq	%r14, %rdi
	callq	_CHAIN_TO_VI
	movq	%rax, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rdx
	callq	_ipfw_objhash_bitmap_swap
	movl	%r12d, (%r15)
	movq	%r14, %rdi
	callq	_IPFW_WUNLOCK
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)
	movq	_update_tvalue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_ipfw_objhash_foreach
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	movq	_M_IPFW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	callq	_ipfw_objhash_bitmap_free
	xorl	%eax, %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_update_tvalue,4,2              ## @update_tvalue
	.no_dead_strip	_resize_shared_value_storage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resize_shared_value_storage
_resize_shared_value_storage:           ; @resize_shared_value_storage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	bl	_IPFW_UH_WLOCK_ASSERT
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_CHAIN_TO_VI
	mov	x20, x0
	mov	x0, x19
	bl	_CHAIN_TO_TCFG
	ldr	w23, [x0]
	mov	w8, #536870912
	cmp	w23, w8
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	mov	x21, x0
	lsl	w22, w23, #1
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
	lsl	w0, w23, #3
Lloh3:
	adrp	x25, _M_IPFW@GOTPAGE
Lloh4:
	ldr	x25, [x25, _M_IPFW@GOTPAGEOFF]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x25]
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, #24
	add	x2, sp, #12
	mov	x0, x22
	bl	_ipfw_objhash_bitmap_alloc
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	ldr	w8, [x21]
	cmp	w8, w22
	b.ge	LBB0_4
; %bb.3:
	ldr	x24, [x19]
	mov	x0, x19
	mov	x1, x19
	bl	_rollback_toperation_state
	ldr	w8, [x21]
	lsl	w2, w8, #2
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	mov	x0, x19
	bl	_CHAIN_TO_VI
	add	x1, sp, #24
	add	x2, sp, #12
	bl	_ipfw_objhash_bitmap_merge
	mov	x0, x19
	bl	_IPFW_WLOCK
	ldr	x24, [x19]
	str	x23, [x19]
	mov	x0, x19
	bl	_CHAIN_TO_VI
	add	x1, sp, #24
	add	x2, sp, #12
	bl	_ipfw_objhash_bitmap_swap
	str	w22, [x21]
	mov	x0, x19
	bl	_IPFW_WUNLOCK
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19]
	str	x8, [sp, #16]
Lloh11:
	adrp	x8, _update_tvalue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _update_tvalue@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x20
	bl	_ipfw_objhash_foreach
	mov	x23, x24
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x23
	bl	_free
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #12]
	bl	_ipfw_objhash_bitmap_free
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_update_tvalue,4,2              ; @update_tvalue
	.no_dead_strip	_resize_shared_value_storage
.subsections_via_symbols
