	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___intel_gt_live_teardown       ## -- Begin function __intel_gt_live_teardown
	.p2align	4, 0x90
___intel_gt_live_teardown:              ## @__intel_gt_live_teardown
	.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	%rsi, %r15
	movl	%edi, %r14d
	movq	(%rsi), %rdi
	callq	_mutex_lock
	movq	(%r15), %rdi
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_igt_flush_test
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testq	%rax, %rax
	cmovel	%r14d, %ebx
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movq	(%r15), %rdi
	callq	_i915_gem_drain_freed_objects
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_WAIT_LOCKED,4,2           ## @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___intel_gt_live_teardown       ; -- Begin function __intel_gt_live_teardown
	.p2align	2
___intel_gt_live_teardown:              ; @__intel_gt_live_teardown
	.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, x1
	mov	x20, x0
	ldr	x0, [x1]
	bl	_mutex_lock
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _I915_WAIT_LOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_WAIT_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_igt_flush_test
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w20, w20, w8, eq
	ldr	x0, [x19]
	bl	_mutex_unlock
	ldr	x0, [x19]
	bl	_i915_gem_drain_freed_objects
	mov	x0, x20
	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	_I915_WAIT_LOCKED,4,2           ; @I915_WAIT_LOCKED
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
