	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %r14
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_XMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	24(%r12), %rax
	testq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.5:
	movl	(%rax), %ebx
	movslq	8(%r12), %r15
	subl	%r15d, %ebx
	jle	LBB0_15
## %bb.6:
	shlq	$2, %r15
	addq	8(%rax), %r15
	movq	_W_B_FIFO_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jle	LBB0_3
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_FLG_TX_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	(%r12), %r15
	movq	_W_B_FIFO_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	_FLG_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_W_B_CMDR_XME@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_8:
	movq	(%r14), %rsi
	movl	8(%r12), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	addl	%ebx, 8(%r12)
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_9
## %bb.12:
	movq	_W_B_XFIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%r12), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_outsb
	jmp	LBB0_13
LBB0_9:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.10:
	movq	_MISDN_BCH_FILL_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_W_B_XFIFO@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	40(%r12), %rdi
	movq	%r15, %rsi
	callq	_outsb
	movl	(%r13), %edx
	subl	%edx, %ebx
	jg	LBB0_11
LBB0_13:
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_WriteW6692B
	movq	_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_HW_BFIFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movl	8(%r14), %edi
	movl	12(%r12), %ecx
	movq	(%r14), %r8
	leaq	L_.str.2(%rip), %rdx
	movl	$63, %esi
	movl	%ebx, %r9d
	callq	_snprintf
	movl	8(%r14), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_hex_dump_bytes           ## TAILCALL
LBB0_15:
	addq	$24, %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	_FLG_TX_EMPTY,4,2               ## @FLG_TX_EMPTY
	.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	_MISDN_BCH_FILL_SIZE,4,2        ## @MISDN_BCH_FILL_SIZE
	.comm	_W_B_CMDR,4,2                   ## @W_B_CMDR
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW_BFIFO,4,2             ## @DEBUG_HW_BFIFO
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, #96
	.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
	mov	x19, x0
	ldr	x23, [x0, #32]
Lloh0:
	adrp	x8, _W_B_CMDR_RACT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _W_B_CMDR_XMS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _W_B_CMDR_XMS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	x1, [x23]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x24, [x19, #24]
	cbz	x24, LBB0_4
; %bb.1:
	ldr	w9, [x24]
	ldrsw	x8, [x19, #8]
	sub	w21, w9, w8
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.2:
	ldr	x9, [x24, #8]
	add	x22, x9, x8, lsl #2
Lloh8:
	adrp	x8, _W_B_FIFO_THRESH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W_B_FIFO_THRESH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_6
; %bb.3:
	mov	x21, x8
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _FLG_TX_EMPTY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLG_TX_EMPTY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_14
; %bb.5:
	ldr	x22, [x19]
Lloh14:
	adrp	x8, _W_B_FIFO_THRESH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _W_B_FIFO_THRESH@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
LBB0_6:
Lloh17:
	adrp	x8, _FLG_HDLC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FLG_HDLC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
Lloh20:
	adrp	x8, _W_B_CMDR_XME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _W_B_CMDR_XME@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_8:
	ldr	x1, [x23]
	ldr	w8, [x19, #8]
	stp	x21, x8, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #8]
	add	w8, w8, w21
	str	w8, [x19, #8]
	cbz	x24, LBB0_10
; %bb.9:
	ldr	x8, [x19, #40]
Lloh25:
	adrp	x9, _W_B_XFIFO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _W_B_XFIFO@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x22
	mov	x2, x21
	bl	_outsb
	b	LBB0_13
LBB0_10:
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.11:
Lloh28:
	adrp	x25, _MISDN_BCH_FILL_SIZE@GOTPAGE
Lloh29:
	ldr	x25, [x25, _MISDN_BCH_FILL_SIZE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh30:
	adrp	x26, _W_B_XFIFO@GOTPAGE
Lloh31:
	ldr	x26, [x26, _W_B_XFIFO@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x9, [x26]
	add	x0, x9, x8
	mov	x1, x22
	bl	_outsb
	ldr	w2, [x25]
	sub	w21, w21, w2
	cmp	w21, #0
	b.gt	LBB0_12
LBB0_13:
Lloh32:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WriteW6692B
Lloh35:
	adrp	x8, _debug@GOTPAGE
Lloh36:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _DEBUG_HW_BFIFO@GOTPAGE
Lloh39:
	ldr	x9, [x9, _DEBUG_HW_BFIFO@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x24, #0, #4, ne
	b.ne	LBB0_15
LBB0_14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	w0, [x23, #8]
	ldr	w3, [x19, #12]
	ldr	x4, [x23]
Lloh41:
	adrp	x2, l_.str.2@PAGE
Lloh42:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #63
	mov	x5, x21
	bl	_snprintf
Lloh43:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	w0, [x23, #8]
Lloh45:
	ldr	w1, [x8]
	mov	x2, x22
	mov	x3, x21
	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
	add	sp, sp, #96
	b	_print_hex_dump_bytes
	.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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.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	_FLG_TX_EMPTY,4,2               ; @FLG_TX_EMPTY
	.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	_MISDN_BCH_FILL_SIZE,4,2        ; @MISDN_BCH_FILL_SIZE
	.comm	_W_B_CMDR,4,2                   ; @W_B_CMDR
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW_BFIFO,4,2             ; @DEBUG_HW_BFIFO
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
