	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs690_mc_program
_rs690_mc_program:                      ## @rs690_mc_program
	.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, %r15
	leaq	-32(%rbp), %rsi
	callq	_rv515_mc_stop
	movq	%r15, %rdi
	callq	_rs690_mc_wait_for_idle
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	movq	_R_000100_MCCFG_FB_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movswl	2(%r15), %edi
	callq	_S_000100_MC_FB_START
	movl	%eax, %ebx
	movswl	6(%r15), %edi
	callq	_S_000100_MC_FB_TOP
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_WREG32_MC
	movq	_R_000134_HDP_FB_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movswl	2(%r15), %edi
	callq	_S_000134_HDP_FB_START
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_WREG32
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rv515_mc_resume
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait MC idle timeout before updating MC.\n"

	.comm	_R_000100_MCCFG_FB_LOCATION,4,2 ## @R_000100_MCCFG_FB_LOCATION
	.comm	_R_000134_HDP_FB_LOCATION,4,2   ## @R_000134_HDP_FB_LOCATION
	.no_dead_strip	_rs690_mc_program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs690_mc_program
_rs690_mc_program:                      ; @rs690_mc_program
	.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
	mov	x19, x0
	add	x1, sp, #8
	bl	_rv515_mc_stop
	mov	x0, x19
	bl	_rs690_mc_wait_for_idle
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
Lloh2:
	adrp	x8, _R_000100_MCCFG_FB_LOCATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_000100_MCCFG_FB_LOCATION@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldrsh	w0, [x19, #2]
	bl	_S_000100_MC_FB_START
	mov	x21, x0
	ldrsh	w0, [x19, #6]
	bl	_S_000100_MC_FB_TOP
	orr	w1, w0, w21
	mov	x0, x20
	bl	_WREG32_MC
Lloh5:
	adrp	x8, _R_000134_HDP_FB_LOCATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_000134_HDP_FB_LOCATION@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldrsh	w0, [x19, #2]
	bl	_S_000134_HDP_FB_START
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
	add	x1, sp, #8
	mov	x0, x19
	bl	_rv515_mc_resume
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait MC idle timeout before updating MC.\n"

	.comm	_R_000100_MCCFG_FB_LOCATION,4,2 ; @R_000100_MCCFG_FB_LOCATION
	.comm	_R_000134_HDP_FB_LOCATION,4,2   ; @R_000134_HDP_FB_LOCATION
	.no_dead_strip	_rs690_mc_program
.subsections_via_symbols
