	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_V1_QueueReadWriteCommand
_DAC960_V1_QueueReadWriteCommand:       ## @DAC960_V1_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	24(%rdi), %r15
	movq	32(%rdi), %r12
	callq	_DAC960_V1_ClearCommand
	movl	(%r14), %eax
	movq	8(%r14), %rcx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	cmpq	%rdx, %rcx
	jne	LBB0_2
## %bb.3:
	movq	_DAC960_V1_Read@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	cmpq	%rdx, %rcx
	jne	LBB0_6
## %bb.7:
	movq	_DAC960_V1_ReadWithScatterGather@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	movq	_DAC960_V1_Write@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 68(%r14)
	movl	80(%r14), %eax
	movl	%eax, 64(%r14)
	movq	72(%r14), %rax
	movq	%rax, 56(%r14)
	movq	%r15, %rdi
	callq	_sg_dma_address
	movq	%rax, 48(%r14)
	jmp	LBB0_11
LBB0_6:
	movq	_DAC960_V1_WriteWithScatterGather@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movl	%ecx, 68(%r14)
	movl	80(%r14), %ecx
	movl	%ecx, 64(%r14)
	movq	16(%r14), %rcx
	movq	72(%r14), %rdx
	movq	%rdx, 56(%r14)
	movq	%rcx, 48(%r14)
	movl	%eax, 40(%r14)
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	addq	$8, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_sg_dma_address
	movq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_sg_dma_len
	movq	%rax, -8(%r12)
	incl	%ebx
	addq	$4, %r15
	addq	$16, %r12
	cmpl	(%r14), %ebx
	jl	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DAC960_QueueCommand            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,8,3         ## @PCI_DMA_FROMDEVICE
	.comm	_DAC960_V1_Read,4,2             ## @DAC960_V1_Read
	.comm	_DAC960_V1_Write,4,2            ## @DAC960_V1_Write
	.comm	_DAC960_V1_ReadWithScatterGather,4,2 ## @DAC960_V1_ReadWithScatterGather
	.comm	_DAC960_V1_WriteWithScatterGather,4,2 ## @DAC960_V1_WriteWithScatterGather
	.no_dead_strip	_DAC960_V1_QueueReadWriteCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DAC960_V1_QueueReadWriteCommand
_DAC960_V1_QueueReadWriteCommand:       ; @DAC960_V1_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
	ldp	x20, x22, [x0, #24]
	bl	_DAC960_V1_ClearCommand
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x10, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DAC960_V1_Read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAC960_V1_Read@GOTPAGEOFF]
Lloh5:
	adrp	x11, _DAC960_V1_Write@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DAC960_V1_Write@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x8, x11, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #80]
	stp	w9, w8, [x19, #64]
	ldr	d0, [x19, #72]
	str	d0, [x19, #56]
	mov	x0, x20
	bl	_sg_dma_address
	str	x0, [x19, #48]
	b	LBB0_5
LBB0_2:
Lloh7:
	adrp	x11, _DAC960_V1_ReadWithScatterGather@GOTPAGE
Lloh8:
	ldr	x11, [x11, _DAC960_V1_ReadWithScatterGather@GOTPAGEOFF]
Lloh9:
	adrp	x12, _DAC960_V1_WriteWithScatterGather@GOTPAGE
Lloh10:
	ldr	x12, [x12, _DAC960_V1_WriteWithScatterGather@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	ldr	w10, [x19, #80]
	stp	w10, w9, [x19, #64]
	ldr	d0, [x19, #72]
	str	d0, [x19, #56]
	ldr	x9, [x19, #16]
	str	x9, [x19, #48]
	str	w8, [x19, #40]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
	add	x22, x22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sg_dma_address
	str	x0, [x22]
	mov	x0, x20
	bl	_sg_dma_len
	stur	x0, [x22, #-8]
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	add	x22, x22, #16
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,8,3         ; @PCI_DMA_FROMDEVICE
	.comm	_DAC960_V1_Read,4,2             ; @DAC960_V1_Read
	.comm	_DAC960_V1_Write,4,2            ; @DAC960_V1_Write
	.comm	_DAC960_V1_ReadWithScatterGather,4,2 ; @DAC960_V1_ReadWithScatterGather
	.comm	_DAC960_V1_WriteWithScatterGather,4,2 ; @DAC960_V1_WriteWithScatterGather
	.no_dead_strip	_DAC960_V1_QueueReadWriteCommand
.subsections_via_symbols
