	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_create_req
_hisi_zip_create_req:                   ## @hisi_zip_create_req
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rsi), %r15
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	movq	(%rdi,%rax,8), %rdx
	movq	16(%rdi,%rax,8), %rdi
	subq	%r14, %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rsi
	callq	_get_sg_skip_bytes
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
	jmp	LBB0_2
LBB0_3:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	callq	_kfree
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_write_lock
	movl	8(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_find_first_zero_bit
	cmpl	8(%rbx), %eax
	jge	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movl	16(%rbx), %esi
	movl	%eax, %edi
	callq	_set_bit
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, (%rdi,%rax)
	movq	%r13, 40(%rdi,%rax)
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	24(%r13), %rcx
	movq	%rcx, 32(%rdi,%rax)
	movq	-56(%rbp), %r8
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	subq	%r14, %rdx
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	callq	_write_unlock
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	-56(%rbp), %rdi
	callq	_kfree
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-56(%rbp), %rcx
	movq	%rcx, 32(%rdi,%rax)
	movq	16(%r13), %r8
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	subq	%r14, %rsi
LBB0_8:
	leaq	(%rdi,%rax), %rbx
	movq	%r8, 24(%rdi,%rax)
	movq	%rsi, 8(%rdi,%rax)
	movq	%rdx, 16(%rdi,%rax)
	movq	%r12, %rdi
	callq	_write_unlock
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"req cache is full!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_hisi_zip_create_req
.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
_hisi_zip_create_req:                   ; @hisi_zip_create_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w3, #0
	cset	w8, eq
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #24]
	ldr	x25, [x1, #24]
	mov	w9, #16
	mov	w10, #24
	csel	x9, x10, x9, eq
	ldr	x0, [x0, x9]
	ldr	x8, [x20, w8, uxtw #3]
	sub	x2, x8, x2
	add	x3, sp, #8
	mov	x1, x19
	bl	_get_sg_skip_bytes
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_kfree
	add	x21, x22, #12
	mov	x0, x21
	bl	_write_lock
	ldr	w0, [x22, #16]
	ldr	w1, [x22, #8]
	bl	_find_first_zero_bit
	ldr	w8, [x22, #8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.2:
	mov	x24, x0
	ldr	w1, [x22, #16]
	bl	_set_bit
	sxtw	x8, w24
	mov	w9, #48
	smaddl	x22, w24, w9, x25
	str	w24, [x22]
	str	x20, [x22, #40]
	cbz	w23, LBB0_8
; %bb.3:
	ldr	x9, [x20, #24]
	mov	w10, #48
	madd	x10, x8, x10, x25
	str	x9, [x10, #32]
	ldr	x9, [sp, #16]
	ldp	x11, x10, [x20]
	sub	x11, x11, x19
	b	LBB0_9
LBB0_4:
	mov	x0, x21
	bl	_write_unlock
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [sp, #16]
	bl	_kfree
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	bl	_ERR_PTR
	mov	x22, x0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x9, [sp, #16]
	mov	w10, #48
	madd	x10, x8, x10, x25
	str	x9, [x10, #32]
	ldp	x10, x9, [x20, #8]
	ldr	x11, [x20]
	sub	x10, x10, x19
LBB0_9:
	mov	w12, #48
	madd	x8, x8, x12, x25
	stp	x11, x9, [x8, #16]
	str	x10, [x8, #8]
	mov	x0, x21
	bl	_write_unlock
	b	LBB0_6
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"req cache is full!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_hisi_zip_create_req
.subsections_via_symbols
