	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qat_uclo_map_suof
_qat_uclo_map_suof:                     ## @qat_uclo_map_suof
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_ICP_QAT_UCLO_MAX_AE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rsi, %rdi
	callq	_qat_uclo_check_suof_format
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_qat_uclo_map_suof_file_hdr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	4(%r12), %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_qat_uclo_map_suof_symobjs
	movl	(%r12), %edi
	xorl	%r14d, %r14d
	decl	%edi
	movl	%edi, (%rbx)
	je	LBB0_8
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, 8(%rax)
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.13:
	addq	$4, %r13
	xorl	%r12d, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_qat_uclo_map_simg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qat_uclo_check_simg_compat
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	testb	$1, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	1(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	addq	$4, %rbx
	addq	$4, %r13
	movq	%rax, %r12
	cmpq	%rdx, %rax
	jb	LBB0_14
## %bb.17:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
LBB0_12:
	xorl	%edx, %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_18:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_qat_uclo_tail_img
	jmp	LBB0_19
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movl	%eax, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ICP_QAT_UCLO_MAX_AE,4,2        ## @ICP_QAT_UCLO_MAX_AE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: input parameter SUOF pointer/size is NULL\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_qat_uclo_map_suof
.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_suof
_qat_uclo_map_suof:                     ; @qat_uclo_map_suof
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x23, x2
	cbz	w2, LBB0_10
; %bb.2:
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _ICP_QAT_UCLO_MAX_AE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICP_QAT_UCLO_MAX_AE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_qat_uclo_check_suof_format
	cbnz	x0, LBB0_11
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_qat_uclo_map_suof_file_hdr
	cbnz	w0, LBB0_13
; %bb.4:
	add	x23, x22, #4
	mov	x0, x21
	mov	x1, x23
	bl	_qat_uclo_map_suof_symobjs
	ldr	w8, [x22]
	subs	w0, w8, #1
	str	w0, [x21]
	b.eq	LBB0_14
; %bb.5:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_17
; %bb.6:
	mov	x22, x0
	str	x0, [x21, #8]
	ldr	w8, [x21]
	cbz	w8, LBB0_15
; %bb.7:
	mov	x24, #0
	mov	x26, #0
	add	x25, x23, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	add	x23, x22, x24
	add	x2, x25, x24
	mov	x1, x23
	bl	_qat_uclo_map_simg
	mov	x0, x20
	mov	x1, x23
	bl	_qat_uclo_check_simg_compat
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x22, x24]
	tst	w8, #0x1
	csel	w19, w19, w26, eq
	add	x8, x26, #1
	ldr	w2, [x21]
	add	x24, x24, #4
	mov	x26, x8
	cmp	x8, x2
	b.lo	LBB0_8
	b	LBB0_16
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x22, #0
LBB0_15:
	mov	w2, #0
LBB0_16:
	mov	x0, x22
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_qat_uclo_tail_img
	mov	w0, #0
	b	LBB0_13
LBB0_17:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ICP_QAT_UCLO_MAX_AE,4,2        ; @ICP_QAT_UCLO_MAX_AE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: input parameter SUOF pointer/size is NULL\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_qat_uclo_map_suof
.subsections_via_symbols
