	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_unbind         ## -- Begin function i915_gem_object_unbind
	.p2align	4, 0x90
_i915_gem_object_unbind:                ## @i915_gem_object_unbind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	64(%rbx), %rax
	movq	(%rax), %r14
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_i915_gem_object_finish_gpu
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_i915_gem_object_finish_gtt
	movq	%rbx, %rdi
	callq	_i915_gem_object_put_fence
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_trace_i915_gem_object_unbind
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_i915_gem_gtt_unbind_object
LBB0_7:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_i915_ppgtt_unbind_object
	movq	$0, 32(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_i915_gem_gtt_finish_object
	leaq	28(%rbx), %rdi
	callq	_list_del
	leaq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_list_move_tail
	movl	$1, (%rbx)
	movq	16(%rbx), %rdi
	callq	_drm_mm_put_block
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_unbind         ; -- Begin function i915_gem_object_unbind
	.p2align	2
_i915_gem_object_unbind:                ; @i915_gem_object_unbind
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	ldr	x8, [x19, #64]
	ldr	x20, [x8]
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_i915_gem_object_finish_gpu
	cbnz	w0, LBB0_11
; %bb.5:
	mov	x0, x19
	bl	_i915_gem_object_finish_gtt
	mov	x0, x19
	bl	_i915_gem_object_put_fence
	cbnz	w0, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_trace_i915_gem_object_unbind
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_i915_gem_gtt_unbind_object
LBB0_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_i915_ppgtt_unbind_object
	str	xzr, [x19, #32]
LBB0_10:
	mov	x0, x19
	bl	_i915_gem_gtt_finish_object
	add	x0, x19, #28
	bl	_list_del
	add	x0, x19, #24
	mov	x1, x20
	bl	_list_move_tail
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #16]
	bl	_drm_mm_put_block
	mov	w0, #0
	stp	xzr, xzr, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
