	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_crypt_desc
_get_crypt_desc:                        ## @get_crypt_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_desc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_crypt_virt@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_setup_crypt_desc
LBB0_2:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movslq	_get_crypt_desc.idx(%rip), %rbx
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	_CTL_FLAG_UNUSED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	leal	1(%rbx), %ecx
	movq	_NPE_QLEN@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	cmovll	%ecx, %esi
	movl	%esi, _get_crypt_desc.idx(%rip)
	movq	_CTL_FLAG_USED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%rbx,8)
	movq	_desc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	shlq	$3, %rbx
	addq	(%r14), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_desc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_crypt_desc.idx,4,2 ## @get_crypt_desc.idx
	.comm	_desc_lock,4,2                  ## @desc_lock
	.comm	_crypt_virt,8,3                 ## @crypt_virt
	.comm	_CTL_FLAG_UNUSED,8,3            ## @CTL_FLAG_UNUSED
	.comm	_NPE_QLEN,4,2                   ## @NPE_QLEN
	.comm	_CTL_FLAG_USED,8,3              ## @CTL_FLAG_USED
	.no_dead_strip	_get_crypt_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_crypt_desc
_get_crypt_desc:                        ; @get_crypt_desc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _desc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _desc_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x19, _crypt_virt@GOTPAGE
Lloh3:
	ldr	x19, [x19, _crypt_virt@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	bl	_setup_crypt_desc
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:
	adrp	x10, _get_crypt_desc.idx@PAGE
	ldrsw	x9, [x10, _get_crypt_desc.idx@PAGEOFF]
	ldr	x8, [x19]
	ldr	x11, [x8, x9, lsl #3]
Lloh4:
	adrp	x12, _CTL_FLAG_UNUSED@GOTPAGE
Lloh5:
	ldr	x12, [x12, _CTL_FLAG_UNUSED@GOTPAGEOFF]
Lloh6:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.4:
	add	w11, w9, #1
Lloh7:
	adrp	x12, _NPE_QLEN@GOTPAGE
Lloh8:
	ldr	x12, [x12, _NPE_QLEN@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	cmp	w11, w12
	csinc	w11, wzr, w9, ge
	str	w11, [x10, _get_crypt_desc.idx@PAGEOFF]
Lloh10:
	adrp	x10, _CTL_FLAG_USED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _CTL_FLAG_USED@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	lsl	x20, x9, #3
	str	x10, [x8, x20]
Lloh13:
	adrp	x0, _desc_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _desc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	add	x0, x8, x20
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x0, _desc_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _desc_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_crypt_desc.idx,4,2 ; @get_crypt_desc.idx
	.comm	_desc_lock,4,2                  ; @desc_lock
	.comm	_crypt_virt,8,3                 ; @crypt_virt
	.comm	_CTL_FLAG_UNUSED,8,3            ; @CTL_FLAG_UNUSED
	.comm	_NPE_QLEN,4,2                   ; @NPE_QLEN
	.comm	_CTL_FLAG_USED,8,3              ; @CTL_FLAG_USED
	.no_dead_strip	_get_crypt_desc
.subsections_via_symbols
