	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_phy_set_rfhalt
__rtl92s_phy_set_rfhalt:                ## @_rtl92s_phy_set_rfhalt
	.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, %r15
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	$1376, %esi                     ## imm = 0x560
	xorl	%edx, %edx
	callq	_rtl_write_byte
LBB0_2:
	movq	_LDOV12D_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_SPS1_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	_TXPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$255, %edx
	callq	_rtl_write_byte
	movq	_CMDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$22524, %edx                    ## imm = 0x57FC
	callq	_rtl_write_word
	movl	$100, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$30716, %edx                    ## imm = 0x77FC
	callq	_rtl_write_word
	movq	_PHY_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$14332, %edx                    ## imm = 0x37FC
	callq	_rtl_write_word
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$30716, %edx                    ## imm = 0x77FC
	callq	_rtl_write_word
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$22524, %edx                    ## imm = 0x57FC
	callq	_rtl_write_word
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_word
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	incl	%esi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_BIT
	notl	%eax
	andl	%eax, %ebx
	movl	(%r14), %esi
	incl	%esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_rtl_write_byte
LBB0_4:
	movq	_SYS_CLKR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	incl	%esi
	movq	%r13, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r12d
	movl	$7, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_7
## %bb.5:
	movl	$6, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	notl	%ebx
	andl	%ebx, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	__rtl92s_set_sysclk
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	movl	$3, %esi
	movl	$249, %edx
	callq	_rtl_write_byte
	movl	(%r14), %esi
	incl	%esi
	movq	%r13, %rdi
	movl	$112, %edx
	callq	_rtl_write_byte
	movq	_AFE_PLL_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	incl	%esi
	movq	%r13, %rdi
	movl	$104, %edx
	callq	_rtl_write_byte
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	_LDOA15_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$52, %edx
	callq	_rtl_write_byte
	movq	_AFE_XTAL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$14, %edx
	callq	_rtl_write_byte
	movq	_RT_RF_OFF_LEVL_HALT_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_SET_PS_LEVEL                ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LDOV12D_CTRL,4,2               ## @LDOV12D_CTRL
	.comm	_SPS1_CTRL,4,2                  ## @SPS1_CTRL
	.comm	_TXPAUSE,4,2                    ## @TXPAUSE
	.comm	_CMDR,4,2                       ## @CMDR
	.comm	_PHY_CCA,4,2                    ## @PHY_CCA
	.comm	_REG_SYS_FUNC_EN,4,2            ## @REG_SYS_FUNC_EN
	.comm	_SYS_CLKR,4,2                   ## @SYS_CLKR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Switch ctrl path fail\n"

	.comm	_RF_CHANGE_BY_IPS,8,3           ## @RF_CHANGE_BY_IPS
	.comm	_AFE_PLL_CTRL,4,2               ## @AFE_PLL_CTRL
	.comm	_LDOA15_CTRL,4,2                ## @LDOA15_CTRL
	.comm	_AFE_XTAL_CTRL,4,2              ## @AFE_XTAL_CTRL
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ## @RT_RF_OFF_LEVL_HALT_NIC
	.no_dead_strip	__rtl92s_phy_set_rfhalt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_phy_set_rfhalt
__rtl92s_phy_set_rfhalt:                ; @_rtl92s_phy_set_rfhalt
	.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	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x20, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1376
	mov	w2, #0
	bl	_rtl_write_byte
LBB0_2:
Lloh0:
	adrp	x24, _LDOV12D_CTRL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDOV12D_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x23, x0
	mov	w0, #0
	bl	_BIT
	orr	w2, w0, w23
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rtl_write_byte
Lloh2:
	adrp	x8, _SPS1_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPS1_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
Lloh5:
	adrp	x8, _TXPAUSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXPAUSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_rtl_write_byte
Lloh8:
	adrp	x23, _CMDR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CMDR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #22524
	bl	_rtl_write_word
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #30716
	bl	_rtl_write_word
Lloh10:
	adrp	x8, _PHY_CCA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_CCA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #14332
	bl	_rtl_write_word
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #30716
	bl	_rtl_write_word
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #22524
	bl	_rtl_write_word
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_word
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x23, _REG_SYS_FUNC_EN@GOTPAGE
Lloh14:
	ldr	x23, [x23, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w0, #0
	bl	_BIT
	bic	w2, w22, w0
	ldr	w8, [x23]
	add	w1, w8, #1
	mov	x0, x19
	bl	_rtl_write_byte
LBB0_4:
Lloh15:
	adrp	x24, _SYS_CLKR@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SYS_CLKR@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w1, w8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x22, x0
	mov	w0, #7
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #6
	bl	_BIT
	mov	x23, x0
	mov	w0, #7
	bl	_BIT
	orr	w8, w0, w23
	bic	w1, w22, w8
	mov	x0, x21
	bl	__rtl92s_set_sysclk
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #3
	mov	w2, #249
	bl	_rtl_write_byte
	ldr	w8, [x24]
	add	w1, w8, #1
	mov	x0, x19
	mov	w2, #112
	bl	_rtl_write_byte
Lloh17:
	adrp	x21, _AFE_PLL_CTRL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _AFE_PLL_CTRL@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w1, w8, #1
	mov	x0, x19
	mov	w2, #104
	bl	_rtl_write_byte
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
Lloh19:
	adrp	x8, _LDOA15_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LDOA15_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #52
	bl	_rtl_write_byte
Lloh22:
	adrp	x8, _AFE_XTAL_CTRL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AFE_XTAL_CTRL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #14
	bl	_rtl_write_byte
Lloh25:
	adrp	x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RT_RF_OFF_LEVL_HALT_NIC@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	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
	b	_RT_SET_PS_LEVEL
LBB0_7:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_LDOV12D_CTRL,4,2               ; @LDOV12D_CTRL
	.comm	_SPS1_CTRL,4,2                  ; @SPS1_CTRL
	.comm	_TXPAUSE,4,2                    ; @TXPAUSE
	.comm	_CMDR,4,2                       ; @CMDR
	.comm	_PHY_CCA,4,2                    ; @PHY_CCA
	.comm	_REG_SYS_FUNC_EN,4,2            ; @REG_SYS_FUNC_EN
	.comm	_SYS_CLKR,4,2                   ; @SYS_CLKR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Switch ctrl path fail\n"

	.comm	_RF_CHANGE_BY_IPS,8,3           ; @RF_CHANGE_BY_IPS
	.comm	_AFE_PLL_CTRL,4,2               ; @AFE_PLL_CTRL
	.comm	_LDOA15_CTRL,4,2                ; @LDOA15_CTRL
	.comm	_AFE_XTAL_CTRL,4,2              ; @AFE_XTAL_CTRL
	.comm	_RT_RF_OFF_LEVL_HALT_NIC,4,2    ; @RT_RF_OFF_LEVL_HALT_NIC
	.no_dead_strip	__rtl92s_phy_set_rfhalt
.subsections_via_symbols
