	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_rlc_setup_cp_table  ## -- Begin function amdgpu_gfx_rlc_setup_cp_table
	.p2align	4, 0x90
_amdgpu_gfx_rlc_setup_cp_table:         ## @amdgpu_gfx_rlc_setup_cp_table
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	48(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	*(%rax)
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	incl	%r13d
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$4, %r13d
	ja	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rax), %rbx
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	cltq
	addq	%rbx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_le32_to_cpu
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %r15
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r15,%r14,4)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_rlc_setup_cp_table  ; -- Begin function amdgpu_gfx_rlc_setup_cp_table
	.p2align	2
_amdgpu_gfx_rlc_setup_cp_table:         ; @amdgpu_gfx_rlc_setup_cp_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x8, [x0, #48]
	ldr	x8, [x8]
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x0
	mov	w23, #0
	mov	w24, #0
	ldr	x8, [x19, #40]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
                                        ; implicit-def: $x27
                                        ; implicit-def: $w21
                                        ; implicit-def: $w22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w22, w24
	add	w23, w23, #1
	cmp	w23, w20
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w23, #4
	b.hi	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w23
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_5
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x22, [x8]
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	add	x27, x22, w0, sxtw
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x22]
	bl	_le32_to_cpu
	mov	x22, x0
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, w22
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x8, w24, sxtw #2
	add	x25, x27, w21, sxtw #2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25], #4
	bl	_le32_to_cpu
	bl	_cpu_to_le32
	str	w0, [x26], #4
	subs	x28, x28, #1
	b.ne	LBB0_13
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
.subsections_via_symbols
