	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_switcheroo_get_client_state ## -- Begin function vga_switcheroo_get_client_state
	.p2align	4, 0x90
_vga_switcheroo_get_client_state:       ## @vga_switcheroo_get_client_state
	.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	%rdi, %rsi
	movq	_vgasr_priv@GOTPCREL(%rip), %rbx
	leaq	4(%rbx), %rdi
	callq	_find_client_from_pci
	cmpl	$0, (%rbx)
	movq	%rax, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_VGA_SWITCHEROO_INIT@GOTPCREL(%rip), %rcx
LBB0_2:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_VGA_SWITCHEROO_NOT_FOUND@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vgasr_priv,8,2                 ## @vgasr_priv
	.comm	_VGA_SWITCHEROO_NOT_FOUND,4,2   ## @VGA_SWITCHEROO_NOT_FOUND
	.comm	_VGA_SWITCHEROO_INIT,4,2        ## @VGA_SWITCHEROO_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vga_switcheroo_get_client_state ; -- Begin function vga_switcheroo_get_client_state
	.p2align	2
_vga_switcheroo_get_client_state:       ; @vga_switcheroo_get_client_state
	.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	x1, x0
Lloh0:
	adrp	x19, _vgasr_priv@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vgasr_priv@GOTPAGEOFF]
	add	x0, x19, #4
	bl	_find_client_from_pci
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _VGA_SWITCHEROO_INIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VGA_SWITCHEROO_INIT@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x0, eq
Lloh4:
	adrp	x9, _VGA_SWITCHEROO_NOT_FOUND@GOTPAGE
Lloh5:
	ldr	x9, [x9, _VGA_SWITCHEROO_NOT_FOUND@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vgasr_priv,8,2                 ; @vgasr_priv
	.comm	_VGA_SWITCHEROO_NOT_FOUND,4,2   ; @VGA_SWITCHEROO_NOT_FOUND
	.comm	_VGA_SWITCHEROO_INIT,4,2        ; @VGA_SWITCHEROO_INIT
.subsections_via_symbols
