	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92ee_set_fw_clock_on
__rtl92ee_set_fw_clock_on:              ## @_rtl92ee_set_fw_clock_on
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_HAL_DEF_WOWLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	*(%rax)
	cmpl	$0, 8(%r15)
	je	LBB0_20
## %bb.1:
	cmpl	$0, 16(%r13)
	je	LBB0_20
## %bb.2:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$1001, %ebx                     ## imm = 0x3E9
	movl	$1000, %r14d                    ## imm = 0x3E8
	cmovgel	%ebx, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	$100, %edi
	callq	_udelay
	cmpl	%ebx, %r14d
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	%ebx
	movq	%r13, %rdi
	callq	_spin_lock_bh
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%r13, %rdi
	callq	_spin_lock_bh
	cmpl	$0, (%r15)
	jne	LBB0_5
	jmp	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
LBB0_9:
	movl	$0, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	4(%r15), %edi
	callq	_IS_IN_LOW_POWER_STATE_92E
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_SET_RPWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	*(%rax)
	movl	-44(%rbp), %edi
	callq	_FW_PS_IS_ACK
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	_REG_HISR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rtl_read_dword
	movq	_IMR_CPWM@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	sete	%al
	jne	LBB0_15
## %bb.12:
	cmpl	$499, %ebx                      ## imm = 0x1F3
	jg	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rtl_read_dword
	testl	%eax, (%r14)
	sete	%al
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$499, %ebx                      ## imm = 0x1F3
	movl	%ecx, %ebx
	jl	LBB0_13
LBB0_15:
	testb	%al, %al
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_rtl_write_word
	movq	_FW_PS_STATE_RF_ON_92E@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, 4(%r15)
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	callq	_RT_TRACE
LBB0_17:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$0, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.18:
	addq	$4, %r13
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$10, %edi
	callq	_MSECS
	addq	%rax, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mod_timer
	jmp	LBB0_20
LBB0_19:
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$0, (%r15)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HAL_DEF_WOWLAN,4,2             ## @HAL_DEF_WOWLAN
	.comm	_HW_VAR_SET_RPWM,4,2            ## @HW_VAR_SET_RPWM
	.comm	_REG_HISR,4,2                   ## @REG_HISR
	.comm	_IMR_CPWM,4,2                   ## @IMR_CPWM
	.comm	_FW_PS_STATE_RF_ON_92E,4,2      ## @FW_PS_STATE_RF_ON_92E
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receive CPWM INT!!! PSState = %X\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	__rtl92ee_set_fw_clock_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92ee_set_fw_clock_on
__rtl92ee_set_fw_clock_on:              ; @_rtl92ee_set_fw_clock_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x22, x0
	str	w1, [sp, #12]
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HAL_DEF_WOWLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HAL_DEF_WOWLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x22
	blr	x8
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_20
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_20
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w23, #0
	mov	w24, #1000
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w23, #1000
	csel	w25, w23, w24, gt
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #100
	bl	_udelay
	cmp	w25, w23
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, #1
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	str	wzr, [x21]
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w0, [x21, #4]
	bl	_IS_IN_LOW_POWER_STATE_92E
	cbz	x0, LBB0_19
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HW_VAR_SET_RPWM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_VAR_SET_RPWM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x22
	blr	x8
	ldr	w0, [sp, #12]
	bl	_FW_PS_IS_ACK
	cbz	x0, LBB0_17
; %bb.11:
Lloh6:
	adrp	x8, _REG_HISR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_HISR@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_rtl_read_dword
Lloh9:
	adrp	x24, _IMR_CPWM@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IMR_CPWM@GOTPAGEOFF]
	ldr	w8, [x24]
	ands	w9, w8, w0
	cset	w8, eq
	cbnz	w9, LBB0_15
; %bb.12:
	cmp	w23, #499
	b.gt	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	mov	x0, x19
	mov	x1, x22
	bl	_rtl_read_dword
	ldr	w8, [x24]
	ands	w9, w8, w0
	cset	w8, eq
	cbnz	w9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w9, w23, #1
	cmp	w23, #499
	mov	x23, x9
	b.lt	LBB0_13
LBB0_15:
	tbnz	w8, #0, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #256
	bl	_rtl_write_word
Lloh11:
	adrp	x8, _FW_PS_STATE_RF_ON_92E@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FW_PS_STATE_RF_ON_92E@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	str	w4, [x21, #4]
Lloh14:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COMP_POWER@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_17:
	mov	x0, x19
	bl	_spin_lock_bh
	str	wzr, [x21]
	mov	x0, x19
	bl	_spin_unlock_bh
	cbz	w20, LBB0_20
; %bb.18:
	add	x19, x19, #4
Lloh22:
	adrp	x8, _jiffies@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	x20, [x8]
	mov	w0, #10
	bl	_MSECS
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_spin_lock_bh
	str	wzr, [x21]
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HAL_DEF_WOWLAN,4,2             ; @HAL_DEF_WOWLAN
	.comm	_HW_VAR_SET_RPWM,4,2            ; @HW_VAR_SET_RPWM
	.comm	_REG_HISR,4,2                   ; @REG_HISR
	.comm	_IMR_CPWM,4,2                   ; @IMR_CPWM
	.comm	_FW_PS_STATE_RF_ON_92E,4,2      ; @FW_PS_STATE_RF_ON_92E
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receive CPWM INT!!! PSState = %X\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	__rtl92ee_set_fw_clock_on
.subsections_via_symbols
