	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __live_remote_context
___live_remote_context:                 ## @__live_remote_context
	.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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_intel_context_create
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_context_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.16:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r13, %rdi
	callq	_i915_active_is_idle
	xorl	%ebx, %ebx
	movl	$0, %edx
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.7:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
LBB0_13:
	movq	%r15, %rdi
	callq	_intel_context_put
LBB0_14:
	movq	%r13, %rdi
	callq	_intel_context_put
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	callq	_i915_active_is_idle
	movl	$1, %edx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	callq	___remote_sync
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r13, %rdi
	callq	_i915_active_is_idle
	movl	$2, %edx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote context is not active; expected idle-barrier (%s pass %d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___live_remote_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __live_remote_context
___live_remote_context:                 ; @__live_remote_context
	.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	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x21
	bl	_intel_context_create
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_context_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_12
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	x0, [x21, #8]
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_i915_active_is_idle
	cbz	x0, LBB0_9
; %bb.7:
	mov	w2, #0
LBB0_8:
	ldr	w1, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	x0, [x21, #8]
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_intel_context_put
LBB0_12:
	mov	x0, x19
	bl	_intel_context_put
	mov	x0, x22
	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
LBB0_13:
	mov	x0, x19
	bl	_i915_active_is_idle
	cbz	x0, LBB0_15
; %bb.14:
	mov	w2, #1
	b	LBB0_8
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.16:
	ldr	x0, [x21, #8]
	mov	x1, x19
	bl	___remote_sync
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.17:
	mov	x0, x19
	bl	_i915_active_is_idle
	cbz	x0, LBB0_19
; %bb.18:
	mov	w2, #2
	b	LBB0_8
LBB0_19:
	mov	w22, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote context is not active; expected idle-barrier (%s pass %d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___live_remote_context
.subsections_via_symbols
