	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_free_object           ## -- Begin function i915_gem_free_object
	.p2align	4, 0x90
_i915_gem_free_object:                  ## @i915_gem_free_object
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_intel_bo
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	24(%rax), %r12
	movq	(%r12), %r14
	movq	%rax, %rdi
	callq	_trace_i915_gem_object_destroy
	cmpq	$0, 56(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i915_gem_detach_phys_object
LBB0_2:
	movq	$0, 48(%rbx)
	movq	%rbx, %rdi
	callq	_i915_gem_object_unbind
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	addl	(%rcx), %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %r12d
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_i915_gem_object_unbind
	movl	%eax, %edi
	callq	_WARN_ON
	movl	%r12d, (%r14)
LBB0_4:
	addq	$8, %r15
	movq	$0, 40(%rbx)
	movq	%rbx, %rdi
	callq	_i915_gem_object_put_pages
	movq	%rbx, %rdi
	callq	_i915_gem_object_free_mmap_offset
	movq	%rbx, %rdi
	callq	_i915_gem_object_release_stolen
	movl	32(%rbx), %edi
	callq	_BUG_ON
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_prime_gem_destroy
LBB0_6:
	movq	%r15, %rdi
	callq	_drm_gem_object_release
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_i915_gem_info_remove_obj
	movl	(%rbx), %edi
	callq	_kfree
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_gem_object_free           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_free_object           ; -- Begin function i915_gem_free_object
	.p2align	2
_i915_gem_free_object:                  ; @i915_gem_free_object
	.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
	bl	_to_intel_bo
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	x20, [x21]
	bl	_trace_i915_gem_object_destroy
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_i915_gem_detach_phys_object
LBB0_2:
	add	x21, x19, #8
	str	xzr, [x19, #48]
	mov	x0, x19
	bl	_i915_gem_object_unbind
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w22, [x20]
	str	wzr, [x20]
	mov	x0, x19
	bl	_i915_gem_object_unbind
	bl	_WARN_ON
	str	w22, [x20]
LBB0_4:
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_i915_gem_object_put_pages
	mov	x0, x19
	bl	_i915_gem_object_free_mmap_offset
	mov	x0, x19
	bl	_i915_gem_object_release_stolen
	ldr	w0, [x19, #32]
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, #0
	bl	_drm_prime_gem_destroy
LBB0_6:
	mov	x0, x21
	bl	_drm_gem_object_release
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_i915_gem_info_remove_obj
	ldr	w0, [x19]
	bl	_kfree
	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	_i915_gem_object_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
.subsections_via_symbols
