	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _brcms_c_stf_phy_txant_upd
__brcms_c_stf_phy_txant_upd:            ## @_brcms_c_stf_phy_txant_upd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rdi), %rdi
	movq	8(%rax), %rbx
	callq	_BRCMS_PHY_11N_CAP
	movq	_ANT_TX_FORCE_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	cmpq	%rcx, %rbx
	jne	LBB0_3
## %bb.2:
	movq	_PHY_TXC_ANT_0@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	cmpq	%rcx, %rbx
	jne	LBB0_14
## %bb.13:
	movq	_PHY_TXC_OLD_ANT_0@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	_ANT_TX_FORCE_1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.4:
	movq	_PHY_TXC_ANT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	16(%r14), %rdi
	callq	_BRCMS_ISNPHY
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$7, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	_PHY_TXC_ANT_2@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_ANT_TX_FORCE_1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_16
## %bb.15:
	movq	_PHY_TXC_OLD_ANT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	movq	16(%r14), %rdi
	callq	_BRCMS_ISLCNPHY
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	16(%r14), %rdi
	callq	_BRCMS_ISSSLPNPHY
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_PHY_TXC_LCNPHY_ANT_LAST@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_PHY_TXC_OLD_ANT_LAST@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	(%r14), %rdx
LBB0_18:
	movl	%eax, (%rdx)
LBB0_19:
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_brcms_b_txant_set              ## TAILCALL
LBB0_11:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	setle	%dil
	callq	_WARN_ON
	movq	(%r14), %rdx
	movl	4(%rdx), %eax
	movq	_PHY_TXC_ANT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ANT_TX_FORCE_0,8,3             ## @ANT_TX_FORCE_0
	.comm	_PHY_TXC_ANT_0,4,2              ## @PHY_TXC_ANT_0
	.comm	_ANT_TX_FORCE_1,8,3             ## @ANT_TX_FORCE_1
	.comm	_PHY_TXC_ANT_1,4,2              ## @PHY_TXC_ANT_1
	.comm	_PHY_TXC_ANT_2,4,2              ## @PHY_TXC_ANT_2
	.comm	_PHY_TXC_LCNPHY_ANT_LAST,4,2    ## @PHY_TXC_LCNPHY_ANT_LAST
	.comm	_PHY_TXC_ANT_SHIFT,4,2          ## @PHY_TXC_ANT_SHIFT
	.comm	_PHY_TXC_OLD_ANT_0,4,2          ## @PHY_TXC_OLD_ANT_0
	.comm	_PHY_TXC_OLD_ANT_1,4,2          ## @PHY_TXC_OLD_ANT_1
	.comm	_PHY_TXC_OLD_ANT_LAST,4,2       ## @PHY_TXC_OLD_ANT_LAST
	.no_dead_strip	__brcms_c_stf_phy_txant_upd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _brcms_c_stf_phy_txant_upd
__brcms_c_stf_phy_txant_upd:            ; @_brcms_c_stf_phy_txant_upd
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	ldr	x0, [x0, #16]
	bl	_BRCMS_PHY_11N_CAP
Lloh0:
	adrp	x8, _ANT_TX_FORCE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANT_TX_FORCE_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	cbz	x0, LBB0_3
; %bb.1:
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PHY_TXC_ANT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_TXC_ANT_0@GOTPAGEOFF]
	b	LBB0_16
LBB0_3:
	b.ne	LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _PHY_TXC_OLD_ANT_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_TXC_OLD_ANT_0@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
Lloh7:
	adrp	x8, _ANT_TX_FORCE_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ANT_TX_FORCE_1@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_12
; %bb.6:
Lloh10:
	adrp	x8, _PHY_TXC_ANT_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_TXC_ANT_1@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	ldr	x0, [x19, #16]
	bl	_BRCMS_ISNPHY
	cbz	x0, LBB0_18
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_18
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	w1, #7
	bl	_NREV_LT
	cbz	x0, LBB0_18
; %bb.9:
Lloh13:
	adrp	x8, _PHY_TXC_ANT_2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PHY_TXC_ANT_2@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
Lloh15:
	adrp	x8, _ANT_TX_FORCE_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ANT_TX_FORCE_1@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_15
; %bb.11:
Lloh18:
	adrp	x8, _PHY_TXC_OLD_ANT_1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHY_TXC_OLD_ANT_1@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_BRCMS_ISLCNPHY
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x19, #16]
	bl	_BRCMS_ISSSLPNPHY
	cbz	x0, LBB0_19
LBB0_14:
Lloh20:
	adrp	x8, _PHY_TXC_LCNPHY_ANT_LAST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHY_TXC_LCNPHY_ANT_LAST@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh22:
	adrp	x8, _PHY_TXC_OLD_ANT_LAST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PHY_TXC_OLD_ANT_LAST@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	ldr	x9, [x19]
LBB0_17:
	str	w8, [x9]
LBB0_18:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_brcms_b_txant_set
LBB0_19:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	cset	w0, lt
	bl	_WARN_ON
	ldr	x9, [x19]
	ldr	w8, [x9, #4]
Lloh24:
	adrp	x10, _PHY_TXC_ANT_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PHY_TXC_ANT_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ANT_TX_FORCE_0,8,3             ; @ANT_TX_FORCE_0
	.comm	_PHY_TXC_ANT_0,4,2              ; @PHY_TXC_ANT_0
	.comm	_ANT_TX_FORCE_1,8,3             ; @ANT_TX_FORCE_1
	.comm	_PHY_TXC_ANT_1,4,2              ; @PHY_TXC_ANT_1
	.comm	_PHY_TXC_ANT_2,4,2              ; @PHY_TXC_ANT_2
	.comm	_PHY_TXC_LCNPHY_ANT_LAST,4,2    ; @PHY_TXC_LCNPHY_ANT_LAST
	.comm	_PHY_TXC_ANT_SHIFT,4,2          ; @PHY_TXC_ANT_SHIFT
	.comm	_PHY_TXC_OLD_ANT_0,4,2          ; @PHY_TXC_OLD_ANT_0
	.comm	_PHY_TXC_OLD_ANT_1,4,2          ; @PHY_TXC_OLD_ANT_1
	.comm	_PHY_TXC_OLD_ANT_LAST,4,2       ; @PHY_TXC_OLD_ANT_LAST
	.no_dead_strip	__brcms_c_stf_phy_txant_upd
.subsections_via_symbols
