	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_i2c_handle_read
_st_i2c_handle_read:                    ## @st_i2c_handle_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, 12(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_st_i2c_read_rx_fifo
	jmp	LBB0_3
LBB0_1:
	movq	_SSC_RBUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movq	_SSC_I2C@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_SSC_I2C_TXENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_st_i2c_clr_bits
LBB0_3:
	movl	8(%rbx), %esi
	cmpl	$1, %esi
	je	LBB0_6
## %bb.4:
	testl	%esi, %esi
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_st_i2c_terminate_xfer          ## TAILCALL
LBB0_6:
	movq	_SSC_I2C@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movq	_SSC_I2C_ACKG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_st_i2c_clr_bits
	movq	_SSC_IEN_NACKEN@GOTPCREL(%rip), %rax
	movq	_SSC_IEN_ARBLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SSC_IEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movl	8(%rbx), %esi
	jmp	LBB0_8
LBB0_7:
	decl	%esi
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_st_i2c_rd_fill_tx_fifo         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSC_RBUF,8,3                   ## @SSC_RBUF
	.comm	_SSC_I2C,8,3                    ## @SSC_I2C
	.comm	_SSC_I2C_TXENB,4,2              ## @SSC_I2C_TXENB
	.comm	_SSC_I2C_ACKG,4,2               ## @SSC_I2C_ACKG
	.comm	_SSC_IEN_NACKEN,4,2             ## @SSC_IEN_NACKEN
	.comm	_SSC_IEN_ARBLEN,4,2             ## @SSC_IEN_ARBLEN
	.comm	_SSC_IEN,8,3                    ## @SSC_IEN
	.no_dead_strip	_st_i2c_handle_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_i2c_handle_read
_st_i2c_handle_read:                    ; @st_i2c_handle_read
	.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	x19, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_st_i2c_read_rx_fifo
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SSC_RBUF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSC_RBUF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh3:
	adrp	x8, _SSC_I2C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSC_I2C@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh6:
	adrp	x8, _SSC_I2C_TXENB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSC_I2C_TXENB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_st_i2c_clr_bits
LBB0_3:
	ldr	w8, [x19, #8]
	subs	w1, w8, #1
	b.eq	LBB0_6
; %bb.4:
	cbnz	w8, LBB0_7
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_st_i2c_terminate_xfer
LBB0_6:
Lloh9:
	adrp	x8, _SSC_I2C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSC_I2C@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh11:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh12:
	adrp	x8, _SSC_I2C_ACKG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSC_I2C_ACKG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_st_i2c_clr_bits
Lloh15:
	adrp	x8, _SSC_IEN_NACKEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSC_IEN_NACKEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _SSC_IEN_ARBLEN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SSC_IEN_ARBLEN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _SSC_IEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SSC_IEN@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w1, [x19, #8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_st_i2c_rd_fill_tx_fifo
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SSC_RBUF,8,3                   ; @SSC_RBUF
	.comm	_SSC_I2C,8,3                    ; @SSC_I2C
	.comm	_SSC_I2C_TXENB,4,2              ; @SSC_I2C_TXENB
	.comm	_SSC_I2C_ACKG,4,2               ; @SSC_I2C_ACKG
	.comm	_SSC_IEN_NACKEN,4,2             ; @SSC_IEN_NACKEN
	.comm	_SSC_IEN_ARBLEN,4,2             ; @SSC_IEN_ARBLEN
	.comm	_SSC_IEN,8,3                    ; @SSC_IEN
	.no_dead_strip	_st_i2c_handle_read
.subsections_via_symbols
