	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_copy_and_switch_arb_sets
_smu7_copy_and_switch_arb_sets:         ## @smu7_copy_and_switch_arb_sets
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_STATE0@GOTPCREL(%rip), %rcx
	movq	_mmMC_ARB_DRAM_TIMING2@GOTPCREL(%rip), %r14
	movq	_mmMC_ARB_DRAM_TIMING@GOTPCREL(%rip), %r13
	movq	%r13, %rax
	movq	%r14, %r12
	movq	%rcx, %r15
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_8
## %bb.2:
	movq	_STATE1@GOTPCREL(%rip), %r15
	movq	_mmMC_ARB_DRAM_TIMING2_1@GOTPCREL(%rip), %r12
	movq	_mmMC_ARB_DRAM_TIMING_1@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	(%rax), %esi
	callq	_cgs_read_register
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_cgs_read_register
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movq	_MC_ARB_BURST_TIME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %edx
	callq	_PHM_READ_FIELD
	movl	%eax, %ecx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	cmpl	$129, %r15d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r15d
	jne	LBB0_8
## %bb.5:
	movq	_STATE1@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_mmMC_ARB_DRAM_TIMING2_1@GOTPCREL(%rip), %r14
	movq	_mmMC_ARB_DRAM_TIMING_1@GOTPCREL(%rip), %r13
LBB0_6:
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ecx, %r13d
	callq	_cgs_write_register
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cgs_write_register
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	%r13d, %ecx
	callq	_PHM_WRITE_FIELD
	movl	(%rbx), %edi
	movq	_mmMC_CG_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_cgs_read_register
	orl	$15, %eax
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	%eax, %edx
	callq	_cgs_write_register
	movl	(%rbx), %edi
	movq	_MC_ARB_CG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CG_ARB_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_PHM_WRITE_FIELD
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmMC_ARB_DRAM_TIMING,4,2       ## @mmMC_ARB_DRAM_TIMING
	.comm	_mmMC_ARB_DRAM_TIMING2,4,2      ## @mmMC_ARB_DRAM_TIMING2
	.comm	_MC_ARB_BURST_TIME,4,2          ## @MC_ARB_BURST_TIME
	.comm	_STATE0,4,2                     ## @STATE0
	.comm	_mmMC_ARB_DRAM_TIMING_1,4,2     ## @mmMC_ARB_DRAM_TIMING_1
	.comm	_mmMC_ARB_DRAM_TIMING2_1,4,2    ## @mmMC_ARB_DRAM_TIMING2_1
	.comm	_STATE1,4,2                     ## @STATE1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mmMC_CG_CONFIG,4,2             ## @mmMC_CG_CONFIG
	.comm	_MC_ARB_CG,4,2                  ## @MC_ARB_CG
	.comm	_CG_ARB_REQ,4,2                 ## @CG_ARB_REQ
	.no_dead_strip	_smu7_copy_and_switch_arb_sets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_copy_and_switch_arb_sets
_smu7_copy_and_switch_arb_sets:         ; @smu7_copy_and_switch_arb_sets
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x23, _STATE1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STATE1@GOTPAGEOFF]
Lloh2:
	adrp	x22, _mmMC_ARB_DRAM_TIMING2_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mmMC_ARB_DRAM_TIMING2_1@GOTPAGEOFF]
Lloh4:
	adrp	x8, _mmMC_ARB_DRAM_TIMING_1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mmMC_ARB_DRAM_TIMING_1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x23, _STATE0@GOTPAGE
Lloh7:
	ldr	x23, [x23, _STATE0@GOTPAGEOFF]
Lloh8:
	adrp	x22, _mmMC_ARB_DRAM_TIMING2@GOTPAGE
Lloh9:
	ldr	x22, [x22, _mmMC_ARB_DRAM_TIMING2@GOTPAGEOFF]
Lloh10:
	adrp	x8, _mmMC_ARB_DRAM_TIMING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmMC_ARB_DRAM_TIMING@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x20]
	ldr	w1, [x8]
	bl	_cgs_read_register
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_cgs_read_register
	mov	x22, x0
	ldr	w0, [x20]
Lloh12:
	adrp	x24, _MC_ARB_BURST_TIME@GOTPAGE
Lloh13:
	ldr	x24, [x24, _MC_ARB_BURST_TIME@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x23]
	bl	_PHM_READ_FIELD
	mov	x23, x0
	cmp	w19, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w19, #128
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x25, _STATE1@GOTPAGE
Lloh15:
	ldr	x25, [x25, _STATE1@GOTPAGEOFF]
Lloh16:
	adrp	x26, _mmMC_ARB_DRAM_TIMING2_1@GOTPAGE
Lloh17:
	ldr	x26, [x26, _mmMC_ARB_DRAM_TIMING2_1@GOTPAGEOFF]
Lloh18:
	adrp	x8, _mmMC_ARB_DRAM_TIMING_1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmMC_ARB_DRAM_TIMING_1@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x25, _STATE0@GOTPAGE
Lloh24:
	ldr	x25, [x25, _STATE0@GOTPAGEOFF]
Lloh25:
	adrp	x26, _mmMC_ARB_DRAM_TIMING2@GOTPAGE
Lloh26:
	ldr	x26, [x26, _mmMC_ARB_DRAM_TIMING2@GOTPAGEOFF]
Lloh27:
	adrp	x8, _mmMC_ARB_DRAM_TIMING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mmMC_ARB_DRAM_TIMING@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x20]
	ldr	w1, [x8]
	mov	x2, x21
	bl	_cgs_write_register
	ldr	w0, [x20]
	ldr	w1, [x26]
	mov	x2, x22
	bl	_cgs_write_register
	ldr	w0, [x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x3, x23
	bl	_PHM_WRITE_FIELD
	ldr	w0, [x20]
Lloh29:
	adrp	x21, _mmMC_CG_CONFIG@GOTPAGE
Lloh30:
	ldr	x21, [x21, _mmMC_CG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_cgs_read_register
	orr	w2, w0, #0xf
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_cgs_write_register
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _MC_ARB_CG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MC_ARB_CG@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _CG_ARB_REQ@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CG_ARB_REQ@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_PHM_WRITE_FIELD
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_mmMC_ARB_DRAM_TIMING,4,2       ; @mmMC_ARB_DRAM_TIMING
	.comm	_mmMC_ARB_DRAM_TIMING2,4,2      ; @mmMC_ARB_DRAM_TIMING2
	.comm	_MC_ARB_BURST_TIME,4,2          ; @MC_ARB_BURST_TIME
	.comm	_STATE0,4,2                     ; @STATE0
	.comm	_mmMC_ARB_DRAM_TIMING_1,4,2     ; @mmMC_ARB_DRAM_TIMING_1
	.comm	_mmMC_ARB_DRAM_TIMING2_1,4,2    ; @mmMC_ARB_DRAM_TIMING2_1
	.comm	_STATE1,4,2                     ; @STATE1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mmMC_CG_CONFIG,4,2             ; @mmMC_CG_CONFIG
	.comm	_MC_ARB_CG,4,2                  ; @MC_ARB_CG
	.comm	_CG_ARB_REQ,4,2                 ; @CG_ARB_REQ
	.no_dead_strip	_smu7_copy_and_switch_arb_sets
.subsections_via_symbols
