	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_read
_mpc_read:                              ## @mpc_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_CCR_RSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_2:
	movq	_CCR_MIEN@GOTPCREL(%rip), %r15
	movq	_CCR_MEN@GOTPCREL(%rip), %rax
	movq	_CCR_MSTA@GOTPCREL(%rip), %r14
	movq	_CCR_MTX@GOTPCREL(%rip), %rcx
	orl	(%r15), %r8d
	orl	(%rax), %r8d
	orl	(%r14), %r8d
	orl	(%rcx), %r8d
	movq	%rbx, %rdi
	movl	%r8d, %esi
	callq	_writeccr
	leal	1(%r13,%r13), %edi
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writeb
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_17
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.4:
	cmpl	$1, %r12d
	jne	LBB0_7
## %bb.5:
	movq	_CCR_MIEN@GOTPCREL(%rip), %rax
	movq	_CCR_MEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_CCR_TXAK@GOTPCREL(%rip), %r14
	movq	_CCR_MSTA@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_7:
	movq	_CCR_MEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_8:
	orl	(%r15), %esi
	orl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_writeccr
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.9:
	leal	-2(%r12), %r13d
	leal	-1(%r12), %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readb
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r12, %r13
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_CCR_MEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCR_MIEN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CCR_MSTA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CCR_TXAK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writeccr
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r12, %r14
	jne	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_CCR_MEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCR_MIEN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CCR_MSTA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CCR_MTX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_writeccr
	jmp	LBB0_10
LBB0_17:
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_16:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCR_RSTA,4,2                   ## @CCR_RSTA
	.comm	_CCR_MIEN,4,2                   ## @CCR_MIEN
	.comm	_CCR_MEN,4,2                    ## @CCR_MEN
	.comm	_CCR_MSTA,4,2                   ## @CCR_MSTA
	.comm	_CCR_MTX,4,2                    ## @CCR_MTX
	.comm	_MPC_I2C_DR,8,3                 ## @MPC_I2C_DR
	.comm	_CCR_TXAK,4,2                   ## @CCR_TXAK
	.no_dead_strip	_mpc_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_read
_mpc_read:                              ; @mpc_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w22, [x0, #8]
Lloh0:
	adrp	x8, _CCR_RSTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCR_RSTA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w4, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x24, _CCR_MIEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CCR_MIEN@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CCR_MEN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CCR_MEN@GOTPAGEOFF]
	ldr	w9, [x24]
	ldr	w10, [x25]
Lloh7:
	adrp	x11, _CCR_MSTA@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CCR_MSTA@GOTPAGEOFF]
Lloh9:
	adrp	x12, _CCR_MTX@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CCR_MTX@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	ldr	w12, [x12]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w1, w8, w12
	bl	_writeccr
	mov	w0, #1
	bfi	w0, w23, #1, #31
	ldr	x8, [x21]
Lloh13:
	adrp	x23, _MPC_I2C_DR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MPC_I2C_DR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writeb
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_13
; %bb.1:
	cbz	w19, LBB0_14
; %bb.2:
	cmp	w19, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _CCR_TXAK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CCR_TXAK@GOTPAGEOFF]
Lloh17:
	adrp	x10, _CCR_MSTA@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CCR_MSTA@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x25]
Lloh19:
	adrp	x9, _CCR_MSTA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CCR_MSTA@GOTPAGEOFF]
Lloh21:
	adrp	x10, _CCR_MIEN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CCR_MIEN@GOTPAGEOFF]
LBB0_5:
	ldr	w10, [x10]
	orr	w8, w8, w10
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_writeccr
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readb
	subs	w28, w19, #1
	b.lt	LBB0_14
; %bb.6:
	sub	w27, w19, #2
	mov	w26, w19
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _CCR_MSTA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CCR_MSTA@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _CCR_TXAK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CCR_TXAK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_writeccr
	cbz	x28, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readb
	str	w0, [x20], #4
	sub	x28, x28, #1
	sub	x27, x27, #1
	subs	x26, x26, #1
	b.eq	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x27, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x28, LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _CCR_MSTA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CCR_MSTA@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _CCR_MTX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CCR_MTX@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_writeccr
	b	LBB0_8
LBB0_13:
	mov	x19, x0
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CCR_RSTA,4,2                   ; @CCR_RSTA
	.comm	_CCR_MIEN,4,2                   ; @CCR_MIEN
	.comm	_CCR_MEN,4,2                    ; @CCR_MEN
	.comm	_CCR_MSTA,4,2                   ; @CCR_MSTA
	.comm	_CCR_MTX,4,2                    ; @CCR_MTX
	.comm	_MPC_I2C_DR,8,3                 ; @MPC_I2C_DR
	.comm	_CCR_TXAK,4,2                   ; @CCR_TXAK
	.no_dead_strip	_mpc_read
.subsections_via_symbols
