	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm_byidx_resize
_xfrm_byidx_resize:                     ## @xfrm_byidx_resize
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	callq	_xfrm_new_hash_mask
	movl	%eax, %r13d
	leal	4(,%r13,4), %edi
	movq	8(%r15), %r12
	callq	_xfrm_hash_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_xfrm_policy_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	%r14, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r14), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_xfrm_idx_hash_transfer
	addq	$-4, %r14
	cmpq	$-4, %r14
	jne	LBB0_3
LBB0_4:
	movq	%rbx, 8(%r15)
	movl	%r13d, (%r15)
	movq	_xfrm_policy_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	4(,%rax,4), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xfrm_hash_free                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xfrm_policy_lock,4,2           ## @xfrm_policy_lock
	.no_dead_strip	_xfrm_byidx_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm_byidx_resize
_xfrm_byidx_resize:                     ; @xfrm_byidx_resize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	w19, [x0]
	mov	x0, x19
	bl	_xfrm_new_hash_mask
	mov	x22, x0
	lsl	w8, w0, #2
	add	w0, w8, #4
	ldr	x21, [x20, #8]
	bl	_xfrm_hash_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x0, _xfrm_policy_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _xfrm_policy_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	tbnz	w19, #31, LBB0_4
; %bb.2:
	lsl	x24, x19, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, x24
	mov	x1, x23
	mov	x2, x22
	bl	_xfrm_idx_hash_transfer
	sub	x24, x24, #4
	cmn	x24, #4
	b.ne	LBB0_3
LBB0_4:
	str	x23, [x20, #8]
	str	w22, [x20]
Lloh2:
	adrp	x0, _xfrm_policy_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _xfrm_policy_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	lsl	w8, w19, #2
	add	w1, w8, #4
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xfrm_hash_free
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_xfrm_policy_lock,4,2           ; @xfrm_policy_lock
	.no_dead_strip	_xfrm_byidx_resize
.subsections_via_symbols
