	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_enter_rlc_safe_mode        ## -- Begin function cik_enter_rlc_safe_mode
	.p2align	4, 0x90
_cik_enter_rlc_safe_mode:               ## @cik_enter_rlc_safe_mode
	.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
	movq	%rdi, %r13
	movq	_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_MSG_ENTER_RLC_SAFE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MESSAGE
	orq	%rax, %r14
	movq	_RLC_GPR_REG2@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_WREG32
	cmpq	$0, (%r13)
	jle	LBB0_9
## %bb.1:
	movq	_GFX_POWER_STATUS@GOTPCREL(%rip), %rax
	movq	_GFX_CLOCK_STATUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	orq	(%rax), %r14
	xorl	%ebx, %ebx
	movq	_RLC_GPM_STAT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_RREG32
	notq	%rax
	testq	%rax, %r14
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	(%r13), %rax
LBB0_5:
	testq	%rax, %rax
	movq	_REQ@GOTPCREL(%rip), %r14
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_RREG32
	testq	%rax, (%r14)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ,8,3                        ## @REQ
	.comm	_MSG_ENTER_RLC_SAFE_MODE,4,2    ## @MSG_ENTER_RLC_SAFE_MODE
	.comm	_RLC_GPR_REG2,4,2               ## @RLC_GPR_REG2
	.comm	_GFX_POWER_STATUS,8,3           ## @GFX_POWER_STATUS
	.comm	_GFX_CLOCK_STATUS,8,3           ## @GFX_CLOCK_STATUS
	.comm	_RLC_GPM_STAT,4,2               ## @RLC_GPM_STAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_enter_rlc_safe_mode        ; -- Begin function cik_enter_rlc_safe_mode
	.p2align	2
_cik_enter_rlc_safe_mode:               ; @cik_enter_rlc_safe_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _REQ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REQ@GOTPAGEOFF]
	ldr	x21, [x20]
Lloh2:
	adrp	x8, _MSG_ENTER_RLC_SAFE_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ENTER_RLC_SAFE_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MESSAGE
	orr	x1, x0, x21
Lloh5:
	adrp	x21, _RLC_GPR_REG2@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RLC_GPR_REG2@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_WREG32
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x22, #0
Lloh7:
	adrp	x8, _GFX_POWER_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFX_POWER_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _GFX_CLOCK_STATUS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GFX_CLOCK_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	orr	x23, x9, x8
Lloh13:
	adrp	x24, _RLC_GPM_STAT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _RLC_GPM_STAT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_RREG32
	bics	xzr, x23, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	x8, #1
	b.ge	LBB0_6
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
LBB0_6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_RREG32
	ldr	x8, [x20]
	tst	x8, x0
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
	bl	_udelay
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ,8,3                        ; @REQ
	.comm	_MSG_ENTER_RLC_SAFE_MODE,4,2    ; @MSG_ENTER_RLC_SAFE_MODE
	.comm	_RLC_GPR_REG2,4,2               ; @RLC_GPR_REG2
	.comm	_GFX_POWER_STATUS,8,3           ; @GFX_POWER_STATUS
	.comm	_GFX_CLOCK_STATUS,8,3           ; @GFX_CLOCK_STATUS
	.comm	_RLC_GPM_STAT,4,2               ; @RLC_GPM_STAT
.subsections_via_symbols
