	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __eb_pin_engine
___eb_pin_engine:                       ## @__eb_pin_engine
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_intel_gt_terminally_wedged
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	___eb_pin_context
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	callq	_intel_context_timeline_lock
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	___eb_unpin_context
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %rdi
	callq	_intel_context_enter
	movq	%r12, %rdi
	callq	_eb_throttle
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_intel_context_timeline_unlock
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movq	_I915_WAIT_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i915_request_wait
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_i915_request_put
	testq	%r13, %r13
	js	LBB0_6
LBB0_9:
	movq	(%r12), %rax
	movq	%rax, 8(%r14)
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_intel_context_exit
	movq	%r15, %rdi
	callq	_intel_context_timeline_unlock
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ## @I915_WAIT_INTERRUPTIBLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	___eb_pin_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __eb_pin_engine
___eb_pin_engine:                       ; @__eb_pin_engine
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	w0, [x8]
	bl	_intel_gt_terminally_wedged
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	___eb_pin_context
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_intel_context_timeline_lock
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	___eb_unpin_context
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_intel_context_enter
	mov	x0, x19
	bl	_eb_throttle
	mov	x22, x0
	mov	x0, x21
	bl	_intel_context_timeline_unlock
	cbz	x22, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_WAIT_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_i915_request_wait
	mov	x23, x0
	mov	x0, x22
	bl	_i915_request_put
	tbnz	x23, #63, LBB0_9
LBB0_7:
	mov	w22, #0
	ldr	x8, [x19]
	stp	x19, x8, [x20]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_intel_context_exit
	mov	x0, x21
	bl	_intel_context_timeline_unlock
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ; @I915_WAIT_INTERRUPTIBLE
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	___eb_pin_engine
.subsections_via_symbols
