	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_alg_validate_key
_qat_alg_validate_key:                  ## @qat_alg_validate_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ICP_QAT_HW_CIPHER_XTS_MODE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.7:
	cmpl	$256, %edi                      ## imm = 0x100
	je	LBB0_11
## %bb.8:
	cmpl	$260, %edi                      ## imm = 0x104
	jne	LBB0_9
LBB0_4:
	movq	_ICP_QAT_HW_CIPHER_ALGO_AES128@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	cmpl	$128, %edi
	je	LBB0_11
## %bb.2:
	cmpl	$129, %edi
	je	LBB0_6
## %bb.3:
	cmpl	$130, %edi
	je	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_11:
	movq	_ICP_QAT_HW_CIPHER_ALGO_AES256@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_ICP_QAT_HW_CIPHER_ALGO_AES192@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICP_QAT_HW_CIPHER_XTS_MODE,4,2 ## @ICP_QAT_HW_CIPHER_XTS_MODE
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES128,4,2 ## @ICP_QAT_HW_CIPHER_ALGO_AES128
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES192,4,2 ## @ICP_QAT_HW_CIPHER_ALGO_AES192
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES256,4,2 ## @ICP_QAT_HW_CIPHER_ALGO_AES256
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qat_alg_validate_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_alg_validate_key
_qat_alg_validate_key:                  ; @qat_alg_validate_key
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ICP_QAT_HW_CIPHER_XTS_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICP_QAT_HW_CIPHER_XTS_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.1:
	cmp	w0, #256
	b.eq	LBB0_8
; %bb.2:
	cmp	w0, #260
	b.ne	LBB0_7
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x8, _ICP_QAT_HW_CIPHER_ALGO_AES128@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICP_QAT_HW_CIPHER_ALGO_AES128@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	cmp	w0, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w0, #130
	b.eq	LBB0_3
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_8:
	mov	w0, #0
Lloh8:
	adrp	x8, _ICP_QAT_HW_CIPHER_ALGO_AES256@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICP_QAT_HW_CIPHER_ALGO_AES256@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh10:
	adrp	x8, _ICP_QAT_HW_CIPHER_ALGO_AES192@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICP_QAT_HW_CIPHER_ALGO_AES192@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x1]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ICP_QAT_HW_CIPHER_XTS_MODE,4,2 ; @ICP_QAT_HW_CIPHER_XTS_MODE
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES128,4,2 ; @ICP_QAT_HW_CIPHER_ALGO_AES128
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES192,4,2 ; @ICP_QAT_HW_CIPHER_ALGO_AES192
	.comm	_ICP_QAT_HW_CIPHER_ALGO_AES256,4,2 ; @ICP_QAT_HW_CIPHER_ALGO_AES256
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qat_alg_validate_key
.subsections_via_symbols
