	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_beacon_phytxctl_txant_upd ## -- Begin function brcms_c_beacon_phytxctl_txant_upd
	.p2align	4, 0x90
_brcms_c_beacon_phytxctl_txant_upd:     ## @brcms_c_beacon_phytxctl_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	movq	_PHY_TXC_ANT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%rdi), %edi
	callq	_BRCMS_PHY_11N_CAP
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_brcms_c_stf_phytxchain_sel
	movl	%eax, %r15d
LBB0_2:
	movl	(%r14), %edi
	movq	_M_BCN_PCTLWD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_brcms_b_read_shm
	notl	%ebx
	andl	%eax, %ebx
	orl	%r15d, %ebx
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_b_write_shm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TXC_ANT_MASK,4,2           ## @PHY_TXC_ANT_MASK
	.comm	_M_BCN_PCTLWD,4,2               ## @M_BCN_PCTLWD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_beacon_phytxctl_txant_upd ; -- Begin function brcms_c_beacon_phytxctl_txant_upd
	.p2align	2
_brcms_c_beacon_phytxctl_txant_upd:     ; @brcms_c_beacon_phytxctl_txant_upd
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _PHY_TXC_ANT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_TXC_ANT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x0, #4]
	bl	_BRCMS_PHY_11N_CAP
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_brcms_c_stf_phytxchain_sel
	mov	x20, x0
LBB0_2:
	ldr	w0, [x19]
Lloh3:
	adrp	x21, _M_BCN_PCTLWD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _M_BCN_PCTLWD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_brcms_b_read_shm
	bic	w8, w0, w22
	orr	w2, w8, w20
	ldr	w0, [x19]
	ldr	w1, [x21]
	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	_brcms_b_write_shm
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TXC_ANT_MASK,4,2           ; @PHY_TXC_ANT_MASK
	.comm	_M_BCN_PCTLWD,4,2               ; @M_BCN_PCTLWD
.subsections_via_symbols
