	.file	"extr_cmmsta.c_zfStaGetTxRate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfStaGetTxRate
	.type	zfStaGetTxRate, @function
zfStaGetTxRate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	call	zmw_get_wlan_dev@PLT
	xor	eax, eax
	call	zmw_declare_for_critical_section@PLT
	mov	rdi, rbp
	mov	rsi, r12
	call	ZM_MAC_WORD_TO_BYTE@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	DWORD PTR [r14], 0
	mov	rdi, r13
	mov	rdx, QWORD PTR ZM_MODE_INFRASTRUCTURE[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L15
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	xor	ebx, ebx
	cmp	QWORD PTR 8[rax], 0
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 8[rcx]
	mov	edx, 6
	mov	rdi, r12
	call	zfMemoryIsEqual@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR wd[rip]
	add	rbx, 1
	cmp	QWORD PTR 8[rax], rbx
	jbe	.L5
.L4:
	mov	rcx, QWORD PTR 16[rax]
	mov	rbp, rbx
	sal	rbp, 4
	add	rcx, rbp
	cmp	QWORD PTR [rsp], 0
	je	.L6
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR zcRateToPhyCtrl[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [r14], eax
.L5:
	mov	rdi, r13
	call	zmw_leave_critical_section@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rdi, r13
	mov	rdx, r15
	mov	rsi, QWORD PTR 16[rax]
	call	zfRateCtrlGetTxRate@PLT
	mov	rdi, r13
	mov	r8, rax
	mov	rax, QWORD PTR zcRateToPhyCtrl[rip]
	mov	eax, DWORD PTR [rax+r8*4]
	mov	DWORD PTR [r14], eax
	call	zmw_leave_critical_section@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR wd[rip]
	mov	rdx, r15
	mov	rdi, r13
	mov	rsi, QWORD PTR 16[rax]
	add	rsi, rbp
	call	zfRateCtrlGetTxRate@PLT
	mov	r8, rax
	mov	rax, QWORD PTR zcRateToPhyCtrl[rip]
	mov	eax, DWORD PTR [rax+r8*4]
	mov	DWORD PTR [r14], eax
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfStaGetTxRate, .-zfStaGetTxRate
	.comm	zcRateToPhyCtrl,8,8
	.comm	wd,8,8
	.comm	ZM_MODE_INFRASTRUCTURE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmmsta.c_zfStaGetTxRate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zfStaGetTxRate
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfStaGetTxRate, %function
zfStaGetTxRate:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r9, r1
	mov	r7, r2
	mov	r6, r0
	mov	r4, #0
	mov	r8, r3
	ldr	r3, .L17
	sub	sp, sp, #36
	ldr	r5, .L17+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	zmw_get_wlan_dev
	bl	zmw_declare_for_critical_section
	mov	r0, r9
	add	r1, sp, #4
	bl	ZM_MAC_WORD_TO_BYTE
	ldr	r2, [r5]
	ldr	r3, .L17+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	cmp	r2, r3
	str	r4, [r7]
	beq	.L14
	bl	zmw_enter_critical_section
	ldr	r1, [r5]
	ldr	r3, [r1, #4]
	cmp	r3, #0
	bne	.L4
	b	.L5
.L6:
	mov	r2, #6
	ldr	r1, [r1, #4]
	add	r0, sp, #4
	bl	zfMemoryIsEqual
	cmp	r0, #0
	bne	.L15
	ldr	r1, [r5]
	add	r4, r4, #1
	ldr	r3, [r1, #4]
	cmp	r3, r4
	bls	.L5
.L4:
	ldr	r3, [sp, #4]
	ldr	r1, [r1, #8]
	cmp	r3, #0
	add	r1, r1, r4, lsl #3
	lsl	r9, r4, #3
	beq	.L6
	ldr	r2, [r1]
	ldr	r3, .L17+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r7]
.L5:
	mov	r0, r6
	bl	zmw_leave_critical_section
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	zmw_enter_critical_section
	ldr	r3, [r5]
	mov	r2, r8
	ldr	r1, [r3, #8]
	mov	r0, r6
	bl	zfRateCtrlGetTxRate
	mov	r2, r0
	ldr	r3, .L17+12
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [r7]
	bl	zmw_leave_critical_section
	b	.L1
.L15:
	ldr	r3, [r5]
	mov	r2, r8
	ldr	r1, [r3, #8]
	mov	r0, r6
	add	r1, r1, r9
	bl	zfRateCtrlGetTxRate
	ldr	r3, .L17+12
	ldr	r3, [r3]
	ldr	r3, [r3, r0, lsl #2]
	str	r3, [r7]
	b	.L5
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	wd
	.word	ZM_MODE_INFRASTRUCTURE
	.word	zcRateToPhyCtrl
	.size	zfStaGetTxRate, .-zfStaGetTxRate
	.comm	zcRateToPhyCtrl,4,4
	.comm	wd,4,4
	.comm	ZM_MODE_INFRASTRUCTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
