	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function powernow_k6_cpu_init
_powernow_k6_cpu_init:                  ## @powernow_k6_cpu_init
	.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
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_powernow_k6_get_cpu_multiplier
	movl	%eax, %ecx
	movq	_max_multiplier@GOTPCREL(%rip), %r11
	movl	%eax, (%r11)
	movq	_cpu_khz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	divl	%ecx
	movq	_busfreq@GOTPCREL(%rip), %r8
	movl	%eax, (%r8)
	movq	_clock_ratio@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	(%rsi), %edi
	movq	_CPUFREQ_TABLE_END@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	je	LBB0_13
## %bb.3:
	movl	4(%rsi), %edi
	movl	8(%rsi), %r10d
	movq	_CPUFREQ_ENTRY_INVALID@GOTPCREL(%rip), %r9
	cmpl	%ecx, %edi
	jbe	LBB0_4
## %bb.5:
	movl	(%r9), %eax
	jmp	LBB0_6
LBB0_4:
	imull	%edi, %eax
LBB0_6:
	movl	%eax, (%rsi)
	cmpl	(%rdx), %r10d
	jne	LBB0_7
LBB0_12:
	movl	(%r8), %eax
	movl	(%r11), %ecx
LBB0_13:
	imull	%eax, %ecx
	movq	_CPUFREQ_ETERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	%ecx, 8(%rbx)
	movq	%rbx, %rdi
	callq	_cpufreq_frequency_table_cpuinfo
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_cpufreq_frequency_table_get_attr
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	8(%rsi), %rcx
	movl	$1, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r9), %edi
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%edi, (%rcx)
	incl	%eax
	leaq	(%rsi,%rax,8), %rcx
	movl	(%rsi,%rax,8), %edi
	cmpl	(%rdx), %edi
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rsi,%rax,8), %edi
	cmpl	(%r11), %edi
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	imull	(%r8), %edi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_max_multiplier,4,2             ## @max_multiplier
	.comm	_cpu_khz,4,2                    ## @cpu_khz
	.comm	_busfreq,4,2                    ## @busfreq
	.comm	_clock_ratio,8,3                ## @clock_ratio
	.comm	_CPUFREQ_TABLE_END,4,2          ## @CPUFREQ_TABLE_END
	.comm	_CPUFREQ_ENTRY_INVALID,4,2      ## @CPUFREQ_ENTRY_INVALID
	.comm	_CPUFREQ_ETERNAL,4,2            ## @CPUFREQ_ETERNAL
	.no_dead_strip	_powernow_k6_cpu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function powernow_k6_cpu_init
_powernow_k6_cpu_init:                  ; @powernow_k6_cpu_init
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	bl	_powernow_k6_get_cpu_multiplier
Lloh3:
	adrp	x8, _max_multiplier@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max_multiplier@GOTPAGEOFF]
	str	w0, [x8]
Lloh5:
	adrp	x9, _cpu_khz@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cpu_khz@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	udiv	w11, w9, w0
Lloh8:
	adrp	x9, _busfreq@GOTPAGE
Lloh9:
	ldr	x9, [x9, _busfreq@GOTPAGEOFF]
	str	w11, [x9]
Lloh10:
	adrp	x20, _clock_ratio@GOTPAGE
Lloh11:
	ldr	x20, [x20, _clock_ratio@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	w12, [x1]
Lloh12:
	adrp	x10, _CPUFREQ_TABLE_END@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CPUFREQ_TABLE_END@GOTPAGEOFF]
	ldr	w13, [x10]
	cmp	w12, w13
	b.eq	LBB0_7
; %bb.3:
	ldr	w12, [x1, #4]
	mul	w13, w11, w12
Lloh14:
	adrp	x11, _CPUFREQ_ENTRY_INVALID@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CPUFREQ_ENTRY_INVALID@GOTPAGEOFF]
	ldr	w14, [x11]
	cmp	w12, w0
	csel	w12, w14, w13, hi
	str	w12, [x1]
	mov	x12, x1
	ldr	w13, [x12, #8]!
	ldr	w14, [x10]
	cmp	w13, w14
	b.eq	LBB0_6
; %bb.4:
	mov	w13, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x8]
	ldr	w15, [x9]
	add	x16, x1, x13, lsl #3
	ldr	w16, [x16, #4]
	mul	w15, w15, w16
	ldr	w17, [x11]
	cmp	w16, w14
	csel	w14, w17, w15, hi
	str	w14, [x12]
	add	w13, w13, #1
	add	x12, x1, w13, uxtw #3
	ldr	w14, [x12]
	ldr	w15, [x10]
	cmp	w14, w15
	b.ne	LBB0_5
LBB0_6:
	ldr	w11, [x9]
	ldr	w0, [x8]
LBB0_7:
Lloh16:
	adrp	x8, _CPUFREQ_ETERNAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CPUFREQ_ETERNAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mul	w9, w0, w11
	stp	w9, w8, [x19, #8]
	mov	x0, x19
	bl	_cpufreq_frequency_table_cpuinfo
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x20]
	ldr	x1, [x19]
	bl	_cpufreq_frequency_table_get_attr
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_max_multiplier,4,2             ; @max_multiplier
	.comm	_cpu_khz,4,2                    ; @cpu_khz
	.comm	_busfreq,4,2                    ; @busfreq
	.comm	_clock_ratio,8,3                ; @clock_ratio
	.comm	_CPUFREQ_TABLE_END,4,2          ; @CPUFREQ_TABLE_END
	.comm	_CPUFREQ_ENTRY_INVALID,4,2      ; @CPUFREQ_ENTRY_INVALID
	.comm	_CPUFREQ_ETERNAL,4,2            ; @CPUFREQ_ETERNAL
	.no_dead_strip	_powernow_k6_cpu_init
.subsections_via_symbols
