	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_pm_resume_old
_radeon_pm_resume_old:                  ## @radeon_pm_resume_old
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CHIP_BARTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_11
## %bb.1:
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_11
## %bb.2:
	cmpq	$0, 120(%rbx)
	je	LBB0_11
## %bb.3:
	movq	112(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	_SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_radeon_atom_set_voltage
LBB0_5:
	movq	104(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	_SET_VOLTAGE_TYPE_ASIC_VDDCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_radeon_atom_set_voltage
LBB0_7:
	movq	80(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_radeon_set_engine_clock
LBB0_9:
	movq	64(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_radeon_set_memory_clock
LBB0_11:
	leaq	40(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rax
	movq	48(%rbx), %rcx
	movq	%rax, 8(%rbx)
	movq	$0, 96(%rbx)
	movq	80(%rbx), %rdx
	movq	%rdx, 88(%rbx)
	movq	64(%rbx), %rdx
	movq	%rdx, 72(%rbx)
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	(%rcx,%rax,8), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 60(%rbx)
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
LBB0_13:
	movq	24(%rbx), %rax
	movq	_PM_METHOD_DYNPM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.14:
	movq	32(%rbx), %rax
	movq	_DYNPM_STATE_SUSPENDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_DYNPM_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	leaq	44(%rbx), %r15
	movq	_RADEON_IDLE_LOOP_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_pm_compute_clocks       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_BARTS,8,3                 ## @CHIP_BARTS
	.comm	_CHIP_CAYMAN,8,3                ## @CHIP_CAYMAN
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ## @SET_VOLTAGE_TYPE_ASIC_VDDC
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDCI,4,2 ## @SET_VOLTAGE_TYPE_ASIC_VDDCI
	.comm	_PM_METHOD_DYNPM,8,3            ## @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_SUSPENDED,8,3      ## @DYNPM_STATE_SUSPENDED
	.comm	_DYNPM_STATE_ACTIVE,8,3         ## @DYNPM_STATE_ACTIVE
	.comm	_RADEON_IDLE_LOOP_MS,4,2        ## @RADEON_IDLE_LOOP_MS
	.no_dead_strip	_radeon_pm_resume_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_pm_resume_old
_radeon_pm_resume_old:                  ; @radeon_pm_resume_old
	.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]
Lloh0:
	adrp	x9, _CHIP_BARTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_BARTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHIP_CAYMAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.gt	LBB0_10
; %bb.1:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x1, [x19, #112]
	cbz	x1, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radeon_atom_set_voltage
LBB0_4:
	ldr	x1, [x19, #104]
	cbz	x1, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _SET_VOLTAGE_TYPE_ASIC_VDDCI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SET_VOLTAGE_TYPE_ASIC_VDDCI@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radeon_atom_set_voltage
LBB0_6:
	ldr	x1, [x19, #80]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_radeon_set_engine_clock
LBB0_8:
	ldr	x1, [x19, #64]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_radeon_set_memory_clock
LBB0_10:
	add	x20, x19, #40
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	str	x8, [x19, #8]
	ldr	x9, [x19, #80]
	stp	x9, xzr, [x19, #88]
	ldr	x9, [x19, #64]
	str	x9, [x19, #72]
	ldr	x9, [x19, #48]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	x8, [x9, x8, lsl #3]
	ldr	d0, [x8]
	str	d0, [x19, #56]
LBB0_12:
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x9, _PM_METHOD_DYNPM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PM_METHOD_DYNPM@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x19, #32]
Lloh15:
	adrp	x9, _DYNPM_STATE_SUSPENDED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DYNPM_STATE_SUSPENDED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _DYNPM_STATE_ACTIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DYNPM_STATE_ACTIVE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x21, x19, #44
Lloh21:
	adrp	x8, _RADEON_IDLE_LOOP_MS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RADEON_IDLE_LOOP_MS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_schedule_delayed_work
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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	_radeon_pm_compute_clocks
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_BARTS,8,3                 ; @CHIP_BARTS
	.comm	_CHIP_CAYMAN,8,3                ; @CHIP_CAYMAN
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ; @SET_VOLTAGE_TYPE_ASIC_VDDC
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDCI,4,2 ; @SET_VOLTAGE_TYPE_ASIC_VDDCI
	.comm	_PM_METHOD_DYNPM,8,3            ; @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_SUSPENDED,8,3      ; @DYNPM_STATE_SUSPENDED
	.comm	_DYNPM_STATE_ACTIVE,8,3         ; @DYNPM_STATE_ACTIVE
	.comm	_RADEON_IDLE_LOOP_MS,4,2        ; @RADEON_IDLE_LOOP_MS
	.no_dead_strip	_radeon_pm_resume_old
.subsections_via_symbols
