	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_fi2c_interrupt
_uniphier_fi2c_interrupt:               ## @uniphier_fi2c_interrupt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	12(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_UNIPHIER_FI2C_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	andl	(%rbx), %r15d
	movq	_UNIPHIER_FI2C_INT_STOP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_UNIPHIER_FI2C_INT_AL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
LBB0_3:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_set_irqs
	leaq	16(%rbx), %rdi
	callq	_complete
LBB0_22:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_uniphier_fi2c_clear_irqs
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_23:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_UNIPHIER_FI2C_INT_NA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movq	_UNIPHIER_FI2C_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_21
## %bb.6:
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_stop
	movq	_UNIPHIER_FI2C_DEFER_STOP_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_3
LBB0_7:
	movq	_UNIPHIER_FI2C_INT_TE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.8:
	cmpl	$0, 8(%rbx)
	je	LBB0_20
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_uniphier_fi2c_fill_txfifo
	jmp	LBB0_22
LBB0_10:
	movq	_UNIPHIER_FI2C_INT_RF@GOTPCREL(%rip), %rax
	movq	_UNIPHIER_FI2C_INT_RB@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_drain_rxfifo
	cmpl	$0, 8(%rbx)
	je	LBB0_13
LBB0_14:
	movq	_UNIPHIER_FI2C_MANUAL_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movl	8(%rbx), %eax
	movq	_UNIPHIER_FI2C_FIFO_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_18
## %bb.16:
	movq	_UNIPHIER_FI2C_BYTE_WISE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, 4(%rbx)
	jne	LBB0_18
## %bb.17:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_set_irqs
	movl	(%r13), %eax
	orl	%eax, 4(%rbx)
	movl	8(%rbx), %eax
LBB0_18:
	cmpl	$1, %eax
	jg	LBB0_22
## %bb.19:
	movq	_UNIPHIER_FI2C_CR_MST@GOTPCREL(%rip), %rax
	movq	_UNIPHIER_FI2C_CR_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_UNIPHIER_FI2C_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_writel
	jmp	LBB0_22
LBB0_11:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_13:
	testl	%r15d, (%r12)
	je	LBB0_14
LBB0_20:
	movq	_UNIPHIER_FI2C_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_3
LBB0_21:
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_stop
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_FI2C_INT,8,3          ## @UNIPHIER_FI2C_INT
	.comm	_UNIPHIER_FI2C_INT_STOP,4,2     ## @UNIPHIER_FI2C_INT_STOP
	.comm	_UNIPHIER_FI2C_INT_AL,4,2       ## @UNIPHIER_FI2C_INT_AL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_UNIPHIER_FI2C_INT_NA,4,2       ## @UNIPHIER_FI2C_INT_NA
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_UNIPHIER_FI2C_RD,4,2           ## @UNIPHIER_FI2C_RD
	.comm	_UNIPHIER_FI2C_DEFER_STOP_COMP,4,2 ## @UNIPHIER_FI2C_DEFER_STOP_COMP
	.comm	_UNIPHIER_FI2C_INT_TE,4,2       ## @UNIPHIER_FI2C_INT_TE
	.comm	_UNIPHIER_FI2C_INT_RF,4,2       ## @UNIPHIER_FI2C_INT_RF
	.comm	_UNIPHIER_FI2C_INT_RB,4,2       ## @UNIPHIER_FI2C_INT_RB
	.comm	_UNIPHIER_FI2C_MANUAL_NACK,4,2  ## @UNIPHIER_FI2C_MANUAL_NACK
	.comm	_UNIPHIER_FI2C_FIFO_SIZE,4,2    ## @UNIPHIER_FI2C_FIFO_SIZE
	.comm	_UNIPHIER_FI2C_BYTE_WISE,4,2    ## @UNIPHIER_FI2C_BYTE_WISE
	.comm	_UNIPHIER_FI2C_CR_MST,4,2       ## @UNIPHIER_FI2C_CR_MST
	.comm	_UNIPHIER_FI2C_CR_NACK,4,2      ## @UNIPHIER_FI2C_CR_NACK
	.comm	_UNIPHIER_FI2C_CR,8,3           ## @UNIPHIER_FI2C_CR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_UNIPHIER_FI2C_STOP,4,2         ## @UNIPHIER_FI2C_STOP
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_uniphier_fi2c_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_fi2c_interrupt
_uniphier_fi2c_interrupt:               ; @uniphier_fi2c_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	add	x19, x1, #12
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _UNIPHIER_FI2C_INT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNIPHIER_FI2C_INT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x20]
	and	w21, w8, w0
Lloh3:
	adrp	x8, _UNIPHIER_FI2C_INT_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w21, w8
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _UNIPHIER_FI2C_INT_AL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_AL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #32]
LBB0_3:
	mov	x22, x20
	str	wzr, [x22], #16
	mov	x0, x20
	bl	_uniphier_fi2c_set_irqs
	mov	x0, x22
	bl	_complete
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_uniphier_fi2c_clear_irqs
Lloh12:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh14:
	adrp	x8, _UNIPHIER_FI2C_INT_NA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_NA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20, #32]
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _UNIPHIER_FI2C_RD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _UNIPHIER_FI2C_RD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.8:
	mov	x0, x20
	bl	_uniphier_fi2c_stop
Lloh23:
	adrp	x8, _UNIPHIER_FI2C_DEFER_STOP_COMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UNIPHIER_FI2C_DEFER_STOP_COMP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_3
LBB0_9:
Lloh26:
	adrp	x8, _UNIPHIER_FI2C_INT_TE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_TE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_22
; %bb.11:
	mov	x0, x20
	mov	w1, #0
	bl	_uniphier_fi2c_fill_txfifo
	b	LBB0_4
LBB0_12:
Lloh29:
	adrp	x8, _UNIPHIER_FI2C_INT_RF@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UNIPHIER_FI2C_INT_RF@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x22, _UNIPHIER_FI2C_INT_RB@GOTPAGE
Lloh33:
	ldr	x22, [x22, _UNIPHIER_FI2C_INT_RB@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_20
; %bb.13:
	mov	x0, x20
	bl	_uniphier_fi2c_drain_rxfifo
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_21
LBB0_14:
	ldr	w8, [x20, #4]
Lloh34:
	adrp	x9, _UNIPHIER_FI2C_MANUAL_NACK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _UNIPHIER_FI2C_MANUAL_NACK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.15:
	ldr	w8, [x20, #8]
Lloh37:
	adrp	x9, _UNIPHIER_FI2C_FIFO_SIZE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _UNIPHIER_FI2C_FIFO_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_18
; %bb.16:
	ldr	w9, [x20, #4]
Lloh40:
	adrp	x23, _UNIPHIER_FI2C_BYTE_WISE@GOTPAGE
Lloh41:
	ldr	x23, [x23, _UNIPHIER_FI2C_BYTE_WISE@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w10, w9
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_uniphier_fi2c_set_irqs
	ldr	w9, [x23]
	ldp	w10, w8, [x20, #4]
	orr	w9, w10, w9
	str	w9, [x20, #4]
LBB0_18:
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.19:
Lloh42:
	adrp	x8, _UNIPHIER_FI2C_CR_MST@GOTPAGE
Lloh43:
	ldr	x8, [x8, _UNIPHIER_FI2C_CR_MST@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _UNIPHIER_FI2C_CR_NACK@GOTPAGE
Lloh46:
	ldr	x9, [x9, _UNIPHIER_FI2C_CR_NACK@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20, #24]
Lloh48:
	adrp	x9, _UNIPHIER_FI2C_CR@GOTPAGE
Lloh49:
	ldr	x9, [x9, _UNIPHIER_FI2C_CR@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_4
LBB0_20:
Lloh51:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh52:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_21:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_14
LBB0_22:
	ldr	w8, [x20, #4]
Lloh53:
	adrp	x9, _UNIPHIER_FI2C_STOP@GOTPAGE
Lloh54:
	ldr	x9, [x9, _UNIPHIER_FI2C_STOP@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_23:
	mov	x0, x20
	bl	_uniphier_fi2c_stop
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_FI2C_INT,8,3          ; @UNIPHIER_FI2C_INT
	.comm	_UNIPHIER_FI2C_INT_STOP,4,2     ; @UNIPHIER_FI2C_INT_STOP
	.comm	_UNIPHIER_FI2C_INT_AL,4,2       ; @UNIPHIER_FI2C_INT_AL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_UNIPHIER_FI2C_INT_NA,4,2       ; @UNIPHIER_FI2C_INT_NA
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_UNIPHIER_FI2C_RD,4,2           ; @UNIPHIER_FI2C_RD
	.comm	_UNIPHIER_FI2C_DEFER_STOP_COMP,4,2 ; @UNIPHIER_FI2C_DEFER_STOP_COMP
	.comm	_UNIPHIER_FI2C_INT_TE,4,2       ; @UNIPHIER_FI2C_INT_TE
	.comm	_UNIPHIER_FI2C_INT_RF,4,2       ; @UNIPHIER_FI2C_INT_RF
	.comm	_UNIPHIER_FI2C_INT_RB,4,2       ; @UNIPHIER_FI2C_INT_RB
	.comm	_UNIPHIER_FI2C_MANUAL_NACK,4,2  ; @UNIPHIER_FI2C_MANUAL_NACK
	.comm	_UNIPHIER_FI2C_FIFO_SIZE,4,2    ; @UNIPHIER_FI2C_FIFO_SIZE
	.comm	_UNIPHIER_FI2C_BYTE_WISE,4,2    ; @UNIPHIER_FI2C_BYTE_WISE
	.comm	_UNIPHIER_FI2C_CR_MST,4,2       ; @UNIPHIER_FI2C_CR_MST
	.comm	_UNIPHIER_FI2C_CR_NACK,4,2      ; @UNIPHIER_FI2C_CR_NACK
	.comm	_UNIPHIER_FI2C_CR,8,3           ; @UNIPHIER_FI2C_CR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_UNIPHIER_FI2C_STOP,4,2         ; @UNIPHIER_FI2C_STOP
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_uniphier_fi2c_interrupt
.subsections_via_symbols
