	.file	"extr_dcn10_hubbub.c_hubbub1_verify_allow_pstate_change_high.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pstate took longer than expected ~%dus\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"pstate TEST_DEBUG_DATA: 0x%X\n"
	.text
	.p2align 4
	.globl	hubbub1_verify_allow_pstate_change_high
	.type	hubbub1_verify_allow_pstate_change_high, @function
hubbub1_verify_allow_pstate_change_high:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TO_DCN10_HUBBUB@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR forced_pstate_allow.1949[rip]
	test	eax, eax
	jne	.L11
.L2:
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR DCHUBBUB_TEST_DEBUG_INDEX[rip]
	xor	ebp, ebp
	call	REG_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR DCHUBBUB_TEST_DEBUG_DATA[rip]
	call	REG_READ@PLT
	mov	r12d, eax
	test	eax, 1073741824
	jne	.L12
	cmp	DWORD PTR max_sampled_pstate_wait_us.1948[rip], ebp
	jnb	.L5
	mov	DWORD PTR max_sampled_pstate_wait_us.1948[rip], ebp
.L5:
	mov	edi, 1
	add	ebp, 1
	call	udelay@PLT
	cmp	ebp, 200
	jne	.L6
	mov	ecx, DWORD PTR DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE[rip]
	mov	esi, DWORD PTR DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE[rip]
	mov	edx, 1
	mov	r8d, 1
	mov	edi, DWORD PTR DCHUBBUB_ARB_DRAM_STATE_CNTL[rip]
	call	REG_UPDATE_2@PLT
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	mov	DWORD PTR forced_pstate_allow.1949[rip], 1
	call	DC_LOG_WARNING@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r12d, 1
	cmp	ebp, 40
	jbe	.L1
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	DC_LOG_WARNING@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ecx, DWORD PTR DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE[rip]
	mov	esi, DWORD PTR DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	edi, DWORD PTR DCHUBBUB_ARB_DRAM_STATE_CNTL[rip]
	call	REG_UPDATE_2@PLT
	mov	DWORD PTR forced_pstate_allow.1949[rip], 0
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	hubbub1_verify_allow_pstate_change_high, .-hubbub1_verify_allow_pstate_change_high
	.local	max_sampled_pstate_wait_us.1948
	.comm	max_sampled_pstate_wait_us.1948,4,4
	.local	forced_pstate_allow.1949
	.comm	forced_pstate_allow.1949,4,4
	.comm	DCHUBBUB_TEST_DEBUG_INDEX,4,4
	.comm	DCHUBBUB_TEST_DEBUG_DATA,4,4
	.comm	DCHUBBUB_ARB_DRAM_STATE_CNTL,4,4
	.comm	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE,4,4
	.comm	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dcn10_hubbub.c_hubbub1_verify_allow_pstate_change_high.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pstate took longer than expected ~%dus\012\000"
	.align	2
.LC1:
	.ascii	"pstate TEST_DEBUG_DATA: 0x%X\012\000"
	.text
	.align	2
	.global	hubbub1_verify_allow_pstate_change_high
	.syntax unified
	.arm
	.fpu softvfp
	.type	hubbub1_verify_allow_pstate_change_high, %function
hubbub1_verify_allow_pstate_change_high:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	bl	TO_DCN10_HUBBUB
	ldr	r6, .L16
	mov	r4, r0
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L14
.L2:
	ldr	r3, .L16+4
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	REG_WRITE
	mov	r4, #0
	ldr	r7, .L16+8
.L6:
	ldr	r0, [r7]
	bl	REG_READ
	tst	r0, #1073741824
	mov	r5, r0
	bne	.L15
	ldr	r3, [r6, #4]
	mov	r0, #1
	cmp	r3, r4
	strcc	r4, [r6, #4]
	add	r4, r4, #1
	bl	udelay
	cmp	r4, #200
	bne	.L6
	mov	r4, #1
	ldr	r3, .L16+12
	ldr	r1, .L16+16
	ldr	r0, .L16+20
	str	r4, [sp]
	mov	r2, r4
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	REG_UPDATE_2
	mov	r1, r5
	ldr	r0, .L16+24
	str	r4, [r6]
	bl	DC_LOG_WARNING
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	cmp	r4, #40
	movls	r0, #1
	bls	.L1
	mov	r1, r4
	ldr	r0, .L16+28
	bl	DC_LOG_WARNING
	mov	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r5, #0
	ldr	r3, .L16+12
	ldr	r1, .L16+16
	ldr	r0, .L16+20
	str	r5, [sp]
	mov	r2, r5
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	REG_UPDATE_2
	str	r5, [r6]
	b	.L2
.L17:
	.align	2
.L16:
	.word	.LANCHOR0
	.word	DCHUBBUB_TEST_DEBUG_INDEX
	.word	DCHUBBUB_TEST_DEBUG_DATA
	.word	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE
	.word	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE
	.word	DCHUBBUB_ARB_DRAM_STATE_CNTL
	.word	.LC1
	.word	.LC0
	.size	hubbub1_verify_allow_pstate_change_high, .-hubbub1_verify_allow_pstate_change_high
	.comm	DCHUBBUB_TEST_DEBUG_INDEX,4,4
	.comm	DCHUBBUB_TEST_DEBUG_DATA,4,4
	.comm	DCHUBBUB_ARB_DRAM_STATE_CNTL,4,4
	.comm	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_VALUE,4,4
	.comm	DCHUBBUB_ARB_ALLOW_PSTATE_CHANGE_FORCE_ENABLE,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	forced_pstate_allow.4233, %object
	.size	forced_pstate_allow.4233, 4
forced_pstate_allow.4233:
	.space	4
	.type	max_sampled_pstate_wait_us.4232, %object
	.size	max_sampled_pstate_wait_us.4232, 4
max_sampled_pstate_wait_us.4232:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
