	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_zip_acomp_cb
_hisi_zip_acomp_cb:                     ## @hisi_zip_acomp_cb
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %r15
	movslq	(%rsi), %rcx
	leaq	(%rcx,%rcx,2), %r13
	leaq	(%r15,%r13,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r15,%r13,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rdi
	movq	_HZIP_BD_STATUS_M@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, %r14d
	andl	4(%rsi), %r8d
	je	LBB0_3
## %bb.1:
	movq	_HZIP_NC_ERR@GOTPCREL(%rip), %rax
	movl	$0, %r14d
	cmpl	(%rax), %r8d
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	12(%rbx), %ecx
	movl	8(%r12), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%rdi, %r14
	callq	_dev_err
	movq	%r14, %rdi
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15,%r13,8), %edx
	movl	12(%r15,%r13,8), %esi
	movq	%rdi, %r12
	callq	_hisi_acc_sg_buf_unmap
	movl	4(%r15,%r13,8), %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_hisi_acc_sg_buf_unmap
	cmpq	$0, (%rbx)
	movl	$0, %eax
	jne	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	callq	_TO_HEAD_SIZE
LBB0_5:
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.6:
	movl	%r14d, %esi
	callq	_acomp_request_complete
LBB0_7:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hisi_zip_remove_req            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HZIP_BD_STATUS_M,4,2           ## @HZIP_BD_STATUS_M
	.comm	_HZIP_NC_ERR,4,2                ## @HZIP_NC_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%scompress fail in qp%u: %u, output: %u\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"de"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_hisi_zip_acomp_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_zip_acomp_cb
_hisi_zip_acomp_cb:                     ; @hisi_zip_acomp_cb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x1
	mov	x22, x0
	ldp	x8, x19, [x0, #16]
	ldr	x26, [x19]
	mov	w9, #24
	ldp	w27, w10, [x1]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	madd	x20, x27, x9, x26
	ldr	x21, [x20, #16]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _HZIP_BD_STATUS_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZIP_BD_STATUS_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w4, w8, w10
Lloh3:
	adrp	x8, _HZIP_NC_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZIP_NC_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w4, #0
	ccmp	w4, w8, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w25, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.1@PAGE
Lloh9:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	ldr	w3, [x22, #12]
	ldr	w5, [x24, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_3:
	ldr	w24, [x24, #8]
	mov	w8, #24
	madd	x26, x27, x8, x26
	ldp	w2, w1, [x26, #8]
	mov	x0, x23
	bl	_hisi_acc_sg_buf_unmap
	ldr	w1, [x26, #4]
	ldr	w2, [x20]
	mov	x0, x23
	bl	_hisi_acc_sg_buf_unmap
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x22, #8]
	bl	_TO_HEAD_SIZE
LBB0_6:
	add	w8, w0, w24
	str	w8, [x21]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x25
	bl	_acomp_request_complete
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hisi_zip_remove_req
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HZIP_BD_STATUS_M,4,2           ; @HZIP_BD_STATUS_M
	.comm	_HZIP_NC_ERR,4,2                ; @HZIP_NC_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%scompress fail in qp%u: %u, output: %u\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"de"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_hisi_zip_acomp_cb
.subsections_via_symbols
