	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh7760_i2c_irq
_sh7760_i2c_irq:                        ## @sh7760_i2c_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %r12
	movq	(%r12), %r14
	movq	_I2CMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movslq	%eax, %r13
	movq	_I2CFSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movslq	%eax, %rcx
	movq	_MSR_MAL@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_I2CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CSAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_IDS_DONE@GOTPCREL(%rip), %rax
	movq	_IDS_ARBLOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	jmp	LBB0_7
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_MSR_MNR@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_4
## %bb.3:
	movl	$100, %edi
	callq	_udelay
	movq	_I2CFCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FCR_RFRST@GOTPCREL(%rip), %rax
	movq	_FCR_TFRST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	_I2CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCR_MIE@GOTPCREL(%rip), %rax
	movq	_MCR_FSB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	_I2CFIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CMIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MIE_MSTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	_I2CSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CSAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_IDS_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_MSR_MAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %r13
	jmp	LBB0_5
LBB0_4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_5:
	movq	_MSR_MST@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_11
## %bb.6:
	movq	_IDS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_7:
	movq	_I2CMSR@GOTPCREL(%rip), %r14
LBB0_8:
	movq	_IDS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	_I2CMIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_I2CFIER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	$0, 16(%rbx)
	leaq	8(%rbx), %rdi
	callq	_complete
LBB0_10:
	movl	(%r14), %esi
	notq	%r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_OUT32
	movl	(%r15), %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	notq	%rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	_I2CSSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_MSR_MAT@GOTPCREL(%rip), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_I2CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCR_MIE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
LBB0_13:
	movq	_I2CFIER@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movq	_FSR_RDF@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, (%r13)
	je	LBB0_17
## %bb.14:
	movq	_I2CRFDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movslq	%eax, %r15
	movq	8(%r12), %rdi
	cmpq	%r15, %rdi
	ja	LBB0_22
## %bb.15:
	movq	_IDF_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_21
## %bb.16:
	movq	_I2CMCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MCR_MIE@GOTPCREL(%rip), %rdi
	movq	_MCR_FSB@GOTPCREL(%rip), %rcx
	movl	%eax, %r13d
	movq	(%rcx), %rdx
	orq	(%rdi), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OUT32
	movl	$5, %edi
	callq	_udelay
	movl	%r13d, %eax
	movq	8(%r12), %rdi
	jmp	LBB0_22
LBB0_17:
	movl	4(%rbx), %ecx
	movq	_IDF_SEND@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_44
## %bb.18:
	movq	_FSR_TEND@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	testq	%rsi, %rdi
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_30
## %bb.19:
	cmpq	$0, 8(%r12)
	je	LBB0_31
LBB0_30:
	movq	%r15, %r13
LBB0_34:
	movq	_FSR_TDFE@GOTPCREL(%rip), %rax
	testq	%rsi, (%rax)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_43
## %bb.35:
	cmpq	$0, 8(%r12)
	je	LBB0_41
## %bb.36:
	movq	_FIFO_SIZE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	_I2CTFDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movslq	(%r15), %rcx
	cmpl	%ecx, %eax
	jge	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	_I2CRXTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsbq	(%rax), %rdx
	incq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_OUT32
	decq	8(%r12)
	jne	LBB0_37
	jmp	LBB0_41
LBB0_21:
	movq	_IDS_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	movq	(%r13), %rcx
	notq	%rcx
	andq	%rcx, -48(%rbp)                 ## 8-byte Folded Spill
LBB0_22:
	testq	%rdi, %rdi
	setne	%cl
	je	LBB0_27
## %bb.23:
	testl	%eax, %eax
	je	LBB0_27
## %bb.24:
	decq	%r15
	xorl	%r13d, %r13d
	movq	_I2CRXTX@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_IN32
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%r13)
	movq	8(%r12), %rdi
	decq	%rdi
	movq	%rdi, 8(%r12)
	setne	%cl
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	leaq	1(%r13), %rdx
	cmpq	%r13, %r15
	movq	%rdx, %r13
	jne	LBB0_25
LBB0_27:
	testb	%cl, %cl
	je	LBB0_29
## %bb.28:
	movq	_FIFO_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	movq	_I2CFCR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_FCR_TFRST@GOTPCREL(%rip), %rax
	cmovael	%ecx, %edi
	shll	$4, %edi
	addl	$-16, %edi
	movzbl	%dil, %edx
	orq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
LBB0_29:
	movq	_I2CMSR@GOTPCREL(%rip), %r14
	movq	_I2CFSR@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_31:
	movq	%r15, %r13
	movq	_IDF_STOP@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_33
## %bb.32:
	movq	_I2CMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCR_MIE@GOTPCREL(%rip), %rax
	movq	_MCR_FSB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_OUT32
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_39:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	setae	%dl
	shlq	$3, %rdx
	movq	_I2CFCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FCR_RFRST@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	jmp	LBB0_42
LBB0_41:
	movslq	-68(%rbp), %rax                 ## 4-byte Folded Reload
	movq	_FIER_TXIE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	notq	%rdx
	andq	%rax, %rdx
	movl	(%r14), %esi
LBB0_42:
	movq	%rbx, %rdi
	callq	_OUT32
LBB0_43:
	movq	%r13, %r15
LBB0_44:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_33:
	movq	_IDS_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	notq	%rdi
	andq	%rdi, %rsi
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_I2CMSR,4,2                     ## @I2CMSR
	.comm	_I2CFSR,4,2                     ## @I2CFSR
	.comm	_MSR_MAL,8,3                    ## @MSR_MAL
	.comm	_I2CMCR,4,2                     ## @I2CMCR
	.comm	_I2CSCR,4,2                     ## @I2CSCR
	.comm	_I2CSAR,4,2                     ## @I2CSAR
	.comm	_IDS_DONE,4,2                   ## @IDS_DONE
	.comm	_IDS_ARBLOST,4,2                ## @IDS_ARBLOST
	.comm	_MSR_MNR,8,3                    ## @MSR_MNR
	.comm	_I2CFCR,4,2                     ## @I2CFCR
	.comm	_FCR_RFRST,8,3                  ## @FCR_RFRST
	.comm	_FCR_TFRST,8,3                  ## @FCR_TFRST
	.comm	_MCR_MIE,8,3                    ## @MCR_MIE
	.comm	_MCR_FSB,8,3                    ## @MCR_FSB
	.comm	_I2CFIER,4,2                    ## @I2CFIER
	.comm	_I2CMIER,4,2                    ## @I2CMIER
	.comm	_MIE_MSTE,8,3                   ## @MIE_MSTE
	.comm	_IDS_NACK,4,2                   ## @IDS_NACK
	.comm	_MSR_MAT,8,3                    ## @MSR_MAT
	.comm	_MSR_MST,8,3                    ## @MSR_MST
	.comm	_FSR_RDF,8,3                    ## @FSR_RDF
	.comm	_I2CRFDR,4,2                    ## @I2CRFDR
	.comm	_IDF_STOP,4,2                   ## @IDF_STOP
	.comm	_I2CRXTX,4,2                    ## @I2CRXTX
	.comm	_FIFO_SIZE,4,2                  ## @FIFO_SIZE
	.comm	_IDF_SEND,4,2                   ## @IDF_SEND
	.comm	_FSR_TEND,8,3                   ## @FSR_TEND
	.comm	_FSR_TDFE,8,3                   ## @FSR_TDFE
	.comm	_I2CTFDR,4,2                    ## @I2CTFDR
	.comm	_FIER_TXIE,8,3                  ## @FIER_TXIE
	.comm	_I2CSSR,4,2                     ## @I2CSSR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sh7760_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh7760_i2c_irq
_sh7760_i2c_irq:                        ; @sh7760_i2c_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x26, [x1, #16]
	ldr	x27, [x26]
Lloh0:
	adrp	x21, _I2CMSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I2CMSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_IN32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
Lloh2:
	adrp	x22, _I2CFSR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I2CFSR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_IN32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
Lloh4:
	adrp	x8, _MSR_MAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSR_MAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x24, _IDS_DONE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IDS_DONE@GOTPAGEOFF]
	tst	x8, x23
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh12:
	adrp	x8, _I2CSCR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2CSCR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh15:
	adrp	x8, _I2CSAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2CSAR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh18:
	adrp	x8, _IDS_ARBLOST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IDS_ARBLOST@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh20:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_35
LBB0_2:
Lloh21:
	adrp	x8, _MSR_MNR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSR_MNR@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x20, _MSR_MAT@GOTPAGE
Lloh25:
	ldr	x20, [x20, _MSR_MAT@GOTPAGEOFF]
	tst	x8, x23
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #100
	bl	_udelay
Lloh26:
	adrp	x8, _I2CFCR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _I2CFCR@GOTPAGEOFF]
Lloh28:
	adrp	x9, _FCR_RFRST@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FCR_RFRST@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	ldr	x8, [x9]
Lloh32:
	adrp	x9, _FCR_TFRST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FCR_TFRST@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_OUT32
Lloh35:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh37:
	adrp	x9, _MCR_MIE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MCR_MIE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	ldr	x8, [x9]
Lloh41:
	adrp	x9, _MCR_FSB@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MCR_FSB@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_OUT32
Lloh44:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh47:
	adrp	x8, _I2CMIER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _I2CMIER@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _MIE_MSTE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MIE_MSTE@GOTPAGEOFF]
Lloh52:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_OUT32
Lloh53:
	adrp	x8, _I2CSCR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _I2CSCR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh56:
	adrp	x8, _I2CSAR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _I2CSAR@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
	mov	x25, #0
Lloh59:
	adrp	x8, _IDS_NACK@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IDS_NACK@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x20]
	bic	x23, x23, x8
LBB0_4:
Lloh62:
	adrp	x8, _MSR_MST@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MSR_MST@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	tst	x8, x23
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_35
LBB0_6:
	ldr	x8, [x20]
	tst	x8, x23
	b.eq	LBB0_8
; %bb.7:
Lloh65:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh66:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
Lloh68:
	adrp	x8, _MCR_MIE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _MCR_MIE@GOTPAGEOFF]
Lloh70:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_OUT32
LBB0_8:
Lloh71:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh72:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IN32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh74:
	adrp	x28, _FSR_RDF@GOTPAGE
Lloh75:
	ldr	x28, [x28, _FSR_RDF@GOTPAGEOFF]
	ldr	x8, [x28]
	tst	x8, x25
	b.eq	LBB0_12
; %bb.9:
Lloh76:
	adrp	x8, _I2CRFDR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _I2CRFDR@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IN32
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	x8, [x26, #8]
	cmp	x8, x20
	b.hi	LBB0_18
; %bb.10:
	ldr	w9, [x19, #4]
Lloh79:
	adrp	x10, _IDF_STOP@GOTPAGE
Lloh80:
	ldr	x10, [x10, _IDF_STOP@GOTPAGEOFF]
Lloh81:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.11:
Lloh82:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh84:
	adrp	x9, _MCR_MIE@GOTPAGE
Lloh85:
	ldr	x9, [x9, _MCR_MIE@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
Lloh87:
	ldr	x8, [x9]
Lloh88:
	adrp	x9, _MCR_FSB@GOTPAGE
Lloh89:
	ldr	x9, [x9, _MCR_FSB@GOTPAGEOFF]
Lloh90:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_OUT32
Lloh91:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh92:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
	mov	w0, #5
	bl	_udelay
	ldr	x8, [x26, #8]
	b	LBB0_18
LBB0_12:
	ldr	w9, [x19, #4]
Lloh94:
	adrp	x8, _IDF_SEND@GOTPAGE
Lloh95:
	ldr	x8, [x8, _IDF_SEND@GOTPAGEOFF]
Lloh96:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_35
; %bb.13:
Lloh97:
	adrp	x8, _FSR_TEND@GOTPAGE
Lloh98:
	ldr	x8, [x8, _FSR_TEND@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	tst	x8, x25
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b.eq	LBB0_26
; %bb.14:
	ldr	x10, [x26, #8]
	cbnz	x10, LBB0_26
; %bb.15:
Lloh100:
	adrp	x10, _IDF_STOP@GOTPAGE
Lloh101:
	ldr	x10, [x10, _IDF_STOP@GOTPAGEOFF]
Lloh102:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_25
; %bb.16:
Lloh103:
	adrp	x8, _I2CMCR@GOTPAGE
Lloh104:
	ldr	x8, [x8, _I2CMCR@GOTPAGEOFF]
Lloh105:
	adrp	x9, _MCR_MIE@GOTPAGE
Lloh106:
	ldr	x9, [x9, _MCR_MIE@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x8]
Lloh108:
	ldr	x8, [x9]
Lloh109:
	adrp	x9, _MCR_FSB@GOTPAGE
Lloh110:
	ldr	x9, [x9, _MCR_FSB@GOTPAGEOFF]
Lloh111:
	ldr	x9, [x9]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_OUT32
	b	LBB0_26
LBB0_17:
	ldr	w9, [x24]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	x9, [x28]
	bic	x25, x25, x9
LBB0_18:
	cmp	x8, #0
	cset	w9, ne
	cbz	x8, LBB0_23
; %bb.19:
	cbz	w20, LBB0_23
; %bb.20:
	sub	x20, x20, #1
Lloh112:
	adrp	x28, _I2CRXTX@GOTPAGE
Lloh113:
	ldr	x28, [x28, _I2CRXTX@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_IN32
	strb	w0, [x27], #1
	ldr	x8, [x26, #8]
	subs	x8, x8, #1
	str	x8, [x26, #8]
	cset	w9, ne
	subs	x20, x20, #1
	cset	w10, hs
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	tbnz	w10, #0, LBB0_21
LBB0_23:
	cbz	w9, LBB0_35
; %bb.24:
Lloh114:
	adrp	x9, _FIFO_SIZE@GOTPAGE
Lloh115:
	ldr	x9, [x9, _FIFO_SIZE@GOTPAGEOFF]
Lloh116:
	ldrsw	x9, [x9]
	sub	w10, w9, #1
	sub	w11, w8, #1
Lloh117:
	adrp	x12, _I2CFCR@GOTPAGE
Lloh118:
	ldr	x12, [x12, _I2CFCR@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x12]
Lloh120:
	adrp	x12, _FCR_TFRST@GOTPAGE
Lloh121:
	ldr	x12, [x12, _FCR_TFRST@GOTPAGEOFF]
Lloh122:
	ldr	x12, [x12]
	cmp	x8, x9
	csel	w8, w11, w10, lo
	lsl	w8, w8, #4
	and	x8, x8, #0xf0
	orr	x2, x8, x12
	b	LBB0_34
LBB0_25:
	ldr	w9, [x24]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	bic	x25, x25, x8
LBB0_26:
Lloh123:
	adrp	x8, _FSR_TDFE@GOTPAGE
Lloh124:
	ldr	x8, [x8, _FSR_TDFE@GOTPAGEOFF]
Lloh125:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_35
; %bb.27:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_33
; %bb.28:
Lloh126:
	adrp	x20, _FIFO_SIZE@GOTPAGE
Lloh127:
	ldr	x20, [x20, _FIFO_SIZE@GOTPAGEOFF]
Lloh128:
	adrp	x28, _I2CRXTX@GOTPAGE
Lloh129:
	ldr	x28, [x28, _I2CRXTX@GOTPAGEOFF]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
Lloh130:
	adrp	x8, _I2CTFDR@GOTPAGE
Lloh131:
	ldr	x8, [x8, _I2CTFDR@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IN32
	ldrsw	x8, [x20]
	cmp	w0, w8
	b.ge	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w1, [x28]
	ldrsb	x2, [x27], #1
	mov	x0, x19
	bl	_OUT32
	ldr	x8, [x26, #8]
	subs	x8, x8, #1
	str	x8, [x26, #8]
	b.ne	LBB0_29
	b	LBB0_33
LBB0_31:
	ldr	x9, [x26, #8]
	cbz	x9, LBB0_33
; %bb.32:
	cmp	x9, x8
Lloh133:
	adrp	x8, _I2CFCR@GOTPAGE
Lloh134:
	ldr	x8, [x8, _I2CFCR@GOTPAGEOFF]
	cset	w9, hs
Lloh135:
	ldr	w1, [x8]
Lloh136:
	adrp	x8, _FCR_RFRST@GOTPAGE
Lloh137:
	ldr	x8, [x8, _FCR_RFRST@GOTPAGEOFF]
Lloh138:
	ldr	x8, [x8]
	orr	x2, x8, x9, lsl #3
	b	LBB0_34
LBB0_33:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sxtw	x8, w8
Lloh139:
	adrp	x9, _FIER_TXIE@GOTPAGE
Lloh140:
	ldr	x9, [x9, _FIER_TXIE@GOTPAGEOFF]
Lloh141:
	ldr	x9, [x9]
	bic	x2, x8, x9
Lloh142:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh143:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh144:
	ldr	w1, [x8]
LBB0_34:
	mov	x0, x19
	bl	_OUT32
LBB0_35:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.36:
Lloh145:
	adrp	x8, _I2CMIER@GOTPAGE
Lloh146:
	ldr	x8, [x8, _I2CMIER@GOTPAGEOFF]
Lloh147:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh148:
	adrp	x8, _I2CFIER@GOTPAGE
Lloh149:
	ldr	x8, [x8, _I2CFIER@GOTPAGEOFF]
Lloh150:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
	str	xzr, [x19, #16]
	add	x0, x19, #8
	bl	_complete
LBB0_37:
	ldr	w1, [x21]
	mvn	x2, x23
	mov	x0, x19
	bl	_OUT32
	ldr	w1, [x22]
	mvn	x2, x25
	mov	x0, x19
	bl	_OUT32
Lloh151:
	adrp	x8, _I2CSSR@GOTPAGE
Lloh152:
	ldr	x8, [x8, _I2CSSR@GOTPAGEOFF]
Lloh153:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_OUT32
Lloh154:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh155:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh156:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh86
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh107
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGot	Lloh128, Lloh129
	.loh AdrpLdrGot	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.cfi_endproc
                                        ; -- End function
	.comm	_I2CMSR,4,2                     ; @I2CMSR
	.comm	_I2CFSR,4,2                     ; @I2CFSR
	.comm	_MSR_MAL,8,3                    ; @MSR_MAL
	.comm	_I2CMCR,4,2                     ; @I2CMCR
	.comm	_I2CSCR,4,2                     ; @I2CSCR
	.comm	_I2CSAR,4,2                     ; @I2CSAR
	.comm	_IDS_DONE,4,2                   ; @IDS_DONE
	.comm	_IDS_ARBLOST,4,2                ; @IDS_ARBLOST
	.comm	_MSR_MNR,8,3                    ; @MSR_MNR
	.comm	_I2CFCR,4,2                     ; @I2CFCR
	.comm	_FCR_RFRST,8,3                  ; @FCR_RFRST
	.comm	_FCR_TFRST,8,3                  ; @FCR_TFRST
	.comm	_MCR_MIE,8,3                    ; @MCR_MIE
	.comm	_MCR_FSB,8,3                    ; @MCR_FSB
	.comm	_I2CFIER,4,2                    ; @I2CFIER
	.comm	_I2CMIER,4,2                    ; @I2CMIER
	.comm	_MIE_MSTE,8,3                   ; @MIE_MSTE
	.comm	_IDS_NACK,4,2                   ; @IDS_NACK
	.comm	_MSR_MAT,8,3                    ; @MSR_MAT
	.comm	_MSR_MST,8,3                    ; @MSR_MST
	.comm	_FSR_RDF,8,3                    ; @FSR_RDF
	.comm	_I2CRFDR,4,2                    ; @I2CRFDR
	.comm	_IDF_STOP,4,2                   ; @IDF_STOP
	.comm	_I2CRXTX,4,2                    ; @I2CRXTX
	.comm	_FIFO_SIZE,4,2                  ; @FIFO_SIZE
	.comm	_IDF_SEND,4,2                   ; @IDF_SEND
	.comm	_FSR_TEND,8,3                   ; @FSR_TEND
	.comm	_FSR_TDFE,8,3                   ; @FSR_TDFE
	.comm	_I2CTFDR,4,2                    ; @I2CTFDR
	.comm	_FIER_TXIE,8,3                  ; @FIER_TXIE
	.comm	_I2CSSR,4,2                     ; @I2CSSR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sh7760_i2c_irq
.subsections_via_symbols
