	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_i2c_fixup
_mpc_i2c_fixup:                         ## @mpc_i2c_fixup
	.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
	movq	%rdi, %r15
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	(%rdi)
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	leal	(%rcx,%rcx), %r14d
	addl	$2, %r14d
	movl	$-9, %ebx
	movq	_CCR_MEN@GOTPCREL(%rip), %r12
	movq	_MPC_I2C_DR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_writeccr
	movq	_CCR_MTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCR_MSTA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r12), %esi
	movq	%r15, %rdi
	callq	_writeccr
	movq	(%r13), %rdi
	addq	8(%r15), %rdi
	callq	_readb
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_writeccr
	movl	%r14d, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCR_MSTA,4,2                   ## @CCR_MSTA
	.comm	_CCR_MTX,4,2                    ## @CCR_MTX
	.comm	_CCR_MEN,4,2                    ## @CCR_MEN
	.comm	_MPC_I2C_DR,8,3                 ## @MPC_I2C_DR
	.no_dead_strip	_mpc_i2c_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_i2c_fixup
_mpc_i2c_fixup:                         ; @mpc_i2c_fixup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sdiv	w8, w9, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	lsl	w8, w8, #1
	add	w20, w8, #2
	mov	w21, #-9
Lloh0:
	adrp	x22, _CCR_MSTA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CCR_MSTA@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CCR_MTX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CCR_MTX@GOTPAGEOFF]
Lloh4:
	adrp	x24, _CCR_MEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CCR_MEN@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MPC_I2C_DR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MPC_I2C_DR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_writeccr
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_writeccr
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readb
	ldr	w1, [x24]
	mov	x0, x19
	bl	_writeccr
	mov	x0, x20
	bl	_udelay
	adds	w21, w21, #1
	b.lo	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CCR_MSTA,4,2                   ; @CCR_MSTA
	.comm	_CCR_MTX,4,2                    ; @CCR_MTX
	.comm	_CCR_MEN,4,2                    ; @CCR_MEN
	.comm	_MPC_I2C_DR,8,3                 ; @MPC_I2C_DR
	.no_dead_strip	_mpc_i2c_fixup
.subsections_via_symbols
