	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_modeset_vga_set_state    ## -- Begin function intel_modeset_vga_set_state
	.p2align	4, 0x90
_intel_modeset_vga_set_state:           ## @intel_modeset_vga_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_INTEL_GMCH_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_word
	movq	_INTEL_GMCH_VGA_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	notl	%edx
	andl	-28(%rbp), %edx
	jmp	LBB0_3
LBB0_2:
	orl	-28(%rbp), %edx
LBB0_3:
	movl	%edx, -28(%rbp)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_pci_write_config_word
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_GMCH_CTRL,4,2            ## @INTEL_GMCH_CTRL
	.comm	_INTEL_GMCH_VGA_DISABLE,4,2     ## @INTEL_GMCH_VGA_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_modeset_vga_set_state    ; -- Begin function intel_modeset_vga_set_state
	.p2align	2
_intel_modeset_vga_set_state:           ; @intel_modeset_vga_set_state
	.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, x1
	ldr	x20, [x0]
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _INTEL_GMCH_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INTEL_GMCH_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_word
Lloh2:
	adrp	x8, _INTEL_GMCH_VGA_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_GMCH_VGA_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
LBB0_3:
	str	w2, [sp, #12]
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_pci_write_config_word
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_GMCH_CTRL,4,2            ; @INTEL_GMCH_CTRL
	.comm	_INTEL_GMCH_VGA_DISABLE,4,2     ; @INTEL_GMCH_VGA_DISABLE
.subsections_via_symbols
