	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_DARQ_to_DARF
_pack_DARQ_to_DARF:                     ## @pack_DARQ_to_DARF
	.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
	movl	%edi, %r14d
	movq	_dev@GOTPCREL(%rip), %r12
	movq	_JQS_wTail@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readw
	movl	%eax, %ebx
	movq	_DAQDS__size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCTODSP_OFFSET
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	_JQS_wSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_readw
	xorl	%ebx, %ebx
	cmpl	%eax, %r15d
	cmovlel	%r15d, %ebx
	movq	_JQS_wHead@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	24(%r12), %rdi
	callq	_readw
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.1:
	movl	$-2, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	24(%r12), %rdi
	callq	_readw
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r13), %eax
	testl	%r13d, %r13d
	movl	%eax, %r13d
	jne	LBB0_2
LBB0_4:
	movq	_JQS_wTail@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	movl	%ebx, %edi
	callq	_writew
	movq	_DAQDS__size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movslq	%r14d, %rbx
	imulq	%rbx, %rdi
	addq	8(%r12), %rdi
	movq	_DARQ_DATA_BUFF@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_DAQDS_wSize@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_readw
	movl	%eax, %r14d
	movq	_HPBLKSEL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HP_BLKS@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	callq	_msnd_outb
	movq	_DAR_BUFF_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	imulq	%rbx, %rsi
	addq	8(%r12), %rsi
	leaq	16(%r12), %rdi
	movl	%r14d, %edx
	callq	_msnd_fifo_write_io
	movq	_HPBLKSEL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	(%r12), %rsi
	callq	_msnd_outb
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,32,3                       ## @dev
	.comm	_JQS_wTail,8,3                  ## @JQS_wTail
	.comm	_DAQDS__size,4,2                ## @DAQDS__size
	.comm	_JQS_wSize,8,3                  ## @JQS_wSize
	.comm	_JQS_wHead,8,3                  ## @JQS_wHead
	.comm	_DARQ_DATA_BUFF,8,3             ## @DARQ_DATA_BUFF
	.comm	_DAQDS_wSize,8,3                ## @DAQDS_wSize
	.comm	_HPBLKSEL_1,4,2                 ## @HPBLKSEL_1
	.comm	_HP_BLKS,8,3                    ## @HP_BLKS
	.comm	_DAR_BUFF_SIZE,4,2              ## @DAR_BUFF_SIZE
	.comm	_HPBLKSEL_0,4,2                 ## @HPBLKSEL_0
	.no_dead_strip	_pack_DARQ_to_DARF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_DARQ_to_DARF
_pack_DARQ_to_DARF:                     ; @pack_DARQ_to_DARF
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _dev@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dev@GOTPAGEOFF]
	ldr	x8, [x21, #24]
Lloh2:
	adrp	x22, _JQS_wTail@GOTPAGE
Lloh3:
	ldr	x22, [x22, _JQS_wTail@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readw
	mov	x20, x0
Lloh4:
	adrp	x23, _DAQDS__size@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DAQDS__size@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_PCTODSP_OFFSET
	add	w20, w0, w20
	ldr	x8, [x21, #24]
Lloh6:
	adrp	x9, _JQS_wSize@GOTPAGE
Lloh7:
	ldr	x9, [x9, _JQS_wSize@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readw
	cmp	w20, w0
	csel	w20, wzr, w20, gt
	ldr	x8, [x21, #24]
Lloh9:
	adrp	x24, _JQS_wHead@GOTPAGE
Lloh10:
	ldr	x24, [x24, _JQS_wHead@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readw
	cmp	w20, w0
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x21, #24]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readw
	cmp	w20, w0
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x21, #24]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readw
	cmp	w20, w0
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x21, #24]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readw
LBB0_4:
	ldr	x8, [x21, #24]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writew
	ldrsw	x8, [x23]
	sxtw	x20, w19
	ldr	x9, [x21, #8]
	madd	x8, x8, x20, x9
Lloh11:
	adrp	x9, _DARQ_DATA_BUFF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DARQ_DATA_BUFF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _DAQDS_wSize@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DAQDS_wSize@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x0, x8, x10
	bl	_readw
	mov	x19, x0
Lloh17:
	adrp	x8, _HPBLKSEL_1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPBLKSEL_1@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x21]
Lloh20:
	adrp	x22, _HP_BLKS@GOTPAGE
Lloh21:
	ldr	x22, [x22, _HP_BLKS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_msnd_outb
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _DAR_BUFF_SIZE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DAR_BUFF_SIZE@GOTPAGEOFF]
Lloh24:
	ldrsw	x9, [x9]
	madd	x1, x9, x20, x8
	add	x0, x21, #16
	mov	x2, x19
	bl	_msnd_fifo_write_io
Lloh25:
	adrp	x8, _HPBLKSEL_0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HPBLKSEL_0@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_msnd_outb
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,32,3                       ; @dev
	.comm	_JQS_wTail,8,3                  ; @JQS_wTail
	.comm	_DAQDS__size,4,2                ; @DAQDS__size
	.comm	_JQS_wSize,8,3                  ; @JQS_wSize
	.comm	_JQS_wHead,8,3                  ; @JQS_wHead
	.comm	_DARQ_DATA_BUFF,8,3             ; @DARQ_DATA_BUFF
	.comm	_DAQDS_wSize,8,3                ; @DAQDS_wSize
	.comm	_HPBLKSEL_1,4,2                 ; @HPBLKSEL_1
	.comm	_HP_BLKS,8,3                    ; @HP_BLKS
	.comm	_DAR_BUFF_SIZE,4,2              ; @DAR_BUFF_SIZE
	.comm	_HPBLKSEL_0,4,2                 ; @HPBLKSEL_0
	.no_dead_strip	_pack_DARQ_to_DARF
.subsections_via_symbols
