	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_check_simg_compat
_qat_uclo_check_simg_compat:            ## @qat_uclo_check_simg_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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_qat_uclo_get_dev_type
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	cmpl	%eax, %esi
	jne	LBB0_1
## %bb.2:
	movq	_PID_MAJOR_REV@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movq	_PID_MINOR_REV@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	movq	(%r14), %rsi
	movzbl	(%rsi), %esi
	andl	%edx, %esi
	orl	%eax, %esi
	cmpl	4(%rcx), %esi
	ja	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	8(%rcx), %esi
	jae	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PID_MAJOR_REV,4,2              ## @PID_MAJOR_REV
	.comm	_PID_MINOR_REV,4,2              ## @PID_MINOR_REV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: incompatible product type %x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"QAT: incompatible device majver 0x%x\n"

	.no_dead_strip	_qat_uclo_check_simg_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_simg_compat
_qat_uclo_check_simg_compat:            ; @qat_uclo_check_simg_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
	mov	x20, x1
	mov	x19, x0
	bl	_qat_uclo_get_dev_type
	ldr	x8, [x20]
	ldr	w1, [x8]
	cmp	w1, w0
	b.ne	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _PID_MAJOR_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PID_MAJOR_REV@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh2:
	adrp	x10, _PID_MINOR_REV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PID_MINOR_REV@GOTPAGEOFF]
	ldrb	w10, [x10]
	ldr	x11, [x19]
	ldrb	w11, [x11]
	and	w10, w11, w10
	orr	w1, w10, w9
	ldr	w9, [x8, #4]
	cmp	w1, w9
	b.hi	LBB0_3
; %bb.2:
	ldr	w8, [x8, #8]
	cmp	w1, w8
	b.hs	LBB0_7
LBB0_3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_pr_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PID_MAJOR_REV,4,2              ; @PID_MAJOR_REV
	.comm	_PID_MINOR_REV,4,2              ; @PID_MINOR_REV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: incompatible product type %x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"QAT: incompatible device majver 0x%x\n"

	.no_dead_strip	_qat_uclo_check_simg_compat
.subsections_via_symbols
