	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723be_set_fw_clock_off
__rtl8723be_set_fw_clock_off:           ## @_rtl8723be_set_fw_clock_off
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, -80(%rbp)
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	cmpl	$0, 16(%rbx)
	je	LBB0_15
## %bb.1:
	cmpl	$0, 20(%r14)
	je	LBB0_15
## %bb.2:
	cmpl	$0, 12(%rbx)
	je	LBB0_15
## %bb.3:
	movq	%rax, %r13
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_RF_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	_ERFOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, -44(%rbp)
	je	LBB0_15
## %bb.4:
	cmpl	%eax, 16(%r14)
	je	LBB0_15
## %bb.5:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	addq	$4, %r14
	cmpq	(%rbx), %r12
	jb	LBB0_8
LBB0_10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_FW_PS_STATE
	movq	_FW_PS_STATE_RF_OFF_LOW_PWR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_15
## %bb.11:
	movq	%r14, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	cmpl	$0, 8(%rbx)
	je	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$10, %edi
	callq	_MSECS
	addq	%rax, %rbx
	movq	%r14, %rdi
	jmp	LBB0_14
LBB0_9:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$10, %edi
	callq	_MSECS
	addq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rsi
	callq	_mod_timer
	jmp	LBB0_15
LBB0_12:
	movl	$1, 8(%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	%r12, %rdi
	callq	_FW_PS_STATE
	movq	%rax, (%rbx)
	movq	_REG_HISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_rtl_write_word
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_SET_RPWM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%rax)
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	$0, 8(%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock_bh
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_VAR_RF_STATE,4,2            ## @HW_VAR_RF_STATE
	.comm	_ERFOFF,4,2                     ## @ERFOFF
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ## @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_FW_PS_STATE_RF_OFF_LOW_PWR,8,3 ## @FW_PS_STATE_RF_OFF_LOW_PWR
	.comm	_REG_HISR,4,2                   ## @REG_HISR
	.comm	_HW_VAR_SET_RPWM,4,2            ## @HW_VAR_SET_RPWM
	.no_dead_strip	__rtl8723be_set_fw_clock_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723be_set_fw_clock_off
__rtl8723be_set_fw_clock_off:           ; @_rtl8723be_set_fw_clock_off
	.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	x22, x1
	mov	x20, x0
	str	x1, [sp, #8]
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_14
; %bb.1:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_14
; %bb.2:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_14
; %bb.3:
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _HW_VAR_RF_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_VAR_RF_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x20
	blr	x8
	ldr	w9, [sp, #4]
Lloh3:
	adrp	x8, _ERFOFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERFOFF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_14
; %bb.4:
	ldr	w9, [x19, #16]
	cmp	w9, w8
	b.eq	LBB0_14
; %bb.5:
Lloh6:
	adrp	x24, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x25, #0
	mov	x26, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x25
	bl	_skb_queue_len
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	ldr	x8, [x24]
	add	x25, x25, #4
	cmp	x26, x8
	b.lo	LBB0_7
LBB0_9:
	ldr	x0, [x21]
	bl	_FW_PS_STATE
Lloh8:
	adrp	x8, _FW_PS_STATE_RF_OFF_LOW_PWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_PS_STATE_RF_OFF_LOW_PWR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.10:
	add	x23, x19, #4
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_13
; %bb.11:
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_12:
Lloh11:
	adrp	x8, _jiffies@GOTPAGE
Lloh12:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh13:
	ldr	x20, [x8]
	mov	w0, #10
	bl	_MSECS
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	b	LBB0_14
LBB0_13:
	mov	w8, #1
	str	w8, [x21, #8]
	mov	x0, x23
	bl	_spin_unlock_bh
	mov	x0, x22
	bl	_FW_PS_STATE
	str	x0, [x21]
Lloh14:
	adrp	x8, _REG_HISR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_HISR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	bl	_rtl_write_word
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HW_VAR_SET_RPWM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HW_VAR_SET_RPWM@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	mov	x0, x23
	bl	_spin_lock_bh
	str	wzr, [x21, #8]
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_14:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_VAR_RF_STATE,4,2            ; @HW_VAR_RF_STATE
	.comm	_ERFOFF,4,2                     ; @ERFOFF
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,8,3 ; @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_FW_PS_STATE_RF_OFF_LOW_PWR,8,3 ; @FW_PS_STATE_RF_OFF_LOW_PWR
	.comm	_REG_HISR,4,2                   ; @REG_HISR
	.comm	_HW_VAR_SET_RPWM,4,2            ; @HW_VAR_SET_RPWM
	.no_dead_strip	__rtl8723be_set_fw_clock_off
.subsections_via_symbols
