	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_push_job      ## -- Begin function drm_sched_entity_push_job
	.p2align	4, 0x90
_drm_sched_entity_push_job:             ## @drm_sched_entity_push_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_trace_drm_sched_job
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_atomic_inc
	movl	28(%rbx), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_WRITE_ONCE
	leaq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_spsc_queue_push
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_spin_unlock
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_drm_sched_rq_add_entity
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_sched_wakeup               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying to push to a killed entity\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_entity_push_job      ; -- Begin function drm_sched_entity_push_job
	.p2align	2
_drm_sched_entity_push_job:             ; @drm_sched_entity_push_job
	.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, x1
	mov	x20, x0
	bl	_trace_drm_sched_job
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_atomic_inc
	ldr	w0, [x19, #28]
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_WRITE_ONCE
	add	x0, x19, #24
	mov	x1, x20
	bl	_spsc_queue_push
	cbz	w0, LBB0_3
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_spin_unlock
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_drm_sched_rq_add_entity
	mov	x0, x20
	bl	_spin_unlock
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_sched_wakeup
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying to push to a killed entity\n"

.subsections_via_symbols
