	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_write
_mpc_write:                             ## @mpc_write
	.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
	pushq	%rax
	.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, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	8(%rdi), %r15d
	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	%rbx, %rdi
	movl	%r8d, %esi
	callq	_writeccr
	addl	%r13d, %r13d
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r13d, %edi
	callq	_writeb
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.4:
	movl	%r12d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12,4), %edi
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writeb
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_i2c_wait
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_5
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %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
	.no_dead_strip	_mpc_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_write
_mpc_write:                             ; @mpc_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w21, [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	x11, _CCR_MSTA@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CCR_MSTA@GOTPAGEOFF]
Lloh11:
	adrp	x12, _CCR_MTX@GOTPAGE
Lloh12:
	ldr	x12, [x12, _CCR_MTX@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
Lloh14:
	ldr	w12, [x12]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w1, w8, w12
	bl	_writeccr
	lsl	w0, w23, #1
	ldr	x8, [x20]
Lloh15:
	adrp	x23, _MPC_I2C_DR@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MPC_I2C_DR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writeb
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_6
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, w22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writeb
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_i2c_wait
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #4
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.no_dead_strip	_mpc_write
.subsections_via_symbols
