	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_process_queue
_DAC960_process_queue:                  ## @DAC960_process_queue
	.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
	pushq	%rax
	.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, %r15
	movq	%rsi, %rdi
	callq	_blk_peek_request
	movq	%rax, %r13
	movl	$1, %eax
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_DAC960_AllocateCommand
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_rq_data_dir
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_DAC960_WriteCommand@GOTPCREL(%rip), %rax
	cmoveq	_DAC960_ReadCommand@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rcx
	cmoveq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 44(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 40(%rbx)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_blk_rq_pos
	movl	%eax, 36(%rbx)
	movq	%r13, %rdi
	callq	_blk_rq_sectors
	movl	%eax, 32(%rbx)
	movq	%r13, 24(%rbx)
	movq	%r13, %rdi
	callq	_blk_start_request
	movq	24(%rbx), %rsi
	movl	16(%rbx), %edx
	movq	%r12, %rdi
	callq	_blk_rq_map_sg
	movl	%eax, 12(%rbx)
	movl	(%r15), %edi
	movl	8(%rbx), %ecx
	movl	16(%rbx), %esi
	movl	%eax, %edx
	callq	_pci_map_sg
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_DAC960_QueueReadWriteCommand
	movq	%r12, %rdi
	callq	_blk_peek_request
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,8,3                       ## @READ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_DAC960_ReadCommand,4,2         ## @DAC960_ReadCommand
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_DAC960_WriteCommand,4,2        ## @DAC960_WriteCommand
	.no_dead_strip	_DAC960_process_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_process_queue
_DAC960_process_queue:                  ; @DAC960_process_queue
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_blk_peek_request
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x23, _READ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _READ@GOTPAGEOFF]
Lloh2:
	adrp	x24, _DAC960_ReadCommand@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DAC960_ReadCommand@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DAC960_WriteCommand@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DAC960_WriteCommand@GOTPAGEOFF]
Lloh6:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _PCI_DMA_TODEVICE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PCI_DMA_TODEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_DAC960_AllocateCommand
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	mov	x0, x22
	bl	_rq_data_dir
	ldr	x8, [x23]
	cmp	x0, x8
	csel	x8, x24, x25, eq
	ldr	w8, [x8]
	csel	x9, x26, x27, eq
	ldr	w9, [x9]
	str	w9, [x21, #8]
	str	w8, [x21, #44]
	ldr	w8, [x22, #8]
	str	w8, [x21, #40]
	ldr	x8, [x22]
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x0, x22
	bl	_blk_rq_pos
	str	w0, [x21, #36]
	mov	x0, x22
	bl	_blk_rq_sectors
	str	w0, [x21, #32]
	str	x22, [x21, #24]
	mov	x0, x22
	bl	_blk_start_request
	ldr	x1, [x21, #24]
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_blk_rq_map_sg
	mov	x2, x0
	str	w0, [x21, #12]
	ldr	w0, [x20]
	ldr	w1, [x21, #16]
	ldr	w3, [x21, #8]
	bl	_pci_map_sg
	str	w0, [x21, #12]
	mov	x0, x21
	bl	_DAC960_QueueReadWriteCommand
	mov	x0, x19
	bl	_blk_peek_request
	mov	x22, x0
	cbnz	x0, LBB0_2
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,8,3                       ; @READ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_DAC960_ReadCommand,4,2         ; @DAC960_ReadCommand
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_DAC960_WriteCommand,4,2        ; @DAC960_WriteCommand
	.no_dead_strip	_DAC960_process_queue
.subsections_via_symbols
