	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_restore_display
_i915_restore_display:                  ## @i915_restore_display
	.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, %rbx
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jg	LBB0_2
## %bb.1:
	movq	_DSPARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_I915_WRITE
LBB0_2:
	movq	%rbx, %rdi
	callq	_intel_fbc_global_disable
	movq	%rbx, %rdi
	callq	_HAS_FBC
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jg	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_IS_G4X
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_FBC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_I915_WRITE
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i915_redisable_vga             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPARB,4,2                     ## @DSPARB
	.comm	_FBC_CONTROL,4,2                ## @FBC_CONTROL
	.no_dead_strip	_i915_restore_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_restore_display
_i915_restore_display:                  ; @i915_restore_display
	.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	x19, x0
	bl	_INTEL_GEN
	cmp	w0, #4
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DSPARB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSPARB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_I915_WRITE
LBB0_2:
	mov	x0, x19
	bl	_intel_fbc_global_disable
	mov	x0, x19
	bl	_HAS_FBC
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #4
	b.gt	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_IS_G4X
	cbnz	w0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _FBC_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FBC_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_I915_WRITE
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i915_redisable_vga
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPARB,4,2                     ; @DSPARB
	.comm	_FBC_CONTROL,4,2                ; @FBC_CONTROL
	.no_dead_strip	_i915_restore_display
.subsections_via_symbols
