	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axxia_i2c_fill_tx_fifo
_axxia_i2c_fill_tx_fifo:                ## @axxia_i2c_fill_tx_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, %rbx
	movq	16(%rdi), %r12
	movq	_FIFO_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_MST_TX_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	subq	%rax, %r14
	movl	(%r12), %esi
	subl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_min
	movl	%eax, %r15d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_4
## %bb.1:
	movq	8(%r12), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax,%rdx,4), %edi
	movq	_MST_DATA@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	cmpl	$1, %r15d
	je	LBB0_4
## %bb.2:
	leal	1(%r15), %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rax
	movq	8(%r12), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%rbx)
	movl	(%rcx,%rax,4), %edi
	movq	(%r13), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	decl	%r14d
	cmpl	$2, %r14d
	jg	LBB0_3
LBB0_4:
	addl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_SIZE,8,3                  ## @FIFO_SIZE
	.comm	_MST_TX_FIFO,8,3                ## @MST_TX_FIFO
	.comm	_MST_DATA,8,3                   ## @MST_DATA
	.no_dead_strip	_axxia_i2c_fill_tx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axxia_i2c_fill_tx_fifo
_axxia_i2c_fill_tx_fifo:                ; @axxia_i2c_fill_tx_fifo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FIFO_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldp	x8, x21, [x0, #8]
Lloh3:
	adrp	x9, _MST_TX_FIFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MST_TX_FIFO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	sub	x0, x20, x0
	ldr	w8, [x21]
	ldr	w9, [x19]
	sub	w1, w8, w9
	bl	_min
	mov	x20, x0
	ldr	w22, [x21]
	ldrsw	x23, [x19]
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	add	w9, w23, #1
	str	w9, [x19]
	ldr	w0, [x8, x23, lsl #2]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x24, _MST_DATA@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MST_DATA@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	cmp	w20, #1
	b.eq	LBB0_4
; %bb.2:
	add	w25, w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	ldr	x9, [x21, #8]
	add	w10, w8, #1
	str	w10, [x19]
	ldr	w0, [x9, x8, lsl #2]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	sub	w25, w25, #1
	cmp	w25, #2
	b.gt	LBB0_3
LBB0_4:
	add	w8, w20, w23
	sub	w0, w22, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_SIZE,8,3                  ; @FIFO_SIZE
	.comm	_MST_TX_FIFO,8,3                ; @MST_TX_FIFO
	.comm	_MST_DATA,8,3                   ; @MST_DATA
	.no_dead_strip	_axxia_i2c_fill_tx_fifo
.subsections_via_symbols
