	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_powerplay_extended_tables
_init_powerplay_extended_tables:        ## @init_powerplay_extended_tables
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movq	80(%rsi), %rdi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movq	72(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movq	64(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, %r12
	movq	56(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	24(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	48(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	40(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	48(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	$0, 48(%r15)
	leaq	32(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, 32(%r15)
	movq	$0, (%r15)
	leaq	16(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%r15)
	movups	%xmm0, 96(%r15)
	movq	$0, 112(%r15)
	cmpq	$0, 80(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	112(%r15), %rsi
	addq	%rbx, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_get_mm_clock_voltage_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_2:
	cmpq	$0, 72(%rbx)
	je	LBB0_4
## %bb.3:
	addq	%rbx, %r13
	leaq	104(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_get_tdp_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_4:
	cmpq	$0, 64(%rbx)
	je	LBB0_6
## %bb.5:
	addq	%rbx, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_get_socclk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_6:
	cmpq	$0, 56(%rbx)
	je	LBB0_8
## %bb.7:
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addq	%rbx, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_gfxclk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_8:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.9:
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	addq	%rbx, %rdx
	leaq	96(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_pix_clk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_10:
	cmpq	$0, 40(%rbx)
	je	LBB0_12
## %bb.11:
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addq	%rbx, %rdx
	leaq	88(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_pix_clk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_12:
	cmpq	$0, 32(%rbx)
	je	LBB0_14
## %bb.13:
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	addq	%rbx, %rdx
	leaq	80(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_pix_clk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_14:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.15:
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	addq	%rbx, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_dcefclk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_16:
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.17:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	addq	%rbx, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_get_mclk_voltage_dependency_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_18:
	cmpq	$0, 8(%rbx)
	je	LBB0_20
## %bb.19:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	%rbx, %rdx
	leaq	76(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_pcie_table
	testl	%eax, %eax
	jne	LBB0_23
LBB0_20:
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.22:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addq	%rbx, %rdx
	leaq	60(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_hard_limits
	jmp	LBB0_23
LBB0_21:
	xorl	%eax, %eax
LBB0_23:
	movups	60(%r15), %xmm0
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rcx)
	testl	%eax, %eax
	je	LBB0_24
LBB0_35:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.25:
	cmpq	$0, (%rdx)
	je	LBB0_27
## %bb.26:
	leaq	56(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_valid_clk
	testl	%eax, %eax
	jne	LBB0_35
LBB0_27:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.28:
	cmpq	$0, (%rdx)
	je	LBB0_30
## %bb.29:
	leaq	40(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_valid_clk
	testl	%eax, %eax
	jne	LBB0_35
LBB0_30:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_33
## %bb.31:
	cmpq	$0, (%rdx)
	je	LBB0_33
## %bb.32:
	leaq	24(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_valid_clk
	testl	%eax, %eax
	jne	LBB0_35
LBB0_33:
	movq	(%r15), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_35
## %bb.34:
	cmpq	$0, (%rdx)
	je	LBB0_35
## %bb.36:
	addq	$8, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_valid_clk                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_powerplay_extended_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_powerplay_extended_tables
_init_powerplay_extended_tables:        ; @init_powerplay_extended_tables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x1
	mov	x19, x0
	ldr	x25, [x0, #16]
	ldr	x0, [x1, #80]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x0, [x21, #72]
	bl	_le16_to_cpu
	mov	x28, x0
	ldr	x0, [x21, #64]
	bl	_le16_to_cpu
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #56]
	bl	_le16_to_cpu
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #24]
	bl	_le16_to_cpu
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #16]
	bl	_le16_to_cpu
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x0, [x21]
	bl	_le16_to_cpu
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x0, [x21, #8]
	bl	_le16_to_cpu
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #48]
	bl	_le16_to_cpu
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #40]
	bl	_le16_to_cpu
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	ldr	x0, [x21, #32]
	bl	_le16_to_cpu
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	mov	x27, x25
	str	xzr, [x27, #48]!
	mov	x23, x25
	str	xzr, [x23, #32]!
	mov	x22, x25
	str	xzr, [x22, #16]!
	movi.2d	v0, #0000000000000000
	mov	x20, x25
	str	q0, [x20, #96]!
	str	xzr, [x25]
	mov	x26, x25
	str	q0, [x26, #80]!
	str	xzr, [x25, #112]
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, x25, #112
	add	x2, x24, x21
	mov	x0, x19
	bl	_get_mm_clock_voltage_table
	cbnz	w0, LBB0_23
LBB0_2:
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_4
; %bb.3:
	add	x2, x28, x21
	add	x1, x25, #104
	mov	x0, x19
	bl	_get_tdp_table
	cbnz	w0, LBB0_23
LBB0_4:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x27
	bl	_get_socclk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_6:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x23
	bl	_get_gfxclk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_8:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x20
	bl	_get_pix_clk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_10:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	add	x1, x25, #88
	mov	x0, x19
	bl	_get_pix_clk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_12:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x26
	bl	_get_pix_clk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_14:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x22
	bl	_get_dcefclk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_16:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	mov	x0, x19
	mov	x1, x25
	bl	_get_mclk_voltage_dependency_table
	cbnz	w0, LBB0_23
LBB0_18:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x2, x8, x21
	add	x1, x25, #76
	mov	x0, x19
	bl	_get_pcie_table
	cbnz	w0, LBB0_23
LBB0_20:
	ldr	x8, [x21]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x2, x8, x21
	add	x1, x25, #60
	mov	x0, x19
	bl	_get_hard_limits
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldur	q0, [x25, #60]
	str	q0, [x19]
	cbz	w0, LBB0_25
LBB0_24:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_25:
	ldr	x2, [x27]
	cbz	x2, LBB0_28
; %bb.26:
	ldr	x8, [x2]
	cbz	x8, LBB0_28
; %bb.27:
	add	x1, x25, #56
	mov	x0, x19
	bl	_get_valid_clk
	cbnz	w0, LBB0_24
LBB0_28:
	ldr	x2, [x23]
	cbz	x2, LBB0_31
; %bb.29:
	ldr	x8, [x2]
	cbz	x8, LBB0_31
; %bb.30:
	add	x1, x25, #40
	mov	x0, x19
	bl	_get_valid_clk
	cbnz	w0, LBB0_24
LBB0_31:
	ldr	x2, [x22]
	cbz	x2, LBB0_34
; %bb.32:
	ldr	x8, [x2]
	cbz	x8, LBB0_34
; %bb.33:
	add	x1, x25, #24
	mov	x0, x19
	bl	_get_valid_clk
	cbnz	w0, LBB0_24
LBB0_34:
	ldr	x2, [x25]
	cbz	x2, LBB0_37
; %bb.35:
	ldr	x8, [x2]
	cbz	x8, LBB0_37
; %bb.36:
	add	x1, x25, #8
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_get_valid_clk
LBB0_37:
	mov	w0, #0
	b	LBB0_24
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_powerplay_extended_tables
.subsections_via_symbols
