	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v7_0_enable_hdp_ls
_gmc_v7_0_enable_hdp_ls:                ## @gmc_v7_0_enable_hdp_ls
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_mmHDP_MEM_POWER_LS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_AMD_CG_SUPPORT_HDP_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ecx
	testl	%eax, (%r14)
	jne	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_HDP_MEM_POWER_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_FIELD
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %edi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmHDP_MEM_POWER_LS,4,2         ## @mmHDP_MEM_POWER_LS
	.comm	_AMD_CG_SUPPORT_HDP_LS,4,2      ## @AMD_CG_SUPPORT_HDP_LS
	.comm	_HDP_MEM_POWER_LS,4,2           ## @HDP_MEM_POWER_LS
	.comm	_LS_ENABLE,4,2                  ## @LS_ENABLE
	.no_dead_strip	_gmc_v7_0_enable_hdp_ls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v7_0_enable_hdp_ls
_gmc_v7_0_enable_hdp_ls:                ; @gmc_v7_0_enable_hdp_ls
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _mmHDP_MEM_POWER_LS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mmHDP_MEM_POWER_LS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
	mov	x19, x0
	cbz	w21, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _AMD_CG_SUPPORT_HDP_LS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD_CG_SUPPORT_HDP_LS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w3, #1
	b	LBB0_4
LBB0_3:
	mov	w3, #0
LBB0_4:
Lloh5:
	adrp	x8, _HDP_MEM_POWER_LS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDP_MEM_POWER_LS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _LS_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LS_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_FIELD
	cmp	x19, x0
	b.ne	LBB0_6
; %bb.5:
	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
LBB0_6:
	mov	x1, x0
	ldr	w0, [x22]
	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
	b	_WREG32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mmHDP_MEM_POWER_LS,4,2         ; @mmHDP_MEM_POWER_LS
	.comm	_AMD_CG_SUPPORT_HDP_LS,4,2      ; @AMD_CG_SUPPORT_HDP_LS
	.comm	_HDP_MEM_POWER_LS,4,2           ; @HDP_MEM_POWER_LS
	.comm	_LS_ENABLE,4,2                  ; @LS_ENABLE
	.no_dead_strip	_gmc_v7_0_enable_hdp_ls
.subsections_via_symbols
