	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_sched_init                 ## -- Begin function v3d_sched_init
	.p2align	4, 0x90
_v3d_sched_init:                        ## @v3d_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_V3D_BIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	_v3d_bin_sched_ops@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_drm_sched_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movq	_V3D_RENDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	8(%r14), %rbx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	_v3d_render_sched_ops@GOTPCREL(%rip), %rsi
	leaq	L_.str.2(%rip), %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_drm_sched_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_v3d_sched_fini
	jmp	LBB0_12
LBB0_4:
	movq	_V3D_TFU@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	8(%r14), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	_v3d_tfu_sched_ops@GOTPCREL(%rip), %rsi
	leaq	L_.str.4(%rip), %r9
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_drm_sched_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_11:
	movl	%r15d, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_v3d_sched_fini
	movl	%r15d, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_v3d_has_csd
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_V3D_CSD@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	8(%r14), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	_v3d_csd_sched_ops@GOTPCREL(%rip), %rsi
	leaq	L_.str.6(%rip), %r9
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_drm_sched_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	movq	_V3D_CACHE_CLEAN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$2, %r15
	addq	8(%r14), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	_v3d_cache_clean_sched_ops@GOTPCREL(%rip), %rsi
	leaq	L_.str.8(%rip), %r9
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_drm_sched_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_BIN,8,3                    ## @V3D_BIN
	.comm	_v3d_bin_sched_ops,4,2          ## @v3d_bin_sched_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"v3d_bin"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create bin scheduler: %d."

	.comm	_V3D_RENDER,8,3                 ## @V3D_RENDER
	.comm	_v3d_render_sched_ops,4,2       ## @v3d_render_sched_ops
L_.str.2:                               ## @.str.2
	.asciz	"v3d_render"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to create render scheduler: %d."

	.comm	_V3D_TFU,8,3                    ## @V3D_TFU
	.comm	_v3d_tfu_sched_ops,4,2          ## @v3d_tfu_sched_ops
L_.str.4:                               ## @.str.4
	.asciz	"v3d_tfu"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to create TFU scheduler: %d."

	.comm	_V3D_CSD,8,3                    ## @V3D_CSD
	.comm	_v3d_csd_sched_ops,4,2          ## @v3d_csd_sched_ops
L_.str.6:                               ## @.str.6
	.asciz	"v3d_csd"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to create CSD scheduler: %d."

	.comm	_V3D_CACHE_CLEAN,8,3            ## @V3D_CACHE_CLEAN
	.comm	_v3d_cache_clean_sched_ops,4,2  ## @v3d_cache_clean_sched_ops
L_.str.8:                               ## @.str.8
	.asciz	"v3d_cache_clean"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to create CACHE_CLEAN scheduler: %d."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3d_sched_init                 ; -- Begin function v3d_sched_init
	.p2align	2
_v3d_sched_init:                        ; @v3d_sched_init
	.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	x8, [x0, #8]
Lloh0:
	adrp	x9, _V3D_BIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V3D_BIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x4, x0
Lloh3:
	adrp	x1, _v3d_bin_sched_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _v3d_bin_sched_ops@GOTPAGEOFF]
Lloh5:
	adrp	x5, l_.str@PAGE
Lloh6:
	add	x5, x5, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drm_sched_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _V3D_RENDER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V3D_RENDER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x4, x0
Lloh12:
	adrp	x1, _v3d_render_sched_ops@GOTPAGE
Lloh13:
	ldr	x1, [x1, _v3d_render_sched_ops@GOTPAGEOFF]
Lloh14:
	adrp	x5, l_.str.2@PAGE
Lloh15:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drm_sched_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _V3D_TFU@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V3D_TFU@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x4, x0
Lloh21:
	adrp	x1, _v3d_tfu_sched_ops@GOTPAGE
Lloh22:
	ldr	x1, [x1, _v3d_tfu_sched_ops@GOTPAGEOFF]
Lloh23:
	adrp	x5, l_.str.4@PAGE
Lloh24:
	add	x5, x5, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drm_sched_init
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
	mov	x0, x19
	bl	_v3d_sched_fini
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_v3d_has_csd
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _V3D_CSD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V3D_CSD@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x4, x0
Lloh30:
	adrp	x1, _v3d_csd_sched_ops@GOTPAGE
Lloh31:
	ldr	x1, [x1, _v3d_csd_sched_ops@GOTPAGEOFF]
Lloh32:
	adrp	x5, l_.str.6@PAGE
Lloh33:
	add	x5, x5, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drm_sched_init
	cbz	w0, LBB0_12
; %bb.10:
	mov	x20, x0
	ldr	w0, [x19]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_6
LBB0_11:
	mov	w20, #0
	b	LBB0_7
LBB0_12:
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _V3D_CACHE_CLEAN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _V3D_CACHE_CLEAN@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x4, x0
Lloh39:
	adrp	x1, _v3d_cache_clean_sched_ops@GOTPAGE
Lloh40:
	ldr	x1, [x1, _v3d_cache_clean_sched_ops@GOTPAGEOFF]
Lloh41:
	adrp	x5, l_.str.8@PAGE
Lloh42:
	add	x5, x5, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_drm_sched_init
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.13:
	ldr	w0, [x19]
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_BIN,8,3                    ; @V3D_BIN
	.comm	_v3d_bin_sched_ops,4,2          ; @v3d_bin_sched_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"v3d_bin"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create bin scheduler: %d."

	.comm	_V3D_RENDER,8,3                 ; @V3D_RENDER
	.comm	_v3d_render_sched_ops,4,2       ; @v3d_render_sched_ops
l_.str.2:                               ; @.str.2
	.asciz	"v3d_render"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to create render scheduler: %d."

	.comm	_V3D_TFU,8,3                    ; @V3D_TFU
	.comm	_v3d_tfu_sched_ops,4,2          ; @v3d_tfu_sched_ops
l_.str.4:                               ; @.str.4
	.asciz	"v3d_tfu"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to create TFU scheduler: %d."

	.comm	_V3D_CSD,8,3                    ; @V3D_CSD
	.comm	_v3d_csd_sched_ops,4,2          ; @v3d_csd_sched_ops
l_.str.6:                               ; @.str.6
	.asciz	"v3d_csd"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to create CSD scheduler: %d."

	.comm	_V3D_CACHE_CLEAN,8,3            ; @V3D_CACHE_CLEAN
	.comm	_v3d_cache_clean_sched_ops,4,2  ; @v3d_cache_clean_sched_ops
l_.str.8:                               ; @.str.8
	.asciz	"v3d_cache_clean"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to create CACHE_CLEAN scheduler: %d."

.subsections_via_symbols
