	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_encr_cfg
_qce_encr_cfg:                          ## @qce_encr_cfg
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_IS_AES
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_AES_KEYSIZE_128@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_ENCR_KEY_SZ_AES128@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_AES_KEYSIZE_256@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_ENCR_KEY_SZ_AES256@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %r14
	movq	_ENCR_KEY_SZ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r14
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r15, %rdi
	callq	_IS_AES
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ENCR_ALG_AES@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	%r15, %rdi
	callq	_IS_DES
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_IS_3DES
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	movq	_ENCR_ALG_DES@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	_ENCR_ALG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rax, %r14
LBB0_14:
	movq	%r15, %rdi
	callq	_IS_DES
	movq	_ENCR_KEY_SZ_DES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	_ENCR_KEY_SZ_SHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	shlq	%cl, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	callq	_IS_3DES
	movq	_ENCR_KEY_SZ_3DES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movb	(%r12), %cl
	shlq	%cl, %rdx
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movq	_QCE_MODE_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %r15
	addq	$-128, %r15
	cmpq	$4, %r15
	ja	LBB0_17
## %bb.15:
	orq	%r14, %rbx
	orq	%rdx, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	_ENCR_MODE_XTS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	movq	$-1, %rax
	jmp	LBB0_23
LBB0_18:
	movq	_ENCR_MODE_ECB@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movq	_ENCR_MODE_CTR@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_ENCR_MODE_CCM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ENCR_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	orq	%rbx, %rdx
	movq	_LAST_CCM_XFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LAST_CCM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rdx, %rax
	jmp	LBB0_23
LBB0_21:
	movq	_ENCR_MODE_CBC@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	_ENCR_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rbx, %rax
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.end_data_region
                                        ## -- End function
	.comm	_AES_KEYSIZE_128,8,3            ## @AES_KEYSIZE_128
	.comm	_ENCR_KEY_SZ_AES128,8,3         ## @ENCR_KEY_SZ_AES128
	.comm	_ENCR_KEY_SZ_SHIFT,8,3          ## @ENCR_KEY_SZ_SHIFT
	.comm	_AES_KEYSIZE_256,8,3            ## @AES_KEYSIZE_256
	.comm	_ENCR_KEY_SZ_AES256,8,3         ## @ENCR_KEY_SZ_AES256
	.comm	_ENCR_ALG_AES,8,3               ## @ENCR_ALG_AES
	.comm	_ENCR_ALG_SHIFT,8,3             ## @ENCR_ALG_SHIFT
	.comm	_ENCR_ALG_DES,8,3               ## @ENCR_ALG_DES
	.comm	_ENCR_KEY_SZ_DES,8,3            ## @ENCR_KEY_SZ_DES
	.comm	_ENCR_KEY_SZ_3DES,8,3           ## @ENCR_KEY_SZ_3DES
	.comm	_QCE_MODE_MASK,8,3              ## @QCE_MODE_MASK
	.comm	_ENCR_MODE_ECB,8,3              ## @ENCR_MODE_ECB
	.comm	_ENCR_MODE_SHIFT,8,3            ## @ENCR_MODE_SHIFT
	.comm	_ENCR_MODE_CBC,8,3              ## @ENCR_MODE_CBC
	.comm	_ENCR_MODE_CTR,8,3              ## @ENCR_MODE_CTR
	.comm	_ENCR_MODE_XTS,8,3              ## @ENCR_MODE_XTS
	.comm	_ENCR_MODE_CCM,8,3              ## @ENCR_MODE_CCM
	.comm	_LAST_CCM_XFR,8,3               ## @LAST_CCM_XFR
	.comm	_LAST_CCM_SHIFT,8,3             ## @LAST_CCM_SHIFT
	.no_dead_strip	_qce_encr_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_encr_cfg
_qce_encr_cfg:                          ; @qce_encr_cfg
	.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, x1
	mov	x19, x0
	bl	_IS_AES
Lloh0:
	adrp	x21, _ENCR_KEY_SZ_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENCR_KEY_SZ_SHIFT@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _AES_KEYSIZE_128@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AES_KEYSIZE_128@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ENCR_KEY_SZ_AES128@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENCR_KEY_SZ_AES128@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _AES_KEYSIZE_256@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AES_KEYSIZE_256@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.4:
Lloh10:
	adrp	x8, _ENCR_KEY_SZ_AES256@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENCR_KEY_SZ_AES256@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	ldr	x9, [x21]
	lsl	x20, x8, x9
	b	LBB0_7
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x19
	bl	_IS_AES
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _ENCR_ALG_AES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENCR_ALG_AES@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_IS_DES
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_IS_3DES
	cbz	x0, LBB0_13
LBB0_11:
Lloh14:
	adrp	x8, _ENCR_ALG_DES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENCR_ALG_DES@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ENCR_ALG_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENCR_ALG_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	orr	x20, x8, x20
LBB0_13:
	mov	x0, x19
	bl	_IS_DES
Lloh19:
	adrp	x8, _ENCR_KEY_SZ_DES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENCR_KEY_SZ_DES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x21]
	lsl	x8, x8, x9
	cmp	x0, #0
	csel	x22, xzr, x8, eq
	mov	x0, x19
	bl	_IS_3DES
Lloh22:
	adrp	x8, _ENCR_KEY_SZ_3DES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENCR_KEY_SZ_3DES@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x21]
	lsl	x8, x8, x9
	cmp	x0, #0
	csel	x8, xzr, x8, eq
Lloh25:
	adrp	x9, _QCE_MODE_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _QCE_MODE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	and	x9, x9, x19
	sub	x9, x9, #128
	cmp	x9, #4
	b.hi	LBB0_16
; %bb.14:
	orr	x10, x22, x20
	orr	x8, x10, x8
Lloh28:
	adrp	x10, lJTI0_0@PAGE
Lloh29:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_15
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_15:
Lloh30:
	adrp	x9, _ENCR_MODE_XTS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ENCR_MODE_XTS@GOTPAGEOFF]
	b	LBB0_21
LBB0_16:
	mov	x0, #-1
	b	LBB0_22
LBB0_17:
Lloh32:
	adrp	x9, _ENCR_MODE_ECB@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ENCR_MODE_ECB@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
Lloh34:
	adrp	x9, _ENCR_MODE_CTR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ENCR_MODE_CTR@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
Lloh36:
	adrp	x9, _ENCR_MODE_CCM@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ENCR_MODE_CCM@GOTPAGEOFF]
Lloh38:
	adrp	x10, _ENCR_MODE_SHIFT@GOTPAGE
Lloh39:
	ldr	x10, [x10, _ENCR_MODE_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
Lloh41:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x9, x8
Lloh42:
	adrp	x9, _LAST_CCM_XFR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _LAST_CCM_XFR@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
Lloh45:
	adrp	x10, _LAST_CCM_SHIFT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _LAST_CCM_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x0, x8, x9
	b	LBB0_22
LBB0_20:
Lloh48:
	adrp	x9, _ENCR_MODE_CBC@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ENCR_MODE_CBC@GOTPAGEOFF]
LBB0_21:
	ldr	x9, [x9]
Lloh50:
	adrp	x10, _ENCR_MODE_SHIFT@GOTPAGE
Lloh51:
	ldr	x10, [x10, _ENCR_MODE_SHIFT@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x0, x9, x8
LBB0_22:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_20-LBB0_15)>>2
                                        ; -- End function
	.comm	_AES_KEYSIZE_128,8,3            ; @AES_KEYSIZE_128
	.comm	_ENCR_KEY_SZ_AES128,8,3         ; @ENCR_KEY_SZ_AES128
	.comm	_ENCR_KEY_SZ_SHIFT,8,3          ; @ENCR_KEY_SZ_SHIFT
	.comm	_AES_KEYSIZE_256,8,3            ; @AES_KEYSIZE_256
	.comm	_ENCR_KEY_SZ_AES256,8,3         ; @ENCR_KEY_SZ_AES256
	.comm	_ENCR_ALG_AES,8,3               ; @ENCR_ALG_AES
	.comm	_ENCR_ALG_SHIFT,8,3             ; @ENCR_ALG_SHIFT
	.comm	_ENCR_ALG_DES,8,3               ; @ENCR_ALG_DES
	.comm	_ENCR_KEY_SZ_DES,8,3            ; @ENCR_KEY_SZ_DES
	.comm	_ENCR_KEY_SZ_3DES,8,3           ; @ENCR_KEY_SZ_3DES
	.comm	_QCE_MODE_MASK,8,3              ; @QCE_MODE_MASK
	.comm	_ENCR_MODE_ECB,8,3              ; @ENCR_MODE_ECB
	.comm	_ENCR_MODE_SHIFT,8,3            ; @ENCR_MODE_SHIFT
	.comm	_ENCR_MODE_CBC,8,3              ; @ENCR_MODE_CBC
	.comm	_ENCR_MODE_CTR,8,3              ; @ENCR_MODE_CTR
	.comm	_ENCR_MODE_XTS,8,3              ; @ENCR_MODE_XTS
	.comm	_ENCR_MODE_CCM,8,3              ; @ENCR_MODE_CCM
	.comm	_LAST_CCM_XFR,8,3               ; @LAST_CCM_XFR
	.comm	_LAST_CCM_SHIFT,8,3             ; @LAST_CCM_SHIFT
	.no_dead_strip	_qce_encr_cfg
.subsections_via_symbols
