	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_get_pm_profile
_radeon_get_pm_profile:                 ## @radeon_get_pm_profile
	.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	%rdx, %rbx
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_get_drvdata
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PM_PROFILE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_PM_PROFILE_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_PM_PROFILE_MID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_PM_PROFILE_HIGH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	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	_PM_PROFILE_AUTO,4,2            ## @PM_PROFILE_AUTO
L_.str.1:                               ## @.str.1
	.asciz	"auto"

	.comm	_PM_PROFILE_LOW,4,2             ## @PM_PROFILE_LOW
L_.str.2:                               ## @.str.2
	.asciz	"low"

	.comm	_PM_PROFILE_MID,4,2             ## @PM_PROFILE_MID
L_.str.3:                               ## @.str.3
	.asciz	"mid"

	.comm	_PM_PROFILE_HIGH,4,2            ## @PM_PROFILE_HIGH
L_.str.4:                               ## @.str.4
	.asciz	"high"

L_.str.5:                               ## @.str.5
	.asciz	"default"

	.no_dead_strip	_radeon_get_pm_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_get_pm_profile
_radeon_get_pm_profile:                 ; @radeon_get_pm_profile
	.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	_to_pci_dev
	bl	_pci_get_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _PM_PROFILE_AUTO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PM_PROFILE_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x9, _PM_PROFILE_LOW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PM_PROFILE_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x9, _PM_PROFILE_MID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PM_PROFILE_MID@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x3, l_.str.3@PAGE
Lloh17:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x9, _PM_PROFILE_HIGH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PM_PROFILE_HIGH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, l_.str.5@PAGE
Lloh22:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh23:
	adrp	x11, l_.str.4@PAGE
Lloh24:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	w8, w9
	csel	x3, x11, x10, eq
LBB0_7:
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_PM_PROFILE_AUTO,4,2            ; @PM_PROFILE_AUTO
l_.str.1:                               ; @.str.1
	.asciz	"auto"

	.comm	_PM_PROFILE_LOW,4,2             ; @PM_PROFILE_LOW
l_.str.2:                               ; @.str.2
	.asciz	"low"

	.comm	_PM_PROFILE_MID,4,2             ; @PM_PROFILE_MID
l_.str.3:                               ; @.str.3
	.asciz	"mid"

	.comm	_PM_PROFILE_HIGH,4,2            ; @PM_PROFILE_HIGH
l_.str.4:                               ; @.str.4
	.asciz	"high"

l_.str.5:                               ; @.str.5
	.asciz	"default"

	.no_dead_strip	_radeon_get_pm_profile
.subsections_via_symbols
