	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dove_pmu_mpp_ctrl_get
_dove_pmu_mpp_ctrl_get:                 ## @dove_pmu_mpp_ctrl_get
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_MVEBU_MPPS_PER_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MVEBU_MPP_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PMU_MPP_GENERAL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	%rax, %r13
	movl	%r15d, %edi
	callq	_BIT
	testq	%r13, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%edx, %r15d
	imull	%ebx, %r15d
	imull	%eax, %ebx
	movq	_pmu_base@GOTPCREL(%rip), %rax
	movq	_PMU_SIGNAL_SELECT_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	addq	%rcx, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%r15d, %ecx
	shrq	%cl, %rax
	movq	_MVEBU_MPP_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	_CONFIG_PMU@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%rax, (%rdx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvebu_mmio_mpp_ctrl_get        ## TAILCALL
	.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	_PMU_MPP_GENERAL_CTRL,8,3       ## @PMU_MPP_GENERAL_CTRL
	.comm	_pmu_base,8,3                   ## @pmu_base
	.comm	_PMU_SIGNAL_SELECT_0,8,3        ## @PMU_SIGNAL_SELECT_0
	.comm	_MVEBU_MPP_MASK,8,3             ## @MVEBU_MPP_MASK
	.comm	_CONFIG_PMU,8,3                 ## @CONFIG_PMU
	.no_dead_strip	_dove_pmu_mpp_ctrl_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dove_pmu_mpp_ctrl_get
_dove_pmu_mpp_ctrl_get:                 ; @dove_pmu_mpp_ctrl_get
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MVEBU_MPPS_PER_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVEBU_MPPS_PER_REG@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _MVEBU_MPP_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVEBU_MPP_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _PMU_MPP_GENERAL_CTRL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PMU_MPP_GENERAL_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	mov	x0, x20
	bl	_BIT
	tst	x0, x22
	b.eq	LBB0_2
; %bb.1:
	udiv	w8, w20, w23
	msub	w9, w8, w23, w20
	mul	w20, w9, w24
	mul	w8, w8, w24
Lloh9:
	adrp	x9, _pmu_base@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pmu_base@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _PMU_SIGNAL_SELECT_0@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PMU_SIGNAL_SELECT_0@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x9, x10, x9
	add	x0, x9, x8
	bl	_readl
	lsr	x8, x0, x20
Lloh15:
	adrp	x9, _MVEBU_MPP_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MVEBU_MPP_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	and	x8, x8, x9
	str	x8, [x19]
Lloh18:
	adrp	x9, _CONFIG_PMU@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CONFIG_PMU@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	orr	x8, x9, x8
	str	x8, [x19]
	mov	w0, #0
	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
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_mvebu_mmio_mpp_ctrl_get
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	_PMU_MPP_GENERAL_CTRL,8,3       ; @PMU_MPP_GENERAL_CTRL
	.comm	_pmu_base,8,3                   ; @pmu_base
	.comm	_PMU_SIGNAL_SELECT_0,8,3        ; @PMU_SIGNAL_SELECT_0
	.comm	_MVEBU_MPP_MASK,8,3             ; @MVEBU_MPP_MASK
	.comm	_CONFIG_PMU,8,3                 ; @CONFIG_PMU
	.no_dead_strip	_dove_pmu_mpp_ctrl_get
.subsections_via_symbols
