	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function riic_tdre_isr
_riic_tdre_isr:                         ## @riic_tdre_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	_RIIC_INIT_MSG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	24(%rbx), %rdi
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	_ICIER_TIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICIER_RIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_riic_clear_set_bit
	movq	24(%rbx), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	16(%rbx), %rcx
	movl	(%rcx), %r14d
	addq	$4, %rcx
	movq	%rcx, 16(%rbx)
	decq	%rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_5:
	movq	8(%rdi), %rax
	movq	%rax, (%rbx)
LBB0_6:
	callq	_i2c_8bit_addr_from_msg
	movl	%eax, %r14d
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	movq	_ICIER_TIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICIER_TEIE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RIIC_ICIER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_riic_clear_set_bit
LBB0_10:
	movq	_RIIC_ICDRT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writeb
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_RIIC_INIT_MSG,8,3              ## @RIIC_INIT_MSG
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_ICIER_TIE,4,2                  ## @ICIER_TIE
	.comm	_ICIER_RIE,4,2                  ## @ICIER_RIE
	.comm	_RIIC_ICIER,4,2                 ## @RIIC_ICIER
	.comm	_ICIER_TEIE,4,2                 ## @ICIER_TEIE
	.comm	_RIIC_ICDRT,8,3                 ## @RIIC_ICDRT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_riic_tdre_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function riic_tdre_isr
_riic_tdre_isr:                         ; @riic_tdre_isr
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x9, _RIIC_INIT_MSG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RIIC_INIT_MSG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x19, #24]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _ICIER_TIE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICIER_TIE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ICIER_RIE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICIER_RIE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _RIIC_ICIER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RIIC_ICIER@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_riic_clear_set_bit
	ldr	x0, [x19, #24]
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	ldr	x9, [x19, #16]
	ldr	w20, [x9], #4
	str	x9, [x19, #16]
	sub	x8, x8, #1
	str	x8, [x19]
	cbnz	x8, LBB0_9
	b	LBB0_8
LBB0_6:
	ldr	x8, [x0, #8]
	str	x8, [x19]
LBB0_7:
	bl	_i2c_8bit_addr_from_msg
	mov	x20, x0
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _ICIER_TIE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICIER_TIE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _ICIER_TEIE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICIER_TEIE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _RIIC_ICIER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RIIC_ICIER@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_riic_clear_set_bit
LBB0_9:
	ldr	x8, [x19, #8]
Lloh26:
	adrp	x9, _RIIC_ICDRT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RIIC_ICDRT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb
Lloh29:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_RIIC_INIT_MSG,8,3              ; @RIIC_INIT_MSG
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_ICIER_TIE,4,2                  ; @ICIER_TIE
	.comm	_ICIER_RIE,4,2                  ; @ICIER_RIE
	.comm	_RIIC_ICIER,4,2                 ; @RIIC_ICIER
	.comm	_ICIER_TEIE,4,2                 ; @ICIER_TEIE
	.comm	_RIIC_ICDRT,8,3                 ; @RIIC_ICDRT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_riic_tdre_isr
.subsections_via_symbols
