	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_i2c_flush_rx_fifo
_st_i2c_flush_rx_fifo:                  ## @st_i2c_flush_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SSC_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_SSC_STA_RIR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_SSC_RXFIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jg	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	_SSC_RX_FSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	_SSC_RX_FSTAT_STATUS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
LBB0_4:
	movq	_SSC_RBUF@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	decl	%ebx
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSC_STA,8,3                    ## @SSC_STA
	.comm	_SSC_STA_RIR,4,2                ## @SSC_STA_RIR
	.comm	_SSC_RXFIFO_SIZE,4,2            ## @SSC_RXFIFO_SIZE
	.comm	_SSC_RX_FSTAT,8,3               ## @SSC_RX_FSTAT
	.comm	_SSC_RX_FSTAT_STATUS,4,2        ## @SSC_RX_FSTAT_STATUS
	.comm	_SSC_RBUF,8,3                   ## @SSC_RBUF
	.no_dead_strip	_st_i2c_flush_rx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_i2c_flush_rx_fifo
_st_i2c_flush_rx_fifo:                  ; @st_i2c_flush_rx_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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SSC_STA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSC_STA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _SSC_STA_RIR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSC_STA_RIR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SSC_RXFIFO_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSC_RXFIFO_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	cmp	w20, #1
	b.ge	LBB0_3
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _SSC_RX_FSTAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SSC_RX_FSTAT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh12:
	adrp	x8, _SSC_RX_FSTAT_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSC_RX_FSTAT_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w20, w8, w0
	cmp	w20, #1
	b.lt	LBB0_5
LBB0_3:
Lloh15:
	adrp	x21, _SSC_RBUF@GOTPAGE
Lloh16:
	ldr	x21, [x21, _SSC_RBUF@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
	subs	w20, w20, #1
	b.ne	LBB0_4
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSC_STA,8,3                    ; @SSC_STA
	.comm	_SSC_STA_RIR,4,2                ; @SSC_STA_RIR
	.comm	_SSC_RXFIFO_SIZE,4,2            ; @SSC_RXFIFO_SIZE
	.comm	_SSC_RX_FSTAT,8,3               ; @SSC_RX_FSTAT
	.comm	_SSC_RX_FSTAT_STATUS,4,2        ; @SSC_RX_FSTAT_STATUS
	.comm	_SSC_RBUF,8,3                   ; @SSC_RBUF
	.no_dead_strip	_st_i2c_flush_rx_fifo
.subsections_via_symbols
