	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_disable               ## -- Begin function sumo_dpm_disable
	.p2align	4, 0x90
_sumo_dpm_disable:                      ## @sumo_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_sumo_get_pi
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sumo_dpm_enabled
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_sumo_disable_clock_power_gating
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sumo_enable_sclk_ds
LBB0_3:
	movq	%rbx, %rdi
	callq	_sumo_clear_vc
	movq	%rbx, %rdi
	callq	_sumo_wait_for_level_0
	movq	%rbx, %rdi
	callq	_sumo_stop_dpm
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sumo_enable_voltage_scaling
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	callq	_r600_is_internal_thermal_sensor
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_radeon_irq_set
LBB0_6:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sumo_update_current_ps         ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_disable               ; -- Begin function sumo_dpm_disable
	.p2align	2
_sumo_dpm_disable:                      ; @sumo_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	_sumo_get_pi
	mov	x20, x0
	mov	x0, x19
	bl	_sumo_dpm_enabled
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_sumo_disable_clock_power_gating
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_sumo_enable_sclk_ds
LBB0_3:
	mov	x0, x19
	bl	_sumo_clear_vc
	mov	x0, x19
	bl	_sumo_wait_for_level_0
	mov	x0, x19
	bl	_sumo_stop_dpm
	mov	x0, x19
	mov	w1, #0
	bl	_sumo_enable_voltage_scaling
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_r600_is_internal_thermal_sensor
	cbz	x0, LBB0_6
; %bb.5:
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_radeon_irq_set
LBB0_6:
	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	_sumo_update_current_ps
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
