	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_V2_QueueReadWriteCommand
_DAC960_V2_QueueReadWriteCommand:       ## @DAC960_V2_QueueReadWriteCommand
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %r15
	movq	128(%rdi), %rbx
	callq	_DAC960_V2_ClearCommand
	movq	_DAC960_V2_SCSI_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r14)
	movq	(%r14), %rax
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setne	%dl
	sete	%sil
	movl	%esi, 104(%r14)
	movl	8(%r14), %eax
	movq	_DAC960_BlockSizeBits@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, 64(%r14)
	movl	48(%r14), %eax
	movl	%eax, 116(%r14)
	movq	(%rbx), %rax
	movq	16(%r14), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 112(%r14)
	movabsq	$42949672964, %rax              ## imm = 0xA00000004
	movq	%rax, 68(%r14)
	leal	40(%rdx,%rdx), %eax
	movq	80(%r14), %rcx
	movl	%eax, (%rcx)
	movsbl	27(%r14), %eax
	movl	%eax, 8(%rcx)
	movswl	26(%r14), %eax
	movl	%eax, 12(%rcx)
	movl	24(%r14), %eax
	sarl	$8, %eax
	movl	%eax, 16(%rcx)
	movl	24(%r14), %eax
	movl	%eax, 20(%rcx)
	movl	8(%r14), %eax
	sarl	$8, %eax
	movl	%eax, 28(%rcx)
	movl	8(%r14), %eax
	movl	%eax, 32(%rcx)
	movl	28(%r14), %eax
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_sg_dma_address
	movq	88(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	64(%r14), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_2:
	cmpl	$3, %eax
	jl	LBB0_4
## %bb.3:
	movq	40(%r14), %r12
	movl	$1, 108(%r14)
	movl	%eax, 96(%r14)
	movl	32(%r14), %eax
	movl	%eax, 100(%r14)
	jmp	LBB0_6
LBB0_4:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	movq	88(%r14), %r12
LBB0_6:
	addq	$8, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_sg_dma_address
	movq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_sg_dma_len
	movl	%eax, -8(%r12)
	incl	%ebx
	addq	$4, %r15
	addq	$16, %r12
	cmpl	28(%r14), %ebx
	jl	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DAC960_QueueCommand            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_V2_SCSI_10,4,2          ## @DAC960_V2_SCSI_10
	.comm	_PCI_DMA_FROMDEVICE,8,3         ## @PCI_DMA_FROMDEVICE
	.comm	_DAC960_BlockSizeBits,4,2       ## @DAC960_BlockSizeBits
	.no_dead_strip	_DAC960_V2_QueueReadWriteCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function DAC960_V2_QueueReadWriteCommand
lCPI0_0:
	.long	4                               ; 0x4
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_DAC960_V2_QueueReadWriteCommand:       ; @DAC960_V2_QueueReadWriteCommand
	.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	x19, x0
	ldr	x21, [x0, #128]
	ldr	x20, [x0, #56]
	bl	_DAC960_V2_ClearCommand
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19, #104]
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _DAC960_BlockSizeBits@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DAC960_BlockSizeBits@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _DAC960_V2_SCSI_10@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DAC960_V2_SCSI_10@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w8, [x19, #64]
	ldr	w8, [x19, #48]
	stp	w8, w9, [x19, #116]
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #112]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #68]
	mov	w8, #42
	mov	w9, #40
	csel	w8, w9, w8, eq
	ldr	x9, [x19, #80]
	str	w8, [x9]
	ldrsb	w8, [x19, #27]
	str	w8, [x9, #8]
	ldrsh	w8, [x19, #26]
	str	w8, [x9, #12]
	ldr	w8, [x19, #24]
	asr	w8, w8, #8
	str	w8, [x9, #16]
	ldr	w8, [x19, #24]
	str	w8, [x9, #20]
	ldr	w8, [x19, #8]
	asr	w8, w8, #8
	str	w8, [x9, #28]
	ldr	w8, [x19, #8]
	str	w8, [x9, #32]
	ldr	w8, [x19, #28]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sg_dma_address
	ldr	x8, [x19, #88]
	str	x0, [x8, #8]
	ldr	w9, [x19, #64]
	str	w9, [x8]
	b	LBB0_8
LBB0_2:
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.3:
	ldr	x9, [x19, #40]
	mov	w10, #1
	str	w10, [x19, #108]
	ldr	w10, [x19, #32]
	stp	w8, w10, [x19, #96]
	b	LBB0_6
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x9, [x19, #88]
LBB0_6:
	mov	w21, #0
	add	x22, x9, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sg_dma_address
	str	x0, [x22]
	mov	x0, x20
	bl	_sg_dma_len
	stur	w0, [x22, #-8]
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19, #28]
	add	x22, x22, #16
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x19
	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	_DAC960_QueueCommand
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_V2_SCSI_10,4,2          ; @DAC960_V2_SCSI_10
	.comm	_PCI_DMA_FROMDEVICE,8,3         ; @PCI_DMA_FROMDEVICE
	.comm	_DAC960_BlockSizeBits,4,2       ; @DAC960_BlockSizeBits
	.no_dead_strip	_DAC960_V2_QueueReadWriteCommand
.subsections_via_symbols
