	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_firmware_enable_cpu
__rtl92s_firmware_enable_cpu:           ## @_rtl92s_firmware_enable_cpu
	.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, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	__rtl92s_fw_set_rqpn
	movq	_SYS_CLKR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	(%rbx), %esi
	movq	_SYS_CPU_CLKSEL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtl_read_word
	movl	(%rbx), %esi
	movq	_FEN_CPUEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_word
	movl	$-201, %ebx
	movq	_TCR@GOTPCREL(%rip), %r13
	movq	_IMEM_RDY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	testl	%eax, (%r15)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
LBB0_4:
	xorl	%eax, %eax
	testl	%r12d, (%r15)
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_CLKR,4,2                   ## @SYS_CLKR
	.comm	_SYS_CPU_CLKSEL,4,2             ## @SYS_CPU_CLKSEL
	.comm	_REG_SYS_FUNC_EN,4,2            ## @REG_SYS_FUNC_EN
	.comm	_FEN_CPUEN,4,2                  ## @FEN_CPUEN
	.comm	_TCR,4,2                        ## @TCR
	.comm	_IMEM_RDY,4,2                   ## @IMEM_RDY
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IMEM Ready after CPU has refilled\n"

	.no_dead_strip	__rtl92s_firmware_enable_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_firmware_enable_cpu
__rtl92s_firmware_enable_cpu:           ; @_rtl92s_firmware_enable_cpu
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	__rtl92s_fw_set_rqpn
Lloh0:
	adrp	x20, _SYS_CLKR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SYS_CLKR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _SYS_CPU_CLKSEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_CPU_CLKSEL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_rtl_write_byte
Lloh5:
	adrp	x20, _REG_SYS_FUNC_EN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtl_read_word
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _FEN_CPUEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FEN_CPUEN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_rtl_write_word
	mov	w22, #-201
Lloh10:
	adrp	x23, _TCR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TCR@GOTPAGEOFF]
Lloh12:
	adrp	x21, _IMEM_RDY@GOTPAGE
Lloh13:
	ldr	x21, [x21, _IMEM_RDY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	bl	_udelay
	adds	w22, w22, #1
	b.lo	LBB0_1
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_4:
	ldr	w8, [x21]
	tst	w8, w20
	cset	w0, ne
	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	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_CLKR,4,2                   ; @SYS_CLKR
	.comm	_SYS_CPU_CLKSEL,4,2             ; @SYS_CPU_CLKSEL
	.comm	_REG_SYS_FUNC_EN,4,2            ; @REG_SYS_FUNC_EN
	.comm	_FEN_CPUEN,4,2                  ; @FEN_CPUEN
	.comm	_TCR,4,2                        ; @TCR
	.comm	_IMEM_RDY,4,2                   ; @IMEM_RDY
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IMEM Ready after CPU has refilled\n"

	.no_dead_strip	__rtl92s_firmware_enable_cpu
.subsections_via_symbols
