	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_fill_fifo
_bch_fill_fifo:                         ## @bch_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
	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, %r14
	movq	40(%rdi), %rbx
	movl	(%rbx), %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	%rbx, %rdi
	callq	_debugl1
LBB0_3:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.4:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	_B_FIFO_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	$1, %esi
	cmpl	%r15d, %eax
	jg	LBB0_7
## %bb.6:
	movq	(%r14), %rcx
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	sete	%sil
	movl	%eax, %r15d
LBB0_7:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	24(%r14), %r13d
	movq	8(%rdi), %r12
	movl	%r15d, %esi
	callq	_skb_pull
	subl	%r15d, 8(%r14)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	addl	%r15d, 28(%r14)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.8:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IPACX_XFIFOB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12,%r14,4), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*8(%rbx)
	incq	%r14
	cmpl	%r14d, %r15d
	jne	LBB0_9
LBB0_10:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_IPACX_CMDRB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	leal	(%rax,%rax), %ecx
	addl	$8, %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*8(%rbx)
	movq	_L1_DEB_HSCX_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.12:
	movq	16(%r14), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_sprintf
	movslq	%eax, %rdi
	addq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_QuickHex
	movq	16(%r14), %rsi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"bch_fill_fifo()"

	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
	.comm	_B_FIFO_SIZE,4,2                ## @B_FIFO_SIZE
	.comm	_IPACX_XFIFOB,4,2               ## @IPACX_XFIFOB
	.comm	_IPACX_CMDRB,4,2                ## @IPACX_CMDRB
L_.str.1:                               ## @.str.1
	.asciz	"chb_fill_fifo() B-%d cnt %d"

	.no_dead_strip	_bch_fill_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_fill_fifo
_bch_fill_fifo:                         ; @bch_fill_fifo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #40]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _L1_DEB_HSCX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L1_DEB_HSCX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x24, _L1_DEB_HSCX_FIFO@GOTPAGE
Lloh4:
	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_6
LBB0_2:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_13
LBB0_3:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	w21, [x20, #24]
Lloh5:
	adrp	x9, _B_FIFO_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B_FIFO_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x9]
	cmp	w8, w22
	b.le	LBB0_7
; %bb.5:
	mov	w25, #1
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
	ldr	x0, [x20, #32]
	cbnz	x0, LBB0_3
	b	LBB0_13
LBB0_7:
	ldr	x9, [x20]
Lloh10:
	adrp	x10, _L1_MODE_TRANS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w25, eq
	mov	x22, x8
LBB0_8:
	ldr	x23, [x0, #8]
	mov	x1, x22
	bl	_skb_pull
	ldr	w8, [x20, #8]
	sub	w8, w8, w22
	str	w8, [x20, #8]
	ldr	w8, [x20, #28]
	add	w8, w8, w22
	str	w8, [x20, #28]
	cbz	w22, LBB0_11
; %bb.9:
Lloh13:
	adrp	x26, _IPACX_XFIFOB@GOTPAGE
Lloh14:
	ldr	x26, [x26, _IPACX_XFIFOB@GOTPAGEOFF]
	mov	x27, x23
	mov	x28, x22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w28, w28, #1
	ldr	x8, [x19, #8]
	ldr	w2, [x26]
	ldr	w3, [x27], #4
	mov	x0, x19
	mov	x1, x21
	blr	x8
	cbnz	w28, LBB0_10
LBB0_11:
Lloh15:
	adrp	x8, _IPACX_CMDRB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPACX_CMDRB@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh17:
	ldr	w2, [x8]
	mov	w8, #8
	mov	w10, #10
	cmp	w25, #0
	csel	w3, w10, w8, eq
	mov	x0, x19
	mov	x1, x21
	blr	x9
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	x24, [x20, #16]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	x2, x21
	mov	x3, x22
	bl	_sprintf
	add	x0, x24, w0, sxtw
	mov	x1, x23
	mov	x2, x22
	bl	_QuickHex
	ldr	x1, [x20, #16]
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_debugl1
LBB0_13:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.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	"bch_fill_fifo()"

	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
	.comm	_B_FIFO_SIZE,4,2                ; @B_FIFO_SIZE
	.comm	_IPACX_XFIFOB,4,2               ; @IPACX_XFIFOB
	.comm	_IPACX_CMDRB,4,2                ; @IPACX_CMDRB
l_.str.1:                               ; @.str.1
	.asciz	"chb_fill_fifo() B-%d cnt %d"

	.no_dead_strip	_bch_fill_fifo
.subsections_via_symbols
