	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub1_verify_allow_pstate_change_high ## -- Begin function hubbub1_verify_allow_pstate_change_high
	.p2align	4, 0x90
_hubbub1_verify_allow_pstate_change_high: ## @hubbub1_verify_allow_pstate_change_high
	.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
	callq	_TO_DCN10_HUBBUB
	movq	%rax, %rbx
	cmpb	$1, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow(%rip)
	jne	LBB0_2
## %bb.1:
	movq	_DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_REG_UPDATE_2
	movb	$0, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow(%rip)
LBB0_2:
	movq	_DCHUBBUB_TEST_DEBUG_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_REG_WRITE
	xorl	%ebx, %ebx
	movq	_DCHUBBUB_TEST_DEBUG_DATA@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	$200, %ebx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_REG_READ
	testl	$1073741824, %eax               ## imm = 0x40000000
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	cmpl	%ebx, _hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us(%rip)
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, _hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us(%rip)
	jmp	LBB0_8
LBB0_4:
	movl	$1, %r14d
	cmpl	$41, %ebx
	jb	LBB0_10
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DC_LOG_WARNING
	jmp	LBB0_10
LBB0_9:
	movq	_DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_2
	movb	$1, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow(%rip)
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_DC_LOG_WARNING
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us,4,2 ## @hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us
.zerofill __DATA,__bss,_hubbub1_verify_allow_pstate_change_high.forced_pstate_allow,1,2 ## @hubbub1_verify_allow_pstate_change_high.forced_pstate_allow
	.comm	_DCHUBBUB_ARB_DRAM_STATE_CNTL,4,2 ## @DCHUBBUB_ARB_DRAM_STATE_CNTL
	.comm	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE,4,2 ## @DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE
	.comm	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE,4,2 ## @DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE
	.comm	_DCHUBBUB_TEST_DEBUG_INDEX,4,2  ## @DCHUBBUB_TEST_DEBUG_INDEX
	.comm	_DCHUBBUB_TEST_DEBUG_DATA,4,2   ## @DCHUBBUB_TEST_DEBUG_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pstate took longer than expected ~%dus\n"

L_.str.1:                               ## @.str.1
	.asciz	"pstate TEST_DEBUG_DATA: 0x%X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hubbub1_verify_allow_pstate_change_high ; -- Begin function hubbub1_verify_allow_pstate_change_high
	.p2align	2
_hubbub1_verify_allow_pstate_change_high: ; @hubbub1_verify_allow_pstate_change_high
	.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
	bl	_TO_DCN10_HUBBUB
	mov	x19, x0
	adrp	x21, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow@PAGE
	ldrb	w8, [x21, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w2, #0
	mov	w4, #0
	bl	_REG_UPDATE_2
	strb	wzr, [x21, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow@PAGEOFF]
LBB0_2:
Lloh9:
	adrp	x8, _DCHUBBUB_TEST_DEBUG_INDEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DCHUBBUB_TEST_DEBUG_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_REG_WRITE
	mov	w20, #0
Lloh12:
	adrp	x22, _DCHUBBUB_TEST_DEBUG_DATA@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DCHUBBUB_TEST_DEBUG_DATA@GOTPAGEOFF]
	adrp	x23, _hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us@PAGE
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w20, w20, #1
	cmp	w20, #200
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_REG_READ
	tbnz	w0, #30, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x0
	ldr	w8, [x23, _hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us@PAGEOFF]
	cmp	w8, w20
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w20, [x23, _hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us@PAGEOFF]
	b	LBB0_3
LBB0_7:
	cmp	w20, #41
	b.lo	LBB0_9
; %bb.8:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DC_LOG_WARNING
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DCHUBBUB_ARB_DRAM_STATE_CNTL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	w20, #1
	mov	w2, #1
	mov	w4, #1
	bl	_REG_UPDATE_2
	strb	w20, [x21, _hubbub1_verify_allow_pstate_change_high.forced_pstate_allow@PAGEOFF]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DC_LOG_WARNING
	mov	w0, #0
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us,4,2 ; @hubbub1_verify_allow_pstate_change_high.max_sampled_pstate_wait_us
.zerofill __DATA,__bss,_hubbub1_verify_allow_pstate_change_high.forced_pstate_allow,1,2 ; @hubbub1_verify_allow_pstate_change_high.forced_pstate_allow
	.comm	_DCHUBBUB_ARB_DRAM_STATE_CNTL,4,2 ; @DCHUBBUB_ARB_DRAM_STATE_CNTL
	.comm	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE,4,2 ; @DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE
	.comm	_DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE,4,2 ; @DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE
	.comm	_DCHUBBUB_TEST_DEBUG_INDEX,4,2  ; @DCHUBBUB_TEST_DEBUG_INDEX
	.comm	_DCHUBBUB_TEST_DEBUG_DATA,4,2   ; @DCHUBBUB_TEST_DEBUG_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pstate took longer than expected ~%dus\n"

l_.str.1:                               ; @.str.1
	.asciz	"pstate TEST_DEBUG_DATA: 0x%X\n"

.subsections_via_symbols
