	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_larval_add
_crypto_larval_add:                     ## @crypto_larval_add
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_crypto_larval_alloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_2:
	leaq	4(%rbx), %rdi
	movl	$2, %esi
	callq	_atomic_set
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	___crypto_alg_lookup
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
	cmpq	%rbx, %r14
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_crypto_is_larval
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_larval_wait             ## TAILCALL
LBB0_6:
	movq	_crypto_alg_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	_crypto_alg_sem@GOTPCREL(%rip), %rdi
	callq	_up_write
LBB0_7:
	movq	%rbx, %r14
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_alg_sem,4,2             ## @crypto_alg_sem
	.comm	_crypto_alg_list,4,2            ## @crypto_alg_list
	.no_dead_strip	_crypto_larval_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_larval_add
_crypto_larval_add:                     ; @crypto_larval_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_crypto_larval_alloc
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_CAST
LBB0_2:
	add	x0, x19, #4
	mov	w1, #2
	bl	_atomic_set
Lloh0:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	___crypto_alg_lookup
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh3:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_up_write
	cmp	x20, x19
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_crypto_is_larval
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_crypto_larval_wait
LBB0_6:
Lloh4:
	adrp	x1, _crypto_alg_list@GOTPAGE
Lloh5:
	ldr	x1, [x1, _crypto_alg_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add
Lloh6:
	adrp	x0, _crypto_alg_sem@GOTPAGE
Lloh7:
	ldr	x0, [x0, _crypto_alg_sem@GOTPAGEOFF]
	bl	_up_write
LBB0_7:
	mov	x20, x19
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_alg_sem,4,2             ; @crypto_alg_sem
	.comm	_crypto_alg_list,4,2            ; @crypto_alg_list
	.no_dead_strip	_crypto_larval_add
.subsections_via_symbols
