	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ranges
_get_ranges:                            ## @get_ranges
	.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	%rdi, %r13
	movq	_number_scales@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	4(,%rax,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	_powernow_table@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.4:
	movl	$4, %r14d
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-2(%r13,%r12,2), %esi
	movq	_fid_codes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rsi,4), %edx
	movq	_fsb@GOTPCREL(%rip), %rdi
	imull	(%rdi), %edx
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rdx
	shrq	$63, %rdx
	sarq	$34, %rdi
	addl	%edx, %edi
	movl	%edi, -8(%rax,%r14,2)
	movq	%rsi, (%rax,%r14,2)
	movq	_minimum_speed@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_minimum_speed@GOTPCREL(%rip), %rdx
	movl	%edi, (%rdx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_maximum_speed@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_maximum_speed@GOTPCREL(%rip), %rdx
	movl	%edi, (%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	-1(%r13,%r12,2), %r9d
	movq	%r9, %rdx
	shlq	$8, %rdx
	orq	%rsi, %rdx
	movq	%rdx, (%rax,%r14,2)
	movslq	(%rcx,%rsi,4), %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$34, %rdx
	addl	%eax, %edx
	leal	(%rdx,%rdx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %ecx
	movl	%edi, %eax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	shrq	$38, %r8
	movq	_mobile_vid_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r9,4), %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rdi
	shrq	$63, %rdi
	sarq	$38, %rbx
	addl	%edi, %ebx
	imull	$1000, %ebx, %edi               ## imm = 0x3E8
	subl	%edi, %eax
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	pushq	%rbx
	callq	_dprintk
	addq	$16, %rsp
	movl	(%r15), %eax
	cmpq	%rax, %r12
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_powernow_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %r14
	incq	%r12
	jmp	LBB0_5
LBB0_11:
	movslq	%eax, %rcx
	movq	_powernow_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	jmp	LBB0_13
LBB0_2:
	xorl	%ecx, %ecx
LBB0_12:
	movq	_CPUFREQ_TABLE_END@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shlq	$4, %rcx
	movl	%edx, (%rax,%rcx)
	movslq	(%r15), %rcx
	shlq	$4, %rcx
	movq	$0, 8(%rax,%rcx)
LBB0_13:
	movl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_number_scales,4,2              ## @number_scales
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_powernow_table,8,3             ## @powernow_table
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fsb,4,2                        ## @fsb
	.comm	_fid_codes,8,3                  ## @fid_codes
	.comm	_minimum_speed,4,2              ## @minimum_speed
	.comm	_maximum_speed,4,2              ## @maximum_speed
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   FID: 0x%x (%d.%dx [%dMHz])  VID: 0x%x (%d.%03dV)\n"

	.comm	_mobile_vid_table,8,3           ## @mobile_vid_table
	.comm	_CPUFREQ_TABLE_END,4,2          ## @CPUFREQ_TABLE_END
	.comm	_have_a0,4,2                    ## @have_a0
	.no_dead_strip	_get_ranges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ranges
_get_ranges:                            ; @get_ranges
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x20, _number_scales@GOTPAGE
Lloh1:
	ldr	x20, [x20, _number_scales@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w8, w8, #2
	add	w0, w8, #4
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
Lloh5:
	adrp	x8, _powernow_table@GOTPAGE
Lloh6:
	ldr	x8, [x8, _powernow_table@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x23, #0
	mov	w24, #1
	mov	w27, #26215
	movk	w27, #26214, lsl #16
Lloh8:
	adrp	x28, _minimum_speed@GOTPAGE
Lloh9:
	ldr	x28, [x28, _minimum_speed@GOTPAGEOFF]
Lloh10:
	adrp	x21, _maximum_speed@GOTPAGE
Lloh11:
	ldr	x21, [x21, _maximum_speed@GOTPAGEOFF]
	mov	w22, #19923
	movk	w22, #4194, lsl #16
Lloh12:
	adrp	x26, _mobile_vid_table@GOTPAGE
Lloh13:
	ldr	x26, [x26, _mobile_vid_table@GOTPAGEOFF]
	mov	w25, #1000
Lloh14:
	adrp	x20, l_.str@PAGE
Lloh15:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w1, [x19]
Lloh16:
	adrp	x8, _fsb@GOTPAGE
Lloh17:
	ldr	x8, [x8, _fsb@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x8]
Lloh19:
	adrp	x8, _fid_codes@GOTPAGE
Lloh20:
	ldr	x8, [x8, _fid_codes@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w10, [x8, x1, lsl #2]
	mul	w9, w10, w9
	smull	x9, w9, w27
	lsr	x11, x9, #63
	asr	x9, x9, #34
	add	x10, x0, x23
	add	w9, w9, w11
	str	w9, [x10]
	str	x1, [x10, #8]
	ldr	w11, [x28]
	cmp	w9, w11
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x28]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x21]
	cmp	w9, w11
	b.ls	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w5, [x19, #1]
	mov	x11, x1
	bfi	x11, x5, #8, #8
	str	x11, [x10, #8]
	ldr	w8, [x8, x1, lsl #2]
	smull	x10, w8, w27
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w2, w10, w11
	mov	w10, #10
	msub	w3, w2, w10, w8
	umull	x8, w9, w22
	ldr	x9, [x26]
	ldr	w9, [x9, x5, lsl #2]
	lsr	x4, x8, #38
	smull	x8, w9, w22
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w6, w8, w10
	msub	w7, w6, w25, w9
	mov	x0, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_dprintk
Lloh22:
	adrp	x8, _number_scales@GOTPAGE
Lloh23:
	ldr	x8, [x8, _number_scales@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	x24, x8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x8, _powernow_table@GOTPAGE
Lloh26:
	ldr	x8, [x8, _powernow_table@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	add	x23, x23, #16
	add	x24, x24, #1
	add	x19, x19, #2
	b	LBB0_3
LBB0_9:
	sxtw	x9, w8
Lloh28:
	adrp	x8, _powernow_table@GOTPAGE
Lloh29:
	ldr	x8, [x8, _powernow_table@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
Lloh31:
	adrp	x20, _number_scales@GOTPAGE
Lloh32:
	ldr	x20, [x20, _number_scales@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_13
LBB0_11:
	mov	x9, #0
LBB0_12:
	mov	w8, #0
Lloh36:
	adrp	x10, _CPUFREQ_TABLE_END@GOTPAGE
Lloh37:
	ldr	x10, [x10, _CPUFREQ_TABLE_END@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	lsl	x9, x9, #4
	str	w10, [x0, x9]
	ldrsw	x9, [x20]
	add	x9, x0, x9, lsl #4
	str	xzr, [x9, #8]
LBB0_13:
	mov	x0, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_number_scales,4,2              ; @number_scales
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_powernow_table,8,3             ; @powernow_table
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fsb,4,2                        ; @fsb
	.comm	_fid_codes,8,3                  ; @fid_codes
	.comm	_minimum_speed,4,2              ; @minimum_speed
	.comm	_maximum_speed,4,2              ; @maximum_speed
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   FID: 0x%x (%d.%dx [%dMHz])  VID: 0x%x (%d.%03dV)\n"

	.comm	_mobile_vid_table,8,3           ; @mobile_vid_table
	.comm	_CPUFREQ_TABLE_END,4,2          ; @CPUFREQ_TABLE_END
	.comm	_have_a0,4,2                    ; @have_a0
	.no_dead_strip	_get_ranges
.subsections_via_symbols
