	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_pop_job       ## -- Begin function drm_sched_entity_pop_job
	.p2align	4, 0x90
_drm_sched_entity_pop_job:              ## @drm_sched_entity_pop_job
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	callq	_spsc_queue_peek
	movl	%eax, %edi
	callq	_to_drm_sched_job
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_trace_drm_sched_job_wait_dep
	movq	%rbx, %rdi
	callq	_drm_sched_entity_add_dependency_cb
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rdi
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_dma_fence_set_error
LBB0_9:
	movl	4(%rbx), %edi
	callq	_dma_fence_put
	movq	(%r14), %rdi
	callq	_dma_fence_get
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spsc_queue_pop
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECANCELED,4,2                  ## @ECANCELED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_pop_job       ; -- Begin function drm_sched_entity_pop_job
	.p2align	2
_drm_sched_entity_pop_job:              ; @drm_sched_entity_pop_job
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	bl	_spsc_queue_peek
	bl	_to_drm_sched_job
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	str	w0, [x19, #16]
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_trace_drm_sched_job_wait_dep
	mov	x0, x19
	bl	_drm_sched_entity_add_dependency_cb
	cbz	x0, LBB0_1
; %bb.3:
	mov	x20, #0
	b	LBB0_8
LBB0_4:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_atomic_read
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh0:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_dma_fence_set_error
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_dma_fence_put
	ldr	x0, [x20]
	bl	_dma_fence_get
	str	w0, [x19, #4]
	mov	x0, x19
	bl	_spsc_queue_pop
LBB0_8:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECANCELED,4,2                  ; @ECANCELED
.subsections_via_symbols
