	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function riic_tend_isr
_riic_tend_isr:                         ## @riic_tend_isr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_RIIC_ICSR2@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rsi), %rdi
	callq	_readb
	movq	_ICSR2_NACKF@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	movq	_RIIC_ICDRR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readb
	movl	(%r15), %esi
	movq	(%r14), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_riic_clear_set_bit
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, 16(%r12)
LBB0_2:
	cmpq	$0, 24(%r12)
	jne	LBB0_4
## %bb.3:
	cmpl	$0, 16(%r12)
	je	LBB0_7
LBB0_4:
	movq	_ICIER_TEIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICIER_SPIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	callq	_riic_clear_set_bit
	movq	_ICCR2_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RIIC_ICCR2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writeb
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	cmpq	$0, 32(%r12)
	je	LBB0_2
## %bb.6:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ICIER_TEIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_riic_clear_set_bit
	movq	%r12, %rdi
	callq	_complete
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RIIC_ICSR2,8,3                 ## @RIIC_ICSR2
	.comm	_ICSR2_NACKF,4,2                ## @ICSR2_NACKF
	.comm	_RIIC_ICDRR,8,3                 ## @RIIC_ICDRR
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ICIER_TEIE,4,2                 ## @ICIER_TEIE
	.comm	_ICIER_SPIE,4,2                 ## @ICIER_SPIE
	.comm	_RIIC_ICIER,8,3                 ## @RIIC_ICIER
	.comm	_ICCR2_SP,4,2                   ## @ICCR2_SP
	.comm	_RIIC_ICCR2,8,3                 ## @RIIC_ICCR2
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_riic_tend_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function riic_tend_isr
_riic_tend_isr:                         ; @riic_tend_isr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x20, _RIIC_ICSR2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RIIC_ICSR2@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh2:
	adrp	x21, _ICSR2_NACKF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ICSR2_NACKF@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _RIIC_ICDRR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RIIC_ICDRR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readb
	ldr	w1, [x21]
	ldr	x3, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_riic_clear_set_bit
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #16]
LBB0_2:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _ICIER_TEIE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICIER_TEIE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _ICIER_SPIE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICIER_SPIE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _RIIC_ICIER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RIIC_ICIER@GOTPAGEOFF]
Lloh18:
	ldr	x3, [x8]
	mov	x0, x19
	bl	_riic_clear_set_bit
Lloh19:
	adrp	x8, _ICCR2_SP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICCR2_SP@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _RIIC_ICCR2@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RIIC_ICCR2@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
LBB0_5:
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.7:
Lloh27:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh29:
	adrp	x8, _ICIER_TEIE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ICIER_TEIE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _RIIC_ICIER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RIIC_ICIER@GOTPAGEOFF]
Lloh34:
	ldr	x3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_riic_clear_set_bit
	mov	x0, x19
	bl	_complete
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RIIC_ICSR2,8,3                 ; @RIIC_ICSR2
	.comm	_ICSR2_NACKF,4,2                ; @ICSR2_NACKF
	.comm	_RIIC_ICDRR,8,3                 ; @RIIC_ICDRR
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ICIER_TEIE,4,2                 ; @ICIER_TEIE
	.comm	_ICIER_SPIE,4,2                 ; @ICIER_SPIE
	.comm	_RIIC_ICIER,8,3                 ; @RIIC_ICIER
	.comm	_ICCR2_SP,4,2                   ; @ICCR2_SP
	.comm	_RIIC_ICCR2,8,3                 ; @RIIC_ICCR2
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_riic_tend_isr
.subsections_via_symbols
