	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_init                 ## -- Begin function drm_sched_init
	.p2align	4, 0x90
_drm_sched_init:                        ## @drm_sched_init
	.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	%r9, %r14
	movq	%rdi, %r12
	movq	%rsi, 80(%rdi)
	movl	%edx, (%rdi)
	movq	%r9, 8(%rdi)
	movq	%r8, 16(%rdi)
	movl	%ecx, 24(%rdi)
	movq	_DRM_SCHED_PRIORITY_MIN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_DRM_SCHED_PRIORITY_MAX@GOTPCREL(%rip), %r15
	cmpl	(%r15), %r13d
	jge	LBB0_3
## %bb.1:
	leaq	(,%r13,4), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_drm_sched_rq_init
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	leaq	68(%r12), %rdi
	callq	_init_waitqueue_head
	leaq	64(%r12), %rdi
	callq	_init_waitqueue_head
	leaq	60(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%r12), %rdi
	callq	_spin_lock_init
	leaq	52(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	48(%r12), %rdi
	movq	_drm_sched_job_timedout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	44(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	40(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic64_set
	movq	_drm_sched_main@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rdx
	movq	%r12, %rsi
	callq	_kthread_run
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	$0, 32(%r12)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_DRM_ERROR
	movl	%r15d, %eax
	jmp	LBB0_6
LBB0_5:
	movl	$1, 28(%r12)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_SCHED_PRIORITY_MIN,4,2     ## @DRM_SCHED_PRIORITY_MIN
	.comm	_DRM_SCHED_PRIORITY_MAX,4,2     ## @DRM_SCHED_PRIORITY_MAX
	.comm	_drm_sched_job_timedout,4,2     ## @drm_sched_job_timedout
	.comm	_drm_sched_main,4,2             ## @drm_sched_main
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create scheduler for %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_sched_init                 ; -- Begin function drm_sched_init
	.p2align	2
_drm_sched_init:                        ; @drm_sched_init
	.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	x19, x5
	mov	x20, x0
	str	x1, [x0, #80]
	str	w2, [x0]
	stp	x5, x4, [x0, #8]
Lloh0:
	adrp	x8, _DRM_SCHED_PRIORITY_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_SCHED_PRIORITY_MIN@GOTPAGEOFF]
	str	w3, [x0, #24]
Lloh2:
	ldrsw	x21, [x8]
Lloh3:
	adrp	x22, _DRM_SCHED_PRIORITY_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DRM_SCHED_PRIORITY_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_3
; %bb.1:
	lsl	x23, x21, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #72]
	add	x1, x8, x23
	mov	x0, x20
	bl	_drm_sched_rq_init
	add	x21, x21, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, x20, #68
	bl	_init_waitqueue_head
	add	x0, x20, #64
	bl	_init_waitqueue_head
	add	x0, x20, #60
	bl	_INIT_LIST_HEAD
	add	x0, x20, #56
	bl	_spin_lock_init
	add	x0, x20, #52
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #48
Lloh5:
	adrp	x8, _drm_sched_job_timedout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _drm_sched_job_timedout@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #44
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #40
	mov	w1, #0
	bl	_atomic64_set
Lloh8:
	adrp	x8, _drm_sched_main@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drm_sched_main@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x20, #8]
	mov	x1, x20
	bl	_kthread_run
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x20, #32]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_ERROR
	mov	x0, x21
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x20, #28]
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_SCHED_PRIORITY_MIN,4,2     ; @DRM_SCHED_PRIORITY_MIN
	.comm	_DRM_SCHED_PRIORITY_MAX,4,2     ; @DRM_SCHED_PRIORITY_MAX
	.comm	_drm_sched_job_timedout,4,2     ; @drm_sched_job_timedout
	.comm	_drm_sched_main,4,2             ; @drm_sched_main
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create scheduler for %s.\n"

.subsections_via_symbols
