	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cryp_set_configuration         ## -- Begin function cryp_set_configuration
	.p2align	4, 0x90
_cryp_set_configuration:                ## @cryp_set_configuration
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdx, %r14
	movl	(%rbx), %eax
	movq	_CRYP_CR_KEYSIZE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	(%rdx), %eax
	movl	%eax, (%rdx)
	movq	_CRYP_ALGORITHM_DECRYPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	4(%rbx), %edx
	cmpl	%edx, %ecx
	jne	LBB0_8
## %bb.4:
	movq	%rdi, %r15
	movq	_CRYP_ALGO_AES_ECB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rbx), %esi
	cmpl	%esi, %edx
	je	LBB0_7
## %bb.5:
	movq	_CRYP_ALGO_AES_CBC@GOTPCREL(%rip), %rdi
	cmpl	%esi, (%rdi)
	je	LBB0_7
## %bb.6:
	movl	%ecx, %edx
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_CRYP_ALGORITHM_ENCRYPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_CRYP_CR_ALGODIR_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_CRYP_CR_ALGOMODE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_CRYP_CRYPEN_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CRYP_CR_CRYPEN_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_KSE_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CRYP_CR_KSE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%esi, %edx
	orl	%eax, %edi
	orl	%edx, %edi
	movq	(%r15), %rsi
	callq	_writel_relaxed
	movq	%r15, %rdi
	callq	_cryp_wait_until_done
	movl	4(%rbx), %edx
	movl	(%r14), %eax
LBB0_8:
	movl	8(%rbx), %esi
	movq	_CRYP_CR_ALGOMODE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_CRYP_CR_ALGODIR_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %esi
	orl	%esi, %edx
	movl	%edx, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYP_CR_KEYSIZE_POS,4,2        ## @CRYP_CR_KEYSIZE_POS
	.comm	_CRYP_ALGORITHM_DECRYPT,4,2     ## @CRYP_ALGORITHM_DECRYPT
	.comm	_CRYP_ALGO_AES_ECB,4,2          ## @CRYP_ALGO_AES_ECB
	.comm	_CRYP_ALGO_AES_CBC,4,2          ## @CRYP_ALGO_AES_CBC
	.comm	_CRYP_ALGORITHM_ENCRYPT,4,2     ## @CRYP_ALGORITHM_ENCRYPT
	.comm	_CRYP_CR_ALGODIR_POS,4,2        ## @CRYP_CR_ALGODIR_POS
	.comm	_CRYP_CR_ALGOMODE_POS,4,2       ## @CRYP_CR_ALGOMODE_POS
	.comm	_CRYP_CRYPEN_ENABLE,4,2         ## @CRYP_CRYPEN_ENABLE
	.comm	_CRYP_CR_CRYPEN_POS,4,2         ## @CRYP_CR_CRYPEN_POS
	.comm	_KSE_ENABLED,4,2                ## @KSE_ENABLED
	.comm	_CRYP_CR_KSE_POS,4,2            ## @CRYP_CR_KSE_POS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cryp_set_configuration         ; -- Begin function cryp_set_configuration
	.p2align	2
_cryp_set_configuration:                ; @cryp_set_configuration
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_6
; %bb.2:
	mov	x19, x2
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _CRYP_CR_KEYSIZE_POS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYP_CR_KEYSIZE_POS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
Lloh3:
	adrp	x9, _CRYP_ALGORITHM_DECRYPT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYP_ALGORITHM_DECRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
	ldr	w9, [x20, #4]
Lloh6:
	adrp	x22, _CRYP_CR_ALGODIR_POS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CRYP_CR_ALGODIR_POS@GOTPAGEOFF]
Lloh8:
	adrp	x23, _CRYP_CR_ALGOMODE_POS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CRYP_CR_ALGOMODE_POS@GOTPAGEOFF]
	cmp	w11, w9
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x9, _CRYP_ALGO_AES_ECB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CRYP_ALGO_AES_ECB@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x9]
	ldr	w9, [x20, #8]
Lloh13:
	adrp	x12, _CRYP_ALGO_AES_CBC@GOTPAGE
Lloh14:
	ldr	x12, [x12, _CRYP_ALGO_AES_CBC@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
	cmp	w10, w9
	ccmp	w12, w9, #4, ne
	mov	x9, x11
	b.ne	LBB0_5
; %bb.4:
	mov	x21, x0
Lloh16:
	adrp	x9, _CRYP_ALGORITHM_ENCRYPT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CRYP_ALGORITHM_ENCRYPT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w11, [x22]
	lsl	w9, w9, w11
	ldr	w11, [x23]
Lloh19:
	adrp	x12, _CRYP_CRYPEN_ENABLE@GOTPAGE
Lloh20:
	ldr	x12, [x12, _CRYP_CRYPEN_ENABLE@GOTPAGEOFF]
	lsl	w10, w10, w11
Lloh21:
	ldr	w11, [x12]
Lloh22:
	adrp	x12, _CRYP_CR_CRYPEN_POS@GOTPAGE
Lloh23:
	ldr	x12, [x12, _CRYP_CR_CRYPEN_POS@GOTPAGEOFF]
Lloh24:
	ldr	w12, [x12]
	lsl	w11, w11, w12
Lloh25:
	adrp	x12, _KSE_ENABLED@GOTPAGE
Lloh26:
	ldr	x12, [x12, _KSE_ENABLED@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
Lloh28:
	adrp	x13, _CRYP_CR_KSE_POS@GOTPAGE
Lloh29:
	ldr	x13, [x13, _CRYP_CR_KSE_POS@GOTPAGEOFF]
Lloh30:
	ldr	w13, [x13]
	lsl	w12, w12, w13
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w0, w8, w12
	ldr	x1, [x21]
	bl	_writel_relaxed
	mov	x0, x21
	bl	_cryp_wait_until_done
	ldr	w9, [x20, #4]
	ldr	w8, [x19]
LBB0_5:
	mov	w0, #0
	ldr	w10, [x20, #8]
	ldr	w11, [x23]
	lsl	w10, w10, w11
	ldr	w11, [x22]
	lsl	w9, w9, w11
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYP_CR_KEYSIZE_POS,4,2        ; @CRYP_CR_KEYSIZE_POS
	.comm	_CRYP_ALGORITHM_DECRYPT,4,2     ; @CRYP_ALGORITHM_DECRYPT
	.comm	_CRYP_ALGO_AES_ECB,4,2          ; @CRYP_ALGO_AES_ECB
	.comm	_CRYP_ALGO_AES_CBC,4,2          ; @CRYP_ALGO_AES_CBC
	.comm	_CRYP_ALGORITHM_ENCRYPT,4,2     ; @CRYP_ALGORITHM_ENCRYPT
	.comm	_CRYP_CR_ALGODIR_POS,4,2        ; @CRYP_CR_ALGODIR_POS
	.comm	_CRYP_CR_ALGOMODE_POS,4,2       ; @CRYP_CR_ALGOMODE_POS
	.comm	_CRYP_CRYPEN_ENABLE,4,2         ; @CRYP_CRYPEN_ENABLE
	.comm	_CRYP_CR_CRYPEN_POS,4,2         ; @CRYP_CR_CRYPEN_POS
	.comm	_KSE_ENABLED,4,2                ; @KSE_ENABLED
	.comm	_CRYP_CR_KSE_POS,4,2            ; @CRYP_CR_KSE_POS
.subsections_via_symbols
