	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_i2c_rd_fill_tx_fifo
_st_i2c_rd_fill_tx_fifo:                ## @st_i2c_rd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_SSC_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movq	_SSC_STA_TX_FIFO_FULL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_SSC_TX_FSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movq	_SSC_TX_FSTAT_STATUS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SSC_TXFIFO_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subl	%eax, %ebx
	cmpl	%r14d, %ebx
	cmovgel	%r14d, %ebx
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.2:
	incl	%ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_st_i2c_write_tx_fifo
	incl	8(%r15)
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_3
LBB0_4:
	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_TX_FIFO_FULL,4,2       ## @SSC_STA_TX_FIFO_FULL
	.comm	_SSC_TX_FSTAT,8,3               ## @SSC_TX_FSTAT
	.comm	_SSC_TX_FSTAT_STATUS,4,2        ## @SSC_TX_FSTAT_STATUS
	.comm	_SSC_TXFIFO_SIZE,4,2            ## @SSC_TXFIFO_SIZE
	.no_dead_strip	_st_i2c_rd_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 st_i2c_rd_fill_tx_fifo
_st_i2c_rd_fill_tx_fifo:                ; @st_i2c_rd_fill_tx_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
	mov	x20, x1
	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_TX_FIFO_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSC_STA_TX_FIFO_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _SSC_TX_FSTAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSC_TX_FSTAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh9:
	adrp	x8, _SSC_TX_FSTAT_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSC_TX_FSTAT_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SSC_TXFIFO_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SSC_TXFIFO_SIZE@GOTPAGEOFF]
	and	w8, w8, w0
Lloh14:
	ldr	w9, [x9]
	sub	w8, w9, w8
	cmp	w8, w20
	csel	w8, w8, w20, lt
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	add	w20, w8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #255
	bl	_st_i2c_write_tx_fifo
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSC_STA,8,3                    ; @SSC_STA
	.comm	_SSC_STA_TX_FIFO_FULL,4,2       ; @SSC_STA_TX_FIFO_FULL
	.comm	_SSC_TX_FSTAT,8,3               ; @SSC_TX_FSTAT
	.comm	_SSC_TX_FSTAT_STATUS,4,2        ; @SSC_TX_FSTAT_STATUS
	.comm	_SSC_TXFIFO_SIZE,4,2            ; @SSC_TXFIFO_SIZE
	.no_dead_strip	_st_i2c_rd_fill_tx_fifo
.subsections_via_symbols
