	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcr_get
_pmcr_get:                              ## @pmcr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_memset
	movq	_SPR_PMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movq	_PMCR_LOWERPS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PMCR_LOWERPS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_npstates@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.7:
	movq	_pstate_ids@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi,%rdx,4)
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
	jmp	LBB0_1
LBB0_3:
	xorl	%edx, %edx
LBB0_4:
	cmpl	%ecx, %edx
	jne	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_5:
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	%edx, 4(%rcx)
	movq	_pstate_freqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, 8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.comm	_SPR_PMCR,4,2                   ## @SPR_PMCR
	.comm	_PMCR_LOWERPS_MASK,4,2          ## @PMCR_LOWERPS_MASK
	.comm	_PMCR_LOWERPS_SHIFT,4,2         ## @PMCR_LOWERPS_SHIFT
	.comm	_npstates,4,2                   ## @npstates
	.comm	_pstate_ids,8,3                 ## @pstate_ids
	.comm	_pstate_freqs,8,3               ## @pstate_freqs
	.no_dead_strip	_pmcr_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcr_get
_pmcr_get:                              ; @pmcr_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_device_get_softc
Lloh0:
	adrp	x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _SPR_PMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPR_PMCR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_mfspr
Lloh6:
	adrp	x8, _PMCR_LOWERPS_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMCR_LOWERPS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _PMCR_LOWERPS_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMCR_LOWERPS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _npstates@GOTPAGE
Lloh13:
	ldr	x9, [x9, _npstates@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x9, #0
Lloh15:
	adrp	x11, _pstate_ids@GOTPAGE
Lloh16:
	ldr	x11, [x11, _pstate_ids@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	cmp	w12, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w9, #0
LBB0_6:
	cmp	w9, w10
	b.ne	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	ldr	x10, [x19]
Lloh21:
	adrp	x11, _pstate_freqs@GOTPAGE
Lloh22:
	ldr	x11, [x11, _pstate_freqs@GOTPAGEOFF]
	stp	w8, w9, [x10]
Lloh23:
	ldr	x8, [x11]
	ldr	w8, [x8, w9, uxtw #2]
	stp	w20, w8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.comm	_SPR_PMCR,4,2                   ; @SPR_PMCR
	.comm	_PMCR_LOWERPS_MASK,4,2          ; @PMCR_LOWERPS_MASK
	.comm	_PMCR_LOWERPS_SHIFT,4,2         ; @PMCR_LOWERPS_SHIFT
	.comm	_npstates,4,2                   ; @npstates
	.comm	_pstate_ids,8,3                 ; @pstate_ids
	.comm	_pstate_freqs,8,3               ; @pstate_freqs
	.no_dead_strip	_pmcr_get
.subsections_via_symbols
