	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_phy_wr_tx_mux
_brcms_phy_wr_tx_mux:                   ## @brcms_phy_wr_tx_mux
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_PHY_IPA
	movq	%rax, %rbx
	movl	8(%r14), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_RADIO_2057_TX0_TX_SSI_MUX@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.14:
	movq	_RADIO_2057_TX0_TX_SSI_MUX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_RADIO_2056_TX_TX_SSI_MUX@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_8
## %bb.9:
	movq	_RADIO_2056_TX0@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_3:
	movq	_RADIO_2057_TX1_TX_SSI_MUX@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_18:
	movq	_RADIO_2056_TX_TX_SSI_MUX@GOTPCREL(%rip), %rax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_19
## %bb.20:
	movq	_RADIO_2056_TX0@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_13:
	movq	_RADIO_2057_TX1_TX_SSI_MUX@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$17, %edx
	callq	_write_radio_reg
	movq	(%r14), %rax
	movq	_BCM2057_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.16:
	movq	_RADIO_2057_IQTEST_SEL_PU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	jmp	LBB0_17
LBB0_8:
	movq	_RADIO_2056_TX1@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_6:
	movl	16(%r14), %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx), %edx
	addl	$12, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_radio_reg                ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_RADIO_2056_TX1@GOTPCREL(%rip), %rcx
LBB0_21:
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$17, %edx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_RADIO_2057_TX0_TX_SSI_MUX,4,2  ## @RADIO_2057_TX0_TX_SSI_MUX
	.comm	_RADIO_2057_TX1_TX_SSI_MUX,4,2  ## @RADIO_2057_TX1_TX_SSI_MUX
	.comm	_RADIO_2056_TX_TX_SSI_MUX,4,2   ## @RADIO_2056_TX_TX_SSI_MUX
	.comm	_RADIO_2056_TX0,4,2             ## @RADIO_2056_TX0
	.comm	_RADIO_2056_TX1,4,2             ## @RADIO_2056_TX1
	.comm	_BCM2057_ID,8,3                 ## @BCM2057_ID
	.comm	_RADIO_2057_IQTEST_SEL_PU,4,2   ## @RADIO_2057_IQTEST_SEL_PU
	.no_dead_strip	_brcms_phy_wr_tx_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_phy_wr_tx_mux
_brcms_phy_wr_tx_mux:                   ; @brcms_phy_wr_tx_mux
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_PHY_IPA
	mov	x21, x0
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RADIO_2057_TX0_TX_SSI_MUX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RADIO_2057_TX0_TX_SSI_MUX@GOTPAGEOFF]
Lloh5:
	adrp	x10, _RADIO_2057_TX1_TX_SSI_MUX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RADIO_2057_TX1_TX_SSI_MUX@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
	b	LBB0_7
LBB0_3:
	cbz	x0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x8, _PHY_CORE_0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_CORE_0@GOTPAGEOFF]
Lloh9:
	adrp	x9, _RADIO_2057_TX0_TX_SSI_MUX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADIO_2057_TX0_TX_SSI_MUX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x10, _RADIO_2057_TX1_TX_SSI_MUX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RADIO_2057_TX1_TX_SSI_MUX@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #17
	bl	_write_radio_reg
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _BCM2057_ID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BCM2057_ID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
Lloh17:
	adrp	x8, _RADIO_2057_IQTEST_SEL_PU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RADIO_2057_IQTEST_SEL_PU@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _PHY_CORE_0@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PHY_CORE_0@GOTPAGEOFF]
Lloh25:
	adrp	x10, _RADIO_2056_TX0@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RADIO_2056_TX0@GOTPAGEOFF]
Lloh27:
	adrp	x11, _RADIO_2056_TX1@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RADIO_2056_TX1@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x20
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w20, w9, w8
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	mov	w8, #12
	mov	w9, #14
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	x1, x20
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_write_radio_reg
LBB0_9:
Lloh30:
	adrp	x8, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RADIO_2056_TX_TX_SSI_MUX@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _PHY_CORE_0@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PHY_CORE_0@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
Lloh36:
	adrp	x10, _RADIO_2056_TX0@GOTPAGE
Lloh37:
	ldr	x10, [x10, _RADIO_2056_TX0@GOTPAGEOFF]
Lloh38:
	adrp	x11, _RADIO_2056_TX1@GOTPAGE
Lloh39:
	ldr	x11, [x11, _RADIO_2056_TX1@GOTPAGEOFF]
	cmp	x9, x20
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #17
	b	LBB0_8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh29
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_RADIO_2057_TX0_TX_SSI_MUX,4,2  ; @RADIO_2057_TX0_TX_SSI_MUX
	.comm	_RADIO_2057_TX1_TX_SSI_MUX,4,2  ; @RADIO_2057_TX1_TX_SSI_MUX
	.comm	_RADIO_2056_TX_TX_SSI_MUX,4,2   ; @RADIO_2056_TX_TX_SSI_MUX
	.comm	_RADIO_2056_TX0,4,2             ; @RADIO_2056_TX0
	.comm	_RADIO_2056_TX1,4,2             ; @RADIO_2056_TX1
	.comm	_BCM2057_ID,8,3                 ; @BCM2057_ID
	.comm	_RADIO_2057_IQTEST_SEL_PU,4,2   ; @RADIO_2057_IQTEST_SEL_PU
	.no_dead_strip	_brcms_phy_wr_tx_mux
.subsections_via_symbols
