	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvebu_mmio_mpp_ctrl_set        ## -- Begin function mvebu_mmio_mpp_ctrl_set
	.p2align	4, 0x90
_mvebu_mmio_mpp_ctrl_set:               ## @mvebu_mmio_mpp_ctrl_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	_MVEBU_MPPS_PER_REG@GOTPCREL(%rip), %rcx
	movq	_MVEBU_MPP_BITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	imull	%r12d, %ebx
	imull	%edx, %r12d
	movq	(%rdi), %rdi
	addq	%rbx, %rdi
	callq	_readl
	movq	_MVEBU_MPP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	notl	%edx
	shlq	%cl, %r15
	andl	%eax, %edx
	orq	%rdx, %r15
	addq	(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVEBU_MPPS_PER_REG,4,2         ## @MVEBU_MPPS_PER_REG
	.comm	_MVEBU_MPP_BITS,4,2             ## @MVEBU_MPP_BITS
	.comm	_MVEBU_MPP_MASK,4,2             ## @MVEBU_MPP_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvebu_mmio_mpp_ctrl_set        ; -- Begin function mvebu_mmio_mpp_ctrl_set
	.p2align	2
_mvebu_mmio_mpp_ctrl_set:               ; @mvebu_mmio_mpp_ctrl_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _MVEBU_MPPS_PER_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVEBU_MPPS_PER_REG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w9, w1, w8
Lloh3:
	adrp	x10, _MVEBU_MPP_BITS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MVEBU_MPP_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w21, w10, w9
	msub	w8, w9, w8, w1
	mul	w22, w8, w10
	ldr	x8, [x0]
	add	x0, x8, x21
	bl	_readl
Lloh6:
	adrp	x8, _MVEBU_MPP_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVEBU_MPP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, w22
	bic	w8, w0, w8
	lsl	x9, x19, x22
	orr	x0, x9, x8
	ldr	x8, [x20]
	add	x1, x8, x21
	bl	_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MVEBU_MPPS_PER_REG,4,2         ; @MVEBU_MPPS_PER_REG
	.comm	_MVEBU_MPP_BITS,4,2             ; @MVEBU_MPP_BITS
	.comm	_MVEBU_MPP_MASK,4,2             ; @MVEBU_MPP_MASK
.subsections_via_symbols
