	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trinity_dpm_disable            ## -- Begin function trinity_dpm_disable
	.p2align	4, 0x90
_trinity_dpm_disable:                   ## @trinity_dpm_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_trinity_acquire_mutex
	movq	%rbx, %rdi
	callq	_trinity_dpm_enabled
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_trinity_dpm_bapm_enable
	movq	%rbx, %rdi
	callq	_trinity_disable_clock_power_gating
	movq	%rbx, %rdi
	callq	_sumo_clear_vc
	movq	%rbx, %rdi
	callq	_trinity_wait_for_level_0
	movq	%rbx, %rdi
	callq	_trinity_stop_dpm
	movq	%rbx, %rdi
	callq	_trinity_reset_am
	movq	%rbx, %rdi
	callq	_trinity_release_mutex
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movl	4(%rbx), %edi
	callq	_r600_is_internal_thermal_sensor
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_radeon_irq_set
LBB0_4:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trinity_update_current_ps      ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trinity_release_mutex          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trinity_dpm_disable            ; -- Begin function trinity_dpm_disable
	.p2align	2
_trinity_dpm_disable:                   ; @trinity_dpm_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_trinity_acquire_mutex
	mov	x0, x19
	bl	_trinity_dpm_enabled
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_trinity_dpm_bapm_enable
	mov	x0, x19
	bl	_trinity_disable_clock_power_gating
	mov	x0, x19
	bl	_sumo_clear_vc
	mov	x0, x19
	bl	_trinity_wait_for_level_0
	mov	x0, x19
	bl	_trinity_stop_dpm
	mov	x0, x19
	bl	_trinity_reset_am
	mov	x0, x19
	bl	_trinity_release_mutex
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_r600_is_internal_thermal_sensor
	cbz	x0, LBB0_4
; %bb.3:
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_radeon_irq_set
LBB0_4:
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trinity_update_current_ps
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trinity_release_mutex
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
