	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_load_fifo
_tx_load_fifo:                          ## @tx_load_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
	cmpl	$0, (%rdi)
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	_SR0@GOTPCREL(%rip), %r14
	movq	_BIT1@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	movq	_TRB@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_write_reg
	movq	$0, 40(%rbx)
	movl	(%rbx), %eax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_read_reg
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, (%rbx)
	movq	40(%rbx), %rdx
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rsi
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	cmpq	%rsi, %rdx
	movq	%rsi, %rdx
	cmovlq	%r12, %rdx
	negq	%rdx
	leaq	(%rcx,%rdx), %rdi
	addq	$2, %rdi
	cmpq	%rsi, %rdi
	cmovlq	%r12, %rsi
	movl	(%rax,%rcx,8), %edx
	subq	%rsi, %rdi
	movq	%rdi, 8(%rbx)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_write_reg16
	movl	(%rbx), %eax
	addl	$-2, %eax
	movl	%eax, (%rbx)
	movl	$2, %ecx
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	8(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movq	(%rcx,%rax,8), %rdx
	movq	%rbx, %rdi
	callq	_write_reg
	movq	8(%rbx), %rax
	subq	16(%rbx), %rax
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR0,4,2                        ## @SR0
	.comm	_BIT1,4,2                       ## @BIT1
	.comm	_TRB,4,2                        ## @TRB
	.no_dead_strip	_tx_load_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_load_fifo
_tx_load_fifo:                          ; @tx_load_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
	ldr	w8, [x0]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _SR0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SR0@GOTPAGEOFF]
Lloh2:
	adrp	x21, _BIT1@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BIT1@GOTPAGEOFF]
Lloh4:
	adrp	x22, _TRB@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TRB@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	x2, LBB0_10
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_write_reg
	str	xzr, [x19, #40]
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x19, #24]
	add	x9, x10, x9
	str	x9, [x19, #24]
	cbz	w8, LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_read_reg
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	ldr	x2, [x19, #40]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x2, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #32]
	ldp	x9, x10, [x19, #8]
	add	x11, x9, #1
	str	x11, [x19, #8]
	ldr	x2, [x8, x9, lsl #3]
	cmp	x11, x10
	csel	x8, xzr, x10, lt
	sub	x8, x11, x8
	add	x8, x8, #1
	cmp	x8, x10
	csel	x9, xzr, x10, lt
	sub	x8, x8, x9
	str	x8, [x19, #8]
	ldr	w1, [x22]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_write_reg16
	ldr	w8, [x19]
	sub	w8, w8, #2
	str	w8, [x19]
	mov	w9, #2
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x22]
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #8]
	add	x10, x9, #1
	str	x10, [x19, #8]
	ldr	x2, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_write_reg
	ldp	x8, x9, [x19, #8]
	subs	x8, x8, x9
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x19, #8]
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_13:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SR0,4,2                        ; @SR0
	.comm	_BIT1,4,2                       ; @BIT1
	.comm	_TRB,4,2                        ; @TRB
	.no_dead_strip	_tx_load_fifo
.subsections_via_symbols
