	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function W6692_fill_Dfifo
_W6692_fill_Dfifo:                      ## @W6692_fill_Dfifo
	.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, %rbx
	movq	_W_D_CMDR_XMS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rax), %edx
	movslq	24(%rbx), %rcx
	subl	%ecx, %edx
	jle	LBB0_5
## %bb.2:
	movq	_W_D_FIFO_THRESH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	xorl	%r12d, %r12d
	cmpl	%r14d, %edx
	movq	_W_D_CMDR_XME@GOTPCREL(%rip), %rsi
	cmovlel	(%rsi), %r12d
	cmovll	%edx, %r14d
	orl	%r15d, %r12d
	movq	%rcx, %r15
	shlq	$2, %r15
	addq	8(%rax), %r15
	leal	(%r14,%rcx), %eax
	movl	%eax, 24(%rbx)
	movq	_W_D_XFIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_outsb
	movq	_W_D_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_WriteW6692
	movq	_FLG_BUSY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	leaq	32(%rbx), %rdi
	callq	_del_timer
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_DBUSY_TIMER_VALUE@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	(%rcx), %edx
	movslq	%edx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	leaq	32(%rbx), %rdi
	movq	%rcx, 32(%rbx)
	callq	_add_timer
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_HW_DFIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.6:
	movl	8(%rbx), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	movl	$63, %esi
	movl	%r14d, %r8d
	callq	_snprintf
	movl	8(%rbx), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_hex_dump_bytes           ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W_D_CMDR_XMS,4,2               ## @W_D_CMDR_XMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: fill_Dfifo\n"

	.comm	_W_D_FIFO_THRESH,4,2            ## @W_D_FIFO_THRESH
	.comm	_W_D_CMDR_XME,4,2               ## @W_D_CMDR_XME
	.comm	_W_D_XFIFO,8,3                  ## @W_D_XFIFO
	.comm	_W_D_CMDR,4,2                   ## @W_D_CMDR
	.comm	_FLG_BUSY_TIMER,4,2             ## @FLG_BUSY_TIMER
L_.str.1:                               ## @.str.1
	.asciz	"%s: fill_Dfifo dbusytimer running\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DBUSY_TIMER_VALUE,4,2          ## @DBUSY_TIMER_VALUE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW_DFIFO,4,2             ## @DEBUG_HW_DFIFO
L_.str.2:                               ## @.str.2
	.asciz	"D-send %s %d "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.no_dead_strip	_W6692_fill_Dfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function W6692_fill_Dfifo
_W6692_fill_Dfifo:                      ; @W6692_fill_Dfifo
	.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
Lloh0:
	adrp	x8, _W_D_CMDR_XMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W_D_CMDR_XMS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x1, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w10, [x8]
	ldrsw	x9, [x19, #24]
	sub	w10, w10, w9
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.2:
Lloh5:
	adrp	x11, _W_D_FIFO_THRESH@GOTPAGE
Lloh6:
	ldr	x11, [x11, _W_D_FIFO_THRESH@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
Lloh8:
	adrp	x12, _W_D_CMDR_XME@GOTPAGE
Lloh9:
	ldr	x12, [x12, _W_D_CMDR_XME@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	cmp	w10, w11
	csel	w20, w10, w11, lt
	csel	w10, wzr, w12, gt
	orr	w22, w10, w21
	ldr	x8, [x8, #8]
	add	x21, x8, x9, lsl #2
	add	w8, w20, w9
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _W_D_XFIFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _W_D_XFIFO@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x20
	bl	_outsb
Lloh14:
	adrp	x8, _W_D_CMDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W_D_CMDR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_WriteW6692
Lloh17:
	adrp	x8, _FLG_BUSY_TIMER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLG_BUSY_TIMER@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x19
	ldr	x1, [x22], #32
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x22
	bl	_del_timer
LBB0_4:
Lloh22:
	adrp	x8, _jiffies@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _DBUSY_TIMER_VALUE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DBUSY_TIMER_VALUE@GOTPAGEOFF]
Lloh27:
	adrp	x10, _HZ@GOTPAGE
Lloh28:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #6
	add	x8, x8, w9, sxtw
	mov	x0, x19
	str	x8, [x0, #32]!
	bl	_add_timer
Lloh31:
	adrp	x8, _debug@GOTPAGE
Lloh32:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _DEBUG_HW_DFIFO@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DEBUG_HW_DFIFO@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	ldr	x3, [x19]
Lloh37:
	adrp	x2, l_.str.2@PAGE
Lloh38:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #63
	mov	x4, x20
	bl	_snprintf
Lloh39:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	w0, [x19, #8]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	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	_print_hex_dump_bytes
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_W_D_CMDR_XMS,4,2               ; @W_D_CMDR_XMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: fill_Dfifo\n"

	.comm	_W_D_FIFO_THRESH,4,2            ; @W_D_FIFO_THRESH
	.comm	_W_D_CMDR_XME,4,2               ; @W_D_CMDR_XME
	.comm	_W_D_XFIFO,8,3                  ; @W_D_XFIFO
	.comm	_W_D_CMDR,4,2                   ; @W_D_CMDR
	.comm	_FLG_BUSY_TIMER,4,2             ; @FLG_BUSY_TIMER
l_.str.1:                               ; @.str.1
	.asciz	"%s: fill_Dfifo dbusytimer running\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DBUSY_TIMER_VALUE,4,2          ; @DBUSY_TIMER_VALUE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW_DFIFO,4,2             ; @DEBUG_HW_DFIFO
l_.str.2:                               ; @.str.2
	.asciz	"D-send %s %d "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.no_dead_strip	_W6692_fill_Dfifo
.subsections_via_symbols
