	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_wedged_reset
_igt_wedged_reset:                      ## @igt_wedged_reset
	.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
	movq	%rdi, %rbx
	callq	_igt_global_reset_lock
	movq	(%rbx), %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_intel_gt_set_wedged
	movq	%rbx, %rdi
	callq	_intel_gt_is_wedged
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_ALL_ENGINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_intel_gt_reset
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_intel_runtime_pm_put
	movq	%rbx, %rdi
	callq	_igt_global_reset_unlock
	movq	%rbx, %rdi
	callq	_intel_gt_is_wedged
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL_ENGINES,4,2                ## @ALL_ENGINES
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_igt_wedged_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_wedged_reset
_igt_wedged_reset:                      ; @igt_wedged_reset
	.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	_igt_global_reset_lock
	ldr	x0, [x19]
	bl	_intel_runtime_pm_get
	mov	x20, x0
	mov	x0, x19
	bl	_intel_gt_set_wedged
	mov	x0, x19
	bl	_intel_gt_is_wedged
	cmp	x0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _ALL_ENGINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL_ENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_intel_gt_reset
	ldr	x0, [x19]
	mov	x1, x20
	bl	_intel_runtime_pm_put
	mov	x0, x19
	bl	_igt_global_reset_unlock
	mov	x0, x19
	bl	_intel_gt_is_wedged
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL_ENGINES,4,2                ; @ALL_ENGINES
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_igt_wedged_reset
.subsections_via_symbols
