	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_i2c_isr_tx
_sh_mobile_i2c_isr_tx:                  ## @sh_mobile_i2c_isr_tx
	.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), %rcx
	movq	8(%rdi), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	-9(%rbp), %rsi
	callq	_sh_mobile_i2c_get_data
	movq	%rbx, %rdi
	callq	_sh_mobile_i2c_is_last_byte
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_OP_TX_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_sh_mobile_i2c_is_first_byte
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_OP_TX_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_OP_TX@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movzbl	-9(%rbp), %edx
	movq	%rbx, %rdi
	callq	_i2c_op
	incq	(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_TX_STOP,4,2                 ## @OP_TX_STOP
	.comm	_OP_TX_FIRST,4,2                ## @OP_TX_FIRST
	.comm	_OP_TX,4,2                      ## @OP_TX
	.no_dead_strip	_sh_mobile_i2c_isr_tx
.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_tx
_sh_mobile_i2c_isr_tx:                  ; @sh_mobile_i2c_isr_tx
	.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
	ldp	x8, x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	add	x1, sp, #15
	bl	_sh_mobile_i2c_get_data
	mov	x0, x19
	bl	_sh_mobile_i2c_is_last_byte
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _OP_TX_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_TX_STOP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_sh_mobile_i2c_is_first_byte
	cbz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _OP_TX_FIRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OP_TX_FIRST@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _OP_TX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OP_TX@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	ldrb	w2, [sp, #15]
	mov	x0, x19
	bl	_i2c_op
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_TX_STOP,4,2                 ; @OP_TX_STOP
	.comm	_OP_TX_FIRST,4,2                ; @OP_TX_FIRST
	.comm	_OP_TX,4,2                      ; @OP_TX
	.no_dead_strip	_sh_mobile_i2c_isr_tx
.subsections_via_symbols
