	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_rlc_init                  ## -- Begin function sumo_rlc_init
	.p2align	4, 0x90
_sumo_rlc_init:                         ## @sumo_rlc_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	16(%rdi), %ecx
	movq	_CHIP_BONAIRE@GOTPCREL(%rip), %rdx
	leal	240(%rcx), %r15d
	cmpq	(%rdx), %rax
	cmovll	%ecx, %r15d
	movq	88(%rdi), %rdi
	testq	%r14, %r14
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r13
	leaq	80(%r12), %rbx
	movq	80(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	80(%r12), %rdi
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r12), %rdx
	callq	_radeon_bo_pin
	movq	80(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	callq	_radeon_bo_unreserve
	movl	96(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_67
LBB0_2:
	leal	(,%r15,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_radeon_bo_create
	testl	%eax, %eax
	je	LBB0_3
## %bb.75:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_74
LBB0_3:
	movq	%rbx, %rcx
	movq	(%rbx), %rdi
	jmp	LBB0_4
LBB0_8:
	leaq	24(%r12), %rsi
	callq	_radeon_bo_kmap
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_67
LBB0_10:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	24(%r12), %r13
	movq	_CHIP_TAHITI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.14:
	testl	%r15d, %r15d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.16:
	movl	%r15d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	callq	_cpu_to_le32
	movl	%r13d, %ecx
	andl	$-2, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,2)
	addq	$2, %rbx
	addq	$6, %r13
	cmpl	%ebx, %r15d
	jle	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	sarl	$2, %edi
	leaq	1(%rbx), %rax
	cmpq	%r12, %rax
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	4(%r14,%rbx,4), %eax
	andl	$-4, %eax
	shll	$14, %eax
	orl	%eax, %edi
	jmp	LBB0_19
LBB0_11:
	cmpl	$0, 16(%r12)
	jle	LBB0_21
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
	jmp	LBB0_21
LBB0_15:
	xorl	%ebx, %ebx
LBB0_20:
	leal	(%rbx,%rbx,2), %ebx
	movq	_RLC_SAVE_RESTORE_LIST_END_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	andl	$-2, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,2)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_radeon_bo_kunmap
	movq	(%rbx), %rdi
	callq	_radeon_bo_unreserve
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	_CHIP_BONAIRE@GOTPCREL(%rip), %rdx
LBB0_22:
	testq	%rdi, %rdi
	je	LBB0_61
## %bb.23:
	movq	(%r12), %rax
	cmpq	(%rdx), %rax
	jge	LBB0_24
## %bb.26:
	movq	_CHIP_TAHITI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_29
## %bb.27:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.30:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	8(%rdi,%rdx,8), %rsi
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_35
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
	cmpq	$0, (%rsi)
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	addq	$16, %rsi
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	-8(%rsi), %eax
	incl	%ecx
	cmpq	$0, (%rsi)
	leaq	16(%rsi), %rsi
	jne	LBB0_33
	jmp	LBB0_34
LBB0_24:
	movq	%rdi, %r14
	movq	%r12, %rdi
	callq	_cik_get_csb_size
	movl	%eax, 32(%r12)
	jmp	LBB0_25
LBB0_29:
	movq	%rdi, %r14
	movq	%r12, %rdi
	callq	_si_get_csb_size
	movl	%eax, 32(%r12)
	addl	$64, %eax
LBB0_25:
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
LBB0_28:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_35:
	movq	%rdi, %r14
	leal	(%rcx,%rcx,2), %edx
	leal	(%rcx,%rcx,2), %ecx
	addl	$2, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addl	%edx, %eax
	addl	$2, %eax
	movl	%eax, 32(%r12)
LBB0_36:
	leaq	72(%r12), %r15
	movq	72(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
LBB0_39:
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.40:
	movq	72(%r12), %rdi
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	36(%r12), %r13
	movq	%r13, %rdx
	callq	_radeon_bo_pin
	movq	72(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_42
## %bb.41:
	movl	%eax, %ebx
	callq	_radeon_bo_unreserve
	movl	96(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_67
LBB0_37:
	shll	$2, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r15, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_radeon_bo_create
	testl	%eax, %eax
	je	LBB0_38
## %bb.76:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_67
LBB0_38:
	movq	(%r15), %rdi
	jmp	LBB0_39
LBB0_42:
	leaq	40(%r12), %rsi
	callq	_radeon_bo_kmap
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_67
LBB0_44:
	movq	(%r12), %rax
	movq	40(%r12), %rsi
	movq	_CHIP_BONAIRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_45
## %bb.46:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_CHIP_TAHITI@GOTPCREL(%rip), %rcx
	movl	(%r13), %ebx
	cmpq	(%rcx), %rax
	jge	LBB0_47
## %bb.48:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rbx,%rax,4), %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13)
	movq	(%r14), %rax
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_59
## %bb.49:
	xorl	%ecx, %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_50
LBB0_57:                                ##   in Loop: Header=BB0_50 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
LBB0_58:                                ##   in Loop: Header=BB0_50 Depth=1
	leaq	(%rax,%rcx,8), %r14
	addq	$8, %r14
	movq	8(%rax,%rcx,8), %rax
	incq	%rcx
	testq	%rax, %rax
	je	LBB0_59
LBB0_50:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_53 Depth 2
                                        ##       Child Loop BB0_55 Depth 3
	cmpq	$0, (%rax)
	je	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movslq	%ebx, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	$3, %rbx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	addl	-84(%rbp), %edi                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r15                ## 8-byte Reload
	incq	%r15
	movq	(%r14), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	cmpq	$0, (%rax,%rcx)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_57
LBB0_53:                                ##   Parent Loop BB0_50 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_55 Depth 3
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	shlq	$4, %r15
	movl	8(%rax,%r15), %r12d
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_cpu_to_le32
	movl	%eax, (%r13,%rbx,4)
	movq	(%r14), %rax
	movl	12(%rax,%r15), %edi
	shll	$2, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13,%rbx,4)
	leal	(,%r12,4), %edi
	movl	%edi, -84(%rbp)                 ## 4-byte Spill
	orl	$134217728, %edi                ## imm = 0x8000000
	callq	_cpu_to_le32
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	%eax, 8(%r13,%rbx,4)
	testl	%r12d, %r12d
	jle	LBB0_56
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=2
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_55:                                ##   Parent Loop BB0_50 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rax
	movq	(%rax,%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_55
	jmp	LBB0_56
LBB0_51:                                ##   in Loop: Header=BB0_50 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_58
LBB0_45:
	movq	%r12, %rdi
	callq	_cik_get_csb_buffer
	jmp	LBB0_60
LBB0_47:
	addl	$256, %ebx                      ## imm = 0x100
	movl	%ebx, %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movl	%ebx, %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
	movl	32(%r12), %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r14)
	addq	$256, %r14                      ## imm = 0x100
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_si_get_csb_buffer
	jmp	LBB0_60
LBB0_59:
	movq	_RLC_CLEAR_STATE_END_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movslq	%ebx, %rcx
	movl	%eax, (%r13,%rcx,4)
LBB0_60:
	movq	(%r15), %rdi
	callq	_radeon_bo_kunmap
	movq	(%r15), %rdi
	callq	_radeon_bo_unreserve
LBB0_61:
	movl	48(%r12), %esi
	testl	%esi, %esi
	je	LBB0_73
## %bb.62:
	movq	56(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_63
LBB0_65:
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_68
## %bb.66:
	movl	96(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_67
LBB0_63:
	leaq	56(%r12), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_radeon_bo_create
	testl	%eax, %eax
	je	LBB0_64
## %bb.77:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_67
LBB0_68:
	movq	56(%r12), %rdi
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	52(%r12), %rdx
	callq	_radeon_bo_pin
	movq	56(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_70
## %bb.69:
	movl	%eax, %ebx
	callq	_radeon_bo_unreserve
	movl	96(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_67
LBB0_64:
	movq	(%r14), %rdi
	jmp	LBB0_65
LBB0_70:
	leaq	64(%r12), %rsi
	callq	_radeon_bo_kmap
	testl	%eax, %eax
	je	LBB0_72
## %bb.71:
	movl	%eax, %ebx
	movl	96(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_67:
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_5:
	movq	%r12, %rdi
	callq	_sumo_rlc_fini
LBB0_74:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_72:
	movq	%r12, %rdi
	callq	_cik_init_cp_pg_table
	movq	56(%r12), %rdi
	callq	_radeon_bo_kunmap
	movq	56(%r12), %rdi
	callq	_radeon_bo_unreserve
LBB0_73:
	xorl	%ebx, %ebx
	jmp	LBB0_74
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_BONAIRE,8,3               ## @CHIP_BONAIRE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ## @RADEON_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) create RLC sr bo failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"(%d) pin RLC sr bo failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"(%d) map RLC sr bo failed\n"

	.comm	_CHIP_TAHITI,8,3                ## @CHIP_TAHITI
	.comm	_RLC_SAVE_RESTORE_LIST_END_MARKER,4,2 ## @RLC_SAVE_RESTORE_LIST_END_MARKER
L_.str.3:                               ## @.str.3
	.asciz	"(%d) create RLC c bo failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"(%d) pin RLC c bo failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"(%d) map RLC c bo failed\n"

	.comm	_RLC_CLEAR_STATE_END_MARKER,4,2 ## @RLC_CLEAR_STATE_END_MARKER
L_.str.6:                               ## @.str.6
	.asciz	"(%d) create RLC cp table bo failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"(%d) reserve RLC cp table bo failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"(%d) pin RLC cp_table bo failed\n"

L_.str.9:                               ## @.str.9
	.asciz	"(%d) map RLC cp table bo failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_rlc_init                  ; -- Begin function sumo_rlc_init
	.p2align	2
_sumo_rlc_init:                         ; @sumo_rlc_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x26, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x23, _CHIP_BONAIRE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHIP_BONAIRE@GOTPAGEOFF]
	ldp	x9, x24, [x0]
	ldr	x10, [x23]
	add	w11, w8, #240
	cmp	x9, x10
	csel	w25, w8, w11, lt
	ldr	x28, [x0, #88]
	cbz	x24, LBB0_22
; %bb.1:
	mov	x21, x26
	ldr	x0, [x21, #80]!
	cbz	x0, LBB0_5
LBB0_2:
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_75
; %bb.3:
	ldr	x0, [x26, #80]
Lloh2:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, x26, #20
	bl	_radeon_bo_pin
	mov	x20, x0
	ldr	x0, [x26, #80]
	cbz	w20, LBB0_8
; %bb.4:
	bl	_radeon_bo_unreserve
	ldr	w0, [x26, #96]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_74
LBB0_5:
	lsl	w1, w25, #2
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	str	x21, [sp]
	mov	x0, x26
	mov	w3, #1
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_radeon_bo_create
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	w0, [x26, #96]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_76
LBB0_7:
	ldr	x0, [x21]
	b	LBB0_2
LBB0_8:
	add	x1, x26, #24
	bl	_radeon_bo_kmap
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	ldr	w0, [x26, #96]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_74
LBB0_10:
	ldr	x20, [x26, #24]
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _CHIP_TAHITI@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CHIP_TAHITI@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_16
; %bb.11:
	mov	x22, x26
	cmp	w25, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x27, #0
	mov	x26, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_cpu_to_le32
	ubfx	x8, x27, #1, #31
	str	w0, [x20, x8, lsl #2]
	add	x26, x26, #2
	add	x27, x27, #6
	cmp	w25, w26
	b.le	LBB0_20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, x26, lsl #2]
	asr	w0, w8, #2
	add	x8, x26, #1
	cmp	x8, x25
	b.ge	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x24, x26, lsl #2
	ldr	w8, [x8, #4]
	lsl	w8, w8, #14
	and	w8, w8, #0xffff0000
	orr	w0, w8, w0
	b	LBB0_13
LBB0_16:
	ldr	w8, [x26, #16]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x19, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x19, #2
	ldr	w0, [x24, x22]
	bl	_cpu_to_le32
	str	w0, [x20, x22]
	add	x19, x19, #1
	ldrsw	x8, [x26, #16]
	cmp	x19, x8
	b.lt	LBB0_18
	b	LBB0_21
LBB0_19:
	mov	x26, #0
LBB0_20:
	add	w8, w26, w26, lsl #1
	lsr	w19, w8, #1
Lloh20:
	adrp	x8, _RLC_SAVE_RESTORE_LIST_END_MARKER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RLC_SAVE_RESTORE_LIST_END_MARKER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x20, w19, uxtw #2]
	mov	x26, x22
LBB0_21:
	ldr	x0, [x21]
	bl	_radeon_bo_kunmap
	ldr	x0, [x21]
	bl	_radeon_bo_unreserve
LBB0_22:
	cbz	x28, LBB0_62
; %bb.23:
	ldr	x8, [x26]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_31
; %bb.24:
Lloh23:
	adrp	x9, _CHIP_TAHITI@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CHIP_TAHITI@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_32
; %bb.25:
	ldr	x11, [x28]
	cbz	x11, LBB0_33
; %bb.26:
	mov	x10, #0
	mov	w9, #0
	mov	w8, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x10, x10, #1
	ldr	x11, [x28, x10, lsl #3]
	cbz	x11, LBB0_34
LBB0_28:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x12, [x11]
	cbz	x12, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	add	x11, x11, #16
LBB0_30:                                ;   Parent Loop BB0_28 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w9, w9, #1
	ldur	w12, [x11, #-8]
	add	w8, w12, w8
	ldr	x12, [x11], #16
	cbnz	x12, LBB0_30
	b	LBB0_27
LBB0_31:
	mov	x0, x26
	bl	_cik_get_csb_size
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	b	LBB0_35
LBB0_32:
	mov	x0, x26
	bl	_si_get_csb_size
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	str	w0, [x26, #32]
	add	w0, w0, #64
	b	LBB0_36
LBB0_33:
	mov	w8, #0
	mov	w9, #0
LBB0_34:
	add	w9, w9, w9, lsl #1
	add	w9, w9, #2
	str	w9, [sp, #60]                   ; 4-byte Folded Spill
	add	w0, w9, w8
LBB0_35:
	str	w0, [x26, #32]
LBB0_36:
	mov	x19, x26
	ldr	x8, [x19, #72]!
	cbz	x8, LBB0_40
LBB0_37:
	mov	x0, x8
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_75
; %bb.38:
	ldr	x0, [x26, #72]
Lloh26:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x21, x26, #36
	mov	x2, x21
	bl	_radeon_bo_pin
	mov	x20, x0
	ldr	x0, [x26, #72]
	cbz	w20, LBB0_43
; %bb.39:
	bl	_radeon_bo_unreserve
	ldr	w0, [x26, #96]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_74
LBB0_40:
	lsl	w1, w0, #2
Lloh31:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
	str	x19, [sp]
	mov	x0, x26
	mov	w3, #1
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_radeon_bo_create
	cbz	w0, LBB0_42
; %bb.41:
	mov	x20, x0
	ldr	w0, [x26, #96]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_74
LBB0_42:
	ldr	x8, [x19]
	b	LBB0_37
LBB0_43:
	add	x1, x26, #40
	bl	_radeon_bo_kmap
	cbz	w0, LBB0_45
; %bb.44:
	mov	x20, x0
	ldr	w0, [x26, #96]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_74
LBB0_45:
	ldr	x20, [x26, #40]
	ldr	x8, [x26]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_57
; %bb.46:
Lloh41:
	adrp	x9, _CHIP_TAHITI@GOTPAGE
Lloh42:
	ldr	x9, [x9, _CHIP_TAHITI@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x9]
	ldr	w9, [x21]
	cmp	x8, x10
	b.ge	LBB0_58
; %bb.47:
	stp	x19, x26, [sp, #16]             ; 16-byte Folded Spill
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w21, w9, w8, lsl #2
	mov	x0, x21
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	w0, [x20]
	ldr	x8, [x28]
	cbz	x8, LBB0_59
; %bb.48:
	mov	x10, #0
	mov	w27, #1
	mov	x26, x28
	str	x28, [sp, #32]                  ; 8-byte Folded Spill
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_51 Depth=1
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	ldp	x28, x10, [sp, #32]             ; 16-byte Folded Reload
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x10, x10, #1
	add	x26, x28, x10, lsl #3
	ldr	x8, [x26]
	cbz	x8, LBB0_60
LBB0_51:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
                                        ;       Child Loop BB0_56 Depth 3
	ldr	x9, [x8]
	cbz	x9, LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	mov	x28, #0
	sxtw	x27, w27
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=2
	add	x27, x27, #3
	add	w21, w22, w21
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w8, w23, w8
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	add	x28, x28, #1
	ldr	x8, [x26]
	lsl	x9, x28, #4
	ldr	x9, [x8, x9]
	ldr	x20, [sp, #48]                  ; 8-byte Folded Reload
	cbz	x9, LBB0_49
LBB0_54:                                ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_56 Depth 3
	lsl	x24, x28, #4
	add	x8, x8, x24
	ldr	w23, [x8, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	add	x19, x20, x27, lsl #2
	str	w0, [x19]
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	w8, [x8, #12]
	lsl	w0, w8, #2
	bl	_cpu_to_le32
	str	w0, [x19, #4]
	lsl	w22, w23, #2
	orr	w0, w22, #0x8000000
	bl	_cpu_to_le32
	str	w0, [x19, #8]
	cmp	w23, #1
	b.lt	LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=2
	mov	x20, #0
	lsl	x19, x23, #2
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x25, x9, w8, sxtw #2
LBB0_56:                                ;   Parent Loop BB0_51 Depth=1
                                        ;     Parent Loop BB0_54 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x26]
	ldr	x8, [x8, x24]
	ldr	w0, [x8, x20]
	bl	_cpu_to_le32
	str	w0, [x25, x20]
	add	x20, x20, #4
	cmp	x19, x20
	b.ne	LBB0_56
	b	LBB0_53
LBB0_57:
	mov	x0, x26
	mov	x1, x20
	bl	_cik_get_csb_buffer
	b	LBB0_61
LBB0_58:
	add	w21, w9, #256
	mov	x0, x21
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	w0, [x20]
	mov	x0, x21
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	w0, [x20, #4]
	ldr	w0, [x26, #32]
	bl	_cpu_to_le32
	str	w0, [x20, #8]
	add	x1, x20, #256
	mov	x0, x26
	bl	_si_get_csb_buffer
	b	LBB0_61
LBB0_59:
	mov	w27, #1
LBB0_60:
Lloh44:
	adrp	x8, _RLC_CLEAR_STATE_END_MARKER@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RLC_CLEAR_STATE_END_MARKER@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x20, w27, sxtw #2]
	ldp	x19, x26, [sp, #16]             ; 16-byte Folded Reload
LBB0_61:
	ldr	x0, [x19]
	bl	_radeon_bo_kunmap
	ldr	x0, [x19]
	bl	_radeon_bo_unreserve
LBB0_62:
	ldr	w1, [x26, #48]
	cbz	w1, LBB0_66
; %bb.63:
	mov	x21, x26
	ldr	x0, [x21, #56]!
	cbz	x0, LBB0_67
LBB0_64:
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_69
; %bb.65:
	ldr	w0, [x26, #96]
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_74
LBB0_66:
	mov	w20, #0
	b	LBB0_76
LBB0_67:
Lloh49:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh54:
	ldr	w4, [x8]
	str	x21, [sp]
	mov	x0, x26
	mov	w3, #1
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_radeon_bo_create
	cbz	w0, LBB0_71
; %bb.68:
	mov	x20, x0
	ldr	w0, [x26, #96]
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_74
LBB0_69:
	ldr	x0, [x26, #56]
Lloh57:
	adrp	x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x2, x26, #52
	bl	_radeon_bo_pin
	mov	x20, x0
	ldr	x0, [x26, #56]
	cbz	w20, LBB0_72
; %bb.70:
	bl	_radeon_bo_unreserve
	ldr	w0, [x26, #96]
Lloh60:
	adrp	x1, l_.str.8@PAGE
Lloh61:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_74
LBB0_71:
	ldr	x0, [x21]
	b	LBB0_64
LBB0_72:
	add	x1, x26, #64
	bl	_radeon_bo_kmap
	mov	x20, x0
	cbz	w0, LBB0_77
; %bb.73:
	ldr	w0, [x26, #96]
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_74:
	mov	x2, x20
	bl	_dev_warn
LBB0_75:
	mov	x0, x26
	bl	_sumo_rlc_fini
LBB0_76:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_77:
	mov	x0, x26
	bl	_cik_init_cp_pg_table
	ldr	x0, [x26, #56]
	bl	_radeon_bo_kunmap
	ldr	x0, [x26, #56]
	bl	_radeon_bo_unreserve
	b	LBB0_76
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_BONAIRE,8,3               ; @CHIP_BONAIRE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ; @RADEON_GEM_DOMAIN_VRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) create RLC sr bo failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"(%d) pin RLC sr bo failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"(%d) map RLC sr bo failed\n"

	.comm	_CHIP_TAHITI,8,3                ; @CHIP_TAHITI
	.comm	_RLC_SAVE_RESTORE_LIST_END_MARKER,4,2 ; @RLC_SAVE_RESTORE_LIST_END_MARKER
l_.str.3:                               ; @.str.3
	.asciz	"(%d) create RLC c bo failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"(%d) pin RLC c bo failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"(%d) map RLC c bo failed\n"

	.comm	_RLC_CLEAR_STATE_END_MARKER,4,2 ; @RLC_CLEAR_STATE_END_MARKER
l_.str.6:                               ; @.str.6
	.asciz	"(%d) create RLC cp table bo failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"(%d) reserve RLC cp table bo failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"(%d) pin RLC cp_table bo failed\n"

l_.str.9:                               ; @.str.9
	.asciz	"(%d) map RLC cp table bo failed\n"

.subsections_via_symbols
