	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_overlay_switch_off       ## -- Begin function intel_overlay_switch_off
	.p2align	4, 0x90
_intel_overlay_switch_off:              ## @intel_overlay_switch_off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	leaq	4(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_drm_modeset_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_intel_overlay_recover_from_interrupt
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 8(%r14)
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_intel_overlay_release_old_vid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_overlay_off              ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_overlay_switch_off       ; -- Begin function intel_overlay_switch_off
	.p2align	2
_intel_overlay_switch_off:              ; @intel_overlay_switch_off
	.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
	ldr	x20, [x0, #16]
	add	x0, x20, #4
	bl	_lockdep_assert_held
	mov	x0, x20
	bl	_drm_modeset_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	bl	_intel_overlay_recover_from_interrupt
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_intel_overlay_release_old_vid
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	x1, [x19]
	bl	_iowrite32
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_overlay_off
LBB0_5:
	mov	w0, #0
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
