	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_stf_attach             ## -- Begin function brcms_c_stf_attach
	.p2align	4, 0x90
_brcms_c_stf_attach:                    ## @brcms_c_stf_attach
	.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
	movq	%rdi, %rbx
	movq	_PHY_TXC1_MODE_SISO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %rcx
	movq	_BAND_2G_INDEX@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	%rax, 8(%rdx)
	movq	_PHY_TXC1_MODE_CDD@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_BAND_5G_INDEX@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rdi), %rdi
	callq	_BRCMS_ISNPHY
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_wlc_phy_txpower_hw_ctrl_get
	movq	_PHY_TPC_HW_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movq	8(%rbx), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 8(%rcx)
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%rbx, %rdi
	callq	_brcms_c_stf_ss_update
	movq	8(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%rbx, %rdi
	callq	_brcms_c_stf_ss_update
	movq	_HT_CAP_RX_STBC_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_brcms_c_stf_stbc_rx_ht_update
	movq	_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rbx), %rdx
	movq	(%r14), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rcx, (%rsi)
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_BRCMS_STBC_CAP_PHY
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	$-1, 8(%rax)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TXC1_MODE_SISO,8,3         ## @PHY_TXC1_MODE_SISO
	.comm	_BAND_2G_INDEX,8,3              ## @BAND_2G_INDEX
	.comm	_PHY_TXC1_MODE_CDD,8,3          ## @PHY_TXC1_MODE_CDD
	.comm	_BAND_5G_INDEX,8,3              ## @BAND_5G_INDEX
	.comm	_PHY_TPC_HW_ON,8,3              ## @PHY_TPC_HW_ON
	.comm	_HT_CAP_RX_STBC_NO,4,2          ## @HT_CAP_RX_STBC_NO
	.comm	_OFF,8,3                        ## @OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_stf_attach             ; -- Begin function brcms_c_stf_attach
	.p2align	2
_brcms_c_stf_attach:                    ; @brcms_c_stf_attach
	.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	x19, x0
Lloh0:
	adrp	x8, _PHY_TXC1_MODE_SISO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_TXC1_MODE_SISO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _BAND_2G_INDEX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BAND_2G_INDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	ldp	x10, x0, [x0, #8]
	ldr	x9, [x10, x9, lsl #3]
Lloh5:
	adrp	x22, _PHY_TXC1_MODE_CDD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PHY_TXC1_MODE_CDD@GOTPAGEOFF]
Lloh7:
	adrp	x21, _BAND_5G_INDEX@GOTPAGE
Lloh8:
	ldr	x21, [x21, _BAND_5G_INDEX@GOTPAGEOFF]
	str	x8, [x9, #8]
	ldr	x8, [x21]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x9, [x22]
	str	x9, [x8, #8]
	bl	_BRCMS_ISNPHY
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_wlc_phy_txpower_hw_ctrl_get
Lloh9:
	adrp	x8, _PHY_TPC_HW_ON@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_TPC_HW_ON@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	ldr	x9, [x9, x10, lsl #3]
	str	x8, [x9, #8]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_brcms_c_stf_ss_update
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_brcms_c_stf_ss_update
Lloh12:
	adrp	x8, _HT_CAP_RX_STBC_NO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HT_CAP_RX_STBC_NO@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_c_stf_stbc_rx_ht_update
Lloh15:
	adrp	x8, _OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OFF@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	ldr	x11, [x20]
	ldr	x11, [x10, x11, lsl #3]
	str	x9, [x11]
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x9, [x10, x9, lsl #3]
	str	x8, [x9]
	mov	x0, x19
	bl	_BRCMS_STBC_CAP_PHY
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	mov	x9, #-1
	str	x9, [x8, #8]
LBB0_5:
	mov	w0, #0
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TXC1_MODE_SISO,8,3         ; @PHY_TXC1_MODE_SISO
	.comm	_BAND_2G_INDEX,8,3              ; @BAND_2G_INDEX
	.comm	_PHY_TXC1_MODE_CDD,8,3          ; @PHY_TXC1_MODE_CDD
	.comm	_BAND_5G_INDEX,8,3              ; @BAND_5G_INDEX
	.comm	_PHY_TPC_HW_ON,8,3              ; @PHY_TPC_HW_ON
	.comm	_HT_CAP_RX_STBC_NO,4,2          ; @HT_CAP_RX_STBC_NO
	.comm	_OFF,8,3                        ; @OFF
.subsections_via_symbols
