	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_move_to_active ## -- Begin function i915_gem_object_move_to_active
	.p2align	4, 0x90
_i915_gem_object_move_to_active:        ## @i915_gem_object_move_to_active
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	(%rax), %r14
	movq	%rsi, %rdi
	callq	_intel_ring_get_seqno
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_BUG_ON
	movq	%r12, 56(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	48(%rbx), %rdi
	callq	_drm_gem_object_reference
	movl	$1, (%rbx)
LBB0_2:
	leaq	44(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_move_tail
	leaq	40(%rbx), %rdi
	movq	%r12, %rsi
	callq	_list_move_tail
	movq	%r15, 32(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%r15, 16(%rbx)
	movq	8(%rbx), %rdi
	movq	_I915_FENCE_REG_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_move_tail                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_FENCE_REG_NONE,8,3        ## @I915_FENCE_REG_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_move_to_active ; -- Begin function i915_gem_object_move_to_active
	.p2align	2
_i915_gem_object_move_to_active:        ; @i915_gem_object_move_to_active
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	mov	x23, x0
	ldr	x8, [x23, #48]!
	ldr	x19, [x8]
	mov	x0, x1
	bl	_intel_ring_get_seqno
	mov	x22, x0
	cmp	x21, #0
	cset	w0, eq
	bl	_BUG_ON
	str	x21, [x20, #56]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_drm_gem_object_reference
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
	add	x0, x20, #44
	add	x1, x19, #4
	bl	_list_move_tail
	add	x0, x20, #40
	mov	x1, x21
	bl	_list_move_tail
	str	x22, [x20, #32]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	str	x22, [x20, #16]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _I915_FENCE_REG_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_FENCE_REG_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_list_move_tail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_FENCE_REG_NONE,8,3        ; @I915_FENCE_REG_NONE
.subsections_via_symbols
