	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_disable_handshake_uvd
_smu7_disable_handshake_uvd:            ## @smu7_disable_handshake_uvd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	_SMU_SoftRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HandshakeDisables@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_smum_get_offsetof
	addq	%rax, %r14
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdx
	callq	_cgs_read_ind_register
	movq	%rax, %r15
	movq	_SMU_UVD_MCLK_HANDSHAKE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_get_mac_definition
	orq	%rax, %r15
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_cgs_write_ind_register
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_SoftRegisters,4,2          ## @SMU_SoftRegisters
	.comm	_HandshakeDisables,4,2          ## @HandshakeDisables
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_SMU_UVD_MCLK_HANDSHAKE_DISABLE,4,2 ## @SMU_UVD_MCLK_HANDSHAKE_DISABLE
	.no_dead_strip	_smu7_disable_handshake_uvd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_disable_handshake_uvd
_smu7_disable_handshake_uvd:            ; @smu7_disable_handshake_uvd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _SMU_SoftRegisters@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_SoftRegisters@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HandshakeDisables@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HandshakeDisables@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_smum_get_offsetof
	add	x20, x0, x20
	ldr	w0, [x19]
Lloh6:
	adrp	x22, _CGS_IND_REG__SMC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CGS_IND_REG__SMC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_cgs_read_ind_register
	mov	x21, x0
Lloh8:
	adrp	x8, _SMU_UVD_MCLK_HANDSHAKE_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMU_UVD_MCLK_HANDSHAKE_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_get_mac_definition
	orr	x3, x0, x21
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_cgs_write_ind_register
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_SoftRegisters,4,2          ; @SMU_SoftRegisters
	.comm	_HandshakeDisables,4,2          ; @HandshakeDisables
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_SMU_UVD_MCLK_HANDSHAKE_DISABLE,4,2 ; @SMU_UVD_MCLK_HANDSHAKE_DISABLE
	.no_dead_strip	_smu7_disable_handshake_uvd
.subsections_via_symbols
