	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_context_free
_i915_gem_context_free:                 ## @i915_gem_context_free
	.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	48(%rdi), %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_i915_gem_context_is_closed
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%rbx, %rdi
	callq	_release_hw_id
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_i915_vm_put
LBB0_2:
	movl	32(%rbx), %edi
	callq	_rcu_access_pointer
	movl	%eax, %edi
	callq	_free_engines
	leaq	28(%rbx), %rdi
	callq	_mutex_destroy
	movl	24(%rbx), %edi
	callq	_kfree
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_intel_timeline_put
LBB0_4:
	movl	12(%rbx), %edi
	callq	_kfree
	movl	8(%rbx), %edi
	callq	_put_pid
	leaq	4(%rbx), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_mutex_destroy
	movq	_rcu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree_rcu                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rcu,4,2                        ## @rcu
	.no_dead_strip	_i915_gem_context_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_context_free
_i915_gem_context_free:                 ; @i915_gem_context_free
	.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
	ldr	x0, [x0, #48]
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_i915_gem_context_is_closed
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_release_hw_id
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_i915_vm_put
LBB0_2:
	ldr	w0, [x19, #32]
	bl	_rcu_access_pointer
	bl	_free_engines
	add	x0, x19, #28
	bl	_mutex_destroy
	ldr	w0, [x19, #24]
	bl	_kfree
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_intel_timeline_put
LBB0_4:
	ldr	w0, [x19, #12]
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_put_pid
	add	x0, x19, #4
	bl	_list_del
	mov	x0, x19
	bl	_mutex_destroy
Lloh0:
	adrp	x8, _rcu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rcu@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree_rcu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rcu,4,2                        ; @rcu
	.no_dead_strip	_i915_gem_context_free
.subsections_via_symbols
