	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function W6692_fill_Bfifo
_W6692_fill_Bfifo:                      ## @W6692_fill_Bfifo
	.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	%rdi, %rbx
	movq	24(%rdi), %r13
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_XMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rax), %r14d
	movslq	(%rbx), %r15
	subl	%r15d, %r14d
	jle	LBB0_7
## %bb.2:
	shlq	$2, %r15
	addq	8(%rax), %r15
	movq	_W_B_FIFO_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jle	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	_FLG_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_W_B_CMDR_XME@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_6:
	movq	(%r13), %rsi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	addl	%r14d, (%rbx)
	movq	_W_B_XFIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%rbx), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_outsb
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_WriteW6692B
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_HW_DFIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.8:
	movl	8(%r13), %edi
	movl	4(%rbx), %ecx
	movq	(%r13), %r8
	leaq	L_.str.2(%rip), %rdx
	movl	$63, %esi
	movl	%r14d, %r9d
	callq	_snprintf
	movl	8(%r13), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_hex_dump_bytes           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W_B_CMDR_RACT,4,2              ## @W_B_CMDR_RACT
	.comm	_W_B_CMDR_XMS,4,2               ## @W_B_CMDR_XMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: fill Bfifo\n"

	.comm	_W_B_FIFO_THRESH,4,2            ## @W_B_FIFO_THRESH
	.comm	_FLG_HDLC,4,2                   ## @FLG_HDLC
	.comm	_W_B_CMDR_XME,4,2               ## @W_B_CMDR_XME
L_.str.1:                               ## @.str.1
	.asciz	"%s: fill Bfifo%d/%d\n"

	.comm	_W_B_XFIFO,8,3                  ## @W_B_XFIFO
	.comm	_W_B_CMDR,4,2                   ## @W_B_CMDR
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW_DFIFO,4,2             ## @DEBUG_HW_DFIFO
L_.str.2:                               ## @.str.2
	.asciz	"B%1d-send %s %d "

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function W6692_fill_Bfifo
_W6692_fill_Bfifo:                      ; @W6692_fill_Bfifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, _W_B_CMDR_RACT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W_B_CMDR_RACT@GOTPAGEOFF]
	ldr	x23, [x0, #24]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _W_B_CMDR_XMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W_B_CMDR_XMS@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x1, [x23]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w10, [x8]
	ldrsw	x9, [x19]
	sub	w20, w10, w9
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.2:
	orr	w22, w22, w21
	ldr	x8, [x8, #8]
	add	x21, x8, x9, lsl #2
Lloh8:
	adrp	x8, _W_B_FIFO_THRESH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W_B_FIFO_THRESH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_4
; %bb.3:
	mov	x20, x8
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _FLG_HDLC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLG_HDLC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _W_B_CMDR_XME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W_B_CMDR_XME@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_6:
	ldr	x1, [x23]
	ldr	w8, [x19]
	stp	x20, x8, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	ldr	x8, [x19, #32]
Lloh19:
	adrp	x9, _W_B_XFIFO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _W_B_XFIFO@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x21
	mov	x2, x20
	bl	_outsb
Lloh22:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_WriteW6692B
Lloh25:
	adrp	x8, _debug@GOTPAGE
Lloh26:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _DEBUG_HW_DFIFO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DEBUG_HW_DFIFO@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x23, #8]
	ldr	w3, [x19, #4]
	ldr	x4, [x23]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #63
	mov	x5, x20
	bl	_snprintf
Lloh33:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	w0, [x23, #8]
Lloh35:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_print_hex_dump_bytes
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_W_B_CMDR_RACT,4,2              ; @W_B_CMDR_RACT
	.comm	_W_B_CMDR_XMS,4,2               ; @W_B_CMDR_XMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: fill Bfifo\n"

	.comm	_W_B_FIFO_THRESH,4,2            ; @W_B_FIFO_THRESH
	.comm	_FLG_HDLC,4,2                   ; @FLG_HDLC
	.comm	_W_B_CMDR_XME,4,2               ; @W_B_CMDR_XME
l_.str.1:                               ; @.str.1
	.asciz	"%s: fill Bfifo%d/%d\n"

	.comm	_W_B_XFIFO,8,3                  ; @W_B_XFIFO
	.comm	_W_B_CMDR,4,2                   ; @W_B_CMDR
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW_DFIFO,4,2             ; @DEBUG_HW_DFIFO
l_.str.2:                               ; @.str.2
	.asciz	"B%1d-send %s %d "

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