	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orion_mpp_ctrl_set
_orion_mpp_ctrl_set:                    ## @orion_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, %r14
	movq	_MVEBU_MPPS_PER_REG@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r15d
	movl	%edx, %ebx
	movq	_MVEBU_MPP_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %ebx
	cmpl	$15, %esi
	ja	LBB0_2
## %bb.1:
	imull	%eax, %r15d
	movq	_mpp_base@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_readl
	movq	_MVEBU_MPP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	notl	%edx
	shlq	%cl, %r14
	andl	%eax, %edx
	orq	%rdx, %r14
	addq	(%r12), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_high_mpp_base@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_readl
	movq	_MVEBU_MPP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shlq	%cl, %r14
	notl	%edx
	andl	%eax, %edx
	orq	%rdx, %r14
	movq	(%r15), %rsi
	movq	%r14, %rdi
LBB0_3:
	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	_mpp_base,8,3                   ## @mpp_base
	.comm	_MVEBU_MPP_MASK,4,2             ## @MVEBU_MPP_MASK
	.comm	_high_mpp_base,8,3              ## @high_mpp_base
	.no_dead_strip	_orion_mpp_ctrl_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orion_mpp_ctrl_set
_orion_mpp_ctrl_set:                    ; @orion_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
Lloh0:
	adrp	x8, _MVEBU_MPPS_PER_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVEBU_MPPS_PER_REG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	udiv	w8, w1, w9
	msub	w10, w8, w9, w1
Lloh3:
	adrp	x9, _MVEBU_MPP_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MVEBU_MPP_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w20, w9, w10
	cmp	w1, #15
	b.hi	LBB0_2
; %bb.1:
	mul	w21, w8, w9
Lloh6:
	adrp	x22, _mpp_base@GOTPAGE
Lloh7:
	ldr	x22, [x22, _mpp_base@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x21
	bl	_readl
Lloh8:
	adrp	x8, _MVEBU_MPP_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MVEBU_MPP_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w8, w20
	bic	w8, w0, w8
	lsl	x9, x19, x20
	orr	x0, x9, x8
	ldr	x8, [x22]
	add	x1, x8, x21
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x21, _high_mpp_base@GOTPAGE
Lloh12:
	ldr	x21, [x21, _high_mpp_base@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_readl
Lloh13:
	adrp	x8, _MVEBU_MPP_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MVEBU_MPP_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w8, w20
	bic	w8, w0, w8
	lsl	x9, x19, x20
	orr	x0, x9, x8
	ldr	x1, [x21]
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.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	_mpp_base,8,3                   ; @mpp_base
	.comm	_MVEBU_MPP_MASK,4,2             ; @MVEBU_MPP_MASK
	.comm	_high_mpp_base,8,3              ; @high_mpp_base
	.no_dead_strip	_orion_mpp_ctrl_set
.subsections_via_symbols
