	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_kregister               ## -- Begin function crypto_kregister
	.p2align	4, 0x90
_crypto_kregister:                      ## @crypto_kregister
	.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, %r12d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_LOCK
	movl	%ebx, %edi
	callq	_crypto_checkdriver
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_CRK_ALGORITM_MIN@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jg	LBB0_5
## %bb.2:
	movq	_CRK_ALGORITHM_MAX@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jl	LBB0_5
## %bb.3:
	movq	_CRYPTO_ALG_FLAG_SUPPORTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r14d, %ecx
	movq	(%rax), %rdx
	movslq	%r12d, %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	_bootverbose@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.4:
	movl	8(%rax), %edi
	callq	_device_get_nameunit
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_printf
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	xorl	%eax, %eax
	callq	_CRYPTO_DRIVER_UNLOCK
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRK_ALGORITM_MIN,4,2           ## @CRK_ALGORITM_MIN
	.comm	_CRK_ALGORITHM_MAX,4,2          ## @CRK_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 key alg %u flags %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_kregister               ; -- Begin function crypto_kregister
	.p2align	2
_crypto_kregister:                      ; @crypto_kregister
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_CRYPTO_DRIVER_LOCK
	mov	x0, x21
	bl	_crypto_checkdriver
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CRK_ALGORITM_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRK_ALGORITM_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CRK_ALGORITHM_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRK_ALGORITHM_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #8, le
	b.lt	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _CRYPTO_ALG_FLAG_SUPPORTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPTO_ALG_FLAG_SUPPORTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w19
	ldr	x9, [x0]
	str	w8, [x9, w20, sxtw #2]
Lloh9:
	adrp	x8, _bootverbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x0, #8]
	bl	_device_get_nameunit
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_printf
LBB0_4:
	mov	w19, #0
	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	_CRK_ALGORITM_MIN,4,2           ; @CRK_ALGORITM_MIN
	.comm	_CRK_ALGORITHM_MAX,4,2          ; @CRK_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 key alg %u flags %u\n"

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