	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_i2c_irq
_rcar_i2c_irq:                          ## @rcar_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_ID_P_REP_AFTER_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rsi), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ICMCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rcar_i2c_read
	movl	(%rbx), %esi
	movq	_RCAR_BUS_MASK_DATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rcar_i2c_write
LBB0_2:
	movq	_ICMSR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_rcar_i2c_read
	movl	%eax, %r15d
	movq	_ICMIER@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_rcar_i2c_read
	movl	%eax, %ebx
	andl	%r15d, %ebx
	je	LBB0_3
## %bb.6:
	movq	_MAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_ID_DONE@GOTPCREL(%rip), %rax
	movq	_ID_ARBLOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_16
LBB0_3:
	movq	%r14, %rdi
	callq	_rcar_i2c_slave_irq
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_8:
	movq	_MNR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	(%r13), %esi
	movq	_RCAR_IRQ_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rcar_i2c_write
	movq	_ID_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_10:
	movq	_MST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.11:
	decl	8(%r14)
	movq	_ID_DONE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_16:
	movq	_ID_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%eax, (%r14)
	je	LBB0_18
## %bb.17:
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rcar_i2c_write
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rcar_i2c_write
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_wake_up
LBB0_18:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_rcar_i2c_is_recv
	movq	%r14, %rdi
	movl	%ebx, %esi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	callq	_rcar_i2c_irq_recv
	jmp	LBB0_16
LBB0_15:
	callq	_rcar_i2c_irq_send
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ID_P_REP_AFTER_RD,4,2          ## @ID_P_REP_AFTER_RD
	.comm	_ICMCR,4,2                      ## @ICMCR
	.comm	_RCAR_BUS_MASK_DATA,4,2         ## @RCAR_BUS_MASK_DATA
	.comm	_ICMSR,4,2                      ## @ICMSR
	.comm	_ICMIER,4,2                     ## @ICMIER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MAL,4,2                        ## @MAL
	.comm	_ID_DONE,4,2                    ## @ID_DONE
	.comm	_ID_ARBLOST,4,2                 ## @ID_ARBLOST
	.comm	_MNR,4,2                        ## @MNR
	.comm	_RCAR_IRQ_STOP,4,2              ## @RCAR_IRQ_STOP
	.comm	_ID_NACK,4,2                    ## @ID_NACK
	.comm	_MST,4,2                        ## @MST
	.no_dead_strip	_rcar_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_i2c_irq
_rcar_i2c_irq:                          ; @rcar_i2c_irq
	.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	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ID_P_REP_AFTER_RD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ID_P_REP_AFTER_RD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _ICMCR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ICMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rcar_i2c_read
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _RCAR_BUS_MASK_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCAR_BUS_MASK_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w2, w8, w0
	mov	x0, x19
	bl	_rcar_i2c_write
LBB0_2:
Lloh8:
	adrp	x21, _ICMSR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ICMSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rcar_i2c_read
	mov	x20, x0
Lloh10:
	adrp	x22, _ICMIER@GOTPAGE
Lloh11:
	ldr	x22, [x22, _ICMIER@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rcar_i2c_read
	ands	w20, w0, w20
	b.eq	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _MAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x23, _ID_DONE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ID_DONE@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _ID_ARBLOST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ID_ARBLOST@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_rcar_i2c_slave_irq
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_15
LBB0_6:
Lloh24:
	adrp	x8, _MNR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MNR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x22]
Lloh27:
	adrp	x8, _RCAR_IRQ_STOP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RCAR_IRQ_STOP@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rcar_i2c_write
Lloh30:
	adrp	x8, _ID_NACK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ID_NACK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	b	LBB0_10
LBB0_8:
Lloh33:
	adrp	x8, _MST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MST@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.9:
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w8, [x23]
LBB0_10:
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_11:
	str	w8, [x19]
LBB0_12:
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_rcar_i2c_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_rcar_i2c_write
	add	x0, x19, #4
	bl	_wake_up
LBB0_14:
Lloh36:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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_16:
	mov	x0, x19
	bl	_rcar_i2c_is_recv
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_i2c_irq_recv
	b	LBB0_12
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_i2c_irq_send
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ID_P_REP_AFTER_RD,4,2          ; @ID_P_REP_AFTER_RD
	.comm	_ICMCR,4,2                      ; @ICMCR
	.comm	_RCAR_BUS_MASK_DATA,4,2         ; @RCAR_BUS_MASK_DATA
	.comm	_ICMSR,4,2                      ; @ICMSR
	.comm	_ICMIER,4,2                     ; @ICMIER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MAL,4,2                        ; @MAL
	.comm	_ID_DONE,4,2                    ; @ID_DONE
	.comm	_ID_ARBLOST,4,2                 ; @ID_ARBLOST
	.comm	_MNR,4,2                        ; @MNR
	.comm	_RCAR_IRQ_STOP,4,2              ; @RCAR_IRQ_STOP
	.comm	_ID_NACK,4,2                    ; @ID_NACK
	.comm	_MST,4,2                        ; @MST
	.no_dead_strip	_rcar_i2c_irq
.subsections_via_symbols
