	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hscx_fill_fifo
_hscx_fill_fifo:                        ## @hscx_fill_fifo
	.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	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	(%rax), %r12d
	movslq	24(%rbx), %r14
	subl	%r14d, %r12d
	jle	LBB0_10
## %bb.4:
	shlq	$2, %r14
	addq	8(%rax), %r14
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	setne	%al
	movl	(%rbx), %r15d
	cmpl	%r15d, %r12d
	setg	%cl
	cmovll	%r12d, %r15d
	orb	%al, %cl
	movzbl	%cl, %r12d
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movl	28(%rbx), %edx
	movl	24(%rbx), %r8d
	movq	40(%rbx), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	callq	_pr_debug
	addl	%r15d, 24(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_FLG_TX_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	(%rbx), %r15d
	movq	8(%rbx), %r14
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memset
	movl	$1, %r12d
LBB0_5:
	movq	16(%rbx), %rax
	movq	_IPAC_TYPE_IPACX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_7
## %bb.6:
	movl	12(%rax), %edi
	movq	_IPACX_XFIFOB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	64(%rbx), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_waitforXFW
	movq	16(%rbx), %rax
	movq	64(%rbx), %rsi
	movl	12(%rax), %edi
LBB0_8:
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	*16(%rax)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	leal	(%rax,%rax), %esi
	addl	$8, %esi
	movq	%rbx, %rdi
	callq	_hscx_cmdr
	cmpq	$0, 40(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_DEBUG_HW_BFIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%rbx)
	je	LBB0_10
## %bb.11:
	movl	28(%rbx), %ecx
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	movq	(%rax), %r8
	leaq	L_.str.1(%rip), %rdx
	movl	$64, %esi
	movl	%r15d, %r9d
	callq	_snprintf
	movq	8(%rbx), %rdi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_hex_dump_bytes           ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLG_TX_EMPTY,4,2               ## @FLG_TX_EMPTY
	.comm	_FLG_TRANSPARENT,4,2            ## @FLG_TRANSPARENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: B%1d %d/%d/%d\n"

	.comm	_IPAC_TYPE_IPACX,4,2            ## @IPAC_TYPE_IPACX
	.comm	_IPACX_XFIFOB,8,3               ## @IPACX_XFIFOB
	.comm	_DEBUG_HW_BFIFO,4,2             ## @DEBUG_HW_BFIFO
L_.str.1:                               ## @.str.1
	.asciz	"B%1d-send %s %d "

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hscx_fill_fifo
_hscx_fill_fifo:                        ; @hscx_fill_fifo
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w10, [x8]
	ldrsw	x9, [x19, #24]
	sub	w21, w10, w9
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.2:
	ldr	x8, [x8, #8]
	add	x20, x8, x9, lsl #2
Lloh0:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_test_bit
	cmp	x0, #0
	cset	w8, ne
	ldr	w9, [x19]
	cmp	w21, w9
	csel	w21, w21, w9, lt
	cset	w9, gt
	orr	w22, w9, w8
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	ldp	w4, w2, [x19, #24]
	ldr	x8, [x19, #40]
	ldr	w5, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	ldr	w8, [x19, #24]
	add	w8, w8, w21
	str	w8, [x19, #24]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _FLG_TX_EMPTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLG_TX_EMPTY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.4:
	ldr	w21, [x19]
	ldr	x20, [x19, #8]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_memset
	mov	w22, #1
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
Lloh8:
	adrp	x10, _IPAC_TYPE_IPACX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IPAC_TYPE_IPACX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	x9, [x8, #16]
	ldr	w0, [x8, #12]
	ldr	x8, [x19, #64]
Lloh11:
	adrp	x10, _IPACX_XFIFOB@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IPACX_XFIFOB@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x1, x10, x8
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_waitforXFW
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #16]
	ldr	w0, [x8, #12]
	ldr	x1, [x19, #64]
LBB0_8:
	mov	x2, x20
	mov	x3, x21
	blr	x9
	mov	w8, #8
	mov	w9, #10
	cmp	w22, #0
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_hscx_cmdr
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x19, #32]
Lloh14:
	adrp	x9, _DEBUG_HW_BFIFO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEBUG_HW_BFIFO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w3, [x19, #28]
	ldp	x0, x8, [x19, #8]
	ldr	x4, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #64
	mov	x5, x21
	bl	_snprintf
Lloh19:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh21:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x21
	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_11:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FLG_TX_EMPTY,4,2               ; @FLG_TX_EMPTY
	.comm	_FLG_TRANSPARENT,4,2            ; @FLG_TRANSPARENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: B%1d %d/%d/%d\n"

	.comm	_IPAC_TYPE_IPACX,4,2            ; @IPAC_TYPE_IPACX
	.comm	_IPACX_XFIFOB,8,3               ; @IPACX_XFIFOB
	.comm	_DEBUG_HW_BFIFO,4,2             ; @DEBUG_HW_BFIFO
l_.str.1:                               ; @.str.1
	.asciz	"B%1d-send %s %d "

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