	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_cleanup_common    ## -- Begin function intel_engine_cleanup_common
	.p2align	4, 0x90
_intel_engine_cleanup_common:           ## @intel_engine_cleanup_common
	.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
	addq	$36, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_cleanup_status_page
	leaq	32(%rbx), %rdi
	callq	_intel_engine_pool_fini
	movq	%rbx, %rdi
	callq	_intel_engine_fini_breadcrumbs
	movq	%rbx, %rdi
	callq	_intel_engine_cleanup_cmd_parser
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_i915_gem_object_put
LBB0_2:
	movl	16(%rbx), %edi
	callq	_intel_context_unpin
	movl	16(%rbx), %edi
	callq	_intel_context_put
	leaq	12(%rbx), %rdi
	callq	_llist_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	8(%rbx), %rdi
	callq	_intel_wa_list_free
	leaq	4(%rbx), %rdi
	callq	_intel_wa_list_free
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_intel_wa_list_free             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_engine_cleanup_common    ; -- Begin function intel_engine_cleanup_common
	.p2align	2
_intel_engine_cleanup_common:           ; @intel_engine_cleanup_common
	.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
	add	x0, x0, #36
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_cleanup_status_page
	add	x0, x19, #32
	bl	_intel_engine_pool_fini
	mov	x0, x19
	bl	_intel_engine_fini_breadcrumbs
	mov	x0, x19
	bl	_intel_engine_cleanup_cmd_parser
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_i915_gem_object_put
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_intel_context_unpin
	ldr	w0, [x19, #16]
	bl	_intel_context_put
	add	x0, x19, #12
	bl	_llist_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x0, x19, #8
	bl	_intel_wa_list_free
	add	x0, x19, #4
	bl	_intel_wa_list_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_wa_list_free
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
