	.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	%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, %r15
	movq	48(%rdi), %r14
	movq	_HW_IPAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%r12b
	movl	(%r14), %eax
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_debugl1
LBB0_3:
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	movb	%r12b, %bl
	shll	$5, %ebx
	addl	$32, %ebx
	movl	$8, %r13d
	cmpl	%ebx, %eax
	ja	LBB0_7
## %bb.6:
	movq	(%r15), %rcx
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	leal	(%rsi,%rsi), %r13d
	addl	$8, %r13d
	movl	%eax, %ebx
LBB0_7:
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_waitforXFW
	movq	40(%r15), %rdi
	movq	8(%rdi), %r12
	movl	%ebx, %esi
	callq	_skb_pull
	subl	%ebx, 8(%r15)
	addl	%ebx, 24(%r15)
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_WRITEHSCXFIFO
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_WriteHSCXCMDR
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.9:
	cmpq	$1, 32(%r15)
	movq	16(%r15), %r13
	movl	$66, %edx
	sbbl	$0, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_QuickHex
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_IPAC,4,2                    ## @HW_IPAC
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ## @L1_DEB_HSCX_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hscx_fill_fifo"

	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
L_.str.1:                               ## @.str.1
	.asciz	"hscx_fill_fifo %c cnt %d"

	.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	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	x20, x0
	ldr	x19, [x0, #48]
Lloh0:
	adrp	x8, _HW_IPAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_IPAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cmp	x0, #0
	mov	w8, #64
	mov	w9, #32
	csel	w21, w9, w8, eq
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x24, _L1_DEB_HSCX_FIFO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _L1_DEB_HSCX_FIFO@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
LBB0_3:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w22, #8
	cmp	w8, w21
	b.hi	LBB0_6
; %bb.5:
Lloh8:
	adrp	x9, _L1_MODE_TRANS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L1_MODE_TRANS@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh10:
	ldr	x9, [x9]
	cmp	x10, x9
	mov	w9, #10
	csel	w22, w22, w9, eq
	mov	x21, x8
LBB0_6:
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_waitforXFW
	ldr	x0, [x20, #40]
	ldr	x23, [x0, #8]
	mov	x1, x21
	bl	_skb_pull
	ldr	w8, [x20, #8]
	sub	w8, w8, w21
	str	w8, [x20, #8]
	ldr	w8, [x20, #24]
	add	w8, w8, w21
	str	w8, [x20, #24]
	ldr	x1, [x20, #32]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x21
	bl	_WRITEHSCXFIFO
	ldr	x1, [x20, #32]
	mov	x0, x19
	mov	x2, x22
	bl	_WriteHSCXCMDR
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	x22, [x20, #16]
	ldr	x8, [x20, #32]
	cmp	x8, #0
	mov	w8, #65
	cinc	w2, w8, ne
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x21
	bl	_sprintf
	add	x0, x22, w0, sxtw
	mov	x1, x23
	mov	x2, x21
	bl	_QuickHex
	ldr	x1, [x20, #16]
	mov	x0, x19
	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
	b	_debugl1
LBB0_8:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_3
LBB0_9:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_IPAC,4,2                    ; @HW_IPAC
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
	.comm	_L1_DEB_HSCX_FIFO,4,2           ; @L1_DEB_HSCX_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hscx_fill_fifo"

	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
l_.str.1:                               ; @.str.1
	.asciz	"hscx_fill_fifo %c cnt %d"

	.no_dead_strip	_hscx_fill_fifo
.subsections_via_symbols
