	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_clock_voltage_dependency
_init_clock_voltage_dependency:         ## @init_clock_voltage_dependency
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	$0, 48(%rdi)
	movq	$0, 32(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	movups	%xmm0, 64(%rdi)
	movups	%xmm0, 80(%rdi)
	movups	%xmm0, 96(%rdi)
	callq	_get_vce_clock_info_array_offset
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_vce_clock_voltage_limit_table_offset
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	leaq	88(%r13), %rsi
	addq	%r14, %rbx
	addq	%r14, %rax
	movq	%r13, %rdi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_get_vce_clock_voltage_limit_table
	movl	%eax, %r15d
LBB0_3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_uvd_clock_info_array_offset
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_uvd_clock_voltage_limit_table_offset
	testq	%rbx, %rbx
	jle	LBB0_6
## %bb.4:
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	leaq	80(%r13), %rsi
	addq	%r14, %rbx
	addq	%r14, %rax
	movq	%r13, %rdi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_get_uvd_clock_voltage_limit_table
	movl	%eax, %r15d
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_samu_clock_voltage_limit_table_offset
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	leaq	72(%r13), %rsi
	addq	%r14, %rax
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_get_samu_clock_voltage_limit_table
	movl	%eax, %r15d
LBB0_8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_acp_clock_voltage_limit_table_offset
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	leaq	64(%r13), %rsi
	addq	%r14, %rax
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_get_acp_clock_voltage_limit_table
	movl	%eax, %r15d
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_cacp_tdp_table_offset
	testq	%rax, %rax
	jle	LBB0_14
## %bb.11:
	movq	%rax, %rbx
	addq	%r14, %rbx
	cmpq	$0, (%rax,%r14)
	jle	LBB0_13
## %bb.12:
	leaq	56(%r13), %r15
	leaq	16(%rbx), %r12
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_get_cac_tdp_table
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	movq	56(%r13), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_13:
	leaq	56(%r13), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	$255, %ecx
	callq	_get_cac_tdp_table
	movl	%eax, %r15d
LBB0_14:
	movq	(%r14), %rdi
	callq	_le16_to_cpu
	cmpl	$40, %eax
	jb	LBB0_33
## %bb.15:
	leaq	16(%r13), %r12
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_le16_to_cpu
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_get_clock_voltage_dependency_table
	movl	%eax, %r15d
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_33:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_get_sclk_vdd_gfx_clock_voltage_dependency_table_offset
	testq	%rax, %rax
	jle	LBB0_34
## %bb.35:
	addq	%r14, %rax
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_clock_voltage_dependency_table ## TAILCALL
LBB0_34:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	leaq	48(%r13), %rbx
	callq	_le16_to_cpu
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_clock_voltage_dependency_table
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_33
LBB0_20:
	leaq	32(%r13), %rbx
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_le16_to_cpu
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_clock_voltage_dependency_table
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_33
LBB0_22:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_le16_to_cpu
	movslq	%eax, %rdx
	addq	%r14, %rdx
	leaq	44(%r13), %rsi
	movq	%r13, %rdi
	callq	_get_clock_voltage_limit
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_33
LBB0_24:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.25:
	cmpq	$0, (%rdx)
	je	LBB0_27
## %bb.26:
	leaq	40(%r13), %rsi
	movq	%r13, %rdi
	callq	_get_valid_clk
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_33
LBB0_27:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.28:
	cmpq	$0, (%rdx)
	je	LBB0_30
## %bb.29:
	leaq	24(%r13), %rsi
	movq	%r13, %rdi
	callq	_get_valid_clk
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_33
LBB0_30:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.32:
	leaq	8(%r13), %rbx
	callq	_le16_to_cpu
	movslq	%eax, %rdx
	addq	%r14, %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_clock_voltage_dependency_table
	movl	%eax, %r15d
	jmp	LBB0_33
LBB0_31:
	xorl	%r15d, %r15d
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_clock_voltage_dependency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_clock_voltage_dependency
_init_clock_voltage_dependency:         ; @init_clock_voltage_dependency
	.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	x20, x1
	mov	x19, x0
	mov	x22, x0
	str	xzr, [x22, #16]!
	mov	x24, x0
	str	xzr, [x24, #48]!
	mov	x23, x0
	str	xzr, [x23, #32]!
	mov	x21, x0
	str	xzr, [x21, #8]!
	movi.2d	v0, #0000000000000000
	mov	x27, x0
	str	q0, [x27, #80]!
	mov	x26, x0
	str	q0, [x26, #64]!
	str	xzr, [x0]
	str	q0, [x0, #96]
	bl	_get_vce_clock_info_array_offset
	mov	x28, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_vce_clock_voltage_limit_table_offset
	mov	w25, #0
	cmp	x28, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	add	x1, x19, #88
	add	x3, x28, x20
	add	x2, x0, x20
	mov	x0, x19
	bl	_get_vce_clock_voltage_limit_table
	mov	x25, x0
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_get_uvd_clock_info_array_offset
	mov	x28, x0
	mov	x0, x19
	mov	x1, x20
	bl	_get_uvd_clock_voltage_limit_table_offset
	cmp	x28, #1
	b.lt	LBB0_6
; %bb.4:
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
	add	x3, x28, x20
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x27
	bl	_get_uvd_clock_voltage_limit_table
	mov	x25, x0
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_get_samu_clock_voltage_limit_table_offset
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:
	add	x1, x19, #72
	add	x2, x0, x20
	mov	x0, x19
	bl	_get_samu_clock_voltage_limit_table
	mov	x25, x0
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_get_acp_clock_voltage_limit_table_offset
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.9:
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x26
	bl	_get_acp_clock_voltage_limit_table
	mov	x25, x0
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_get_cacp_tdp_table_offset
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.11:
	add	x26, x0, x20
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.12:
	add	x25, x19, #56
	add	x27, x26, #16
	ldr	x0, [x26]
	bl	_le16_to_cpu
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	bl	_get_cac_tdp_table
	mov	x25, x0
	ldr	x0, [x26, #8]
	bl	_le16_to_cpu
	ldr	x8, [x19, #56]
	str	w0, [x8]
	b	LBB0_14
LBB0_13:
	add	x1, x19, #56
	mov	x0, x19
	mov	x2, x26
	mov	w3, #255
	bl	_get_cac_tdp_table
	mov	x25, x0
LBB0_14:
	ldr	x0, [x20]
	bl	_le16_to_cpu
	cmp	w0, #40
	b.lo	LBB0_18
; %bb.15:
	ldr	x0, [x20]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_le16_to_cpu
	add	x2, x20, w0, sxtw
	mov	x0, x19
	mov	x1, x22
	bl	_get_clock_voltage_dependency_table
	mov	x25, x0
LBB0_17:
	cbz	w25, LBB0_21
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_get_sclk_vdd_gfx_clock_voltage_dependency_table_offset
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.19:
	add	x2, x0, x20
	mov	x0, x19
	mov	x1, x19
	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
	b	_get_clock_voltage_dependency_table
LBB0_20:
	mov	x0, x25
	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
LBB0_21:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_le16_to_cpu
	add	x2, x20, w0, sxtw
	mov	x0, x19
	mov	x1, x24
	bl	_get_clock_voltage_dependency_table
	mov	x25, x0
	cbnz	w0, LBB0_18
LBB0_23:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_le16_to_cpu
	add	x2, x20, w0, sxtw
	mov	x0, x19
	mov	x1, x23
	bl	_get_clock_voltage_dependency_table
	mov	x25, x0
	cbnz	w0, LBB0_18
LBB0_25:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_le16_to_cpu
	add	x2, x20, w0, sxtw
	add	x1, x19, #44
	mov	x0, x19
	bl	_get_clock_voltage_limit
	mov	x25, x0
	cbnz	w0, LBB0_18
LBB0_27:
	ldr	x2, [x23]
	cbz	x2, LBB0_30
; %bb.28:
	ldr	x8, [x2]
	cbz	x8, LBB0_30
; %bb.29:
	add	x1, x19, #40
	mov	x0, x19
	bl	_get_valid_clk
	mov	x25, x0
	cbnz	w0, LBB0_18
LBB0_30:
	ldr	x2, [x22]
	cbz	x2, LBB0_33
; %bb.31:
	ldr	x8, [x2]
	cbz	x8, LBB0_33
; %bb.32:
	add	x1, x19, #24
	mov	x0, x19
	bl	_get_valid_clk
	mov	x25, x0
	cbnz	w0, LBB0_18
LBB0_33:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_le16_to_cpu
	add	x2, x20, w0, sxtw
	mov	x0, x19
	mov	x1, x21
	bl	_get_clock_voltage_dependency_table
	mov	x25, x0
	b	LBB0_18
LBB0_35:
	mov	w25, #0
	b	LBB0_18
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_clock_voltage_dependency
.subsections_via_symbols
