	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_i2c_irq_send
_rcar_i2c_irq_send:                     ## @rcar_i2c_irq_send
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MDE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_rcar_i2c_dma
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %eax
LBB0_4:
	cmpl	(%r14), %eax
	jge	LBB0_6
## %bb.5:
	movq	_ICRXTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r14), %rcx
	cltq
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_rcar_i2c_write
	incl	(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_ID_LAST_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_10
## %bb.7:
	movq	_ICMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCAR_BUS_PHASE_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rcar_i2c_write
LBB0_8:
	movq	_ICMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCAR_IRQ_ACK_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rcar_i2c_write                 ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rcar_i2c_next_msg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDE,4,2                        ## @MDE
	.comm	_ICRXTX,4,2                     ## @ICRXTX
	.comm	_ID_LAST_MSG,4,2                ## @ID_LAST_MSG
	.comm	_ICMCR,4,2                      ## @ICMCR
	.comm	_RCAR_BUS_PHASE_STOP,4,2        ## @RCAR_BUS_PHASE_STOP
	.comm	_ICMSR,4,2                      ## @ICMSR
	.comm	_RCAR_IRQ_ACK_SEND,4,2          ## @RCAR_IRQ_ACK_SEND
	.no_dead_strip	_rcar_i2c_irq_send
.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_send
_rcar_i2c_irq_send:                     ; @rcar_i2c_irq_send
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MDE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_rcar_i2c_dma
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19]
LBB0_5:
	ldr	w9, [x20]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
Lloh3:
	adrp	x9, _ICRXTX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICRXTX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	x9, [x20, #8]
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_rcar_i2c_write
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _ID_LAST_MSG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ID_LAST_MSG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _ICMCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICMCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _RCAR_BUS_PHASE_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCAR_BUS_PHASE_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rcar_i2c_write
LBB0_9:
Lloh15:
	adrp	x8, _ICMSR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICMSR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _RCAR_IRQ_ACK_SEND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RCAR_IRQ_ACK_SEND@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rcar_i2c_write
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rcar_i2c_next_msg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MDE,4,2                        ; @MDE
	.comm	_ICRXTX,4,2                     ; @ICRXTX
	.comm	_ID_LAST_MSG,4,2                ; @ID_LAST_MSG
	.comm	_ICMCR,4,2                      ; @ICMCR
	.comm	_RCAR_BUS_PHASE_STOP,4,2        ; @RCAR_BUS_PHASE_STOP
	.comm	_ICMSR,4,2                      ; @ICMSR
	.comm	_RCAR_IRQ_ACK_SEND,4,2          ; @RCAR_IRQ_ACK_SEND
	.no_dead_strip	_rcar_i2c_irq_send
.subsections_via_symbols
