	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axxia_i2c_empty_rx_fifo
_axxia_i2c_empty_rx_fifo:               ## @axxia_i2c_empty_rx_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	24(%rdi), %r14
	movq	_MST_RX_FIFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	(%r14), %esi
	subl	(%r15), %esi
	movq	%rax, %rdi
	callq	_min
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%eax, %ebx
	incl	%ebx
	movq	_MST_DATA@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movslq	(%r15), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r15)
	movl	%r12d, (%rax,%rcx,4)
	decl	%ebx
	cmpl	$1, %ebx
	jbe	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	%rax, %r12
	cmpl	$0, (%r15)
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_i2c_m_recv_len
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r12), %edi
	movl	%edi, (%r14)
	movq	_MST_RX_XFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	jmp	LBB0_8
LBB0_6:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 20(%r15)
	movq	_MST_STATUS_TSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	%r15, %rdi
	callq	_i2c_int_disable
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_complete
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MST_RX_FIFO,8,3                ## @MST_RX_FIFO
	.comm	_MST_DATA,8,3                   ## @MST_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_MST_STATUS_TSS,4,2             ## @MST_STATUS_TSS
	.comm	_MST_RX_XFER,8,3                ## @MST_RX_XFER
	.no_dead_strip	_axxia_i2c_empty_rx_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_empty_rx_fifo
_axxia_i2c_empty_rx_fifo:               ; @axxia_i2c_empty_rx_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
	ldr	x20, [x0, #24]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MST_RX_FIFO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MST_RX_FIFO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x20]
	ldr	w9, [x19]
	sub	w1, w8, w9
	bl	_min
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	add	w22, w0, #1
Lloh3:
	adrp	x23, _MST_DATA@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MST_DATA@GOTPAGEOFF]
Lloh5:
	adrp	x24, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh7:
	adrp	x25, _MST_RX_XFER@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MST_RX_XFER@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	str	w21, [x8, x9, lsl #2]
	sub	w22, w22, #1
	cmp	w22, #1
	b.ls	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_i2c_m_recv_len
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w21, #1
	ccmp	w8, w21, #8, ge
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w21, #1
	str	w0, [x20]
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x8, _EPROTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #20]
Lloh12:
	adrp	x8, _MST_STATUS_TSS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MST_STATUS_TSS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mvn	w1, w8
	mov	x0, x19
	bl	_i2c_int_disable
	add	x0, x19, #16
	bl	_complete
LBB0_8:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MST_RX_FIFO,8,3                ; @MST_RX_FIFO
	.comm	_MST_DATA,8,3                   ; @MST_DATA
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_MST_STATUS_TSS,4,2             ; @MST_STATUS_TSS
	.comm	_MST_RX_XFER,8,3                ; @MST_RX_XFER
	.no_dead_strip	_axxia_i2c_empty_rx_fifo
.subsections_via_symbols
