	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_dsm_set_discrete_state
_nouveau_dsm_set_discrete_state:        ## @nouveau_dsm_set_discrete_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_VGA_SWITCHEROO_ON@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_NOUVEAU_DSM_POWER_SPEED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NOUVEAU_DSM_POWER_STAMINA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	_NOUVEAU_DSM_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_nouveau_dsm
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_SWITCHEROO_ON,4,2          ## @VGA_SWITCHEROO_ON
	.comm	_NOUVEAU_DSM_POWER_SPEED,4,2    ## @NOUVEAU_DSM_POWER_SPEED
	.comm	_NOUVEAU_DSM_POWER_STAMINA,4,2  ## @NOUVEAU_DSM_POWER_STAMINA
	.comm	_NOUVEAU_DSM_POWER,4,2          ## @NOUVEAU_DSM_POWER
	.no_dead_strip	_nouveau_dsm_set_discrete_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_dsm_set_discrete_state
_nouveau_dsm_set_discrete_state:        ; @nouveau_dsm_set_discrete_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _VGA_SWITCHEROO_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VGA_SWITCHEROO_ON@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NOUVEAU_DSM_POWER_SPEED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NOUVEAU_DSM_POWER_SPEED@GOTPAGEOFF]
Lloh5:
	adrp	x10, _NOUVEAU_DSM_POWER_STAMINA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NOUVEAU_DSM_POWER_STAMINA@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _NOUVEAU_DSM_POWER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NOUVEAU_DSM_POWER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x3, #0
	bl	_nouveau_dsm
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_SWITCHEROO_ON,4,2          ; @VGA_SWITCHEROO_ON
	.comm	_NOUVEAU_DSM_POWER_SPEED,4,2    ; @NOUVEAU_DSM_POWER_SPEED
	.comm	_NOUVEAU_DSM_POWER_STAMINA,4,2  ; @NOUVEAU_DSM_POWER_STAMINA
	.comm	_NOUVEAU_DSM_POWER,4,2          ; @NOUVEAU_DSM_POWER
	.no_dead_strip	_nouveau_dsm_set_discrete_state
.subsections_via_symbols
