	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_stf_ss_algo_channel_get ## -- Begin function brcms_c_stf_ss_algo_channel_get
	.p2align	4, 0x90
_brcms_c_stf_ss_algo_channel_get:       ## @brcms_c_stf_ss_algo_channel_get
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	$0, -40(%rbp)
	movq	$0, (%rsi)
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	movq	%rdx, %rdi
	callq	_CHSPEC_CHANNEL
	leaq	-40(%rbp), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_wlc_phy_txpower_get_current
	movq	%rbx, %rdi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_WL_TX_POWER_MCS20_SISO_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	$-1, (%r14)
	jmp	LBB0_16
LBB0_3:
	movq	_WL_TX_POWER_MCS40_SISO_FIRST@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_WL_TX_POWER_MCS20_CDD_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_WL_TX_POWER_MCS40_CDD_FIRST@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_WL_TX_POWER_MCS20_STBC_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_WL_TX_POWER_MCS40_STBC_FIRST@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rbx
	movq	-40(%rbp), %rax
	movq	(%rax,%r12,8), %rcx
	addq	$12, %rcx
	cmpq	%rcx, (%rax,%r15,8)
	jle	LBB0_12
## %bb.13:
	movq	_PHY_TXC1_MODE_SISO@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_PHY_TXC1_MODE_CDD@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_setbit
	movq	-40(%rbp), %rax
	movq	(%rax,%rbx,8), %rcx
	addq	$12, %rcx
	cmpq	%rcx, (%rax,%r15,8)
	jg	LBB0_16
## %bb.15:
	movq	_PHY_TXC1_MODE_STBC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_setbit
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_TX_POWER_MCS40_SISO_FIRST,8,3 ## @WL_TX_POWER_MCS40_SISO_FIRST
	.comm	_WL_TX_POWER_MCS20_SISO_FIRST,8,3 ## @WL_TX_POWER_MCS20_SISO_FIRST
	.comm	_WL_TX_POWER_MCS40_CDD_FIRST,8,3 ## @WL_TX_POWER_MCS40_CDD_FIRST
	.comm	_WL_TX_POWER_MCS20_CDD_FIRST,8,3 ## @WL_TX_POWER_MCS20_CDD_FIRST
	.comm	_WL_TX_POWER_MCS40_STBC_FIRST,8,3 ## @WL_TX_POWER_MCS40_STBC_FIRST
	.comm	_WL_TX_POWER_MCS20_STBC_FIRST,8,3 ## @WL_TX_POWER_MCS20_STBC_FIRST
	.comm	_PHY_TXC1_MODE_SISO,4,2         ## @PHY_TXC1_MODE_SISO
	.comm	_PHY_TXC1_MODE_CDD,4,2          ## @PHY_TXC1_MODE_CDD
	.comm	_PHY_TXC1_MODE_STBC,4,2         ## @PHY_TXC1_MODE_STBC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_stf_ss_algo_channel_get ; -- Begin function brcms_c_stf_ss_algo_channel_get
	.p2align	2
_brcms_c_stf_ss_algo_channel_get:       ; @brcms_c_stf_ss_algo_channel_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	str	xzr, [sp, #8]
	str	xzr, [x1]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x2
	ldr	x8, [x0]
	ldr	w21, [x8]
	mov	x0, x2
	bl	_CHSPEC_CHANNEL
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_wlc_phy_txpower_get_current
	mov	x0, x20
	bl	_CHSPEC_IS40
Lloh0:
	adrp	x8, _WL_TX_POWER_MCS40_SISO_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL_TX_POWER_MCS40_SISO_FIRST@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WL_TX_POWER_MCS20_SISO_FIRST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WL_TX_POWER_MCS20_SISO_FIRST@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x21, [x8]
	mov	x0, x20
	bl	_CHSPEC_IS40
Lloh4:
	adrp	x8, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WL_TX_POWER_MCS40_CDD_FIRST@GOTPAGEOFF]
Lloh6:
	adrp	x9, _WL_TX_POWER_MCS20_CDD_FIRST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WL_TX_POWER_MCS20_CDD_FIRST@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x22, [x8]
	mov	x0, x20
	bl	_CHSPEC_IS40
Lloh8:
	adrp	x8, _WL_TX_POWER_MCS40_STBC_FIRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL_TX_POWER_MCS40_STBC_FIRST@GOTPAGEOFF]
Lloh10:
	adrp	x9, _WL_TX_POWER_MCS20_STBC_FIRST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WL_TX_POWER_MCS20_STBC_FIRST@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x20, [x8]
	ldr	x8, [sp, #8]
	lsl	x21, x21, #3
	ldr	x9, [x8, x21]
	ldr	x8, [x8, x22, lsl #3]
Lloh12:
	adrp	x10, _PHY_TXC1_MODE_SISO@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PHY_TXC1_MODE_SISO@GOTPAGEOFF]
	add	x8, x8, #12
Lloh14:
	adrp	x11, _PHY_TXC1_MODE_CDD@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PHY_TXC1_MODE_CDD@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, gt
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setbit
	ldr	x8, [sp, #8]
	ldr	x9, [x8, x21]
	ldr	x8, [x8, x20, lsl #3]
	add	x8, x8, #12
	cmp	x9, x8
	b.gt	LBB0_4
; %bb.2:
Lloh16:
	adrp	x8, _PHY_TXC1_MODE_STBC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PHY_TXC1_MODE_STBC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setbit
	b	LBB0_4
LBB0_3:
	mov	x8, #-1
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_TX_POWER_MCS40_SISO_FIRST,8,3 ; @WL_TX_POWER_MCS40_SISO_FIRST
	.comm	_WL_TX_POWER_MCS20_SISO_FIRST,8,3 ; @WL_TX_POWER_MCS20_SISO_FIRST
	.comm	_WL_TX_POWER_MCS40_CDD_FIRST,8,3 ; @WL_TX_POWER_MCS40_CDD_FIRST
	.comm	_WL_TX_POWER_MCS20_CDD_FIRST,8,3 ; @WL_TX_POWER_MCS20_CDD_FIRST
	.comm	_WL_TX_POWER_MCS40_STBC_FIRST,8,3 ; @WL_TX_POWER_MCS40_STBC_FIRST
	.comm	_WL_TX_POWER_MCS20_STBC_FIRST,8,3 ; @WL_TX_POWER_MCS20_STBC_FIRST
	.comm	_PHY_TXC1_MODE_SISO,4,2         ; @PHY_TXC1_MODE_SISO
	.comm	_PHY_TXC1_MODE_CDD,4,2          ; @PHY_TXC1_MODE_CDD
	.comm	_PHY_TXC1_MODE_STBC,4,2         ; @PHY_TXC1_MODE_STBC
.subsections_via_symbols
