	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_sched_node_add_dependency ## -- Begin function __i915_sched_node_add_dependency
	.p2align	4, 0x90
___i915_sched_node_add_dependency:      ## @__i915_sched_node_add_dependency
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_schedule_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irq
	movq	%r12, %rdi
	callq	_node_signaled
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	leaq	8(%r12), %rsi
	callq	_list_add
	leaq	24(%rbx), %rdi
	leaq	4(%r15), %rsi
	callq	_list_add
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, (%rbx)
	movq	_I915_SCHED_HAS_SEMAPHORE_CHAIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_node_started
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	orl	%eax, (%r15)
LBB0_4:
	movq	___NO_PREEMPTION@GOTPCREL(%rip), %rbx
	movq	_I915_PRIORITY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	(%rbx), %edi
	callq	_BUILD_BUG_ON
	movq	_I915_DEPENDENCY_EXTERNAL@GOTPCREL(%rip), %rax
	movl	$1, %r13d
	testq	%r14, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	___bump_priority
LBB0_6:
	movq	_schedule_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irq
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_schedule_lock,4,2              ## @schedule_lock
	.comm	_I915_SCHED_HAS_SEMAPHORE_CHAIN,4,2 ## @I915_SCHED_HAS_SEMAPHORE_CHAIN
	.comm	___NO_PREEMPTION,4,2            ## @__NO_PREEMPTION
	.comm	_I915_PRIORITY_MASK,4,2         ## @I915_PRIORITY_MASK
	.comm	_I915_DEPENDENCY_EXTERNAL,8,3   ## @I915_DEPENDENCY_EXTERNAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_sched_node_add_dependency ; -- Begin function __i915_sched_node_add_dependency
	.p2align	2
___i915_sched_node_add_dependency:      ; @__i915_sched_node_add_dependency
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _schedule_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _schedule_lock@GOTPAGEOFF]
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_node_signaled
	cbz	w0, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_8
LBB0_2:
	add	x0, x22, #32
	bl	_INIT_LIST_HEAD
	add	x0, x22, #28
	add	x1, x19, #8
	bl	_list_add
	add	x0, x22, #24
	add	x1, x21, #4
	bl	_list_add
	stp	x21, x19, [x22, #8]
	str	x20, [x22]
	ldr	w8, [x19]
Lloh2:
	adrp	x22, _I915_SCHED_HAS_SEMAPHORE_CHAIN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I915_SCHED_HAS_SEMAPHORE_CHAIN@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_node_started
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_5:
Lloh4:
	adrp	x21, ___NO_PREEMPTION@GOTPAGE
Lloh5:
	ldr	x21, [x21, ___NO_PREEMPTION@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _I915_PRIORITY_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I915_PRIORITY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w0, w8, w9
	bl	_BUILD_BUG_ON
Lloh9:
	adrp	x8, _I915_DEPENDENCY_EXTERNAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I915_DEPENDENCY_EXTERNAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	___bump_priority
LBB0_7:
	mov	w19, #1
LBB0_8:
Lloh12:
	adrp	x0, _schedule_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _schedule_lock@GOTPAGEOFF]
	bl	_spin_unlock_irq
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_schedule_lock,4,2              ; @schedule_lock
	.comm	_I915_SCHED_HAS_SEMAPHORE_CHAIN,4,2 ; @I915_SCHED_HAS_SEMAPHORE_CHAIN
	.comm	___NO_PREEMPTION,4,2            ; @__NO_PREEMPTION
	.comm	_I915_PRIORITY_MASK,4,2         ; @I915_PRIORITY_MASK
	.comm	_I915_DEPENDENCY_EXTERNAL,8,3   ; @I915_DEPENDENCY_EXTERNAL
.subsections_via_symbols
