	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_map_auth_fw
_qat_uclo_map_auth_fw:                  ## @qat_uclo_map_auth_fw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	_ICP_QAT_AE_IMG_OFFSET@GOTPCREL(%rip), %rcx
	movq	_ICP_QAT_CSS_MAX_IMAGE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
	cmpl	%edx, %eax
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	%rsi, %r15
	movq	(%rsi), %rax
	movq	_CSS_AE_FIRMWARE@GOTPCREL(%rip), %rcx
	movq	_ICP_QAT_CSS_FWSK_PAD_LEN@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_ICP_QAT_CSS_AE_SIMG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_5
LBB0_3:
	movl	(%rdx), %edx
	addl	%r12d, %edx
LBB0_5:
	addl	$68, %edx
	leaq	-80(%rbp), %rsi
	callq	_qat_uclo_simg_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movq	-72(%rbp), %r14
	movl	-64(%rbp), %eax
	movl	%eax, 64(%r14)
	movl	-80(%rbp), %eax
	movl	%eax, (%r14)
	addl	$68, %eax
	movq	_BITS_IN_DWORD@GOTPCREL(%rip), %rdx
	movb	(%rdx), %cl
	movq	%rdx, %rbx
	movl	%eax, %edx
	sarl	%cl, %edx
	movl	%edx, 4(%r14)
	movl	%eax, 8(%r14)
	leal	68(%r14), %eax
	movslq	%eax, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	4(%r14), %edi
	movl	8(%r14), %esi
	callq	_ADD_ADDR
	addl	$8, %eax
	movb	(%rbx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	leal	76(%r14), %ecx
	movl	%edx, 12(%r14)
	movl	%eax, 16(%r14)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rbx
	leaq	8(%r15), %rsi
	movq	_ICP_QAT_CSS_FWSK_MODULUS_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movslq	(%r13), %rdi
	addq	%rbx, %rdi
	movq	_ICP_QAT_CSS_FWSK_PAD_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movslq	(%r13), %rax
	leal	(%rax,%r14), %edi
	addl	$76, %edi
	addl	(%rbx), %edi
	leaq	(%r15,%rax), %rsi
	addq	$8, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	12(%r14), %edi
	movl	16(%r14), %esi
	callq	_ADD_ADDR
	movq	_ICP_QAT_CSS_FWSK_PUB_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %eax
	movq	_BITS_IN_DWORD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	leal	(%rdx,%r14), %ecx
	addl	$76, %ecx
	movl	%esi, 20(%r14)
	movl	%eax, 24(%r14)
	movslq	%ecx, %r13
	movq	_ICP_QAT_CSS_FWSK_MODULUS_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r15, %rax
	addq	$8, %rax
	movq	_ICP_QAT_CSS_FWSK_EXPONENT_LEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	%rax, %rsi
	movq	_ICP_QAT_CSS_SIGNATURE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movl	20(%r14), %edi
	movl	24(%r14), %esi
	callq	_ADD_ADDR
	movl	(%rbx), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addl	%edx, %eax
	movq	_BITS_IN_DWORD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	sarl	%cl, %esi
	addl	%edx, %r13d
	movl	%esi, 28(%r14)
	movl	%eax, 32(%r14)
	movq	_ICP_QAT_AE_IMG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %r12d
	movl	%r12d, 36(%r14)
	movslq	%r13d, %rdi
	addq	%rax, %r15
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	28(%r14), %edi
	movq	_CSS_AE_FIRMWARE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	%edi, 40(%r14)
	movl	32(%r14), %esi
	movl	%esi, 44(%r14)
	callq	_ADD_ADDR
	addl	$4, %eax
	movq	_BITS_IN_DWORD@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movl	%edx, 48(%r14)
	movl	%eax, 52(%r14)
	movq	_ICP_QAT_SIMG_AE_INIT_SEQ_LEN@GOTPCREL(%rip), %rdx
	addl	(%rdx), %eax
	movl	%eax, %edi
	sarl	%cl, %edi
	jmp	LBB0_10
LBB0_9:
	movl	32(%r14), %eax
LBB0_10:
	movl	%edi, 56(%r14)
	movl	%eax, 60(%r14)
	movq	%r14, (%rbx)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICP_QAT_AE_IMG_OFFSET,4,2      ## @ICP_QAT_AE_IMG_OFFSET
	.comm	_ICP_QAT_CSS_MAX_IMAGE_LEN,4,2  ## @ICP_QAT_CSS_MAX_IMAGE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: error, input image size overflow %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CSS_AE_FIRMWARE,8,3            ## @CSS_AE_FIRMWARE
	.comm	_ICP_QAT_CSS_AE_SIMG_LEN,4,2    ## @ICP_QAT_CSS_AE_SIMG_LEN
	.comm	_ICP_QAT_CSS_FWSK_PAD_LEN,4,2   ## @ICP_QAT_CSS_FWSK_PAD_LEN
L_.str.1:                               ## @.str.1
	.asciz	"QAT: error, allocate continuous dram fail\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BITS_IN_DWORD,4,2              ## @BITS_IN_DWORD
	.comm	_ICP_QAT_CSS_FWSK_MODULUS_LEN,4,2 ## @ICP_QAT_CSS_FWSK_MODULUS_LEN
	.comm	_ICP_QAT_CSS_FWSK_PUB_LEN,4,2   ## @ICP_QAT_CSS_FWSK_PUB_LEN
	.comm	_ICP_QAT_CSS_FWSK_EXPONENT_LEN,4,2 ## @ICP_QAT_CSS_FWSK_EXPONENT_LEN
	.comm	_ICP_QAT_CSS_SIGNATURE_LEN,4,2  ## @ICP_QAT_CSS_SIGNATURE_LEN
	.comm	_ICP_QAT_SIMG_AE_INIT_SEQ_LEN,8,3 ## @ICP_QAT_SIMG_AE_INIT_SEQ_LEN
	.no_dead_strip	_qat_uclo_map_auth_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_uclo_map_auth_fw
_qat_uclo_map_auth_fw:                  ; @qat_uclo_map_auth_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
Lloh0:
	adrp	x27, _ICP_QAT_AE_IMG_OFFSET@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ICP_QAT_AE_IMG_OFFSET@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x9, _ICP_QAT_CSS_MAX_IMAGE_LEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICP_QAT_CSS_MAX_IMAGE_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w2
	b.hs	LBB0_2
; %bb.1:
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x3
	mov	x21, x1
Lloh9:
	adrp	x9, _CSS_AE_FIRMWARE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CSS_AE_FIRMWARE@GOTPAGEOFF]
	ldr	x8, [x1]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _ICP_QAT_CSS_AE_SIMG_LEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ICP_QAT_CSS_AE_SIMG_LEN@GOTPAGEOFF]
Lloh14:
	adrp	x28, _ICP_QAT_CSS_FWSK_PAD_LEN@GOTPAGE
Lloh15:
	ldr	x28, [x28, _ICP_QAT_CSS_FWSK_PAD_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	ldr	w11, [x28]
	add	w11, w11, w20
	cmp	x8, x9
	csel	w8, w10, w11, eq
	add	w2, w8, #68
	add	x1, sp, #24
	bl	_qat_uclo_simg_alloc
	cbz	x0, LBB0_6
; %bb.3:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	ldr	x25, [sp, #32]
	ldr	w8, [sp, #40]
	str	w8, [x25, #64]
	ldr	w8, [sp, #24]
	str	w8, [x25]
	add	w8, w8, #68
Lloh21:
	adrp	x10, _BITS_IN_DWORD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BITS_IN_DWORD@GOTPAGEOFF]
	ldr	w9, [x10]
	mov	x22, x10
	asr	w9, w8, w9
	stp	w9, w8, [x25, #4]
	add	w8, w25, #68
	sxtw	x0, w8
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	ldp	w0, w1, [x25, #4]
	bl	_ADD_ADDR
	add	w8, w0, #8
	add	w26, w25, #76
	ldr	w9, [x22]
	asr	w9, w8, w9
	stp	w9, w8, [x25, #12]
	sxtw	x23, w26
	add	x24, x21, #8
Lloh23:
	adrp	x22, _ICP_QAT_CSS_FWSK_MODULUS_LEN@GOTPAGE
Lloh24:
	ldr	x22, [x22, _ICP_QAT_CSS_FWSK_MODULUS_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	ldrsw	x8, [x22]
	add	x0, x8, x23
	ldr	w2, [x28]
	mov	w1, #0
	bl	_memset
	ldrsw	x8, [x22]
	ldr	w9, [x28]
	add	w10, w8, w26
	add	w0, w10, w9
	add	x1, x24, x8
	mov	w2, #4
	bl	_memcpy
	ldp	w0, w1, [x25, #12]
	bl	_ADD_ADDR
Lloh25:
	adrp	x8, _ICP_QAT_CSS_FWSK_PUB_LEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ICP_QAT_CSS_FWSK_PUB_LEN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w9, w8, w0
	add	w23, w8, w26
Lloh28:
	adrp	x26, _BITS_IN_DWORD@GOTPAGE
Lloh29:
	ldr	x26, [x26, _BITS_IN_DWORD@GOTPAGEOFF]
	ldr	w8, [x26]
	asr	w8, w9, w8
	stp	w8, w9, [x25, #20]
	sxtw	x0, w23
	ldrsw	x8, [x22]
Lloh30:
	adrp	x9, _ICP_QAT_CSS_FWSK_EXPONENT_LEN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ICP_QAT_CSS_FWSK_EXPONENT_LEN@GOTPAGEOFF]
Lloh32:
	ldrsw	x9, [x9]
	add	x8, x24, x8
	add	x1, x8, x9
Lloh33:
	adrp	x22, _ICP_QAT_CSS_SIGNATURE_LEN@GOTPAGE
Lloh34:
	ldr	x22, [x22, _ICP_QAT_CSS_SIGNATURE_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldp	w0, w1, [x25, #20]
	bl	_ADD_ADDR
	ldr	w8, [x22]
	mov	x22, x26
	add	w9, w8, w0
	add	w8, w8, w23
	ldr	w10, [x26]
	asr	w10, w9, w10
	stp	w10, w9, [x25, #28]
	ldr	w9, [x27]
	sub	w2, w20, w9
	str	w2, [x25, #36]
	sxtw	x0, w8
	add	x1, x21, x9
	bl	_memcpy
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh35:
	adrp	x9, _CSS_AE_FIRMWARE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CSS_AE_FIRMWARE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	ldr	w0, [x25, #28]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x25, #32]
	stp	w0, w1, [x25, #40]
	bl	_ADD_ADDR
	add	w8, w0, #4
	ldr	w10, [x22]
	asr	w9, w8, w10
	stp	w9, w8, [x25, #48]
Lloh38:
	adrp	x9, _ICP_QAT_SIMG_AE_INIT_SEQ_LEN@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ICP_QAT_SIMG_AE_INIT_SEQ_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	add	w9, w8, w9
	asr	w0, w9, w10
	b	LBB0_9
LBB0_8:
	ldr	w9, [x25, #32]
LBB0_9:
	mov	w8, #0
	stp	w0, w9, [x25, #56]
	str	x25, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ICP_QAT_AE_IMG_OFFSET,4,2      ; @ICP_QAT_AE_IMG_OFFSET
	.comm	_ICP_QAT_CSS_MAX_IMAGE_LEN,4,2  ; @ICP_QAT_CSS_MAX_IMAGE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: error, input image size overflow %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CSS_AE_FIRMWARE,8,3            ; @CSS_AE_FIRMWARE
	.comm	_ICP_QAT_CSS_AE_SIMG_LEN,4,2    ; @ICP_QAT_CSS_AE_SIMG_LEN
	.comm	_ICP_QAT_CSS_FWSK_PAD_LEN,4,2   ; @ICP_QAT_CSS_FWSK_PAD_LEN
l_.str.1:                               ; @.str.1
	.asciz	"QAT: error, allocate continuous dram fail\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BITS_IN_DWORD,4,2              ; @BITS_IN_DWORD
	.comm	_ICP_QAT_CSS_FWSK_MODULUS_LEN,4,2 ; @ICP_QAT_CSS_FWSK_MODULUS_LEN
	.comm	_ICP_QAT_CSS_FWSK_PUB_LEN,4,2   ; @ICP_QAT_CSS_FWSK_PUB_LEN
	.comm	_ICP_QAT_CSS_FWSK_EXPONENT_LEN,4,2 ; @ICP_QAT_CSS_FWSK_EXPONENT_LEN
	.comm	_ICP_QAT_CSS_SIGNATURE_LEN,4,2  ; @ICP_QAT_CSS_SIGNATURE_LEN
	.comm	_ICP_QAT_SIMG_AE_INIT_SEQ_LEN,8,3 ; @ICP_QAT_SIMG_AE_INIT_SEQ_LEN
	.no_dead_strip	_qat_uclo_map_auth_fw
.subsections_via_symbols
