	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_acompress
_hisi_zip_acompress:                    ## @hisi_zip_acompress
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_crypto_tfm_ctx
	movq	(%rax), %r14
	movq	_QPC_COMP@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%rbx), %edi
	movq	(%r14,%r15,8), %rax
	movl	(%rax), %esi
	callq	_add_comp_head
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	(%r14,%r15,8), %r14
	movl	%eax, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_hisi_zip_create_req
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hisi_zip_do_work
	movl	%eax, %ebx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hisi_zip_remove_req
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QPC_COMP,8,3                   ## @QPC_COMP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_hisi_zip_acompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_acompress
_hisi_zip_acompress:                    ; @hisi_zip_acompress
	.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	x20, x0
	ldr	w0, [x0, #4]
	bl	_crypto_tfm_ctx
Lloh0:
	adrp	x8, _QPC_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QPC_COMP@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	add	x19, x9, x8, lsl #3
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_add_comp_head
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w2, w0
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_hisi_zip_create_req
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_hisi_zip_do_work
	mov	x21, x0
Lloh6:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_hisi_zip_remove_req
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QPC_COMP,8,3                   ; @QPC_COMP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_hisi_zip_acompress
.subsections_via_symbols
