	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_entervt_ioctl         ## -- Begin function i915_gem_entervt_ioctl
	.p2align	4, 0x90
_i915_gem_entervt_ioctl:                ## @i915_gem_entervt_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_DRIVER_MODESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_i915_reset_in_progress
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	$0, (%r12)
	movq	%rbx, %rdi
	callq	_i915_gem_init_hw
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	4(%r12), %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_drm_irq_install
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_i915_gem_cleanup_ringbuffer
	movl	$1, (%r12)
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_MODESET,4,2             ## @DRIVER_MODESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reenabling wedged hardware, good luck\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_entervt_ioctl         ; -- Begin function i915_gem_entervt_ioctl
	.p2align	2
_i915_gem_entervt_ioctl:                ; @i915_gem_entervt_ioctl
	.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, #8]
Lloh0:
	adrp	x8, _DRIVER_MODESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_MODESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
	add	x20, x21, #8
	mov	x0, x20
	bl	_i915_reset_in_progress
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x20
	mov	w1, #0
	bl	_atomic_set
LBB0_4:
	mov	x0, x19
	bl	_mutex_lock
	str	wzr, [x21]
	mov	x0, x19
	bl	_i915_gem_init_hw
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	add	x0, x21, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_drm_irq_install
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_i915_gem_cleanup_ringbuffer
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_MODESET,4,2             ; @DRIVER_MODESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reenabling wedged hardware, good luck\n"

.subsections_via_symbols
