	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_init_memory
_qat_uclo_init_memory:                  ## @qat_uclo_init_memory
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	16(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	24(%r15), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	addq	$16, %rbx
	incl	%r12d
	cmpl	%eax, %r12d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qat_uclo_init_ae_memory
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_10
LBB0_6:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qat_hal_batch_wr_lm
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_qat_uclo_cleanup_batch_init_list
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qat_uclo_batch_wr_umem
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_qat_uclo_cleanup_batch_init_list
	incq	%r12
	movq	(%r14), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_8
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_pr_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: fail to batch init lmem for AE %d\n"

	.no_dead_strip	_qat_uclo_init_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qat_uclo_init_memory
_qat_uclo_init_memory:                  ; @qat_uclo_init_memory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w22, #0
	ldr	x20, [x21, #24]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x9, [x20]
	add	x9, x20, x9, lsl #2
	add	x20, x9, #16
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_qat_uclo_init_ae_memory
	cbz	x0, LBB0_2
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x22, #0
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x22]
	mov	x0, x19
	mov	x1, x20
	bl	_qat_hal_batch_wr_lm
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_qat_uclo_cleanup_batch_init_list
	ldr	x8, [x21]
	ldr	w2, [x8, x22]
	mov	x0, x19
	mov	x1, x20
	bl	_qat_uclo_batch_wr_umem
	ldr	x8, [x21]
	add	x1, x8, x22
	mov	x0, x19
	bl	_qat_uclo_cleanup_batch_init_list
	add	x20, x20, #1
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	add	x22, x22, #4
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
LBB0_12:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: fail to batch init lmem for AE %d\n"

	.no_dead_strip	_qat_uclo_init_memory
.subsections_via_symbols
