	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_pm_get_perflvl
_nouveau_pm_get_perflvl:                ## @nouveau_pm_get_perflvl
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nouveau_pm
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	(%rdx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r12
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nouveau_pm_perflvl_get
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	subl	%r12d, %r14d
	addq	%r15, %r12
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_nouveau_pm_perflvl_info
LBB0_2:
	movq	%r15, %rdi
	callq	_strlen
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"profile: %s, %s\nc:"

	.no_dead_strip	_nouveau_pm_get_perflvl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_pm_get_perflvl
_nouveau_pm_get_perflvl:                ; @nouveau_pm_get_perflvl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	bl	_to_pci_dev
	bl	_pci_get_drvdata
	mov	x22, x0
	bl	_nouveau_pm
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldp	x9, x8, [x0]
	ldr	x3, [x8]
	ldr	x4, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_nouveau_pm_perflvl_get
	cbnz	w0, LBB0_2
; %bb.1:
	sub	w2, w20, w21
	add	x1, x19, x21
	add	x0, sp, #8
	bl	_nouveau_pm_perflvl_info
LBB0_2:
	mov	x0, x19
	bl	_strlen
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.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	"profile: %s, %s\nc:"

	.no_dead_strip	_nouveau_pm_get_perflvl
.subsections_via_symbols
