	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hang_fini
_hang_fini:                             ## @hang_fini
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MI_BATCH_BUFFER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	(%rdi), %rdi
	callq	_intel_gt_chipset_flush
	movl	16(%rbx), %edi
	callq	_i915_gem_object_unpin_map
	movl	16(%rbx), %edi
	callq	_i915_gem_object_put
	movl	12(%rbx), %edi
	callq	_i915_gem_object_unpin_map
	movl	12(%rbx), %edi
	callq	_i915_gem_object_put
	movl	8(%rbx), %edi
	callq	_kernel_context_close
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_igt_flush_test                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_BATCH_BUFFER_END,4,2        ## @MI_BATCH_BUFFER_END
	.comm	_I915_WAIT_LOCKED,4,2           ## @I915_WAIT_LOCKED
	.no_dead_strip	_hang_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hang_fini
_hang_fini:                             ; @hang_fini
	.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
Lloh0:
	adrp	x8, _MI_BATCH_BUFFER_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_BATCH_BUFFER_END@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0, #24]
	str	w8, [x9]
	ldr	x0, [x0]
	bl	_intel_gt_chipset_flush
	ldr	w0, [x19, #16]
	bl	_i915_gem_object_unpin_map
	ldr	w0, [x19, #16]
	bl	_i915_gem_object_put
	ldr	w0, [x19, #12]
	bl	_i915_gem_object_unpin_map
	ldr	w0, [x19, #12]
	bl	_i915_gem_object_put
	ldr	w0, [x19, #8]
	bl	_kernel_context_close
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _I915_WAIT_LOCKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_WAIT_LOCKED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_igt_flush_test
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_BATCH_BUFFER_END,4,2        ; @MI_BATCH_BUFFER_END
	.comm	_I915_WAIT_LOCKED,4,2           ; @I915_WAIT_LOCKED
	.no_dead_strip	_hang_fini
.subsections_via_symbols
