	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_register                ## -- Begin function crypto_register
	.p2align	4, 0x90
_crypto_register:                       ## @crypto_register
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_LOCK
	movl	%ebx, %edi
	callq	_crypto_checkdriver
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_CRYPTO_ALGORITHM_MIN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jg	LBB0_6
## %bb.2:
	movq	_CRYPTO_ALGORITHM_MAX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jl	LBB0_6
## %bb.3:
	movq	_CRYPTO_ALG_FLAG_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	movq	(%rbx), %rcx
	movslq	%r12d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	8(%rbx), %rax
	movl	%r15d, (%rax,%rdx,4)
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	24(%rbx), %edi
	callq	_device_get_nameunit
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_printf
LBB0_5:
	movq	$0, 16(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_UNLOCK
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_ALGORITHM_MIN,4,2       ## @CRYPTO_ALGORITHM_MIN
	.comm	_CRYPTO_ALGORITHM_MAX,4,2       ## @CRYPTO_ALGORITHM_MAX
	.comm	_CRYPTO_ALG_FLAG_SUPPORTED,4,2  ## @CRYPTO_ALG_FLAG_SUPPORTED
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto: %s registers alg %u flags %u maxoplen %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_register                ; -- Begin function crypto_register
	.p2align	2
_crypto_register:                       ; @crypto_register
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_CRYPTO_DRIVER_LOCK
	mov	x0, x22
	bl	_crypto_checkdriver
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CRYPTO_ALGORITHM_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_ALGORITHM_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CRYPTO_ALGORITHM_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_ALGORITHM_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.lt	LBB0_5
; %bb.2:
	mov	x22, x0
Lloh6:
	adrp	x8, _CRYPTO_ALG_FLAG_SUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPTO_ALG_FLAG_SUPPORTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w20
	sbfiz	x9, x21, #2, #32
	ldp	x10, x11, [x0]
	str	w8, [x10, x9]
	str	w19, [x11, x9]
Lloh9:
	adrp	x8, _bootverbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x22, #24]
	bl	_device_get_nameunit
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_printf
LBB0_4:
	mov	w19, #0
	str	xzr, [x22, #16]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
LBB0_6:
	bl	_CRYPTO_DRIVER_UNLOCK
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_ALGORITHM_MIN,4,2       ; @CRYPTO_ALGORITHM_MIN
	.comm	_CRYPTO_ALGORITHM_MAX,4,2       ; @CRYPTO_ALGORITHM_MAX
	.comm	_CRYPTO_ALG_FLAG_SUPPORTED,4,2  ; @CRYPTO_ALG_FLAG_SUPPORTED
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto: %s registers alg %u flags %u maxoplen %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
