	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_odn_initial_default_setting
_smu7_odn_initial_default_setting:      ## @smu7_odn_initial_default_setting
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %r15
	movq	(%rax), %r14
	movq	8(%rax), %rdi
	movq	16(%r15), %r9
	movq	72(%r15), %r8
	movq	%r9, 64(%r15)
	testq	%r9, %r9
	je	LBB0_9
## %bb.3:
	movq	24(%r15), %rsi
	movq	(%rdi), %rdx
	cmpq	$1, %r9
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_5:
	movq	%r9, %r10
	andq	$-2, %r10
	leaq	20(%r8), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax,4), %ecx
	movl	%ecx, -12(%rbx)
	movl	$1, -20(%rbx)
	movl	(%rdx,%rax,4), %ecx
	movl	%ecx, -16(%rbx)
	movl	4(%rsi,%rax,4), %ecx
	movl	%ecx, (%rbx)
	movl	$1, -8(%rbx)
	movl	4(%rdx,%rax,4), %ecx
	movl	%ecx, -4(%rbx)
	addq	$2, %rax
	addq	$24, %rbx
	cmpq	%rax, %r10
	jne	LBB0_6
LBB0_7:
	testb	$1, %r9b
	je	LBB0_9
## %bb.8:
	movl	(%rsi,%rax,4), %ecx
	leaq	(%rax,%rax,2), %rsi
	movl	%ecx, 8(%r8,%rsi,4)
	movl	$1, (%r8,%rsi,4)
	movl	(%rdx,%rax,4), %eax
	movl	%eax, 4(%r8,%rsi,4)
LBB0_9:
	leaq	56(%r15), %rsi
	callq	_smu_get_voltage_dependency_table_ppt_v1
	movq	(%r15), %r9
	movq	48(%r15), %r8
	movq	%r9, 40(%r15)
	testq	%r9, %r9
	je	LBB0_16
## %bb.10:
	movq	8(%r15), %rsi
	movq	(%r14), %rdx
	cmpq	$1, %r9
	jne	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_12:
	movq	%r9, %rcx
	andq	$-2, %rcx
	leaq	20(%r8), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %eax
	movl	%eax, -12(%rbx)
	movl	$1, -20(%rbx)
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, -16(%rbx)
	movl	4(%rsi,%rdi,4), %eax
	movl	%eax, (%rbx)
	movl	$1, -8(%rbx)
	movl	4(%rdx,%rdi,4), %eax
	movl	%eax, -4(%rbx)
	addq	$2, %rdi
	addq	$24, %rbx
	cmpq	%rdi, %rcx
	jne	LBB0_13
LBB0_14:
	testb	$1, %r9b
	je	LBB0_16
## %bb.15:
	movl	(%rsi,%rdi,4), %eax
	leaq	(%rdi,%rdi,2), %rcx
	movl	%eax, 8(%r8,%rcx,4)
	movl	$1, (%r8,%rcx,4)
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, 4(%r8,%rcx,4)
LBB0_16:
	addq	$32, %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_smu_get_voltage_dependency_table_ppt_v1
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu7_odn_initial_default_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_odn_initial_default_setting
_smu7_odn_initial_default_setting:      ; @smu7_odn_initial_default_setting
	.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_4
; %bb.1:
	ldr	x20, [x0, #8]
	ldp	x19, x0, [x8]
	ldr	x10, [x20, #16]
	str	x10, [x20, #64]
	cbz	x10, LBB0_10
; %bb.2:
	ldr	x9, [x20, #72]
	ldr	x11, [x20, #24]
	ldr	x8, [x0]
	cmp	x10, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x12, #0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_5:
	and	x12, x10, #0xfffffffffffffff8
	add	x13, x11, #16
	add	x14, x8, #16
	movi.4s	v0, #1
	mov	x15, x12
	mov	x16, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q2, [x13, #-16]
	ldp	q4, q1, [x14, #-16]
	mov.16b	v3, v0
	add	x17, x16, #96
	st3.4s	{ v3, v4, v5 }, [x16], #48
	st3.4s	{ v0, v1, v2 }, [x16]
	add	x13, x13, #32
	add	x14, x14, #32
	mov	x16, x17
	subs	x15, x15, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x12
	b.eq	LBB0_10
LBB0_8:
	sub	x10, x10, x12
	lsl	x13, x12, #2
	add	x11, x11, x13
	mov	w14, #12
	madd	x9, x12, x14, x9
	add	x9, x9, #4
	add	x8, x8, x13
	mov	w12, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	stur	w12, [x9, #-4]
	ldr	w14, [x8], #4
	stp	w14, w13, [x9], #12
	subs	x10, x10, #1
	b.ne	LBB0_9
LBB0_10:
	add	x1, x20, #56
	bl	_smu_get_voltage_dependency_table_ppt_v1
	ldr	x10, [x20]
	str	x10, [x20, #40]
	cbz	x10, LBB0_18
; %bb.11:
	ldr	x9, [x20, #48]
	ldr	x11, [x20, #8]
	ldr	x8, [x19]
	cmp	x10, #8
	b.hs	LBB0_13
; %bb.12:
	mov	x12, #0
	b	LBB0_16
LBB0_13:
	and	x12, x10, #0xfffffffffffffff8
	add	x13, x11, #16
	add	x14, x8, #16
	movi.4s	v0, #1
	mov	x15, x12
	mov	x16, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q2, [x13, #-16]
	ldp	q4, q1, [x14, #-16]
	mov.16b	v3, v0
	add	x17, x16, #96
	st3.4s	{ v3, v4, v5 }, [x16], #48
	st3.4s	{ v0, v1, v2 }, [x16]
	add	x13, x13, #32
	add	x14, x14, #32
	mov	x16, x17
	subs	x15, x15, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x10, x12
	b.eq	LBB0_18
LBB0_16:
	sub	x10, x10, x12
	lsl	x13, x12, #2
	add	x11, x11, x13
	mov	w14, #12
	madd	x9, x12, x14, x9
	add	x9, x9, #4
	add	x8, x8, x13
	mov	w12, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	stur	w12, [x9, #-4]
	ldr	w14, [x8], #4
	stp	w14, w13, [x9], #12
	subs	x10, x10, #1
	b.ne	LBB0_17
LBB0_18:
	add	x1, x20, #32
	mov	x0, x19
	bl	_smu_get_voltage_dependency_table_ppt_v1
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu7_odn_initial_default_setting
.subsections_via_symbols
