	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_overdrive_limits
_init_overdrive_limits:                 ## @init_overdrive_limits
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movups	%xmm0, 16(%rdi)
	movq	$0, 48(%rdi)
	movq	(%rdi), %rax
	movq	_CHIP_RAVEN@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %r12d
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FirmwareInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-36(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_smu_atom_get_data_table
	movq	%rax, %r12
	movl	(%rax), %eax
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	cmpl	$4, %eax
	jb	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_init_overdrive_limits_V1_4
	jmp	LBB0_8
LBB0_4:
	movl	(%r12), %eax
LBB0_5:
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.6:
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	cmpl	$4, %eax
	jb	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_init_overdrive_limits_V2_1
LBB0_8:
	movl	%eax, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_RAVEN,8,3                 ## @CHIP_RAVEN
	.comm	_DATA,4,2                       ## @DATA
	.comm	_FirmwareInfo,4,2               ## @FirmwareInfo
	.no_dead_strip	_init_overdrive_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_overdrive_limits
_init_overdrive_limits:                 ; @init_overdrive_limits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [x0, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_RAVEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_RAVEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w21, [x0, #8]
Lloh3:
	adrp	x8, _DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _FirmwareInfo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FirmwareInfo@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	add	x2, sp, #4
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	bl	_smu_atom_get_data_table
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	cmp	w0, #4
	b.lo	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_init_overdrive_limits_V1_4
	b	LBB0_9
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.6:
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	cmp	w0, #4
	b.lo	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_init_overdrive_limits_V2_1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_RAVEN,8,3                 ; @CHIP_RAVEN
	.comm	_DATA,4,2                       ; @DATA
	.comm	_FirmwareInfo,4,2               ; @FirmwareInfo
	.no_dead_strip	_init_overdrive_limits
.subsections_via_symbols
