	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_softirq_done
_cciss_softirq_done:                    ## @cciss_softirq_done
	.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
	movq	24(%rdi), %r15
	movq	_hba@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	32(%r15), %rdx
	movq	_XFER_READ@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	(%rax,%rcx,8), %rbx
	cmpl	$0, 24(%r15)
	jle	LBB0_8
## %bb.4:
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	40(%r15), %r13
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %r12
	movq	8(%rbx), %rdi
	leaq	(%r12,%r12,2), %rax
	movl	8(%r13,%rax,8), %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pci_unmap_page
	incl	%r12d
	incl	%r14d
	cmpl	24(%r15), %r14d
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%r13,%rax,8), %rax
	movq	_CCISS_SG_CHAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cciss_unmap_sg_chain_block
	movq	16(%rbx), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_8:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_dev_dbg
	movq	(%r14), %rax
	movq	_REQ_TYPE_BLOCK_PC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	subl	(%rax), %esi
	cmpq	$0, 8(%r14)
	cmovel	%ecx, %esi
	movq	%r14, %rdi
	callq	_blk_end_request_all
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cmd_free
	movq	%rbx, %rdi
	callq	_cciss_check_queues
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hba,8,3                        ## @hba
	.comm	_XFER_READ,8,3                  ## @XFER_READ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_CCISS_SG_CHAIN,8,3             ## @CCISS_SG_CHAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Done with %p\n"

	.comm	_REQ_TYPE_BLOCK_PC,8,3          ## @REQ_TYPE_BLOCK_PC
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cciss_softirq_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cciss_softirq_done
_cciss_softirq_done:                    ; @cciss_softirq_done
	.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	x21, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _hba@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hba@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x19, [x8, x9, lsl #3]
	ldr	x8, [x20, #32]
Lloh3:
	adrp	x9, _XFER_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XFER_READ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w9, [x20, #24]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w24, #0
	mov	w23, #0
	ldr	w22, [x8]
	ldr	x27, [x20, #40]
	mov	w25, #24
Lloh10:
	adrp	x26, _CCISS_SG_CHAIN@GOTPAGE
Lloh11:
	ldr	x26, [x26, _CCISS_SG_CHAIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	smaddl	x8, w24, w25, x27
	ldr	w2, [x8, #8]
	mov	x3, x22
	bl	_pci_unmap_page
	add	w24, w24, #1
	add	w23, w23, #1
	ldr	w8, [x20, #24]
	cmp	w23, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	smull	x8, w24, w25
	ldr	x8, [x27, x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_cciss_unmap_sg_chain_block
	mov	w24, #0
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #8]
	ldr	x27, [x8, x9, lsl #3]
	b	LBB0_2
LBB0_5:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _REQ_TYPE_BLOCK_PC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REQ_TYPE_BLOCK_PC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	str	w8, [x21, #16]
LBB0_7:
	ldr	x8, [x21, #8]
Lloh17:
	adrp	x9, _EIO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w1, wzr, w9, eq
	mov	x0, x21
	bl	_blk_end_request_all
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_cmd_free
	mov	x0, x19
	bl	_cciss_check_queues
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_hba,8,3                        ; @hba
	.comm	_XFER_READ,8,3                  ; @XFER_READ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_CCISS_SG_CHAIN,8,3             ; @CCISS_SG_CHAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Done with %p\n"

	.comm	_REQ_TYPE_BLOCK_PC,8,3          ; @REQ_TYPE_BLOCK_PC
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cciss_softirq_done
.subsections_via_symbols
