	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfcsx_fill_fifo
_hfcsx_fill_fifo:                       ## @hfcsx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	cmpq	$0, (%rsi)
	jle	LBB0_13
## %bb.2:
	movq	%rdi, %rbx
	movq	56(%rdi), %rdi
	cmpq	$0, 48(%rbx)
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%rdi)
	je	LBB0_4
LBB0_5:
	movq	_HFCSX_SEL_B1_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HFCSX_SEL_B2_TX@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movq	_L1_MODE_TRANS@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	cmpq	(%r8), %rax
	jne	LBB0_8
## %bb.7:
	movq	_HFCSX_BTRANS_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	callq	_write_fifo
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	16(%rbx), %rax
	movq	32(%rbx), %rsi
	movl	(%rax), %eax
	subl	%eax, 40(%rbx)
	movq	_FLG_LLI_L1WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	_PACKET_NOACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	cmpq	8(%rcx), %rax
	je	LBB0_12
## %bb.11:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	addl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_B_ACKPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_event
LBB0_12:
	movq	16(%rbx), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 16(%rbx)
	movq	_BC_FLG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_test_and_clear_bit             ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFCSX_SEL_B2_TX,4,2            ## @HFCSX_SEL_B2_TX
	.comm	_HFCSX_SEL_B1_TX,4,2            ## @HFCSX_SEL_B1_TX
	.comm	_L1_MODE_TRANS,8,3              ## @L1_MODE_TRANS
	.comm	_HFCSX_BTRANS_THRESHOLD,4,2     ## @HFCSX_BTRANS_THRESHOLD
	.comm	_FLG_LLI_L1WAKEUP,4,2           ## @FLG_LLI_L1WAKEUP
	.comm	_PACKET_NOACK,8,3               ## @PACKET_NOACK
	.comm	_B_ACKPENDING,4,2               ## @B_ACKPENDING
	.comm	_BC_FLG_BUSY,4,2                ## @BC_FLG_BUSY
	.no_dead_strip	_hfcsx_fill_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfcsx_fill_fifo
_hfcsx_fill_fifo:                       ; @hfcsx_fill_fifo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x1, [x0, #16]
	cbz	x1, LBB0_11
; %bb.1:
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #56]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _HFCSX_SEL_B1_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFCSX_SEL_B1_TX@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _HFCSX_SEL_B2_TX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFCSX_SEL_B2_TX@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _L1_MODE_TRANS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _L1_MODE_TRANS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _HFCSX_BTRANS_THRESHOLD@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HFCSX_BTRANS_THRESHOLD@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w3, w10, wzr, eq
	bl	_write_fifo
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	sub	w8, w9, w8
	str	w8, [x19, #40]
Lloh10:
	adrp	x8, _FLG_LLI_L1WAKEUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLG_LLI_L1WAKEUP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.8:
Lloh13:
	adrp	x8, _PACKET_NOACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PACKET_NOACK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	add	w8, w9, w8
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh16:
	adrp	x8, _B_ACKPENDING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B_ACKPENDING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_schedule_event
LBB0_10:
	ldr	x0, [x19, #16]
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #16]
Lloh19:
	adrp	x8, _BC_FLG_BUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BC_FLG_BUSY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_test_and_clear_bit
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HFCSX_SEL_B2_TX,4,2            ; @HFCSX_SEL_B2_TX
	.comm	_HFCSX_SEL_B1_TX,4,2            ; @HFCSX_SEL_B1_TX
	.comm	_L1_MODE_TRANS,8,3              ; @L1_MODE_TRANS
	.comm	_HFCSX_BTRANS_THRESHOLD,4,2     ; @HFCSX_BTRANS_THRESHOLD
	.comm	_FLG_LLI_L1WAKEUP,4,2           ; @FLG_LLI_L1WAKEUP
	.comm	_PACKET_NOACK,8,3               ; @PACKET_NOACK
	.comm	_B_ACKPENDING,4,2               ; @B_ACKPENDING
	.comm	_BC_FLG_BUSY,4,2                ; @BC_FLG_BUSY
	.no_dead_strip	_hfcsx_fill_fifo
.subsections_via_symbols
