	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl88e_phy_set_rfpath_switch
__rtl88e_phy_set_rfpath_switch:         ## @_rtl88e_phy_set_rfpath_switch
	.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, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_REG_LEDCFG0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	(%r14), %r14d
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_rtl_write_byte
	movq	_RFPGA0_XAB_RFPARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$13, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtl_set_bbreg
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.3:
	movq	_RFPGA0_XB_RFINTERFACEOE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$6, %edi
	callq	_BIT
	orl	%ebx, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	movl	%r14d, %esi
LBB0_5:
	movl	%eax, %edx
	movl	$1, %ecx
	jmp	LBB0_6
LBB0_8:
	movq	_RFPGA0_XAB_RFINTERFACESW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$8, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$9, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_MASKLWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$2324, %esi                     ## imm = 0x914
	movl	$513, %ecx                      ## imm = 0x201
	callq	_rtl_set_bbreg
	movq	_RFPGA0_XA_RFINTERFACEOE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$14, %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	$13, %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	$12, %edi
	callq	_BIT
	orl	%ebx, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	_RFPGA0_XB_RFINTERFACEOE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_rtl_set_bbreg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CGCS_RX_HW_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	movq	_RCONFIG_RAM64x16@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$31, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$2, %ecx
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
LBB0_11:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movq	_RFPGA0_XB_RFINTERFACEOE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_rtl_set_bbreg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CGCS_RX_HW_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_RCONFIG_RAM64x16@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$31, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%ebx, %esi
	jmp	LBB0_5
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_REG_LEDCFG0,4,2                ## @REG_LEDCFG0
	.comm	_RFPGA0_XAB_RFPARAMETER,4,2     ## @RFPGA0_XAB_RFPARAMETER
	.comm	_RFPGA0_XB_RFINTERFACEOE,4,2    ## @RFPGA0_XB_RFINTERFACEOE
	.comm	_RFPGA0_XAB_RFINTERFACESW,4,2   ## @RFPGA0_XAB_RFINTERFACESW
	.comm	_MASKLWORD,4,2                  ## @MASKLWORD
	.comm	_RFPGA0_XA_RFINTERFACEOE,4,2    ## @RFPGA0_XA_RFINTERFACEOE
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ## @CGCS_RX_HW_ANTDIV
	.comm	_RCONFIG_RAM64x16,4,2           ## @RCONFIG_RAM64x16
	.no_dead_strip	__rtl88e_phy_set_rfpath_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl88e_phy_set_rfpath_switch
__rtl88e_phy_set_rfpath_switch:         ; @_rtl88e_phy_set_rfpath_switch
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x23, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x24, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x20, x0
Lloh0:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	bl	_RT_TRACE
	mov	x0, x24
	bl	_is_hal_stop
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x25, _REG_LEDCFG0@GOTPAGE
Lloh9:
	ldr	x25, [x25, _REG_LEDCFG0@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x23
	bl	_rtl_read_byte
	mov	x24, x0
	ldr	w25, [x25]
	mov	w0, #7
	bl	_BIT
	orr	w2, w0, w24
	mov	x0, x23
	mov	x1, x25
	bl	_rtl_write_byte
Lloh10:
	adrp	x8, _RFPGA0_XAB_RFPARAMETER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFPGA0_XAB_RFPARAMETER@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	mov	w0, #13
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	mov	w3, #1
	bl	_rtl_set_bbreg
LBB0_2:
	cbz	w22, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x22, x0
	mov	w0, #6
	bl	_BIT
	orr	w2, w0, w22
	cbz	w21, LBB0_8
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	b	LBB0_9
LBB0_5:
Lloh16:
	adrp	x8, _RFPGA0_XAB_RFINTERFACESW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RFPGA0_XAB_RFINTERFACESW@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	mov	w0, #8
	bl	_BIT
	mov	x23, x0
	mov	w0, #9
	bl	_BIT
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh19:
	adrp	x8, _MASKLWORD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MASKLWORD@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2324
	mov	w3, #513
	bl	_rtl_set_bbreg
Lloh22:
	adrp	x8, _RFPGA0_XA_RFINTERFACEOE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RFPGA0_XA_RFINTERFACEOE@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	mov	w0, #14
	bl	_BIT
	mov	x23, x0
	mov	w0, #13
	bl	_BIT
	orr	w23, w0, w23
	mov	w0, #12
	bl	_BIT
	orr	w2, w23, w0
	mov	x0, x19
	mov	x1, x22
	cbz	w21, LBB0_10
; %bb.6:
	mov	w3, #0
	bl	_rtl_set_bbreg
Lloh25:
	adrp	x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x22, x0
	mov	w0, #4
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #3
	bl	_BIT
	orr	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_rtl_set_bbreg
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _CGCS_RX_HW_ANTDIV@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CGCS_RX_HW_ANTDIV@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
Lloh31:
	adrp	x8, _RCONFIG_RAM64x16@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RCONFIG_RAM64x16@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
	mov	w0, #31
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	w3, #2
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rtl_set_bbreg
LBB0_10:
	mov	w3, #1
	bl	_rtl_set_bbreg
Lloh34:
	adrp	x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RFPGA0_XB_RFINTERFACEOE@GOTPAGEOFF]
Lloh36:
	ldr	w21, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x22, x0
	mov	w0, #4
	bl	_BIT
	orr	w22, w0, w22
	mov	w0, #3
	bl	_BIT
	orr	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_rtl_set_bbreg
	ldr	x8, [x20]
Lloh37:
	adrp	x9, _CGCS_RX_HW_ANTDIV@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CGCS_RX_HW_ANTDIV@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh40:
	adrp	x8, _RCONFIG_RAM64x16@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RCONFIG_RAM64x16@GOTPAGEOFF]
Lloh42:
	ldr	w20, [x8]
	mov	w0, #31
	bl	_BIT
	mov	x2, x0
	b	LBB0_4
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_REG_LEDCFG0,4,2                ; @REG_LEDCFG0
	.comm	_RFPGA0_XAB_RFPARAMETER,4,2     ; @RFPGA0_XAB_RFPARAMETER
	.comm	_RFPGA0_XB_RFINTERFACEOE,4,2    ; @RFPGA0_XB_RFINTERFACEOE
	.comm	_RFPGA0_XAB_RFINTERFACESW,4,2   ; @RFPGA0_XAB_RFINTERFACESW
	.comm	_MASKLWORD,4,2                  ; @MASKLWORD
	.comm	_RFPGA0_XA_RFINTERFACEOE,4,2    ; @RFPGA0_XA_RFINTERFACEOE
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ; @CGCS_RX_HW_ANTDIV
	.comm	_RCONFIG_RAM64x16,4,2           ; @RCONFIG_RAM64x16
	.no_dead_strip	__rtl88e_phy_set_rfpath_switch
.subsections_via_symbols
