	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_create_req_q
_hisi_zip_create_req_q:                 ## @hisi_zip_create_req_q
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HZIP_CTX_Q_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movl	$20, %ebx
	xorl	%r12d, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	movq	_QM_Q_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -4(%r14,%rbx)
	callq	_BITS_TO_LONGS
	movl	(%r13), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, -20(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %rdi
	callq	_rwlock_init
	movl	-4(%r14,%rbx), %edi
	movl	(%r13), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, -12(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_HZIP_CTX_Q_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r12d, %r12d
	jne	LBB0_7
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	movq	(%r15), %rax
	movq	_QPC_DECOMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_kfree
LBB0_7:
	movq	(%r15), %rax
	movq	_QPC_COMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	8(%rax,%rcx,8), %rdi
	callq	_kfree
LBB0_8:
	movq	(%r15), %rax
	movq	_QPC_COMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_kfree
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZIP_CTX_Q_NUM,4,2             ## @HZIP_CTX_Q_NUM
	.comm	_QM_Q_DEPTH,4,2                 ## @QM_Q_DEPTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QPC_DECOMP,8,3                 ## @QPC_DECOMP
	.comm	_QPC_COMP,8,3                   ## @QPC_COMP
	.no_dead_strip	_hisi_zip_create_req_q
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_create_req_q
_hisi_zip_create_req_q:                 ; @hisi_zip_create_req_q
	.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
Lloh0:
	adrp	x20, _HZIP_CTX_Q_NUM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HZIP_CTX_Q_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x21, #0
Lloh2:
	adrp	x23, _QM_Q_DEPTH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _QM_Q_DEPTH@GOTPAGEOFF]
Lloh4:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x23]
	add	x25, x8, x22
	str	w0, [x25, #16]
	bl	_BITS_TO_LONGS
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x25]
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x25, #20
	bl	_rwlock_init
	ldr	w0, [x25, #16]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #24
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w21, LBB0_9
	b	LBB0_11
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	w21, LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _QPC_DECOMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QPC_DECOMP@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh14:
	ldr	x8, [x8]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x0, [x9, x8]
	bl	_kfree
LBB0_9:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _QPC_COMP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QPC_COMP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x0, [x8, #8]
	bl	_kfree
LBB0_10:
Lloh18:
	adrp	x8, _QPC_COMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QPC_COMP@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh20:
	ldr	x8, [x8]
	mov	w10, #24
	mul	x8, x8, x10
	ldr	x0, [x9, x8]
	bl	_kfree
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HZIP_CTX_Q_NUM,4,2             ; @HZIP_CTX_Q_NUM
	.comm	_QM_Q_DEPTH,4,2                 ; @QM_Q_DEPTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QPC_DECOMP,8,3                 ; @QPC_DECOMP
	.comm	_QPC_COMP,8,3                   ; @QPC_COMP
	.no_dead_strip	_hisi_zip_create_req_q
.subsections_via_symbols
