	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_pm_perflvl_aux
_nouveau_pm_perflvl_aux:                ## @nouveau_pm_perflvl_aux
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_pm
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_nouveau_therm
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.2:
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.3:
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:
	cmpq	%rdx, %rsi
	jle	LBB0_8
## %bb.5:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rsi
	movq	%rax, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_NV_ERROR
LBB0_8:
	movq	%r13, %rax
	xorl	%r13d, %r13d
	cmpq	$0, 8(%r12)
	je	LBB0_14
## %bb.9:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:
	movq	8(%rax), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_14
## %bb.12:
	movq	%rbx, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_NV_ERROR
	movl	%ebx, %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fanspeed set failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"voltage set failed: %d\n"

	.no_dead_strip	_nouveau_pm_perflvl_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_pm_perflvl_aux
_nouveau_pm_perflvl_aux:                ; @nouveau_pm_perflvl_aux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	bl	_nouveau_drm
	mov	x19, x0
	mov	x0, x20
	bl	_nouveau_pm
	mov	x24, x0
	ldr	w0, [x19]
	bl	_nouveau_therm
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x9, [x21]
	cbz	x9, LBB0_8
; %bb.3:
	ldr	x10, [x22]
	cbz	x10, LBB0_8
; %bb.4:
	cmp	x10, x9
	b.le	LBB0_8
; %bb.5:
	ldr	x1, [x23]
	blr	x8
	cbz	w0, LBB0_8
; %bb.6:
	mov	x2, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NV_ERROR
LBB0_8:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x8, [x24]
	cbz	x8, LBB0_14
; %bb.10:
	ldr	x1, [x23, #8]
	cbz	x1, LBB0_14
; %bb.11:
	ldr	x9, [x22, #8]
	ldr	x10, [x21, #8]
	cmp	x9, x10
	b.le	LBB0_14
; %bb.12:
	mov	x0, x20
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.13:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_NV_ERROR
	b	LBB0_15
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fanspeed set failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"voltage set failed: %d\n"

	.no_dead_strip	_nouveau_pm_perflvl_aux
.subsections_via_symbols
