	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_check_uof_format
_qat_uclo_check_uof_format:             ## @qat_uclo_check_uof_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rsi
	movq	_ICP_QAT_UOF_FID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	movzbl	(%rdi), %esi
	movzbl	4(%rdi), %edx
	movq	_ICP_QAT_UOF_MINVER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	movq	_ICP_QAT_UOF_MAJVER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICP_QAT_UOF_FID,8,3            ## @ICP_QAT_UOF_FID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: Invalid header 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ICP_QAT_UOF_MINVER,4,2         ## @ICP_QAT_UOF_MINVER
	.comm	_ICP_QAT_UOF_MAJVER,4,2         ## @ICP_QAT_UOF_MAJVER
L_.str.1:                               ## @.str.1
	.asciz	"QAT: bad UOF version, major 0x%x, minor 0x%x\n"

	.no_dead_strip	_qat_uclo_check_uof_format
.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_uof_format
_qat_uclo_check_uof_format:             ; @qat_uclo_check_uof_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x1, [x0, #8]
Lloh0:
	adrp	x8, _ICP_QAT_UOF_FID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICP_QAT_UOF_FID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_3
; %bb.1:
	ldrb	w1, [x0]
	ldrb	w8, [x0, #4]
Lloh3:
	adrp	x9, _ICP_QAT_UOF_MINVER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICP_QAT_UOF_MINVER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ICP_QAT_UOF_MAJVER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ICP_QAT_UOF_MAJVER@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w1, w10, #0, eq
	b.eq	LBB0_5
; %bb.2:
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_4:
	bl	_pr_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ICP_QAT_UOF_FID,8,3            ; @ICP_QAT_UOF_FID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: Invalid header 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ICP_QAT_UOF_MINVER,4,2         ; @ICP_QAT_UOF_MINVER
	.comm	_ICP_QAT_UOF_MAJVER,4,2         ; @ICP_QAT_UOF_MAJVER
l_.str.1:                               ; @.str.1
	.asciz	"QAT: bad UOF version, major 0x%x, minor 0x%x\n"

	.no_dead_strip	_qat_uclo_check_uof_format
.subsections_via_symbols
