	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_isr_rx
_sh_mobile_i2c_isr_rx:                  ## @sh_mobile_i2c_isr_rx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.5:
	je	LBB0_6
## %bb.8:
	movq	8(%rbx), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_12
## %bb.9:
	cmpl	$1, %r14d
	ja	LBB0_11
## %bb.10:
	movq	_OP_RX_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	-17(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_sh_mobile_i2c_get_data
	movq	%rbx, %rdi
	callq	_sh_mobile_i2c_is_first_byte
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_OP_TX_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_OP_TX_TO_RX@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i2c_op
	jmp	LBB0_14
LBB0_12:
	movq	_OP_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i2c_op
	cmpl	$2, %r14d
	jae	LBB0_13
	jmp	LBB0_14
LBB0_4:
	movq	_OP_TX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movzbl	-17(%rbp), %edx
	movq	%rbx, %rdi
	callq	_i2c_op
	jmp	LBB0_14
LBB0_11:
	movq	_OP_RX_STOP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i2c_op
LBB0_13:
	addl	$-2, %r14d
	movq	8(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	%r14d, %edx
	movb	%al, (%rcx,%rdx)
LBB0_14:
	movl	(%rbx), %ecx
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	incl	%edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	sete	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_TX_FIRST,4,2                ## @OP_TX_FIRST
	.comm	_OP_TX,4,2                      ## @OP_TX
	.comm	_OP_TX_TO_RX,4,2                ## @OP_TX_TO_RX
	.comm	_OP_RX_STOP,4,2                 ## @OP_RX_STOP
	.comm	_OP_RX_STOP_DATA,4,2            ## @OP_RX_STOP_DATA
	.comm	_OP_RX,4,2                      ## @OP_RX
	.no_dead_strip	_sh_mobile_i2c_isr_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_i2c_isr_rx
_sh_mobile_i2c_isr_rx:                  ; @sh_mobile_i2c_isr_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w20, [x0]
	tbnz	w20, #31, LBB0_5
; %bb.1:
	cbz	w20, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.3:
	cmp	w20, #1
	b.hi	LBB0_12
; %bb.4:
Lloh0:
	adrp	x8, _OP_RX_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_RX_STOP@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	add	x1, sp, #15
	mov	x0, x19
	bl	_sh_mobile_i2c_get_data
	mov	x0, x19
	bl	_sh_mobile_i2c_is_first_byte
	cbz	x0, LBB0_10
; %bb.6:
Lloh2:
	adrp	x8, _OP_TX_FIRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_TX_FIRST@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh4:
	adrp	x8, _OP_TX_TO_RX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OP_TX_TO_RX@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_op
	b	LBB0_14
LBB0_9:
Lloh6:
	adrp	x8, _OP_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OP_RX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_op
	cmp	w20, #2
	b.hs	LBB0_13
	b	LBB0_14
LBB0_10:
Lloh9:
	adrp	x8, _OP_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OP_TX@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	ldrb	w2, [sp, #15]
	mov	x0, x19
	bl	_i2c_op
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x8, _OP_RX_STOP_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OP_RX_STOP_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_i2c_op
LBB0_13:
	sub	w8, w20, #2
	ldr	x9, [x19, #8]
	ldr	x9, [x9, #8]
	strb	w0, [x9, w8, uxtw]
LBB0_14:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	add	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_TX_FIRST,4,2                ; @OP_TX_FIRST
	.comm	_OP_TX,4,2                      ; @OP_TX
	.comm	_OP_TX_TO_RX,4,2                ; @OP_TX_TO_RX
	.comm	_OP_RX_STOP,4,2                 ; @OP_RX_STOP
	.comm	_OP_RX_STOP_DATA,4,2            ; @OP_RX_STOP_DATA
	.comm	_OP_RX,4,2                      ; @OP_RX
	.no_dead_strip	_sh_mobile_i2c_isr_rx
.subsections_via_symbols
