	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_spawn_alg
_crypto_spawn_alg:                      ## @crypto_spawn_alg
	.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	%rdi, %rbx
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_crypto_mod_get
	movq	%rax, %r14
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_up_read
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_up_read
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_crypto_shoot_alg
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_alg_sem,4,2             ## @crypto_alg_sem
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_crypto_spawn_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_spawn_alg
_crypto_spawn_alg:                      ; @crypto_spawn_alg
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_down_read
	ldr	x19, [x19]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_crypto_mod_get
	mov	x20, x0
Lloh2:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh3:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_up_read
	mov	x0, x19
	cbz	x20, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh4:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh5:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_up_read
	b	LBB0_5
LBB0_4:
	bl	_crypto_shoot_alg
LBB0_5:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_alg_sem,4,2             ; @crypto_alg_sem
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_crypto_spawn_alg
.subsections_via_symbols
