	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cypress_force_mc_use_s0
_cypress_force_mc_use_s0:               ## @cypress_force_mc_use_s0
	.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	%rdi, %r15
	movq	%rsi, %rdi
	callq	_rv770_get_ps
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_cypress_copy_ac_timing_from_s1_to_s0
	movq	%r15, %rdi
	callq	_radeon_mc_wait_for_idle
	movq	(%r15), %rax
	movq	_CHIP_CYPRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_CHIP_HEMLOCK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movq	_MC_CONFIG@GOTPCREL(%rip), %rax
	cmovneq	_MC_CONFIG_MCD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MC_CG_CONFIG@GOTPCREL(%rip), %rbx
	cmovneq	_MC_CG_CONFIG_MCD@GOTPCREL(%rip), %rbx
	movl	$15, %esi
	callq	_WREG32
	movl	(%rbx), %edi
	movl	$15, %esi
	callq	_WREG32
	cmpl	$0, 8(%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_radeon_wait_for_vblank
	incl	%ebx
	cmpl	8(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_MC_SEQ_CG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_MC_CG_SEQ_YCLK_SUSPEND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_WREG32
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_cypress_wait_for_mc_sequencer
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_cypress_get_strobe_mode_settings
	movl	%eax, %r14d
	movq	_MC_CG_SEQ_DRAMCONF_S0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CG_SEQ_REQ
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_SEQ_CG_RESP
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_WREG32
	cmpl	$0, 12(%r15)
	jle	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	movq	_MC_SEQ_STATUS_M@GOTPCREL(%rip), %r13
	movq	_PMG_PWRSTATE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_RREG32
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	12(%r15), %ebx
	jl	LBB0_5
LBB0_7:
	movq	_CG_SEQ_REQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_MC_CG_SEQ_YCLK_RESUME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_CG_SEQ_REQ
	orl	%eax, %r14d
	movq	_MC_SEQ_CG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	movl	(%rbx), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cypress_wait_for_mc_sequencer  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_CYPRESS,8,3               ## @CHIP_CYPRESS
	.comm	_CHIP_HEMLOCK,8,3               ## @CHIP_HEMLOCK
	.comm	_MC_CONFIG_MCD,4,2              ## @MC_CONFIG_MCD
	.comm	_MC_CG_CONFIG_MCD,4,2           ## @MC_CG_CONFIG_MCD
	.comm	_MC_CONFIG,4,2                  ## @MC_CONFIG
	.comm	_MC_CG_CONFIG,4,2               ## @MC_CG_CONFIG
	.comm	_MC_SEQ_CG,4,2                  ## @MC_SEQ_CG
	.comm	_MC_CG_SEQ_YCLK_SUSPEND,4,2     ## @MC_CG_SEQ_YCLK_SUSPEND
	.comm	_MC_CG_SEQ_DRAMCONF_S0,4,2      ## @MC_CG_SEQ_DRAMCONF_S0
	.comm	_MC_SEQ_STATUS_M,4,2            ## @MC_SEQ_STATUS_M
	.comm	_PMG_PWRSTATE,4,2               ## @PMG_PWRSTATE
	.comm	_CG_SEQ_REQ_MASK,4,2            ## @CG_SEQ_REQ_MASK
	.comm	_MC_CG_SEQ_YCLK_RESUME,4,2      ## @MC_CG_SEQ_YCLK_RESUME
	.no_dead_strip	_cypress_force_mc_use_s0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cypress_force_mc_use_s0
_cypress_force_mc_use_s0:               ; @cypress_force_mc_use_s0
	.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
	mov	x0, x1
	bl	_rv770_get_ps
	mov	x20, x0
	mov	x0, x19
	bl	_cypress_copy_ac_timing_from_s1_to_s0
	mov	x0, x19
	bl	_radeon_mc_wait_for_idle
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHIP_CYPRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_CYPRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _CHIP_HEMLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_HEMLOCK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x8, _MC_CONFIG_MCD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC_CONFIG_MCD@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MC_CONFIG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MC_CONFIG@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _MC_CG_CONFIG_MCD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MC_CG_CONFIG_MCD@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MC_CG_CONFIG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MC_CG_CONFIG@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	mov	w1, #15
	bl	_WREG32
	ldr	w0, [x21]
	mov	w1, #15
	bl	_WREG32
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_wait_for_vblank
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
Lloh14:
	adrp	x22, _MC_SEQ_CG@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MC_SEQ_CG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh16:
	adrp	x21, _MC_CG_SEQ_YCLK_SUSPEND@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MC_CG_SEQ_YCLK_SUSPEND@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_WREG32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_cypress_wait_for_mc_sequencer
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cypress_get_strobe_mode_settings
	mov	x20, x0
Lloh18:
	adrp	x8, _MC_CG_SEQ_DRAMCONF_S0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MC_CG_SEQ_DRAMCONF_S0@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_CG_SEQ_REQ
	mov	x21, x0
	mov	x0, x20
	bl	_SEQ_CG_RESP
	orr	w20, w0, w21
	ldr	w0, [x22]
	mov	x1, x20
	bl	_WREG32
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w21, #0
Lloh21:
	adrp	x23, _MC_SEQ_STATUS_M@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MC_SEQ_STATUS_M@GOTPAGEOFF]
Lloh23:
	adrp	x24, _PMG_PWRSTATE@GOTPAGE
Lloh24:
	ldr	x24, [x24, _PMG_PWRSTATE@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_RREG32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w21, w21, #1
	ldr	w8, [x19, #12]
	cmp	w21, w8
	b.lt	LBB0_5
LBB0_7:
Lloh25:
	adrp	x8, _CG_SEQ_REQ_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CG_SEQ_REQ_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w20, w20, w8
Lloh28:
	adrp	x21, _MC_CG_SEQ_YCLK_RESUME@GOTPAGE
Lloh29:
	ldr	x21, [x21, _MC_CG_SEQ_YCLK_RESUME@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_CG_SEQ_REQ
	orr	w1, w0, w20
	ldr	w0, [x22]
	bl	_WREG32
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_cypress_wait_for_mc_sequencer
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_CYPRESS,8,3               ; @CHIP_CYPRESS
	.comm	_CHIP_HEMLOCK,8,3               ; @CHIP_HEMLOCK
	.comm	_MC_CONFIG_MCD,4,2              ; @MC_CONFIG_MCD
	.comm	_MC_CG_CONFIG_MCD,4,2           ; @MC_CG_CONFIG_MCD
	.comm	_MC_CONFIG,4,2                  ; @MC_CONFIG
	.comm	_MC_CG_CONFIG,4,2               ; @MC_CG_CONFIG
	.comm	_MC_SEQ_CG,4,2                  ; @MC_SEQ_CG
	.comm	_MC_CG_SEQ_YCLK_SUSPEND,4,2     ; @MC_CG_SEQ_YCLK_SUSPEND
	.comm	_MC_CG_SEQ_DRAMCONF_S0,4,2      ; @MC_CG_SEQ_DRAMCONF_S0
	.comm	_MC_SEQ_STATUS_M,4,2            ; @MC_SEQ_STATUS_M
	.comm	_PMG_PWRSTATE,4,2               ; @PMG_PWRSTATE
	.comm	_CG_SEQ_REQ_MASK,4,2            ; @CG_SEQ_REQ_MASK
	.comm	_MC_CG_SEQ_YCLK_RESUME,4,2      ; @MC_CG_SEQ_YCLK_RESUME
	.no_dead_strip	_cypress_force_mc_use_s0
.subsections_via_symbols
