	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_fini          ## -- Begin function drm_sched_entity_fini
	.p2align	4, 0x90
_drm_sched_entity_fini:                 ## @drm_sched_entity_fini
	.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
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r14
	movq	%rbx, %rsi
	callq	_drm_sched_rq_remove_entity
	leaq	28(%rbx), %rdi
	callq	_spsc_queue_count
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	callq	_kthread_park
	movl	(%r14), %edi
	callq	_kthread_unpark
	jmp	LBB0_4
LBB0_8:
	leaq	28(%rbx), %rdi
	callq	_spsc_queue_count
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	24(%rbx), %rsi
	callq	_dma_fence_remove_callback
	movq	16(%rbx), %rdi
	callq	_dma_fence_put
	movq	$0, 16(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_drm_sched_entity_kill_jobs
LBB0_7:
	movq	8(%rbx), %rdi
	callq	_dma_fence_put
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_fini          ; -- Begin function drm_sched_entity_fini
	.p2align	2
_drm_sched_entity_fini:                 ; @drm_sched_entity_fini
	.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, #32]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x20, [x0]
	mov	x1, x19
	bl	_drm_sched_rq_remove_entity
	add	x0, x19, #28
	bl	_spsc_queue_count
	cbz	x0, LBB0_8
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_kthread_park
	ldr	w0, [x20]
	bl	_kthread_unpark
	b	LBB0_5
LBB0_4:
	add	x0, x19, #28
	bl	_spsc_queue_count
	cbz	x0, LBB0_8
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	add	x1, x19, #24
	bl	_dma_fence_remove_callback
	ldr	x0, [x19, #16]
	bl	_dma_fence_put
	str	xzr, [x19, #16]
LBB0_7:
	mov	x0, x19
	bl	_drm_sched_entity_kill_jobs
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_dma_fence_put
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
