	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	8(%rdi), %eax
	movl	%eax, -48(%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), %rax
	movq	_CCR_MEN@GOTPCREL(%rip), %rcx
	movq	_CCR_MSTA@GOTPCREL(%rip), %rdx
	movq	_CCR_MTX@GOTPCREL(%rip), %rsi
	orl	(%rax), %r8d
	orl	(%rcx), %r8d
	orl	(%rdx), %r8d
	orl	(%rsi), %r8d
	movq	%r12, %rdi
	movl	%r8d, %esi
	callq	_writeccr
	leal	(%r15,%r15), %edi
	incl	%edi
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_20
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.4:
	movl	%ebx, %ecx
	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
	xorl	$1, %ecx
	xorl	%eax, %eax
	orl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:
	movq	_CCR_TXAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %esi
	movq	%r12, %rdi
	callq	_writeccr
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readb
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.7:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax,%r14,8)
	incq	%r14
	movslq	%ebx, %rax
	cmpq	%rax, %r14
	jge	LBB0_24
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	testq	%r14, %r14
	sete	%r13b
	andb	%al, %r13b
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-2(%rbx), %eax
	cmpq	%rax, %r14
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 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	%r12, %rdi
	callq	_writeccr
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	-1(%rbx), %eax
	cmpq	%rax, %r14
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 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	%r12, %rdi
	callq	_writeccr
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readb
	movq	%rax, %r15
	testb	%r13b, %r13b
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jg	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%r15d, %ebx
	cmpl	$2, %ebx
	jne	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_9 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	%r12, %rdi
	callq	_writeccr
	movl	$2, %ebx
	jmp	LBB0_8
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_21:
	xorl	%ebx, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
	.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
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ## @EPROTO
	.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, x5
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	w23, [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	x9, _CCR_MIEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCR_MIEN@GOTPAGEOFF]
Lloh5:
	adrp	x10, _CCR_MEN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CCR_MEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x27, _CCR_MSTA@GOTPAGE
Lloh10:
	ldr	x27, [x27, _CCR_MSTA@GOTPAGEOFF]
Lloh11:
	adrp	x12, _CCR_MTX@GOTPAGE
Lloh12:
	ldr	x12, [x12, _CCR_MTX@GOTPAGEOFF]
	ldr	w11, [x27]
Lloh13:
	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, w24, #1, #31
	ldr	x8, [x22]
Lloh14:
	adrp	x28, _MPC_I2C_DR@GOTPAGE
Lloh15:
	ldr	x28, [x28, _MPC_I2C_DR@GOTPAGEOFF]
	ldr	x9, [x28]
	add	x1, x9, x8
	bl	_writeb
	mov	x0, x22
	mov	x1, x23
	mov	w2, #1
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_15
; %bb.1:
	cbz	w20, LBB0_16
; %bb.2:
	cmp	w19, #0
	ccmp	w20, #1, #0, eq
Lloh16:
	adrp	x8, _CCR_MIEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CCR_MIEN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _CCR_MEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CCR_MEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _CCR_TXAK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CCR_TXAK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	csel	w9, wzr, w9, ne
	orr	w1, w8, w9
	mov	x0, x22
	bl	_writeccr
	ldr	x8, [x22]
	ldr	x9, [x28]
	add	x0, x9, x8
	bl	_readb
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x24, [x21, x25, lsl #3]
	add	x25, x25, #1
	cmp	x25, w20, sxtw
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #0
	ccmp	x25, #0, #0, ne
	cset	w26, eq
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w20, #2
	cmp	x25, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x8, _CCR_MIEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CCR_MIEN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CCR_MEN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CCR_MEN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _CCR_TXAK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CCR_TXAK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_writeccr
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w20, #1
	cmp	x25, x8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh34:
	adrp	x8, _CCR_MIEN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CCR_MIEN@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _CCR_MEN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CCR_MEN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _CCR_MTX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _CCR_MTX@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_writeccr
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x28]
	add	x0, x9, x8
	bl	_readb
	mov	x24, x0
	cbz	w26, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh43:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh44:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x24, #0
	ccmp	x24, x8, #0, ne
	b.gt	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, w24
	cmp	w20, #2
	b.ne	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh46:
	adrp	x8, _CCR_MIEN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CCR_MIEN@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _CCR_MEN@GOTPAGE
Lloh50:
	ldr	x9, [x9, _CCR_MEN@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _CCR_TXAK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _CCR_TXAK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_writeccr
	b	LBB0_4
LBB0_15:
	mov	x20, x0
LBB0_16:
	mov	x0, x20
	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
LBB0_17:
Lloh55:
	adrp	x8, _EPROTO@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.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
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_mpc_read
.subsections_via_symbols
