	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_phy_set_rf_power_state
__rtl8723be_phy_set_rf_power_state:     ## @_rtl8723be_phy_set_rf_power_state
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %rbx
	cmpl	$128, %r13d
	je	LBB0_27
## %bb.1:
	cmpl	$129, %r13d
	je	LBB0_4
## %bb.2:
	cmpl	$130, %r13d
	jne	LBB0_39
## %bb.3:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %r13
	movq	_BEACON_QUEUE@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	cmpq	%rax, %r12
	jae	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	(,%r12,4), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r12
	addq	$4, %r14
	cmpq	%rax, %r12
	jae	LBB0_22
LBB0_14:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%r15), %r12
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_len
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	(%r13), %rax
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	%rbx, %rdi
	callq	_skb_queue_len
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-100(%rbp), %edx                ## 4-byte Reload
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$10, %edi
	callq	_udelay
	movq	_MAX_DOZE_WAITING_TIMES_9x@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %r14
	jb	LBB0_19
## %bb.21:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movq	%rdx, %rbx
	callq	_skb_queue_len
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rbx, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_22:
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, 24(%rbx)
	je	LBB0_24
## %bb.23:
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl_ps_disable_nic
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_RT_SET_PS_LEVEL
	jmp	LBB0_36
LBB0_27:
	cmpl	$130, (%rbx)
	je	LBB0_37
## %bb.28:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	cmpq	(%r13), %rbx
	jae	LBB0_35
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	leaq	(,%rbx,4), %r14
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %r12
	addq	%r14, %r12
	movq	%r12, %rdi
	callq	_skb_queue_len
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	incq	%rbx
	addq	$4, %r14
	cmpq	(%r13), %rbx
	jb	LBB0_31
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	movq	%r12, %rdi
	callq	_skb_queue_len
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$10, %edi
	callq	_udelay
	movq	_MAX_DOZE_WAITING_TIMES_9x@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r14
	jb	LBB0_29
## %bb.34:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movq	%rcx, %r12
	callq	_skb_queue_len
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%r12, %r8
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_35:
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	subq	16(%rbx), %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str.5(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	__rtl8723be_phy_set_rf_sleep
LBB0_36:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_37
LBB0_4:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	cmpl	$130, (%rbx)
	jne	LBB0_10
## %bb.5:
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RT_IN_PS_LEVEL
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_COMP_RF@GOTPCREL(%rip), %r12
	movq	_DBG_DMESG@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl_ps_enable_nic
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r15), %eax
	cmpl	$9, %r15d
	movl	%eax, %r15d
	jb	LBB0_7
LBB0_9:
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_RT_CLEAR_PS_LEVEL
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_39:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_38
LBB0_10:
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	8(%rbx), %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8723be_phy_set_rf_on
LBB0_11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	(%rdx), %ecx
	jne	LBB0_25
## %bb.12:
	movq	_LED_CTL_LINK@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_24:
	movl	28(%rbx), %ecx
	movq	_RF_CHANGE_BY_IPS@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	(%rdx), %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_26
LBB0_25:
	movq	_LED_CTL_NO_LINK@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_26:
	movq	_LED_CTL_POWER_OFF@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rax
LBB0_37:
	movl	%r13d, (%rbx)
	movl	$1, %ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ## @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_COMP_RF,4,2                    ## @COMP_RF
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPS Set eRf nic enable\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set ERFON sleeped:%d ms\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MAC80211_LINKED,4,2            ## @MAC80211_LINKED
	.comm	_LED_CTL_LINK,4,2               ## @LED_CTL_LINK
	.comm	_LED_CTL_NO_LINK,4,2            ## @LED_CTL_NO_LINK
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ## @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,8,3               ## @BEACON_QUEUE
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"eRf Off/Sleep: %d times TcbBusyQueue[%d] =%d before doze!\n"

	.comm	_MAX_DOZE_WAITING_TIMES_9x,8,3  ## @MAX_DOZE_WAITING_TIMES_9x
L_.str.3:                               ## @.str.3
	.asciz	"ERFSLEEP: %d times TcbBusyQueue[%d] = %d !\n"

L_.str.4:                               ## @.str.4
	.asciz	"IPS Set eRf nic disable\n"

	.comm	_RF_CHANGE_BY_IPS,4,2           ## @RF_CHANGE_BY_IPS
	.comm	_LED_CTL_POWER_OFF,4,2          ## @LED_CTL_POWER_OFF
L_.str.5:                               ## @.str.5
	.asciz	"Set ERFSLEEP awaked:%d ms\n"

	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
L_.str.6:                               ## @.str.6
	.asciz	"switch case %#x not processed\n"

	.no_dead_strip	__rtl8723be_phy_set_rf_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723be_phy_set_rf_power_state
__rtl8723be_phy_set_rf_power_state:     ; @_rtl8723be_phy_set_rf_power_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x22, x0
	mov	x0, x21
	bl	_rtl_pcipriv
	mov	x23, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x24, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x28, x0
	cmp	w27, #128
	b.eq	LBB0_14
; %bb.1:
	cmp	w27, #129
	b.eq	LBB0_24
; %bb.2:
	cmp	w27, #130
	b.ne	LBB0_30
; %bb.3:
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	mov	x24, #0
	mov	x28, #0
Lloh0:
	adrp	x26, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
Lloh2:
	adrp	x27, _BEACON_QUEUE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BEACON_QUEUE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x26]
	cmp	x28, x8
	b.hs	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x20, x28, #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
	add	x20, x20, #4
	cmp	x28, x8
	b.hs	LBB0_12
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x27]
	cmp	x28, x9
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x19, [x23]
	add	x25, x19, x20
	mov	x0, x25
	bl	_skb_queue_len
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x26]
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh7:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	add	x24, x24, #1
	mov	x0, x25
	bl	_skb_queue_len
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp, #8]
	str	x24, [sp]
	mov	x0, x22
	ldp	w2, w1, [sp, #24]               ; 8-byte Folded Reload
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_RT_TRACE
	mov	w0, #10
	bl	_udelay
Lloh12:
	adrp	x8, _MAX_DOZE_WAITING_TIMES_9x@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_DOZE_WAITING_TIMES_9x@GOTPAGEOFF]
Lloh14:
	ldr	x25, [x8]
	cmp	x24, x25
	b.lo	LBB0_4
; %bb.11:
Lloh15:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
Lloh18:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	add	x0, x19, x20
	bl	_skb_queue_len
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp, #8]
	str	x25, [sp]
Lloh21:
	adrp	x3, l_.str.3@PAGE
Lloh22:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_RT_TRACE
LBB0_12:
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w8, [x28, #24]
Lloh23:
	adrp	x19, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh24:
	ldr	x19, [x19, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.13:
Lloh25:
	adrp	x8, _COMP_RF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COMP_RF@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x3, l_.str.4@PAGE
Lloh32:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	x0, x21
	bl	_rtl_ps_disable_nic
	ldr	w1, [x19]
	mov	x0, x28
	bl	_RT_SET_PS_LEVEL
	b	LBB0_23
LBB0_14:
	ldr	w8, [x28]
	cmp	w8, #130
	b.eq	LBB0_38
; %bb.15:
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	mov	x24, #0
	mov	x28, #0
Lloh33:
	adrp	x20, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh34:
	ldr	x20, [x20, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x20]
	cmp	x28, x8
	b.hs	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	x26, x28, #2
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x27, [x23]
	add	x25, x27, x26
	mov	x0, x25
	bl	_skb_queue_len
	cbnz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x28, x28, #1
	ldr	x8, [x20]
	add	x26, x26, #4
	cmp	x28, x8
	b.lo	LBB0_18
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh35:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w19, [x8]
Lloh38:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	add	x24, x24, #1
	mov	x0, x25
	bl	_skb_queue_len
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp, #8]
	str	x24, [sp]
	mov	x0, x22
	mov	x1, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
Lloh41:
	adrp	x3, l_.str.2@PAGE
Lloh42:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_RT_TRACE
	mov	w0, #10
	bl	_udelay
Lloh43:
	adrp	x8, _MAX_DOZE_WAITING_TIMES_9x@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_DOZE_WAITING_TIMES_9x@GOTPAGEOFF]
Lloh45:
	ldr	x19, [x8]
	cmp	x24, x19
	b.lo	LBB0_16
; %bb.21:
Lloh46:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh48:
	ldr	w23, [x8]
Lloh49:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh51:
	ldr	w24, [x8]
	add	x0, x27, x26
	bl	_skb_queue_len
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x28, x0, [sp, #8]
	str	x19, [sp]
Lloh52:
	adrp	x3, l_.str.3@PAGE
Lloh53:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_RT_TRACE
LBB0_22:
Lloh54:
	adrp	x8, _COMP_RF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _COMP_RF@GOTPAGEOFF]
Lloh56:
	ldr	w23, [x8]
Lloh57:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh59:
	ldr	w24, [x8]
Lloh60:
	adrp	x19, _jiffies@GOTPAGE
Lloh61:
	ldr	x19, [x19, _jiffies@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x9, [x28, #16]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh62:
	adrp	x3, l_.str.5@PAGE
Lloh63:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_RT_TRACE
	ldr	x8, [x19]
	str	x8, [x28, #8]
	mov	x0, x21
	bl	__rtl8723be_phy_set_rf_sleep
LBB0_23:
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_38
LBB0_24:
	ldr	w8, [x28]
	cmp	w8, #130
	b.ne	LBB0_31
; %bb.25:
Lloh64:
	adrp	x19, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh65:
	ldr	x19, [x19, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x28
	bl	_RT_IN_PS_LEVEL
	cbz	w0, LBB0_31
; %bb.26:
	mov	w20, #0
Lloh66:
	adrp	x25, _COMP_RF@GOTPAGE
Lloh67:
	ldr	x25, [x25, _COMP_RF@GOTPAGEOFF]
Lloh68:
	adrp	x26, _DBG_DMESG@GOTPAGE
Lloh69:
	ldr	x26, [x26, _DBG_DMESG@GOTPAGEOFF]
Lloh70:
	adrp	x23, l_.str@PAGE
Lloh71:
	add	x23, x23, l_.str@PAGEOFF
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x22
	mov	x3, x23
	bl	_RT_TRACE
	mov	x0, x21
	bl	_rtl_ps_enable_nic
	cbnz	w0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	w8, w20, #1
	cmp	w20, #9
	mov	x20, x8
	b.lo	LBB0_27
LBB0_29:
	ldr	w1, [x19]
	mov	x0, x28
	bl	_RT_CLEAR_PS_LEVEL
	b	LBB0_32
LBB0_30:
Lloh72:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh73:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
Lloh75:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh76:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	str	x27, [sp]
Lloh78:
	adrp	x3, l_.str.6@PAGE
Lloh79:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	w0, #0
	b	LBB0_39
LBB0_31:
Lloh80:
	adrp	x8, _COMP_RF@GOTPAGE
Lloh81:
	ldr	x8, [x8, _COMP_RF@GOTPAGEOFF]
Lloh82:
	ldr	w23, [x8]
Lloh83:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh84:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh85:
	ldr	w25, [x8]
Lloh86:
	adrp	x19, _jiffies@GOTPAGE
Lloh87:
	ldr	x19, [x19, _jiffies@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x28, #8]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh88:
	adrp	x3, l_.str.1@PAGE
Lloh89:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	bl	_RT_TRACE
	ldr	x8, [x19]
	str	x8, [x28, #16]
	mov	x0, x21
	bl	_rtl8723be_phy_set_rf_on
LBB0_32:
Lloh90:
	adrp	x8, _MAC80211_LINKED@GOTPAGE
Lloh91:
	ldr	x8, [x8, _MAC80211_LINKED@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh92:
	ldr	w10, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	w9, w10
	b.ne	LBB0_35
; %bb.33:
Lloh93:
	adrp	x9, _LED_CTL_LINK@GOTPAGE
Lloh94:
	ldr	x9, [x9, _LED_CTL_LINK@GOTPAGEOFF]
	b	LBB0_37
LBB0_34:
Lloh95:
	adrp	x8, _RF_CHANGE_BY_IPS@GOTPAGE
Lloh96:
	ldr	x8, [x8, _RF_CHANGE_BY_IPS@GOTPAGEOFF]
	ldr	w9, [x28, #28]
Lloh97:
	ldr	w10, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	w9, w10
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_36
LBB0_35:
Lloh98:
	adrp	x9, _LED_CTL_NO_LINK@GOTPAGE
Lloh99:
	ldr	x9, [x9, _LED_CTL_NO_LINK@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:
Lloh100:
	adrp	x9, _LED_CTL_POWER_OFF@GOTPAGE
Lloh101:
	ldr	x9, [x9, _LED_CTL_POWER_OFF@GOTPAGEOFF]
LBB0_37:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
LBB0_38:
	str	w27, [x28]
	mov	w0, #1
LBB0_39:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ; @RT_RF_OFF_LEVL_HALT_NIC
	.comm	_COMP_RF,4,2                    ; @COMP_RF
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPS Set eRf nic enable\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set ERFON sleeped:%d ms\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MAC80211_LINKED,4,2            ; @MAC80211_LINKED
	.comm	_LED_CTL_LINK,4,2               ; @LED_CTL_LINK
	.comm	_LED_CTL_NO_LINK,4,2            ; @LED_CTL_NO_LINK
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ; @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,8,3               ; @BEACON_QUEUE
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"eRf Off/Sleep: %d times TcbBusyQueue[%d] =%d before doze!\n"

	.comm	_MAX_DOZE_WAITING_TIMES_9x,8,3  ; @MAX_DOZE_WAITING_TIMES_9x
l_.str.3:                               ; @.str.3
	.asciz	"ERFSLEEP: %d times TcbBusyQueue[%d] = %d !\n"

l_.str.4:                               ; @.str.4
	.asciz	"IPS Set eRf nic disable\n"

	.comm	_RF_CHANGE_BY_IPS,4,2           ; @RF_CHANGE_BY_IPS
	.comm	_LED_CTL_POWER_OFF,4,2          ; @LED_CTL_POWER_OFF
l_.str.5:                               ; @.str.5
	.asciz	"Set ERFSLEEP awaked:%d ms\n"

	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
l_.str.6:                               ; @.str.6
	.asciz	"switch case %#x not processed\n"

	.no_dead_strip	__rtl8723be_phy_set_rf_power_state
.subsections_via_symbols
