	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_check_image_compat
_qat_uclo_check_image_compat:           ## @qat_uclo_check_image_compat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	32(%rsi), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %rdi
	cmpq	$0, (%rcx,%rax)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	movq	24(%rsi), %rcx
	cmpq	$0, (%rcx,%rax)
	jne	LBB0_11
## %bb.2:
	movq	16(%rbx), %rcx
	cmpq	$0, (%rax,%rcx)
	jne	LBB0_11
## %bb.3:
	movq	8(%rbx), %rcx
	cmpq	$0, (%rcx,%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_5:
	cmpl	$1, (%rbx)
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_7:
	movl	4(%rbx), %edi
	callq	_ICP_QAT_SHARED_USTORE_MODE
	movq	_EFAULT@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	movl	4(%rbx), %edi
	callq	_RELOADABLE_CTX_SHARED_MODE
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
LBB0_11:
	callq	_pr_err
	xorl	%eax, %eax
	subl	(%r14), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: UOF can't contain imported variable to be parsed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"QAT: UOF can't contain shared control store feature\n"

L_.str.2:                               ## @.str.2
	.asciz	"QAT: UOF can't contain multiple pages\n"

L_.str.3:                               ## @.str.3
	.asciz	"QAT: UOF can't use shared control store feature\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.4:                               ## @.str.4
	.asciz	"QAT: UOF can't use reloadable feature\n"

	.no_dead_strip	_qat_uclo_check_image_compat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_uclo_check_image_compat
_qat_uclo_check_image_compat:           ; @qat_uclo_check_image_compat
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x9, [x1, #32]
	ldr	x9, [x9, x8]
	cbnz	x9, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x9, [x1, #24]
	ldr	x9, [x9, x8]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x19, #16]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_6
LBB0_3:
Lloh0:
	adrp	x19, _EINVAL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_pr_err
	ldr	w8, [x19]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh4:
	adrp	x19, _EINVAL@GOTPAGE
Lloh5:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_8:
	ldr	w8, [x19]
	cmp	w8, #1
	b.le	LBB0_10
; %bb.9:
Lloh8:
	adrp	x19, _EINVAL@GOTPAGE
Lloh9:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_ICP_QAT_SHARED_USTORE_MODE
	cbz	x0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x19, _EFAULT@GOTPAGE
Lloh13:
	ldr	x19, [x19, _EFAULT@GOTPAGEOFF]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_RELOADABLE_CTX_SHARED_MODE
	cbz	x0, LBB0_5
; %bb.13:
Lloh16:
	adrp	x19, _EFAULT@GOTPAGE
Lloh17:
	ldr	x19, [x19, _EFAULT@GOTPAGEOFF]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: UOF can't contain imported variable to be parsed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"QAT: UOF can't contain shared control store feature\n"

l_.str.2:                               ; @.str.2
	.asciz	"QAT: UOF can't contain multiple pages\n"

l_.str.3:                               ; @.str.3
	.asciz	"QAT: UOF can't use shared control store feature\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.4:                               ; @.str.4
	.asciz	"QAT: UOF can't use reloadable feature\n"

	.no_dead_strip	_qat_uclo_check_image_compat
.subsections_via_symbols
