	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function athub_v2_0_update_medium_grain_light_sleep
_athub_v2_0_update_medium_grain_light_sleep: ## @athub_v2_0_update_medium_grain_light_sleep
	.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	_ATHUB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmATHUB_MISC_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movl	(%r14), %ecx
	movq	_AMD_CG_SUPPORT_MC_LS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.2:
	movq	_AMD_CG_SUPPORT_HDP_LS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	cmpl	%ecx, %eax
	je	LBB0_6
LBB0_7:
	movl	(%r15), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
LBB0_4:
	movq	_ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATHUB,4,2                      ## @ATHUB
	.comm	_mmATHUB_MISC_CNTL,4,2          ## @mmATHUB_MISC_CNTL
	.comm	_AMD_CG_SUPPORT_MC_LS,4,2       ## @AMD_CG_SUPPORT_MC_LS
	.comm	_AMD_CG_SUPPORT_HDP_LS,4,2      ## @AMD_CG_SUPPORT_HDP_LS
	.comm	_ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK,4,2 ## @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK
	.no_dead_strip	_athub_v2_0_update_medium_grain_light_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function athub_v2_0_update_medium_grain_light_sleep
_athub_v2_0_update_medium_grain_light_sleep: ; @athub_v2_0_update_medium_grain_light_sleep
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _ATHUB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATHUB@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _mmATHUB_MISC_CNTL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mmATHUB_MISC_CNTL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_RREG32_SOC15
	cbz	w20, LBB0_5
; %bb.1:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _AMD_CG_SUPPORT_MC_LS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AMD_CG_SUPPORT_MC_LS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh7:
	adrp	x9, _AMD_CG_SUPPORT_HDP_LS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AMD_CG_SUPPORT_HDP_LS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w3, w8, w0
	cmp	w0, w3
	b.eq	LBB0_6
LBB0_4:
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #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
	b	_WREG32_SOC15
LBB0_5:
Lloh13:
	adrp	x8, _ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w3, w0, w8
	cmp	w0, w3
	b.ne	LBB0_4
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ATHUB,4,2                      ; @ATHUB
	.comm	_mmATHUB_MISC_CNTL,4,2          ; @mmATHUB_MISC_CNTL
	.comm	_AMD_CG_SUPPORT_MC_LS,4,2       ; @AMD_CG_SUPPORT_MC_LS
	.comm	_AMD_CG_SUPPORT_HDP_LS,4,2      ; @AMD_CG_SUPPORT_HDP_LS
	.comm	_ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK,4,2 ; @ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK
	.no_dead_strip	_athub_v2_0_update_medium_grain_light_sleep
.subsections_via_symbols
