	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_uclo_wr_mimage             ## -- Begin function qat_uclo_wr_mimage
	.p2align	4, 0x90
_qat_uclo_wr_mimage:                    ## @qat_uclo_wr_mimage
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_qat_uclo_map_auth_fw
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qat_uclo_auth_fw
	movl	%eax, %r14d
LBB0_3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qat_uclo_ummap_auth_fw
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_ADF_C3XXX_PCI_DEVICE_ID@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_qat_uclo_wr_sram_by_words
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF_C3XXX_PCI_DEVICE_ID,8,3    ## @ADF_C3XXX_PCI_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: C3XXX doesn't support unsigned MMP\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qat_uclo_wr_mimage             ; -- Begin function qat_uclo_wr_mimage
	.p2align	2
_qat_uclo_wr_mimage:                    ; @qat_uclo_wr_mimage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x2
	mov	x2, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_3
; %bb.1:
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x2
	mov	x2, x8
	bl	_qat_uclo_map_auth_fw
	cbz	w0, LBB0_5
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	ldr	x9, [x19]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _ADF_C3XXX_PCI_DEVICE_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ADF_C3XXX_PCI_DEVICE_ID@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_qat_uclo_auth_fw
	mov	x20, x0
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qat_uclo_ummap_auth_fw
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	x3, x8
	bl	_qat_uclo_wr_sram_by_words
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF_C3XXX_PCI_DEVICE_ID,8,3    ; @ADF_C3XXX_PCI_DEVICE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: C3XXX doesn't support unsigned MMP\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
