	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_wedged_set
_i915_wedged_set:                       ## @i915_wedged_set
	.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	4(%rdi), %r15d
	movq	_I915_RESET_BACKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%r15d, %edi
	callq	_wait_event
	movq	_I915_ERROR_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r14d, %r8d
	callq	_intel_gt_handle_error
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_RESET_BACKOFF,4,2         ## @I915_RESET_BACKOFF
	.comm	_I915_ERROR_CAPTURE,4,2         ## @I915_ERROR_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Manually set wedged engine mask = %llx"

	.no_dead_strip	_i915_wedged_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_wedged_set
_i915_wedged_set:                       ; @i915_wedged_set
	.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, x1
	mov	x20, x0
	ldr	w21, [x0, #4]
Lloh0:
	adrp	x8, _I915_RESET_BACKOFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_RESET_BACKOFF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event
Lloh3:
	adrp	x8, _I915_ERROR_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_ERROR_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x19
	bl	_intel_gt_handle_error
	mov	w0, #0
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_RESET_BACKOFF,4,2         ; @I915_RESET_BACKOFF
	.comm	_I915_ERROR_CAPTURE,4,2         ; @I915_ERROR_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Manually set wedged engine mask = %llx"

	.no_dead_strip	_i915_wedged_set
.subsections_via_symbols
