	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_4_init_lbpw
_gfx_v9_4_init_lbpw:                    ## @gfx_v9_4_init_lbpw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmRLC_LB_THR_CONFIG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$127, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_LB_THR_CONFIG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$53709048, %ecx                 ## imm = 0x33388F8
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_LB_THR_CONFIG_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$119, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_LB_THR_CONFIG_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$49948432, %ecx                 ## imm = 0x2FA2710
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_LB_CNTR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_LB_CNTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_WREG32_SOC15
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_gfx_v9_0_select_se_sh
	movl	(%r15), %edi
	movq	_mmRLC_LB_INIT_CU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$-1, %ecx
	callq	_WREG32_SOC15
	movq	_RLC_LB_PARAMS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FIFO_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$3, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
	movl	(%r12), %esi
	movq	_PG_IDLE_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$16, %ecx
	callq	_REG_SET_FIELD
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	_PG_IDLE_SAMPLE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$831, %ecx                      ## imm = 0x33F
	callq	_REG_SET_FIELD
	orl	%eax, %ebx
	movl	(%r15), %edi
	movq	_mmRLC_LB_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmRLC_GPM_GENERAL_7@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movzwl	%ax, %ecx
	orl	$12582912, %ecx                 ## imm = 0xC00000
	movl	(%r15), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movq	_RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RLC_LB_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CU_MASK_USED_OFF_HYST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$9, %ecx
	callq	_REG_SET_FIELD
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$524288, %ecx                   ## imm = 0x80000
	callq	_REG_SET_FIELD
	orl	%eax, %ebx
	movl	(%r15), %edi
	movq	_mmRLC_LB_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gfx_v9_0_init_always_on_cu_mask ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmRLC_LB_THR_CONFIG_1,4,2      ## @mmRLC_LB_THR_CONFIG_1
	.comm	_mmRLC_LB_THR_CONFIG_2,4,2      ## @mmRLC_LB_THR_CONFIG_2
	.comm	_mmRLC_LB_THR_CONFIG_3,4,2      ## @mmRLC_LB_THR_CONFIG_3
	.comm	_mmRLC_LB_THR_CONFIG_4,4,2      ## @mmRLC_LB_THR_CONFIG_4
	.comm	_mmRLC_LB_CNTR_INIT,4,2         ## @mmRLC_LB_CNTR_INIT
	.comm	_mmRLC_LB_CNTR_MAX,4,2          ## @mmRLC_LB_CNTR_MAX
	.comm	_mmRLC_LB_INIT_CU_MASK,4,2      ## @mmRLC_LB_INIT_CU_MASK
	.comm	_RLC_LB_PARAMS,4,2              ## @RLC_LB_PARAMS
	.comm	_FIFO_SAMPLES,4,2               ## @FIFO_SAMPLES
	.comm	_PG_IDLE_SAMPLES,4,2            ## @PG_IDLE_SAMPLES
	.comm	_PG_IDLE_SAMPLE_INTERVAL,4,2    ## @PG_IDLE_SAMPLE_INTERVAL
	.comm	_mmRLC_LB_PARAMS,4,2            ## @mmRLC_LB_PARAMS
	.comm	_mmRLC_GPM_GENERAL_7,4,2        ## @mmRLC_GPM_GENERAL_7
	.comm	_RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK,4,2 ## @RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK
	.comm	_RLC_LB_CNTL,4,2                ## @RLC_LB_CNTL
	.comm	_CU_MASK_USED_OFF_HYST,4,2      ## @CU_MASK_USED_OFF_HYST
	.comm	_RESERVED,4,2                   ## @RESERVED
	.comm	_mmRLC_LB_CNTL,4,2              ## @mmRLC_LB_CNTL
	.no_dead_strip	_gfx_v9_4_init_lbpw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_4_init_lbpw
_gfx_v9_4_init_lbpw:                    ; @gfx_v9_4_init_lbpw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _GC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmRLC_LB_THR_CONFIG_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmRLC_LB_THR_CONFIG_1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #127
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _mmRLC_LB_THR_CONFIG_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmRLC_LB_THR_CONFIG_2@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #35064
	movk	w3, #819, lsl #16
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _mmRLC_LB_THR_CONFIG_3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmRLC_LB_THR_CONFIG_3@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #119
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _mmRLC_LB_THR_CONFIG_4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmRLC_LB_THR_CONFIG_4@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #10000
	movk	w3, #762, lsl #16
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _mmRLC_LB_CNTR_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmRLC_LB_CNTR_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh17:
	adrp	x8, _mmRLC_LB_CNTR_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mmRLC_LB_CNTR_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #2048
	bl	_WREG32_SOC15
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-1
	mov	w3, #-1
	bl	_gfx_v9_0_select_se_sh
	ldr	w0, [x21]
Lloh20:
	adrp	x8, _mmRLC_LB_INIT_CU_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mmRLC_LB_INIT_CU_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #-1
	bl	_WREG32_SOC15
Lloh23:
	adrp	x22, _RLC_LB_PARAMS@GOTPAGE
Lloh24:
	ldr	x22, [x22, _RLC_LB_PARAMS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh25:
	adrp	x8, _FIFO_SAMPLES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FIFO_SAMPLES@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #3
	bl	_REG_SET_FIELD
	mov	x20, x0
	ldr	w1, [x22]
Lloh28:
	adrp	x8, _PG_IDLE_SAMPLES@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PG_IDLE_SAMPLES@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_REG_SET_FIELD
	orr	w20, w0, w20
	ldr	w1, [x22]
Lloh31:
	adrp	x8, _PG_IDLE_SAMPLE_INTERVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PG_IDLE_SAMPLE_INTERVAL@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #831
	bl	_REG_SET_FIELD
	orr	w3, w0, w20
	ldr	w0, [x21]
Lloh34:
	adrp	x8, _mmRLC_LB_PARAMS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mmRLC_LB_PARAMS@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh37:
	adrp	x20, _mmRLC_GPM_GENERAL_7@GOTPAGE
Lloh38:
	ldr	x20, [x20, _mmRLC_GPM_GENERAL_7@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	w3, #12582912
	bfxil	w3, w0, #0, #16
	ldr	w0, [x21]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh39:
	adrp	x8, _RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w20, [x8]
Lloh42:
	adrp	x22, _RLC_LB_CNTL@GOTPAGE
Lloh43:
	ldr	x22, [x22, _RLC_LB_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh44:
	adrp	x8, _CU_MASK_USED_OFF_HYST@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CU_MASK_USED_OFF_HYST@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #9
	bl	_REG_SET_FIELD
	orr	w20, w0, w20
	ldr	w1, [x22]
Lloh47:
	adrp	x8, _RESERVED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RESERVED@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #524288
	bl	_REG_SET_FIELD
	orr	w3, w0, w20
	ldr	w0, [x21]
Lloh50:
	adrp	x8, _mmRLC_LB_CNTL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _mmRLC_LB_CNTL@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gfx_v9_0_init_always_on_cu_mask
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmRLC_LB_THR_CONFIG_1,4,2      ; @mmRLC_LB_THR_CONFIG_1
	.comm	_mmRLC_LB_THR_CONFIG_2,4,2      ; @mmRLC_LB_THR_CONFIG_2
	.comm	_mmRLC_LB_THR_CONFIG_3,4,2      ; @mmRLC_LB_THR_CONFIG_3
	.comm	_mmRLC_LB_THR_CONFIG_4,4,2      ; @mmRLC_LB_THR_CONFIG_4
	.comm	_mmRLC_LB_CNTR_INIT,4,2         ; @mmRLC_LB_CNTR_INIT
	.comm	_mmRLC_LB_CNTR_MAX,4,2          ; @mmRLC_LB_CNTR_MAX
	.comm	_mmRLC_LB_INIT_CU_MASK,4,2      ; @mmRLC_LB_INIT_CU_MASK
	.comm	_RLC_LB_PARAMS,4,2              ; @RLC_LB_PARAMS
	.comm	_FIFO_SAMPLES,4,2               ; @FIFO_SAMPLES
	.comm	_PG_IDLE_SAMPLES,4,2            ; @PG_IDLE_SAMPLES
	.comm	_PG_IDLE_SAMPLE_INTERVAL,4,2    ; @PG_IDLE_SAMPLE_INTERVAL
	.comm	_mmRLC_LB_PARAMS,4,2            ; @mmRLC_LB_PARAMS
	.comm	_mmRLC_GPM_GENERAL_7,4,2        ; @mmRLC_GPM_GENERAL_7
	.comm	_RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK,4,2 ; @RLC_LB_CNTL__LB_CNT_SPIM_ACTIVE_MASK
	.comm	_RLC_LB_CNTL,4,2                ; @RLC_LB_CNTL
	.comm	_CU_MASK_USED_OFF_HYST,4,2      ; @CU_MASK_USED_OFF_HYST
	.comm	_RESERVED,4,2                   ; @RESERVED
	.comm	_mmRLC_LB_CNTL,4,2              ; @mmRLC_LB_CNTL
	.no_dead_strip	_gfx_v9_4_init_lbpw
.subsections_via_symbols
