	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_vga_fini               ## -- Begin function nouveau_vga_fini
	.p2align	4, 0x90
_nouveau_vga_fini:                      ## @nouveau_vga_fini
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_nouveau_pmops_runtime
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vga_client_register
	movl	4(%rbx), %edi
	callq	_pci_is_thunderbolt_attached
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %edi
	callq	_vga_switcheroo_unregister_client
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_nouveau_is_v1_dsm
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_nouveau_is_optimus
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vga_switcheroo_fini_domain_pm_ops ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_vga_fini               ; -- Begin function nouveau_vga_fini
	.p2align	2
_nouveau_vga_fini:                      ; @nouveau_vga_fini
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x21, [x0]
	bl	_nouveau_pmops_runtime
	mov	x20, x0
	ldr	w0, [x21, #4]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_vga_client_register
	ldr	w0, [x21, #4]
	bl	_pci_is_thunderbolt_attached
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x21, #4]
	bl	_vga_switcheroo_unregister_client
	cbz	w20, LBB0_2
; %bb.4:
	bl	_nouveau_is_v1_dsm
	cbz	x0, LBB0_2
; %bb.5:
	bl	_nouveau_is_optimus
	cbnz	w0, LBB0_2
; %bb.6:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vga_switcheroo_fini_domain_pm_ops
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
