	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_setup_default_dpm_tables
_ci_setup_default_dpm_tables:           ## @ci_setup_default_dpm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ci_get_pi
	cmpl	$0, 56(%r15)
	jle	LBB0_1
## %bb.2:
	cmpl	$0, 40(%r15)
	jle	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	64(%r14), %r12
	movq	_SMU7_MAX_LEVELS_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ci_reset_single_dpm_table
	leaq	48(%r14), %r13
	movq	_SMU7_MAX_LEVELS_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ci_reset_single_dpm_table
	leaq	32(%r14), %rsi
	movq	_SMU7_MAX_LEVELS_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_ci_reset_single_dpm_table
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	_SMU7_MAX_LEVELS_VDDCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_ci_reset_single_dpm_table
	movq	_SMU7_MAX_LEVELS_MVDD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ci_reset_single_dpm_table
	movq	$0, 64(%r14)
	movslq	56(%r15), %r8
	testq	%r8, %r8
	je	LBB0_9
## %bb.4:
	cmpq	$2, %r8
	movl	$1, %ecx
	cmovaeq	%r8, %rcx
	movl	$1, %edx
	movq	64(%r15), %rsi
	movq	72(%r14), %rdi
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	movl	$1, 8(%rdi)
	movq	$1, 64(%r14)
	cmpl	$1, %r8d
	jne	LBB0_5
LBB0_9:
	movq	$0, (%r13)
	movslq	40(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.10:
	movq	48(%r15), %rdx
	movq	56(%r14), %rsi
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	movl	$1, 8(%rsi)
	movq	$1, 48(%r14)
	cmpl	$1, %ecx
	jne	LBB0_11
LBB0_15:
	testl	%r8d, %r8d
	je	LBB0_22
## %bb.16:
	movq	32(%r15), %rdx
	movq	64(%r15), %rsi
	movq	40(%r14), %rcx
	cmpq	$2, %r8
	movl	$1, %r9d
	cmovaeq	%r8, %r9
	cmpl	$1, %r8d
	jne	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_37
LBB0_5:
	decq	%rcx
	addq	$16, %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rsi
	decq	%rcx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	(%rsi), %rbx
	cmpq	%rbx, -16(%rax,%rdi)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, (%rdi,%rax)
	movl	$0, 8(%rdi,%rax)
	incq	%rdx
	movq	%rdx, (%r12)
	jmp	LBB0_8
LBB0_11:
	decq	%rcx
	addq	$16, %rdx
	movl	$1, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$16, %rdx
	decq	%rcx
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	shlq	$4, %rdi
	movq	(%rdx), %rbx
	cmpq	%rbx, -16(%rdi,%rsi)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, (%rsi,%rdi)
	movl	$0, 8(%rsi,%rdi)
	incq	%rax
	movq	%rax, (%r13)
	jmp	LBB0_14
LBB0_18:
	movq	%r9, %r10
	andq	$-2, %r10
	movl	$24, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rsi,%rbx), %rdi
	movq	%rdi, -24(%rcx,%rbx)
	movl	(%rdx,%rax,4), %edi
	movl	%edi, -12(%rcx,%rbx)
	movl	$1, -16(%rcx,%rbx)
	movq	(%rsi,%rbx), %rdi
	movq	%rdi, -8(%rcx,%rbx)
	movl	4(%rdx,%rax,4), %edi
	movl	%edi, 4(%rcx,%rbx)
	movl	$1, (%rcx,%rbx)
	addq	$2, %rax
	addq	$32, %rbx
	cmpq	%rax, %r10
	jne	LBB0_19
LBB0_20:
	testb	$1, %r9b
	je	LBB0_22
## %bb.21:
	movq	%rax, %rdi
	shlq	$4, %rdi
	movq	8(%rsi,%rdi), %rsi
	movq	%rsi, (%rcx,%rdi)
	movl	(%rdx,%rax,4), %eax
	movl	%eax, 12(%rcx,%rdi)
	movl	$1, 8(%rcx,%rdi)
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, (%rax)
	movslq	16(%r15), %r9
	testq	%r9, %r9
	je	LBB0_29
## %bb.23:
	movq	24(%r15), %rdx
	movq	24(%r14), %rcx
	cmpq	$2, %r9
	movl	$1, %r8d
	cmovaeq	%r9, %r8
	cmpl	$1, %r9d
	jne	LBB0_25
## %bb.24:
	xorl	%edi, %edi
	jmp	LBB0_27
LBB0_25:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movl	$24, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rdx,%rbx), %rax
	movq	%rax, -24(%rcx,%rbx)
	movl	$1, -16(%rcx,%rbx)
	movq	(%rdx,%rbx), %rax
	movq	%rax, -8(%rcx,%rbx)
	movl	$1, (%rcx,%rbx)
	addq	$2, %rdi
	addq	$32, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_26
LBB0_27:
	testb	$1, %r8b
	je	LBB0_29
## %bb.28:
	shlq	$4, %rdi
	movq	8(%rdx,%rdi), %rax
	movq	%rax, (%rcx,%rdi)
	movl	$1, 8(%rcx,%rdi)
LBB0_29:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r9, (%rax)
	movslq	(%r15), %r9
	testq	%r9, %r9
	je	LBB0_36
## %bb.30:
	movq	8(%r15), %rdx
	movq	8(%r14), %rcx
	cmpq	$2, %r9
	movl	$1, %r8d
	cmovaeq	%r9, %r8
	cmpl	$1, %r9d
	jne	LBB0_32
## %bb.31:
	xorl	%edi, %edi
	jmp	LBB0_34
LBB0_32:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movl	$24, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rdx,%rbx), %rax
	movq	%rax, -24(%rcx,%rbx)
	movl	$1, -16(%rcx,%rbx)
	movq	(%rdx,%rbx), %rax
	movq	%rax, -8(%rcx,%rbx)
	movl	$1, (%rcx,%rbx)
	addq	$2, %rdi
	addq	$32, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_33
LBB0_34:
	testb	$1, %r8b
	je	LBB0_36
## %bb.35:
	shlq	$4, %rdi
	movq	8(%rdx,%rdi), %rax
	movq	%rax, (%rcx,%rdi)
	movl	$1, 8(%rcx,%rdi)
LBB0_36:
	movq	%r9, (%r14)
	movq	%r15, %rdi
	callq	_ci_setup_default_pcie_tables
	xorl	%eax, %eax
LBB0_37:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ## @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_SMU7_MAX_LEVELS_MEMORY,4,2     ## @SMU7_MAX_LEVELS_MEMORY
	.comm	_SMU7_MAX_LEVELS_VDDC,4,2       ## @SMU7_MAX_LEVELS_VDDC
	.comm	_SMU7_MAX_LEVELS_VDDCI,4,2      ## @SMU7_MAX_LEVELS_VDDCI
	.comm	_SMU7_MAX_LEVELS_MVDD,4,2       ## @SMU7_MAX_LEVELS_MVDD
	.no_dead_strip	_ci_setup_default_dpm_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_setup_default_dpm_tables
_ci_setup_default_dpm_tables:           ; @ci_setup_default_dpm_tables
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_ci_get_pi
	ldr	w8, [x19, #56]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.1:
	ldr	w8, [x19, #40]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.2:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x24, x20, #64
Lloh0:
	adrp	x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x24
	bl	_ci_reset_single_dpm_table
	add	x23, x20, #48
Lloh3:
	adrp	x8, _SMU7_MAX_LEVELS_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_ci_reset_single_dpm_table
	add	x22, x20, #32
Lloh6:
	adrp	x8, _SMU7_MAX_LEVELS_VDDC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_VDDC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_ci_reset_single_dpm_table
	add	x21, x20, #16
Lloh9:
	adrp	x8, _SMU7_MAX_LEVELS_VDDCI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_VDDCI@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_ci_reset_single_dpm_table
Lloh12:
	adrp	x8, _SMU7_MAX_LEVELS_MVDD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_MVDD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ci_reset_single_dpm_table
	str	xzr, [x20, #64]
	ldrsw	x8, [x19, #56]
	cbz	w8, LBB0_4
; %bb.3:
	cmp	x8, #1
	csinc	x10, x8, xzr, hi
	ldr	x11, [x19, #64]
	ldr	x9, [x20, #72]
	ldr	x12, [x11]
	str	x12, [x9]
	mov	w12, #1
	str	w12, [x9, #8]
	str	x12, [x20, #64]
	cmp	w8, #1
	b.ne	LBB0_10
LBB0_4:
	str	xzr, [x23]
	ldrsw	x10, [x19, #40]
	cbz	w10, LBB0_6
; %bb.5:
	ldr	x11, [x19, #48]
	ldr	x9, [x20, #56]
	ldr	x12, [x11]
	str	x12, [x9]
	mov	w12, #1
	str	w12, [x9, #8]
	str	x12, [x20, #48]
	cmp	w10, #1
	b.ne	LBB0_14
LBB0_6:
	cbz	w8, LBB0_23
; %bb.7:
	ldr	x11, [x19, #64]
	ldr	x10, [x20, #40]
	ldr	x9, [x19, #32]
	cmp	x8, #1
	csinc	x13, x8, xzr, hi
	cmp	x13, #2
	b.hs	LBB0_18
; %bb.8:
	mov	x12, #0
	b	LBB0_21
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_40
LBB0_10:
	sub	x10, x10, #1
	add	x11, x11, #16
	mov	w12, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.eq	LBB0_4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x9, x12, lsl #4
	ldur	x15, [x13, #-16]
	ldr	x14, [x11]
	cmp	x15, x14
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x14, [x13]
	str	wzr, [x13, #8]
	add	x12, x12, #1
	str	x12, [x24]
	b	LBB0_11
LBB0_14:
	sub	x10, x10, #1
	add	x11, x11, #16
	mov	w12, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.eq	LBB0_6
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x9, x12, lsl #4
	ldur	x15, [x13, #-16]
	ldr	x14, [x11]
	cmp	x15, x14
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x14, [x13]
	str	wzr, [x13, #8]
	add	x12, x12, #1
	str	x12, [x23]
	b	LBB0_15
LBB0_18:
	and	x12, x13, #0xfffffffffffffffe
	add	x14, x11, #24
	add	x15, x9, #4
	add	x16, x10, #16
	mov	w17, #1
	mov	x0, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldur	x1, [x14, #-16]
	ldr	x2, [x14], #32
	stur	x1, [x16, #-16]
	str	x2, [x16]
	ldp	w1, w2, [x15, #-4]
	stp	w17, w1, [x16, #-8]
	stp	w17, w2, [x16, #8]
	add	x15, x15, #8
	add	x16, x16, #32
	subs	x0, x0, #2
	b.ne	LBB0_19
; %bb.20:
	cmp	x13, x12
	b.eq	LBB0_23
LBB0_21:
	sub	x13, x13, x12
	lsl	x14, x12, #4
	add	x11, x11, x14
	add	x11, x11, #8
	add	x10, x10, x14
	add	x10, x10, #12
	add	x9, x9, x12, lsl #2
	mov	w12, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11], #16
	stur	x14, [x10, #-12]
	ldr	w14, [x9], #4
	stp	w12, w14, [x10, #-4]
	add	x10, x10, #16
	subs	x13, x13, #1
	b.ne	LBB0_22
LBB0_23:
	str	x8, [x22]
	ldrsw	x8, [x19, #16]
	cbz	w8, LBB0_31
; %bb.24:
	ldr	x10, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, #1
	csinc	x11, x8, xzr, hi
	cmp	x11, #4
	b.hs	LBB0_26
; %bb.25:
	mov	x12, #0
	b	LBB0_29
LBB0_26:
	and	x12, x11, #0xfffffffffffffffc
	add	x13, x9, #32
	add	x14, x10, #40
	mov	w15, #1
	mov	x16, x12
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldur	x17, [x14, #-32]
	ldur	x0, [x14, #-16]
	ldr	x1, [x14]
	ldr	x2, [x14, #16]
	stur	x17, [x13, #-32]
	stur	x0, [x13, #-16]
	str	x1, [x13]
	str	x2, [x13, #16]
	stur	w15, [x13, #-24]
	stur	w15, [x13, #-8]
	str	w15, [x13, #8]
	str	w15, [x13, #24]
	add	x13, x13, #64
	add	x14, x14, #64
	subs	x16, x16, #4
	b.ne	LBB0_27
; %bb.28:
	cmp	x11, x12
	b.eq	LBB0_31
LBB0_29:
	sub	x11, x11, x12
	lsl	x12, x12, #4
	add	x10, x10, x12
	add	x10, x10, #8
	add	x9, x9, x12
	add	x9, x9, #8
	mov	w12, #1
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10], #16
	stur	x13, [x9, #-8]
	str	w12, [x9], #16
	subs	x11, x11, #1
	b.ne	LBB0_30
LBB0_31:
	str	x8, [x21]
	ldrsw	x8, [x19]
	cbz	w8, LBB0_39
; %bb.32:
	ldr	x10, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, #1
	csinc	x11, x8, xzr, hi
	cmp	x11, #4
	b.hs	LBB0_34
; %bb.33:
	mov	x12, #0
	b	LBB0_37
LBB0_34:
	and	x12, x11, #0xfffffffffffffffc
	add	x13, x9, #32
	add	x14, x10, #40
	mov	w15, #1
	mov	x16, x12
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldur	x17, [x14, #-32]
	ldur	x0, [x14, #-16]
	ldr	x1, [x14]
	ldr	x2, [x14, #16]
	stur	x17, [x13, #-32]
	stur	x0, [x13, #-16]
	str	x1, [x13]
	str	x2, [x13, #16]
	stur	w15, [x13, #-24]
	stur	w15, [x13, #-8]
	str	w15, [x13, #8]
	str	w15, [x13, #24]
	add	x13, x13, #64
	add	x14, x14, #64
	subs	x16, x16, #4
	b.ne	LBB0_35
; %bb.36:
	cmp	x11, x12
	b.eq	LBB0_39
LBB0_37:
	sub	x11, x11, x12
	lsl	x12, x12, #4
	add	x10, x10, x12
	add	x10, x10, #8
	add	x9, x9, x12
	add	x9, x9, #8
	mov	w12, #1
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10], #16
	stur	x13, [x9, #-8]
	str	w12, [x9], #16
	subs	x11, x11, #1
	b.ne	LBB0_38
LBB0_39:
	str	x8, [x20]
	mov	x0, x19
	bl	_ci_setup_default_pcie_tables
	mov	w0, #0
LBB0_40:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ; @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_SMU7_MAX_LEVELS_MEMORY,4,2     ; @SMU7_MAX_LEVELS_MEMORY
	.comm	_SMU7_MAX_LEVELS_VDDC,4,2       ; @SMU7_MAX_LEVELS_VDDC
	.comm	_SMU7_MAX_LEVELS_VDDCI,4,2      ; @SMU7_MAX_LEVELS_VDDCI
	.comm	_SMU7_MAX_LEVELS_MVDD,4,2       ; @SMU7_MAX_LEVELS_MVDD
	.no_dead_strip	_ci_setup_default_dpm_tables
.subsections_via_symbols
