	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_check_suof_format
_qat_uclo_check_suof_format:            ## @qat_uclo_check_suof_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_SUOF_FID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_10
LBB0_5:
	cmpl	$1, 24(%rdi)
	jg	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movzbl	(%rdi), %esi
	movzbl	4(%rdi), %edx
	movq	_ICP_QAT_SUOF_MAJVER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	movq	_ICP_QAT_SUOF_MINVER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ICP_QAT_SUOF_FID,8,3           ## @ICP_QAT_SUOF_FID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: invalid header 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"QAT: unsupported firmware type\n"

L_.str.2:                               ## @.str.2
	.asciz	"QAT: SUOF chunk amount is incorrect\n"

	.comm	_ICP_QAT_SUOF_MAJVER,4,2        ## @ICP_QAT_SUOF_MAJVER
	.comm	_ICP_QAT_SUOF_MINVER,4,2        ## @ICP_QAT_SUOF_MINVER
L_.str.3:                               ## @.str.3
	.asciz	"QAT: bad SUOF version, major 0x%x, minor 0x%x\n"

	.no_dead_strip	_qat_uclo_check_suof_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_suof_format
_qat_uclo_check_suof_format:            ; @qat_uclo_check_suof_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	x8, [x0, #8]
Lloh0:
	adrp	x9, _ICP_QAT_SUOF_FID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICP_QAT_SUOF_FID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_pr_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_6:
	ldr	w8, [x0, #24]
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_8:
	ldrb	w8, [x0]
	ldrb	w9, [x0, #4]
Lloh12:
	adrp	x10, _ICP_QAT_SUOF_MAJVER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ICP_QAT_SUOF_MAJVER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _ICP_QAT_SUOF_MINVER@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ICP_QAT_SUOF_MINVER@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	w8, w10
	ccmp	w9, w11, #0, eq
	b.eq	LBB0_10
; %bb.9:
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_10:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ICP_QAT_SUOF_FID,8,3           ; @ICP_QAT_SUOF_FID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: invalid header 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"QAT: unsupported firmware type\n"

l_.str.2:                               ; @.str.2
	.asciz	"QAT: SUOF chunk amount is incorrect\n"

	.comm	_ICP_QAT_SUOF_MAJVER,4,2        ; @ICP_QAT_SUOF_MAJVER
	.comm	_ICP_QAT_SUOF_MINVER,4,2        ; @ICP_QAT_SUOF_MINVER
l_.str.3:                               ; @.str.3
	.asciz	"QAT: bad SUOF version, major 0x%x, minor 0x%x\n"

	.no_dead_strip	_qat_uclo_check_suof_format
.subsections_via_symbols
