	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcr_settings
_pmcr_settings:                         ## @pmcr_settings
	.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	%rsi, %rbx
	movl	%edi, %r15d
	callq	_device_get_softc
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	_npstates@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpl	%edx, (%r14)
	jge	LBB0_5
## %bb.4:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$4, %edx
	movq	%rbx, %rdi
	callq	_memset
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.6:
	movq	_pstate_freqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pstate_ids@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$12, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rbx)
	movl	(%rcx,%rdx,4), %esi
	movq	-12(%rbx), %rdi
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	movl	%r15d, -4(%rbx)
	incq	%rdx
	movslq	(%r12), %rsi
	addq	$16, %rbx
	cmpq	%rsi, %rdx
	jl	LBB0_7
LBB0_8:
	movl	%esi, (%r14)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_npstates,4,2                   ## @npstates
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.comm	_pstate_freqs,8,3               ## @pstate_freqs
	.comm	_pstate_ids,8,3                 ## @pstate_ids
	.no_dead_strip	_pmcr_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcr_settings
_pmcr_settings:                         ; @pmcr_settings
	.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	x21, x1
	mov	x20, x0
	bl	_device_get_softc
	cbz	x21, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	ldr	w9, [x19]
Lloh0:
	adrp	x22, _npstates@GOTPAGE
Lloh1:
	ldr	x22, [x22, _npstates@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _E2BIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	lsl	w2, w8, #4
	mov	x0, x21
	bl	_memset
	ldr	w12, [x22]
	cmp	w12, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
Lloh11:
	adrp	x9, _pstate_freqs@GOTPAGE
Lloh12:
	ldr	x9, [x9, _pstate_freqs@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _pstate_ids@GOTPAGE
Lloh15:
	ldr	x10, [x10, _pstate_ids@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x11, x21, #12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x8, #2
	ldr	w13, [x9, x12]
	str	w13, [x11]
	ldr	w12, [x10, x12]
	ldur	x13, [x11, #-12]
	stp	w12, w8, [x13]
	stur	w20, [x11, #-4]
	add	x8, x8, #1
	ldrsw	x12, [x22]
	add	x11, x11, #16
	cmp	x8, x12
	b.lt	LBB0_7
LBB0_8:
	mov	w0, #0
	str	w12, [x19]
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_npstates,4,2                   ; @npstates
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.comm	_pstate_freqs,8,3               ; @pstate_freqs
	.comm	_pstate_ids,8,3                 ; @pstate_ids
	.no_dead_strip	_pmcr_settings
.subsections_via_symbols
