	.file	"extr_cmm.c_zfSendProbeReq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfSendProbeReq
	.type	zfSendProbeReq, @function
zfSendProbeReq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r12, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	lea	r15, 1[rbx]
	lea	r14, 2[rbx]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	zmw_get_wlan_dev@PLT
	xor	eax, eax
	call	zmw_declare_for_critical_section@PLT
	test	r12d, r12d
	jne	.L2
	mov	rcx, QWORD PTR ZM_WLAN_EID_SSID[rip]
	mov	edx, ebx
	mov	rsi, r13
	mov	rdi, rbp
	call	zmw_tx_buf_writeb@PLT
	xor	ecx, ecx
	mov	edx, r15d
	mov	rsi, r13
	mov	rdi, rbp
	call	zmw_tx_buf_writeb@PLT
.L3:
	mov	rax, QWORD PTR wd[rip]
	mov	ecx, DWORD PTR ZM_WLAN_EID_SUPPORT_RATE[rip]
	cmp	DWORD PTR 24[rax], 2999
	jg	.L6
	mov	r8d, DWORD PTR ZM_RATE_SET_CCK[rip]
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	zfMmAddIeSupportRate@PLT
	mov	rcx, QWORD PTR wd[rip]
	mov	edx, DWORD PTR ZM_WIRELESS_MODE_24_54[rip]
	or	edx, DWORD PTR ZM_WIRELESS_MODE_24_N[rip]
	test	DWORD PTR [rcx], edx
	je	.L1
	mov	rbx, QWORD PTR ZM_MODE_IBSS[rip]
	cmp	QWORD PTR 8[rcx], rbx
	jne	.L8
	cmp	QWORD PTR 16[rcx], 0
	jne	.L8
.L1:
	add	rsp, 24
	.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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	sal	r12, 4
	call	zmw_enter_critical_section@PLT
	mov	rax, QWORD PTR wd[rip]
	lea	r8, -16[r12]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -16[rax+r12], 0
	je	.L15
	mov	rcx, QWORD PTR ZM_WLAN_EID_SSID[rip]
	mov	edx, ebx
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], r8
	call	zmw_tx_buf_writeb@PLT
	mov	edx, r15d
	mov	rsi, r13
	mov	rdi, rbp
	mov	rax, QWORD PTR wd[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rcx, QWORD PTR -16[rax+r12]
	call	zmw_tx_buf_writeb@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rcx, r14
	mov	rsi, r13
	mov	rax, QWORD PTR wd[rip]
	mov	rdi, rbp
	add	r8, QWORD PTR 32[rax]
	mov	edx, DWORD PTR 8[r8]
	mov	r8, QWORD PTR [r8]
	call	zfCopyToIntTxBuffer@PLT
	mov	rax, QWORD PTR wd[rip]
	mov	rax, QWORD PTR 32[rax]
	add	r14, QWORD PTR -16[rax+r12]
.L5:
	mov	rdi, rbp
	call	zmw_leave_critical_section@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR ZM_RATE_SET_OFDM[rip]
	mov	rdx, r14
.L13:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, rbp
	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
	jmp	zfMmAddIeSupportRate@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rcx, QWORD PTR ZM_WLAN_EID_SSID[rip]
	mov	edx, ebx
	mov	rsi, r13
	mov	rdi, rbp
	call	zmw_tx_buf_writeb@PLT
	xor	ecx, ecx
	mov	edx, r15d
	mov	rsi, r13
	mov	rdi, rbp
	call	zmw_tx_buf_writeb@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r8d, DWORD PTR ZM_RATE_SET_OFDM[rip]
	mov	ecx, DWORD PTR ZM_WLAN_EID_EXTENDED_RATE[rip]
	mov	rdx, rax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	zfSendProbeReq, .-zfSendProbeReq
	.comm	wd,8,8
	.comm	ZM_WLAN_EID_SUPPORT_RATE,4,4
	.comm	ZM_WLAN_EID_SSID,8,8
	.comm	ZM_WLAN_EID_EXTENDED_RATE,4,4
	.comm	ZM_WIRELESS_MODE_24_N,4,4
	.comm	ZM_WIRELESS_MODE_24_54,4,4
	.comm	ZM_RATE_SET_OFDM,4,4
	.comm	ZM_RATE_SET_CCK,4,4
	.comm	ZM_MODE_IBSS,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_cmm.c_zfSendProbeReq.c"
	.text
	.align	2
	.global	zfSendProbeReq
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfSendProbeReq, %function
zfSendProbeReq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r10, r2
	sub	sp, sp, #20
	mov	r6, r1
	mov	r4, r0
	bl	zmw_get_wlan_dev
	bl	zmw_declare_for_critical_section
	cmp	r5, #0
	add	r9, r10, #1
	add	r8, r10, #2
	bne	.L2
	ldr	r3, .L18
	mov	r2, r10
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r4
	bl	zmw_tx_buf_writeb
	mov	r3, r5
	mov	r2, r9
	mov	r1, r6
	mov	r0, r4
	bl	zmw_tx_buf_writeb
	ldr	r7, .L18+4
.L3:
	ldr	r3, [r7]
	ldr	r2, .L18+8
	ldr	r1, [r3, #12]
	ldr	r3, .L18+12
	cmp	r1, r2
	ldr	r3, [r3]
	bgt	.L6
	ldr	r2, .L18+16
	mov	r0, r4
	ldr	r1, [r2]
	mov	r2, r8
	str	r1, [sp]
	mov	r1, r6
	bl	zfMmAddIeSupportRate
	ldr	r1, .L18+20
	ldr	r3, .L18+24
	ldr	r2, [r7]
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	orr	r3, r3, ip
	tst	r3, r1
	beq	.L1
	ldr	r3, .L18+28
	ldr	r1, [r2, #4]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L8
	ldr	r3, [r2, #8]
	cmp	r3, #0
	bne	.L8
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r2, .L18+32
	mov	r1, r6
	ldr	ip, [r2]
	mov	r0, r4
	mov	r2, r8
	str	ip, [sp]
	bl	zfMmAddIeSupportRate
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r7, .L18+4
	mov	r0, r4
	bl	zmw_enter_critical_section
	ldr	r3, [r7]
	sub	r5, r5, #-536870911
	ldr	r3, [r3, #16]
	lsl	r2, r5, #3
	ldr	fp, [r3, r5, lsl #3]
	ldr	r3, .L18
	cmp	fp, #0
	str	r2, [sp, #12]
	mov	r1, r6
	mov	r2, r10
	mov	r0, r4
	ldr	r3, [r3]
	beq	.L17
	bl	zmw_tx_buf_writeb
	ldr	r3, [r7]
	mov	r2, r9
	ldr	r3, [r3, #16]
	mov	r1, r6
	ldr	r3, [r3, r5, lsl #3]
	mov	r0, r4
	bl	zmw_tx_buf_writeb
	ldr	r2, [r7]
	mov	r3, r8
	ldr	r0, [r2, #16]
	lsl	r2, r5, #3
	add	r10, r0, r2
	ldr	r0, [r0, r5, lsl #3]
	ldr	r2, [r10, #4]
	mov	r1, r6
	str	r0, [sp]
	mov	r0, r4
	bl	zfCopyToIntTxBuffer
	ldr	r3, [r7]
	ldr	r3, [r3, #16]
	ldr	r3, [r3, r5, lsl #3]
	add	r8, r8, r3
.L5:
	mov	r0, r4
	bl	zmw_leave_critical_section
	b	.L3
.L17:
	bl	zmw_tx_buf_writeb
	mov	r3, fp
	mov	r2, r9
	mov	r1, r6
	mov	r0, r4
	bl	zmw_tx_buf_writeb
	b	.L5
.L8:
	ldr	r2, .L18+32
	ldr	r3, .L18+36
	ldr	ip, [r2]
	mov	r1, r6
	str	ip, [sp]
	mov	r2, r0
	ldr	r3, [r3]
	mov	r0, r4
	bl	zfMmAddIeSupportRate
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	ZM_WLAN_EID_SSID
	.word	wd
	.word	2999
	.word	ZM_WLAN_EID_SUPPORT_RATE
	.word	ZM_RATE_SET_CCK
	.word	ZM_WIRELESS_MODE_24_N
	.word	ZM_WIRELESS_MODE_24_54
	.word	ZM_MODE_IBSS
	.word	ZM_RATE_SET_OFDM
	.word	ZM_WLAN_EID_EXTENDED_RATE
	.size	zfSendProbeReq, .-zfSendProbeReq
	.comm	wd,4,4
	.comm	ZM_WLAN_EID_SUPPORT_RATE,4,4
	.comm	ZM_WLAN_EID_SSID,4,4
	.comm	ZM_WLAN_EID_EXTENDED_RATE,4,4
	.comm	ZM_WIRELESS_MODE_24_N,4,4
	.comm	ZM_WIRELESS_MODE_24_54,4,4
	.comm	ZM_RATE_SET_OFDM,4,4
	.comm	ZM_RATE_SET_CCK,4,4
	.comm	ZM_MODE_IBSS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
