	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_alg_mod_lookup          ## -- Begin function crypto_alg_mod_lookup
	.p2align	4, 0x90
_crypto_alg_mod_lookup:                 ## @crypto_alg_mod_lookup
	.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
	movl	%edx, %eax
	orl	%esi, %eax
	movq	_CRYPTO_ALG_TESTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%eax, %ecx
	cmovel	%ecx, %ebx
	orl	%ebx, %edx
	orl	%ebx, %esi
	callq	_crypto_larval_lookup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_crypto_is_larval
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_CRYPTO_MSG_ALG_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_crypto_probing_notify
	movq	_NOTIFY_STOP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_crypto_larval_wait
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_crypto_mod_put
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
LBB0_5:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_crypto_larval_kill
	movq	%r14, %rbx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_ALG_TESTED,4,2          ## @CRYPTO_ALG_TESTED
	.comm	_CRYPTO_MSG_ALG_REQUEST,4,2     ## @CRYPTO_MSG_ALG_REQUEST
	.comm	_NOTIFY_STOP,4,2                ## @NOTIFY_STOP
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_alg_mod_lookup          ; -- Begin function crypto_alg_mod_lookup
	.p2align	2
_crypto_alg_mod_lookup:                 ; @crypto_alg_mod_lookup
	.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	x8, _CRYPTO_ALG_TESTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_ALG_TESTED@GOTPAGEOFF]
	orr	w9, w2, w1
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	csel	w8, w8, wzr, eq
	orr	w2, w8, w2
	orr	w1, w8, w1
	bl	_crypto_larval_lookup
	mov	x19, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_crypto_is_larval
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _CRYPTO_MSG_ALG_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO_MSG_ALG_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_crypto_probing_notify
Lloh6:
	adrp	x8, _NOTIFY_STOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOTIFY_STOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_crypto_larval_wait
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_crypto_mod_put
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
LBB0_5:
	mov	x20, x0
	mov	x0, x19
	bl	_crypto_larval_kill
	mov	x19, x20
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_ALG_TESTED,4,2          ; @CRYPTO_ALG_TESTED
	.comm	_CRYPTO_MSG_ALG_REQUEST,4,2     ; @CRYPTO_MSG_ALG_REQUEST
	.comm	_NOTIFY_STOP,4,2                ; @NOTIFY_STOP
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
