	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function amdgpu_ctx_init
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	32                              ## 0x20
	.quad	32                              ## 0x20
LCPI0_2:
	.quad	64                              ## 0x40
	.quad	64                              ## 0x40
LCPI0_3:
	.quad	96                              ## 0x60
	.quad	96                              ## 0x60
LCPI0_4:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_amdgpu_ctx_init:                       ## @amdgpu_ctx_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_amdgpu_ctx_total_num_entities
	movq	_DRM_SCHED_PRIORITY_MAX@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jbe	LBB0_21
## %bb.1:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_amdgpu_ctx_priority_permit
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_23
## %bb.2:
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	%rbx, 72(%r12)
	movq	_amdgpu_sched_jobs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_129
## %bb.3:
	movl	(%r13), %edx
	movl	%ebx, %edi
	movl	$16, %esi
	callq	_kcalloc
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	movq	16(%r12), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_130
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.5:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	$1, (%rdx)
	movq	%rcx, 8(%rdx)
	cmpl	$1, %ebx
	je	LBB0_11
## %bb.6:
	movl	%ebx, %r8d
	decq	%r8
	movl	$1, %edx
	cmpl	$2, %ebx
	movq	_amdgpu_sched_jobs@GOTPCREL(%rip), %r10
	je	LBB0_9
## %bb.7:
	movq	%r8, %r9
	andq	$-2, %r9
	negq	%r9
	movl	$1, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movl	$1, 16(%rbx,%rsi)
	movl	(%r10), %edi
	imull	%edx, %edi
	shlq	$4, %rdi
	addq	%rcx, %rdi
	movq	%rdi, 24(%rbx,%rsi)
	movq	(%rax), %rdi
	movl	$1, 32(%rdi,%rsi)
	leal	1(%rdx), %ebx
	imull	(%r10), %ebx
	shlq	$4, %rbx
	addq	%rcx, %rbx
	movq	%rbx, 40(%rdi,%rsi)
	addq	$32, %rsi
	leaq	(%r9,%rdx), %rdi
	addq	$2, %rdi
	addq	$2, %rdx
	cmpq	$1, %rdi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movq	(%rax), %rsi
	movq	%rdx, %rdi
	shlq	$4, %rdi
	movl	$1, (%rsi,%rdi)
	movq	_amdgpu_sched_jobs@GOTPCREL(%rip), %rbx
	imull	(%rbx), %edx
	shlq	$4, %rdx
	addq	%rdx, %rcx
	movq	%rcx, 8(%rsi,%rdi)
LBB0_11:
	movq	_AMDGPU_HW_IP_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$2, %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_19
## %bb.12:
	movq	_amdgpu_ctx_num_entities@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movslq	(%rsi), %rsi
	shlq	$4, %rsi
	addq	(%rax), %rsi
	movq	%rsi, 8(%rax)
	cmpl	$2, %ecx
	je	LBB0_19
## %bb.13:
	movl	$2, %eax
	cmpl	$3, %ecx
	je	LBB0_17
## %bb.14:
	leaq	-2(%rcx), %rsi
	andq	$-2, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	movq	(%rdx), %rbx
	movslq	4(%rbx,%rax,4), %rbx
	shlq	$4, %rbx
	addq	8(%rdi,%rax,8), %rbx
	movq	%rbx, 16(%rdi,%rax,8)
	movq	16(%r14), %rdi
	movq	(%rdx), %rbx
	movslq	8(%rbx,%rax,4), %rbx
	shlq	$4, %rbx
	addq	16(%rdi,%rax,8), %rbx
	movq	%rbx, 24(%rdi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %rsi
	jne	LBB0_15
## %bb.16:
	addq	$2, %rax
LBB0_17:
	testb	$1, %cl
	je	LBB0_19
## %bb.18:
	movq	16(%r14), %rcx
	movq	(%rdx), %rdx
	movslq	-4(%rdx,%rax,4), %rdx
	shlq	$4, %rdx
	addq	-8(%rcx,%rax,8), %rdx
	movq	%rdx, (%rcx,%rax,8)
LBB0_19:
	leaq	64(%r14), %rdi
	callq	_kref_init
	leaq	60(%r14), %rdi
	callq	_spin_lock_init
	leaq	56(%r14), %rdi
	callq	_mutex_init
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	84(%rbx), %rdi
	callq	_atomic_read
	movq	%rax, 40(%r14)
	movq	%rax, 48(%r14)
	leaq	80(%rbx), %rdi
	callq	_atomic_read
	movq	%rax, 32(%r14)
	movl	%r15d, (%r14)
	movq	_DRM_SCHED_PRIORITY_UNSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_AMDGPU_HW_IP_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_131
## %bb.20:
	movl	%r15d, %r15d
	leaq	24(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [32,32]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [64,64]
	movdqa	LCPI0_3(%rip), %xmm6            ## xmm6 = [96,96]
	movdqa	LCPI0_4(%rip), %xmm7            ## xmm7 = [8,8]
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_22:
	subl	(%rax), %r14d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_137
## %bb.24:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%r13
	movq	_AMDGPU_HW_IP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	cmpq	%rax, %r13
	jae	LBB0_23
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_89 Depth 2
                                        ##     Child Loop BB0_112 Depth 2
                                        ##     Child Loop BB0_86 Depth 2
                                        ##     Child Loop BB0_105 Depth 2
                                        ##     Child Loop BB0_80 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
                                        ##       Child Loop BB0_43 Depth 3
                                        ##       Child Loop BB0_51 Depth 3
                                        ##       Child Loop BB0_55 Depth 3
                                        ##     Child Loop BB0_74 Depth 2
                                        ##     Child Loop BB0_125 Depth 2
                                        ##     Child Loop BB0_121 Depth 2
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_AMDGPU_MAX_RINGS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	leal	-128(%r13), %eax
	movl	$0, %edx
	cmpl	$8, %eax
	ja	LBB0_119
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	$0, %edx
	testq	%r9, %r9
	je	LBB0_119
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	cmpl	$1, %r9d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_72
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	LBB0_91
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	$0, %edx
	testq	%r9, %r9
	je	LBB0_119
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r15d
	xorl	%r13d, %r13d
	xorl	%r8d, %r8d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=2
	incq	%r13
	cmpq	%r9, %r13
	je	LBB0_113
LBB0_35:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_43 Depth 3
                                        ##       Child Loop BB0_51 Depth 3
                                        ##       Child Loop BB0_55 Depth 3
	btl	%r13d, %r15d
	jb	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r10d
	testq	%r10, %r10
	je	LBB0_34
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	leaq	(,%r13,4), %rcx
	addq	%r13, %rcx
	movq	16(%rax,%rcx,8), %rdx
	cmpl	$4, %r10d
	jb	LBB0_48
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=2
	leaq	-1(%r10), %rax
	movl	%r8d, %ecx
	addl	%eax, %ecx
	jb	LBB0_48
## %bb.40:                              ##   in Loop: Header=BB0_35 Depth=2
	shrq	$32, %rax
	jne	LBB0_48
## %bb.41:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	%r10d, %ebx
	andl	$-4, %ebx
	leaq	-4(%rbx), %rax
	movq	%rax, %r11
	shrq	$2, %r11
	incq	%r11
	movq	%rdx, %xmm0
	testq	%rax, %rax
	je	LBB0_57
## %bb.42:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	%r11, %rdi
	movabsq	$9223372036854775806, %rax      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%rax, %rdi
	movl	%r8d, %eax
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	.p2align	4, 0x90
LBB0_43:                                ##   Parent Loop BB0_27 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqa	%xmm1, %xmm2
	psllq	$4, %xmm2
	pshufd	$68, %xmm0, %xmm3               ## xmm3 = xmm0[0,1,0,1]
	paddq	%xmm2, %xmm3
	movdqa	%xmm3, %xmm2
	paddq	%xmm4, %xmm2
	movl	%eax, %esi
	movdqu	%xmm3, (%r14,%rsi,8)
	movdqu	%xmm2, 16(%r14,%rsi,8)
	leal	4(%rax), %esi
	movdqa	%xmm3, %xmm2
	paddq	%xmm5, %xmm2
	paddq	%xmm6, %xmm3
	movdqu	%xmm2, (%r14,%rsi,8)
	movdqu	%xmm3, 16(%r14,%rsi,8)
	addq	$8, %rcx
	paddq	%xmm7, %xmm1
	addl	$8, %eax
	addq	$-2, %rdi
	jne	LBB0_43
## %bb.44:                              ##   in Loop: Header=BB0_35 Depth=2
	testb	$1, %r11b
	je	LBB0_46
LBB0_45:                                ##   in Loop: Header=BB0_35 Depth=2
	addl	%r8d, %ecx
	psllq	$4, %xmm1
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	%xmm1, %xmm0
	movdqu	%xmm0, (%r14,%rcx,8)
	paddq	%xmm4, %xmm0
	movdqu	%xmm0, 16(%r14,%rcx,8)
LBB0_46:                                ##   in Loop: Header=BB0_35 Depth=2
	addl	%ebx, %r8d
	cmpq	%r10, %rbx
	je	LBB0_34
	jmp	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_35 Depth=2
	xorl	%ebx, %ebx
LBB0_49:                                ##   in Loop: Header=BB0_35 Depth=2
	movq	%rbx, %r11
	notq	%r11
	addq	%r10, %r11
	movq	%r10, %rax
	andq	$3, %rax
	je	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	%rbx, %rdi
	shlq	$4, %rdi
	addq	%rdx, %rdi
	negq	%rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_51:                                ##   Parent Loop BB0_27 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r8d, %esi
	incl	%r8d
	movq	%rdi, (%r14,%rsi,8)
	decq	%rcx
	addq	$16, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_35 Depth=2
	subq	%rcx, %rbx
LBB0_53:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpq	$3, %r11
	jb	LBB0_34
## %bb.54:                              ##   in Loop: Header=BB0_35 Depth=2
	subq	%rbx, %r10
	shlq	$4, %rbx
	addq	%rbx, %rdx
	movl	%r8d, %r11d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_27 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(%r11,%rcx), %rsi
	leal	1(%rsi), %edi
	movl	%esi, %ebx
	movq	%rdx, (%r14,%rbx,8)
	leaq	16(%rdx), %rbx
	leal	2(%rsi), %eax
	movq	%rbx, (%r14,%rdi,8)
	leaq	32(%rdx), %rdi
	addl	$3, %esi
	movq	%rdi, (%r14,%rax,8)
	leaq	48(%rdx), %rax
	movq	%rax, (%r14,%rsi,8)
	addq	$4, %rcx
	addq	$64, %rdx
	cmpq	%rcx, %r10
	jne	LBB0_55
## %bb.56:                              ##   in Loop: Header=BB0_35 Depth=2
	addl	%ecx, %r8d
	jmp	LBB0_34
LBB0_57:                                ##   in Loop: Header=BB0_35 Depth=2
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	testb	$1, %r11b
	jne	LBB0_45
	jmp	LBB0_46
LBB0_58:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r9d
	movl	$0, %edx
	testq	%r9, %r9
	je	LBB0_119
## %bb.59:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r11d
	cmpl	$1, %r9d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_78
## %bb.60:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	LBB0_95
LBB0_61:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	jmp	LBB0_65
LBB0_62:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax), %rax
	jmp	LBB0_65
LBB0_63:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	addq	$8, %rax
	jmp	LBB0_65
LBB0_64:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	72(%rax), %rax
LBB0_65:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, (%r14)
	movl	$1, %r8d
	jmp	LBB0_114
LBB0_66:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax), %r8d
	movl	$0, %edx
	testq	%r8, %r8
	je	LBB0_119
## %bb.67:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rcx
	cmpl	$4, %r8d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_84
## %bb.68:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_104
LBB0_69:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	56(%rax), %r8d
	movl	$0, %edx
	testq	%r8, %r8
	je	LBB0_119
## %bb.70:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	64(%rax), %rcx
	cmpl	$4, %r8d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_87
## %bb.71:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_111
LBB0_72:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%esi, %esi
	movl	$40, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_73:                                ##   in Loop: Header=BB0_74 Depth=2
	addq	$80, %rcx
	incq	%rsi
	cmpq	%r10, %rsi
	je	LBB0_90
LBB0_74:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rax
	btl	%eax, %edx
	jb	LBB0_76
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rsi
	addq	%rcx, %rsi
	addq	$-40, %rsi
	movl	%r8d, %ebx
	incl	%r8d
	movq	%rsi, (%r14,%rbx,8)
LBB0_76:                                ##   in Loop: Header=BB0_74 Depth=2
	leaq	1(%rax), %rsi
	btl	%esi, %edx
	jb	LBB0_73
## %bb.77:                              ##   in Loop: Header=BB0_74 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rbx
	addq	%rcx, %rbx
	movl	%r8d, %edi
	incl	%r8d
	movq	%rbx, (%r14,%rdi,8)
	jmp	LBB0_73
LBB0_78:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%esi, %esi
	movl	$64, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_80
	.p2align	4, 0x90
LBB0_79:                                ##   in Loop: Header=BB0_80 Depth=2
	addq	$80, %rcx
	incq	%rsi
	cmpq	%r10, %rsi
	je	LBB0_94
LBB0_80:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, %rax
	btl	%eax, %r11d
	jb	LBB0_82
## %bb.81:                              ##   in Loop: Header=BB0_80 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rsi
	addq	%rcx, %rsi
	addq	$-40, %rsi
	movl	%r8d, %edi
	incl	%r8d
	movq	%rsi, (%r14,%rdi,8)
LBB0_82:                                ##   in Loop: Header=BB0_80 Depth=2
	leaq	1(%rax), %rsi
	btl	%esi, %r11d
	jb	LBB0_79
## %bb.83:                              ##   in Loop: Header=BB0_80 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdi
	addq	%rcx, %rdi
	movl	%r8d, %edx
	incl	%r8d
	movq	%rdi, (%r14,%rdx,8)
	jmp	LBB0_79
LBB0_84:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rax
	movq	%rax, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movq	%rcx, %xmm0
	testq	%rax, %rax
	je	LBB0_99
## %bb.85:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rax
	movabsq	$9223372036854775806, %rdi      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%rdi, %rax
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	.p2align	4, 0x90
LBB0_86:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm1, %xmm2
	psllq	$4, %xmm2
	pshufd	$68, %xmm0, %xmm3               ## xmm3 = xmm0[0,1,0,1]
	paddq	%xmm2, %xmm3
	movdqa	%xmm3, %xmm2
	paddq	%xmm4, %xmm2
	movdqa	%xmm3, (%r14,%rdi,8)
	movdqa	%xmm2, 16(%r14,%rdi,8)
	movdqa	%xmm3, %xmm2
	paddq	%xmm5, %xmm2
	paddq	%xmm6, %xmm3
	movdqa	%xmm2, 32(%r14,%rdi,8)
	movdqa	%xmm3, 48(%r14,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm7, %xmm1
	addq	$-2, %rax
	jne	LBB0_86
	jmp	LBB0_100
LBB0_87:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rax
	movq	%rax, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movq	%rcx, %xmm0
	testq	%rax, %rax
	je	LBB0_106
## %bb.88:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rax
	movabsq	$9223372036854775806, %rdi      ## imm = 0x7FFFFFFFFFFFFFFE
	andq	%rdi, %rax
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	.p2align	4, 0x90
LBB0_89:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm1, %xmm2
	psllq	$4, %xmm2
	pshufd	$68, %xmm0, %xmm3               ## xmm3 = xmm0[0,1,0,1]
	paddq	%xmm2, %xmm3
	movdqa	%xmm3, %xmm2
	paddq	%xmm4, %xmm2
	movdqa	%xmm3, (%r14,%rdi,8)
	movdqa	%xmm2, 16(%r14,%rdi,8)
	movdqa	%xmm3, %xmm2
	paddq	%xmm5, %xmm2
	paddq	%xmm6, %xmm3
	movdqa	%xmm2, 32(%r14,%rdi,8)
	movdqa	%xmm3, 48(%r14,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm7, %xmm1
	addq	$-2, %rax
	jne	LBB0_89
	jmp	LBB0_107
LBB0_90:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$2, %rax
LBB0_91:                                ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, %r9b
	je	LBB0_113
## %bb.92:                              ##   in Loop: Header=BB0_27 Depth=1
	btl	%eax, %edx
	jb	LBB0_113
## %bb.93:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	(%rax,%rax,4), %rax
	shlq	$3, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	16(%rcx), %rax
	jmp	LBB0_98
LBB0_94:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$2, %rax
LBB0_95:                                ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, %r9b
	je	LBB0_113
## %bb.96:                              ##   in Loop: Header=BB0_27 Depth=1
	btl	%eax, %r11d
	jb	LBB0_113
## %bb.97:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,8), %rax
	addq	$24, %rax
LBB0_98:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %ecx
	incl	%r8d
	movq	%rax, (%r14,%rcx,8)
	jmp	LBB0_113
LBB0_99:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
LBB0_100:                               ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, %bl
	je	LBB0_102
## %bb.101:                             ##   in Loop: Header=BB0_27 Depth=1
	psllq	$4, %xmm1
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	%xmm1, %xmm0
	movdqa	%xmm0, (%r14,%rdi,8)
	paddq	%xmm4, %xmm0
	movdqa	%xmm0, 16(%r14,%rdi,8)
LBB0_102:                               ##   in Loop: Header=BB0_27 Depth=1
	cmpq	%r8, %rdx
	je	LBB0_103
LBB0_104:                               ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	movq	%rdx, %rax
	shlq	$4, %rax
	addq	%rax, %rcx
	.p2align	4, 0x90
LBB0_105:                               ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, (%r14,%rdx,8)
	incq	%rdx
	addq	$16, %rcx
	cmpq	%rdx, %r8
	jne	LBB0_105
	jmp	LBB0_113
LBB0_106:                               ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
LBB0_107:                               ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, %bl
	je	LBB0_109
## %bb.108:                             ##   in Loop: Header=BB0_27 Depth=1
	psllq	$4, %xmm1
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	%xmm1, %xmm0
	movdqa	%xmm0, (%r14,%rdi,8)
	paddq	%xmm4, %xmm0
	movdqa	%xmm0, 16(%r14,%rdi,8)
LBB0_109:                               ##   in Loop: Header=BB0_27 Depth=1
	cmpq	%r8, %rdx
	jne	LBB0_111
LBB0_103:                               ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	jmp	LBB0_113
LBB0_111:                               ##   in Loop: Header=BB0_27 Depth=1
	movq	%rsi, %r12
	movq	%rdx, %rax
	shlq	$4, %rax
	addq	%rax, %rcx
	.p2align	4, 0x90
LBB0_112:                               ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, (%r14,%rdx,8)
	incq	%rdx
	addq	$16, %rcx
	cmpq	%rdx, %r8
	jne	LBB0_112
	.p2align	4, 0x90
LBB0_113:                               ##   in Loop: Header=BB0_27 Depth=1
	movl	$0, %edx
	testl	%r8d, %r8d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, %rsi
	je	LBB0_119
LBB0_114:                               ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %r9d
	cmpl	$1, %r8d
	jne	LBB0_123
## %bb.115:                             ##   in Loop: Header=BB0_27 Depth=1
	xorl	%eax, %eax
	xorl	%edx, %edx
LBB0_116:                               ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, %r9b
	je	LBB0_119
## %bb.117:                             ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r14,%rax,8), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_119
## %bb.118:                             ##   in Loop: Header=BB0_27 Depth=1
	leaq	(,%r15,4), %rcx
	addq	(%rax), %rcx
	movl	%edx, %eax
	incl	%edx
	movq	%rcx, (%rsi,%rax,8)
	.p2align	4, 0x90
LBB0_119:                               ##   in Loop: Header=BB0_27 Depth=1
	movq	_amdgpu_ctx_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax,%r13,4)
	je	LBB0_25
## %bb.120:                             ##   in Loop: Header=BB0_27 Depth=1
	movl	$4, %ebx
	movq	%r13, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_121:                               ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rdi
	addq	%rbx, %rdi
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rsi, %r14
	movl	%edx, %r15d
	callq	_drm_sched_entity_init
	movl	%r15d, %edx
	movq	%r14, %rsi
	movq	_amdgpu_ctx_num_entities@GOTPCREL(%rip), %rcx
	movl	%eax, %r14d
	incq	%r13
	movq	(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jb	LBB0_121
## %bb.122:                             ##   in Loop: Header=BB0_27 Depth=1
	testl	%r14d, %r14d
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %r13
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [32,32]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [64,64]
	movdqa	LCPI0_3(%rip), %xmm6            ## xmm6 = [96,96]
	movdqa	LCPI0_4(%rip), %xmm7            ## xmm7 = [8,8]
	je	LBB0_26
	jmp	LBB0_132
	.p2align	4, 0x90
LBB0_123:                               ##   in Loop: Header=BB0_27 Depth=1
	movl	%r9d, %ebx
	andl	$-2, %ebx
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_125
	.p2align	4, 0x90
LBB0_124:                               ##   in Loop: Header=BB0_125 Depth=2
	addq	$2, %rax
	cmpq	%rax, %rbx
	je	LBB0_116
LBB0_125:                               ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rax,8), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_127
## %bb.126:                             ##   in Loop: Header=BB0_125 Depth=2
	leaq	(,%r15,4), %rdi
	addq	(%rcx), %rdi
	movl	%edx, %ecx
	incl	%edx
	movq	%rdi, (%rsi,%rcx,8)
LBB0_127:                               ##   in Loop: Header=BB0_125 Depth=2
	movq	8(%r14,%rax,8), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_124
## %bb.128:                             ##   in Loop: Header=BB0_125 Depth=2
	leaq	(,%r15,4), %rdi
	addq	(%rcx), %rdi
	movl	%edx, %ecx
	incl	%edx
	movq	%rdi, (%rsi,%rcx,8)
	jmp	LBB0_124
LBB0_129:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_130:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_136
LBB0_131:
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_132:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_135
## %bb.133:
	movl	%eax, %r15d
	shlq	$4, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_134:                               ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_drm_sched_entity_destroy
	addq	$16, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_134
LBB0_135:
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_kfree
LBB0_136:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	$0, 8(%r12)
	jmp	LBB0_23
LBB0_137:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_58, LBB0_58-LJTI0_0
.set L0_0_set_61, LBB0_61-LJTI0_0
.set L0_0_set_62, LBB0_62-LJTI0_0
.set L0_0_set_63, LBB0_63-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_66, LBB0_66-LJTI0_0
.set L0_0_set_69, LBB0_69-LJTI0_0
LJTI0_0:
	.long	L0_0_set_29
	.long	L0_0_set_32
	.long	L0_0_set_58
	.long	L0_0_set_61
	.long	L0_0_set_62
	.long	L0_0_set_63
	.long	L0_0_set_64
	.long	L0_0_set_66
	.long	L0_0_set_69
	.end_data_region
                                        ## -- End function
	.comm	_DRM_SCHED_PRIORITY_MAX,4,2     ## @DRM_SCHED_PRIORITY_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_amdgpu_sched_jobs,4,2          ## @amdgpu_sched_jobs
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AMDGPU_HW_IP_NUM,4,2           ## @AMDGPU_HW_IP_NUM
	.comm	_amdgpu_ctx_num_entities,8,3    ## @amdgpu_ctx_num_entities
	.comm	_DRM_SCHED_PRIORITY_UNSET,4,2   ## @DRM_SCHED_PRIORITY_UNSET
	.comm	_AMDGPU_MAX_RINGS,4,2           ## @AMDGPU_MAX_RINGS
	.no_dead_strip	_amdgpu_ctx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function amdgpu_ctx_init
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_amdgpu_ctx_init:                       ; @amdgpu_ctx_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_amdgpu_ctx_total_num_entities
Lloh3:
	adrp	x8, _DRM_SCHED_PRIORITY_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_SCHED_PRIORITY_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ls	LBB0_14
; %bb.1:
	stur	w0, [x29, #-100]                ; 4-byte Folded Spill
	mov	x0, x22
	mov	x1, x23
	bl	_amdgpu_ctx_priority_permit
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh6:
	adrp	x21, _amdgpu_sched_jobs@GOTPAGE
Lloh7:
	ldr	x21, [x21, _amdgpu_sched_jobs@GOTPAGEOFF]
	stur	x20, [x29, #-96]                ; 8-byte Folded Spill
	str	x20, [x19, #72]
	ldr	w8, [x21]
	ldur	w22, [x29, #-100]               ; 4-byte Folded Reload
	mul	w0, w8, w22
Lloh8:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_84
; %bb.3:
	ldr	w2, [x20]
	mov	x0, x22
	mov	w1, #16
	bl	_kcalloc
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	ldr	x11, [x8]
	cbz	x11, LBB0_85
; %bb.4:
	cbz	w22, LBB0_8
; %bb.5:
	ldr	x9, [x19, #8]
	mov	w10, #1
	str	w10, [x11]
	str	x9, [x11, #8]
	cmp	w22, #1
	b.eq	LBB0_8
; %bb.6:
	mov	x11, #0
	mov	w12, w22
	mov	w13, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x8]
	add	x14, x14, x11
	str	w10, [x14, #16]
	ldr	w15, [x21]
	mul	w15, w15, w13
	add	x15, x9, w15, uxtw #4
	str	x15, [x14, #24]
	add	x13, x13, #1
	add	x11, x11, #16
	cmp	x12, x13
	b.ne	LBB0_7
LBB0_8:
Lloh10:
	adrp	x9, _AMDGPU_HW_IP_NUM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AMDGPU_HW_IP_NUM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x13, _amdgpu_ctx_num_entities@GOTPAGE
Lloh14:
	ldr	x13, [x13, _amdgpu_ctx_num_entities@GOTPAGEOFF]
	cmp	w9, #2
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	b.lo	LBB0_12
; %bb.9:
	ldr	x10, [x8]
	ldr	x11, [x13]
	ldrsw	x11, [x11]
	add	x10, x10, x11, lsl #4
	str	x10, [x8, #8]
	cmp	w9, #2
	b.eq	LBB0_12
; %bb.10:
	mov	x8, #0
	sub	x9, x9, #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #16]
	add	x10, x10, x8, lsl #3
	ldr	x11, [x10, #8]
	ldr	x12, [x13]
	add	x12, x12, x8, lsl #2
	ldrsw	x12, [x12, #4]
	add	x11, x11, x12, lsl #4
	str	x11, [x10, #16]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_11
LBB0_12:
	add	x0, x19, #64
	bl	_kref_init
	add	x0, x19, #60
	bl	_spin_lock_init
	add	x0, x19, #56
	bl	_mutex_init
	add	x0, x20, #84
	bl	_atomic_read
	stp	x0, x0, [x19, #40]
	add	x0, x20, #80
	bl	_atomic_read
	str	x0, [x19, #32]
	str	w23, [x19]
Lloh15:
	adrp	x8, _DRM_SCHED_PRIORITY_UNSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRM_SCHED_PRIORITY_UNSET@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh18:
	adrp	x8, _AMDGPU_HW_IP_NUM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AMDGPU_HW_IP_NUM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbz	w8, LBB0_87
; %bb.13:
	mov	x28, #0
	add	x22, x19, #24
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x29, #-192]                ; 16-byte Folded Spill
	mov	w1, #96
	dup.2d	v6, x1
	mov	w2, #64
	dup.2d	v7, x2
	mov	w3, #32
	mov	w26, w23
	dup.2d	v16, x3
	mov	w4, #8
	dup.2d	v17, x4
Lloh23:
	adrp	x6, _amdgpu_ctx_num_entities@GOTPAGE
Lloh24:
	ldr	x6, [x6, _amdgpu_ctx_num_entities@GOTPAGEOFF]
	stp	q7, q6, [x29, #-144]            ; 32-byte Folded Spill
	stp	q17, q16, [x29, #-176]          ; 32-byte Folded Spill
	b	LBB0_20
LBB0_14:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_88
; %bb.17:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	sp, x27
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w24, #0
	add	x28, x28, #1
Lloh30:
	adrp	x8, _AMDGPU_HW_IP_NUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AMDGPU_HW_IP_NUM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	x28, x8
	b.hs	LBB0_16
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_70 Depth 2
                                        ;     Child Loop BB0_73 Depth 2
                                        ;     Child Loop BB0_60 Depth 2
                                        ;     Child Loop BB0_63 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
                                        ;       Child Loop BB0_38 Depth 3
                                        ;       Child Loop BB0_42 Depth 3
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_67 Depth 2
                                        ;     Child Loop BB0_78 Depth 2
	mov	x27, sp
Lloh33:
	adrp	x13, _AMDGPU_MAX_RINGS@GOTPAGE
Lloh34:
	ldr	x13, [x13, _AMDGPU_MAX_RINGS@GOTPAGEOFF]
	ldr	w8, [x13]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh35:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh36:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x12, x9, x8
	mov	sp, x12
	ldr	w8, [x13]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh37:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh38:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x23, x9, x8
	mov	sp, x23
	sub	w8, w28, #128
	cmp	w8, #8
	b.hi	LBB0_75
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh39:
	adrp	x11, lJTI0_0@PAGE
Lloh40:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_22
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w13, [x20]
	cbz	w13, LBB0_75
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	w9, #0
	mov	x10, #0
	mov	w8, #0
	ldr	w11, [x20, #4]
	add	x13, x13, x13, lsl #2
	lsl	x13, x13, #3
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x10, x10, #40
	add	w9, w9, #1
	cmp	x13, x10
	b.eq	LBB0_64
LBB0_25:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w14, w11, w9
	tbnz	w14, #0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	x14, [x20, #16]
	add	x14, x14, x10
	str	x14, [x12, w8, uxtw #3]
	add	w8, w8, #1
                                        ; kill: def $w8 killed $w8 def $x8
	b	LBB0_24
LBB0_27:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x20]
	cbz	w9, LBB0_75
; %bb.28:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x10, #0
	mov	w13, #0
	ldr	w11, [x20, #4]
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=2
	mov	x8, x13
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=2
	add	x10, x10, #1
	mov	x13, x8
	cmp	x10, x9
	b.eq	LBB0_64
LBB0_31:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_38 Depth 3
                                        ;       Child Loop BB0_42 Depth 3
	lsr	w8, w11, w10
	tbnz	w8, #0, LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	ldr	w14, [x20, #8]
	cbz	w14, LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=2
	ldr	x8, [x20, #16]
	mov	w15, #40
	madd	x8, x10, x15, x8
	ldr	x15, [x8, #16]
	cmp	w14, #8
	b.hs	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=2
	mov	x16, #0
	b	LBB0_40
LBB0_35:                                ;   in Loop: Header=BB0_31 Depth=2
	mov	x16, #0
	sub	x8, x14, #1
	cmn	w13, w8
	b.hs	LBB0_40
; %bb.36:                               ;   in Loop: Header=BB0_31 Depth=2
	lsr	x8, x8, #32
	cbnz	x8, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_31 Depth=2
	and	x16, x14, #0xfffffff8
	add	w8, w13, w16
	mov	x17, x16
	ldur	q0, [x29, #-192]                ; 16-byte Folded Reload
LBB0_38:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_31 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	shl.2d	v1, v0, #4
	dup.2d	v2, x15
	add.2d	v1, v2, v1
	add.2d	v2, v1, v16
	add.2d	v3, v1, v7
	add.2d	v4, v1, v6
	add	x0, x12, w13, uxtw #3
	stp	q1, q2, [x0]
	stp	q3, q4, [x0, #32]
	add.2d	v0, v0, v17
	add	w13, w13, #8
	subs	x17, x17, #8
	b.ne	LBB0_38
; %bb.39:                               ;   in Loop: Header=BB0_31 Depth=2
	cmp	x16, x14
	b.eq	LBB0_30
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_31 Depth=2
	mov	x8, x13
LBB0_41:                                ;   in Loop: Header=BB0_31 Depth=2
	add	x13, x15, x16, lsl #4
	sub	x14, x14, x16
	mov	x15, x8
LBB0_42:                                ;   Parent Loop BB0_20 Depth=1
                                        ;     Parent Loop BB0_31 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w8, w15, #1
	str	x13, [x12, w15, uxtw #3]
	add	x13, x13, #16
	mov	x15, x8
	subs	x14, x14, #1
	b.ne	LBB0_42
	b	LBB0_30
LBB0_43:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x20]
	cbz	w9, LBB0_75
; %bb.44:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x10, #0
	mov	w8, #0
	ldr	w11, [x20, #4]
	mov	w13, #24
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=2
	add	x10, x10, #1
	add	x13, x13, #40
	cmp	x9, x10
	b.eq	LBB0_64
LBB0_46:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w14, w11, w10
	tbnz	w14, #0, LBB0_45
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=2
	ldr	x14, [x20, #16]
	add	x14, x14, x13
	str	x14, [x12, w8, uxtw #3]
	add	w8, w8, #1
                                        ; kill: def $w8 killed $w8 def $x8
	b	LBB0_45
LBB0_48:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #32]
	b	LBB0_52
LBB0_49:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	b	LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #24]
	add	x8, x8, #8
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #72]
LBB0_52:                                ;   in Loop: Header=BB0_20 Depth=1
	str	x8, [x12]
	mov	w8, #1
	b	LBB0_65
LBB0_53:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_75
; %bb.54:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x20, #48]
	cmp	w8, #8
	b.hs	LBB0_59
; %bb.55:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x10, #0
	b	LBB0_62
LBB0_56:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_75
; %bb.57:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x20, #64]
	cmp	w8, #8
	b.hs	LBB0_69
; %bb.58:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x10, #0
	b	LBB0_72
LBB0_59:                                ;   in Loop: Header=BB0_20 Depth=1
	and	x10, x8, #0xfffffff8
	add	x11, x12, #32
	mov	x13, x10
	ldur	q0, [x29, #-192]                ; 16-byte Folded Reload
LBB0_60:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	dup.2d	v1, x1
	dup.2d	v2, x2
	dup.2d	v3, x3
	shl.2d	v4, v0, #4
	dup.2d	v5, x9
	add.2d	v4, v5, v4
	add.2d	v3, v4, v3
	add.2d	v2, v4, v2
	add.2d	v1, v4, v1
	stp	q4, q3, [x11, #-32]
	stp	q2, q1, [x11], #64
	dup.2d	v1, x4
	add.2d	v0, v0, v1
	subs	x13, x13, #8
	b.ne	LBB0_60
; %bb.61:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	x10, x8
	b.eq	LBB0_64
LBB0_62:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x11, x12, x10, lsl #3
	sub	x13, x8, x10
	add	x9, x9, x10, lsl #4
LBB0_63:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x9, [x11], #8
	add	x9, x9, #16
	subs	x13, x13, #1
	b.ne	LBB0_63
LBB0_64:                                ;   in Loop: Header=BB0_20 Depth=1
	cbz	w8, LBB0_75
LBB0_65:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w25, #0
	mov	w8, w8
	b	LBB0_67
LBB0_66:                                ;   in Loop: Header=BB0_67 Depth=2
	add	x12, x12, #8
	subs	x8, x8, #1
	b.eq	LBB0_76
LBB0_67:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x12]
	ldr	w10, [x9, #8]
	cbz	w10, LBB0_66
; %bb.68:                               ;   in Loop: Header=BB0_67 Depth=2
	ldr	x9, [x9]
	add	x9, x9, x26, lsl #2
	str	x9, [x23, w25, uxtw #3]
	add	w25, w25, #1
	b	LBB0_66
LBB0_69:                                ;   in Loop: Header=BB0_20 Depth=1
	and	x10, x8, #0xfffffff8
	add	x11, x12, #32
	mov	x13, x10
	ldur	q0, [x29, #-192]                ; 16-byte Folded Reload
LBB0_70:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	dup.2d	v1, x1
	dup.2d	v2, x2
	dup.2d	v3, x3
	shl.2d	v4, v0, #4
	dup.2d	v5, x9
	add.2d	v4, v5, v4
	add.2d	v3, v4, v3
	add.2d	v2, v4, v2
	add.2d	v1, v4, v1
	stp	q4, q3, [x11, #-32]
	stp	q2, q1, [x11], #64
	dup.2d	v1, x4
	add.2d	v0, v0, v1
	subs	x13, x13, #8
	b.ne	LBB0_70
; %bb.71:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	x10, x8
	b.eq	LBB0_74
LBB0_72:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, x10, lsl #4
	sub	x11, x8, x10
	add	x10, x12, x10, lsl #3
LBB0_73:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x9, [x10], #8
	add	x9, x9, #16
	subs	x11, x11, #1
	b.ne	LBB0_73
LBB0_74:                                ;   in Loop: Header=BB0_20 Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cbnz	w8, LBB0_65
LBB0_75:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	w25, #0
LBB0_76:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x6]
	ldr	w8, [x8, x28, lsl #2]
	cbz	w8, LBB0_18
; %bb.77:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x21, #0
	mov	w20, #4
LBB0_78:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x28, lsl #3]
	add	x0, x8, x20
	mov	x1, x23
	mov	x2, x25
	mov	x3, x22
	bl	_drm_sched_entity_init
Lloh41:
	adrp	x6, _amdgpu_ctx_num_entities@GOTPAGE
Lloh42:
	ldr	x6, [x6, _amdgpu_ctx_num_entities@GOTPAGEOFF]
	add	x21, x21, #1
	ldr	x8, [x6]
	ldr	w8, [x8, x28, lsl #2]
	add	x20, x20, #16
	cmp	x21, x8
	b.lo	LBB0_78
; %bb.79:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x0
	mov	sp, x27
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	mov	w1, #96
	ldp	q7, q6, [x29, #-144]            ; 32-byte Folded Reload
	mov	w2, #64
	mov	w3, #32
	ldp	q17, q16, [x29, #-176]          ; 32-byte Folded Reload
	mov	w4, #8
	cbz	w0, LBB0_19
; %bb.80:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_83
; %bb.81:
	mov	x20, #0
	mov	w8, w8
	lsl	x21, x8, #4
LBB0_82:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x8, x8, x20
	add	x0, x8, #4
	bl	_drm_sched_entity_destroy
	add	x20, x20, #16
	cmp	x21, x20
	b.ne	LBB0_82
LBB0_83:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_kfree
	b	LBB0_86
LBB0_84:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_85:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_86:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	b	LBB0_16
LBB0_87:
	mov	w24, #0
	b	LBB0_16
LBB0_88:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_27-LBB0_22)>>2
	.byte	(LBB0_43-LBB0_22)>>2
	.byte	(LBB0_48-LBB0_22)>>2
	.byte	(LBB0_49-LBB0_22)>>2
	.byte	(LBB0_50-LBB0_22)>>2
	.byte	(LBB0_51-LBB0_22)>>2
	.byte	(LBB0_53-LBB0_22)>>2
	.byte	(LBB0_56-LBB0_22)>>2
                                        ; -- End function
	.comm	_DRM_SCHED_PRIORITY_MAX,4,2     ; @DRM_SCHED_PRIORITY_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_amdgpu_sched_jobs,4,2          ; @amdgpu_sched_jobs
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AMDGPU_HW_IP_NUM,4,2           ; @AMDGPU_HW_IP_NUM
	.comm	_amdgpu_ctx_num_entities,8,3    ; @amdgpu_ctx_num_entities
	.comm	_DRM_SCHED_PRIORITY_UNSET,4,2   ; @DRM_SCHED_PRIORITY_UNSET
	.comm	_AMDGPU_MAX_RINGS,4,2           ; @AMDGPU_MAX_RINGS
	.no_dead_strip	_amdgpu_ctx_init
.subsections_via_symbols
