	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_rlc_resume
_si_rlc_resume:                         ## @si_rlc_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_si_rlc_stop
	movq	%rbx, %rdi
	callq	_si_rlc_reset
	movq	%rbx, %rdi
	callq	_si_init_pg
	movq	%rbx, %rdi
	callq	_si_init_cg
	movq	_RLC_RL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RLC_RL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RLC_LB_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RLC_LB_CNTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4294967295, %esi               ## imm = 0xFFFFFFFF
	callq	_WREG32
	movq	_RLC_LB_CNTR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RLC_LB_INIT_CU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4294967295, %esi               ## imm = 0xFFFFFFFF
	callq	_WREG32
	movq	_RLC_MC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RLC_UCODE_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	cmpq	$0, 8(%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	leal	3(%r12), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movl	(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_radeon_ucode_print_rlc_hdr
	cmpl	$4, %r12d
	jl	LBB0_9
## %bb.4:
	sarl	$2, %r14d
	movslq	%r14d, %r13
	addl	%ebx, %r15d
	xorl	%ebx, %ebx
	movq	_RLC_UCODE_DATA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RLC_UCODE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_WREG32
	movl	(%r14), %r12d
	movl	%r15d, %edi
	callq	_le32_to_cpup
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_WREG32
	incq	%rbx
	addl	$4, %r15d
	cmpq	%rbx, %r13
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_SI_RLC_UCODE_SIZE@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	movq	_RLC_UCODE_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RLC_UCODE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_WREG32
	movl	(%r13), %r12d
	movl	%r15d, %edi
	callq	_be32_to_cpup
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_WREG32
	incq	%rbx
	addl	$4, %r15d
	cmpq	(%r14), %rbx
	jl	LBB0_8
LBB0_9:
	movq	_RLC_UCODE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_WREG32
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_si_lbpw_supported
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_si_enable_lbpw
	movq	%rbx, %rdi
	callq	_si_rlc_start
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RLC_RL_BASE,4,2                ## @RLC_RL_BASE
	.comm	_RLC_RL_SIZE,4,2                ## @RLC_RL_SIZE
	.comm	_RLC_LB_CNTL,4,2                ## @RLC_LB_CNTL
	.comm	_RLC_LB_CNTR_MAX,4,2            ## @RLC_LB_CNTR_MAX
	.comm	_RLC_LB_CNTR_INIT,4,2           ## @RLC_LB_CNTR_INIT
	.comm	_RLC_LB_INIT_CU_MASK,4,2        ## @RLC_LB_INIT_CU_MASK
	.comm	_RLC_MC_CNTL,4,2                ## @RLC_MC_CNTL
	.comm	_RLC_UCODE_CNTL,4,2             ## @RLC_UCODE_CNTL
	.comm	_RLC_UCODE_ADDR,4,2             ## @RLC_UCODE_ADDR
	.comm	_RLC_UCODE_DATA,4,2             ## @RLC_UCODE_DATA
	.comm	_SI_RLC_UCODE_SIZE,8,3          ## @SI_RLC_UCODE_SIZE
	.no_dead_strip	_si_rlc_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_rlc_resume
_si_rlc_resume:                         ; @si_rlc_resume
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_si_rlc_stop
	mov	x0, x19
	bl	_si_rlc_reset
	mov	x0, x19
	bl	_si_init_pg
	mov	x0, x19
	bl	_si_init_cg
Lloh0:
	adrp	x8, _RLC_RL_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLC_RL_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
Lloh3:
	adrp	x8, _RLC_RL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RLC_RL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
Lloh6:
	adrp	x8, _RLC_LB_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RLC_LB_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
Lloh9:
	adrp	x8, _RLC_LB_CNTR_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RLC_LB_CNTR_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_WREG32
Lloh12:
	adrp	x8, _RLC_LB_CNTR_INIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RLC_LB_CNTR_INIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
Lloh15:
	adrp	x8, _RLC_LB_INIT_CU_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RLC_LB_INIT_CU_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_WREG32
Lloh18:
	adrp	x8, _RLC_MC_CNTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RLC_MC_CNTL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
Lloh21:
	adrp	x8, _RLC_UCODE_CNTL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RLC_UCODE_CNTL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_WREG32
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x23, _RLC_UCODE_ADDR@GOTPAGE
Lloh25:
	ldr	x23, [x23, _RLC_UCODE_ADDR@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	x20, [x8]
	ldr	w0, [x20, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	add	w8, w0, #3
	cmp	w0, #0
	csel	w24, w8, w0, lt
	ldr	x8, [x19]
	ldr	x25, [x8]
	ldr	w0, [x20]
	bl	_le32_to_cpu
	mov	x21, x0
	mov	x0, x20
	bl	_radeon_ucode_print_rlc_hdr
	cmp	w22, #4
	b.lt	LBB0_9
; %bb.3:
	mov	x20, #0
	sbfx	x24, x24, #2, #30
	add	w21, w25, w21
Lloh26:
	adrp	x25, _RLC_UCODE_DATA@GOTPAGE
Lloh27:
	ldr	x25, [x25, _RLC_UCODE_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_WREG32
	ldr	w22, [x25]
	mov	x0, x21
	bl	_le32_to_cpup
	mov	x1, x0
	mov	x0, x22
	bl	_WREG32
	add	x20, x20, #1
	add	w21, w21, #4
	cmp	x24, x20
	b.ne	LBB0_4
	b	LBB0_9
LBB0_5:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
Lloh31:
	adrp	x24, _SI_RLC_UCODE_SIZE@GOTPAGE
Lloh32:
	ldr	x24, [x24, _SI_RLC_UCODE_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
	ldr	x8, [x19]
	ldr	w21, [x8]
Lloh33:
	adrp	x25, _RLC_UCODE_DATA@GOTPAGE
Lloh34:
	ldr	x25, [x25, _RLC_UCODE_DATA@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_WREG32
	ldr	w22, [x25]
	mov	x0, x21
	bl	_be32_to_cpup
	mov	x1, x0
	mov	x0, x22
	bl	_WREG32
	add	x20, x20, #1
	ldr	x8, [x24]
	add	w21, w21, #4
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_9:
	ldr	w0, [x23]
	mov	x1, #0
	bl	_WREG32
	mov	x0, x19
	bl	_si_lbpw_supported
	mov	x1, x0
	mov	x0, x19
	bl	_si_enable_lbpw
	mov	x0, x19
	bl	_si_rlc_start
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RLC_RL_BASE,4,2                ; @RLC_RL_BASE
	.comm	_RLC_RL_SIZE,4,2                ; @RLC_RL_SIZE
	.comm	_RLC_LB_CNTL,4,2                ; @RLC_LB_CNTL
	.comm	_RLC_LB_CNTR_MAX,4,2            ; @RLC_LB_CNTR_MAX
	.comm	_RLC_LB_CNTR_INIT,4,2           ; @RLC_LB_CNTR_INIT
	.comm	_RLC_LB_INIT_CU_MASK,4,2        ; @RLC_LB_INIT_CU_MASK
	.comm	_RLC_MC_CNTL,4,2                ; @RLC_MC_CNTL
	.comm	_RLC_UCODE_CNTL,4,2             ; @RLC_UCODE_CNTL
	.comm	_RLC_UCODE_ADDR,4,2             ; @RLC_UCODE_ADDR
	.comm	_RLC_UCODE_DATA,4,2             ; @RLC_UCODE_DATA
	.comm	_SI_RLC_UCODE_SIZE,8,3          ; @SI_RLC_UCODE_SIZE
	.no_dead_strip	_si_rlc_resume
.subsections_via_symbols
