	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_lcnphy_epa_switch          ## -- Begin function wlc_lcnphy_epa_switch
	.p2align	4, 0x90
_wlc_lcnphy_epa_switch:                 ## @wlc_lcnphy_epa_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	_BCMA_CHIP_ID_BCM4313@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.1:
	movq	_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_6
## %bb.3:
	movl	12(%rax), %edi
	callq	_wlapi_bmac_get_txant
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1100, %esi                     ## imm = 0x44C
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bcma_chipco_gpio_control
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	$-65, %esi
	movl	$64, %edx
	callq	_bcma_chipco_gpio_out
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	$-65, %esi
	movl	$64, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_chipco_gpio_outen         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movl	$1100, %esi                     ## imm = 0x44C
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	$-65, %esi
	xorl	%edx, %edx
	callq	_bcma_chipco_gpio_out
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	$-65, %esi
	xorl	%edx, %edx
	callq	_bcma_chipco_gpio_outen
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcma_chipco_gpio_control       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CHIP_ID_BCM4313,8,3       ## @BCMA_CHIP_ID_BCM4313
	.comm	_BFL_FEM,4,2                    ## @BFL_FEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_lcnphy_epa_switch          ; -- Begin function wlc_lcnphy_epa_switch
	.p2align	2
_wlc_lcnphy_epa_switch:                 ; @wlc_lcnphy_epa_switch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _BCMA_CHIP_ID_BCM4313@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BCMA_CHIP_ID_BCM4313@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x8, #8]
Lloh3:
	adrp	x10, _BFL_FEM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BFL_FEM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.2:
	mov	x19, x0
	cbz	w1, LBB0_7
; %bb.3:
	ldr	w0, [x8, #12]
	bl	_wlapi_bmac_get_txant
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1101
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1100
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
LBB0_5:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_bcma_chipco_gpio_control
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #-65
	mov	w2, #64
	bl	_bcma_chipco_gpio_out
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #-65
	mov	w2, #64
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_chipco_gpio_outen
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #1100
	mov	w2, #4
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1101
	mov	w2, #4
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #-65
	mov	w2, #0
	bl	_bcma_chipco_gpio_out
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #-65
	mov	w2, #0
	bl	_bcma_chipco_gpio_outen
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #64
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_chipco_gpio_control
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CHIP_ID_BCM4313,8,3       ; @BCMA_CHIP_ID_BCM4313
	.comm	_BFL_FEM,4,2                    ; @BFL_FEM
.subsections_via_symbols
