	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_get_dpm_state
_amdgpu_get_dpm_state:                  ## @amdgpu_get_dpm_state
	.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	%rdx, %r14
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_amdgpu_smu_get_current_power_state
	jmp	LBB0_6
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_get_current_power_state
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %eax
LBB0_6:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rcx
	movq	_POWER_STATE_TYPE_BALANCED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rdx, %rdi
	cmpl	(%rcx), %eax
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rdi, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ## @POWER_STATE_TYPE_BATTERY
L_.str.1:                               ## @.str.1
	.asciz	"battery"

	.comm	_POWER_STATE_TYPE_BALANCED,4,2  ## @POWER_STATE_TYPE_BALANCED
L_.str.2:                               ## @.str.2
	.asciz	"balanced"

L_.str.3:                               ## @.str.3
	.asciz	"performance"

	.no_dead_strip	_amdgpu_get_dpm_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_get_dpm_state
_amdgpu_get_dpm_state:                  ; @amdgpu_get_dpm_state
	.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, x2
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	mov	x0, x20
	bl	_is_support_sw_smu
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_amdgpu_smu_get_current_power_state
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_amdgpu_dpm_get_current_power_state
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
LBB0_6:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _POWER_STATE_TYPE_BATTERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_STATE_TYPE_BATTERY@GOTPAGEOFF]
Lloh5:
	adrp	x9, _POWER_STATE_TYPE_BALANCED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POWER_STATE_TYPE_BALANCED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, l_.str.3@PAGE
Lloh10:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh11:
	adrp	x11, l_.str.2@PAGE
Lloh12:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w0, w9
	csel	x9, x11, x10, eq
Lloh13:
	adrp	x10, l_.str.1@PAGE
Lloh14:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w0, w8
	csel	x3, x10, x9, eq
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snprintf
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ; @POWER_STATE_TYPE_BATTERY
l_.str.1:                               ; @.str.1
	.asciz	"battery"

	.comm	_POWER_STATE_TYPE_BALANCED,4,2  ; @POWER_STATE_TYPE_BALANCED
l_.str.2:                               ; @.str.2
	.asciz	"balanced"

l_.str.3:                               ; @.str.3
	.asciz	"performance"

	.no_dead_strip	_amdgpu_get_dpm_state
.subsections_via_symbols
