	.file	"extr_cmd_sniffer.c_sniffer_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sniffer is already stopped"
.LC1:
	.string	"stop wifi promiscuous failed"
.LC2:
	.string	"unsupported interface"
.LC3:
	.string	"stop WiFi promiscuous ok"
.LC4:
	.string	"stop pcap session failed"
	.text
	.p2align 4
	.type	sniffer_stop, @function
sniffer_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR err[rip]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	SNIFFER_CHECK@PLT
	cmp	DWORD PTR 4[rbp], 128
	je	.L13
	mov	edx, DWORD PTR err[rip]
	lea	rsi, .LC2[rip]
	xor	edi, edi
	call	SNIFFER_CHECK@PLT
.L3:
	mov	edi, DWORD PTR SNIFFER_TAG[rip]
	lea	rsi, .LC3[rip]
	call	ESP_LOGI@PLT
	mov	DWORD PTR 0[rbp], 0
	mov	esi, DWORD PTR portMAX_DELAY[rip]
	mov	rdi, QWORD PTR 24[rbp]
	call	xSemaphoreTake@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	vSemaphoreDelete@PLT
	mov	QWORD PTR 24[rbp], 0
	mov	rdi, QWORD PTR 16[rbp]
	call	uxQueueMessagesWaiting@PLT
	lea	ebx, -1[rax]
	test	eax, eax
	je	.L4
	lea	r12, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR SNIFFER_PROCESS_PACKET_TIMEOUT_MS[rip]
	sub	ebx, 1
	call	pdMS_TO_TICKS@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, r12
	mov	edx, eax
	call	xQueueReceive@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	free@PLT
	cmp	ebx, -1
	jne	.L5
.L4:
	mov	rdi, QWORD PTR 16[rbp]
	call	vQueueDelete@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	edi, DWORD PTR 8[rbp]
	mov	r12d, DWORD PTR err[rip]
	call	pcap_deinit@PLT
	xor	edi, edi
	mov	edx, r12d
	cmp	QWORD PTR ESP_OK[rip], rax
	sete	dil
	lea	rsi, .LC4[rip]
	call	SNIFFER_CHECK@PLT
	mov	rax, QWORD PTR ESP_OK[rip]
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR err[rip]
	xor	edi, edi
	call	esp_wifi_set_promiscuous@PLT
	xor	edi, edi
	cmp	QWORD PTR ESP_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	edx, r12d
	call	SNIFFER_CHECK@PLT
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sniffer_stop, .-sniffer_stop
	.comm	portMAX_DELAY,4,4
	.comm	err,4,4
	.comm	SNIFFER_TAG,4,4
	.comm	SNIFFER_PROCESS_PACKET_TIMEOUT_MS,4,4
	.comm	ESP_OK,8,8
	.comm	ESP_FAIL,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_cmd_sniffer.c_sniffer_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sniffer is already stopped\000"
	.align	2
.LC1:
	.ascii	"stop wifi promiscuous failed\000"
	.align	2
.LC2:
	.ascii	"unsupported interface\000"
	.align	2
.LC3:
	.ascii	"stop WiFi promiscuous ok\000"
	.align	2
.LC4:
	.ascii	"stop pcap session failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sniffer_stop, %function
sniffer_stop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	ldr	r7, .L15
	ldr	r3, .L15+4
	sub	sp, sp, #12
	ldr	r0, [r0]
	ldr	r2, [r7]
	ldr	r1, .L15+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	SNIFFER_CHECK
	ldr	r3, [r5, #4]
	cmp	r3, #128
	beq	.L13
	mov	r0, #0
	ldr	r2, [r7]
	ldr	r1, .L15+12
	bl	SNIFFER_CHECK
	ldr	r8, .L15+16
.L3:
	mov	r4, #0
	ldr	r3, .L15+20
	ldr	r1, .L15+24
	ldr	r0, [r3]
	bl	ESP_LOGI
	ldr	r3, .L15+28
	str	r4, [r5]
	ldr	r1, [r3]
	ldr	r0, [r5, #16]
	bl	xSemaphoreTake
	ldr	r0, [r5, #16]
	bl	vSemaphoreDelete
	str	r4, [r5, #16]
	ldr	r0, [r5, #12]
	bl	uxQueueMessagesWaiting
	cmp	r0, r4
	sub	r4, r0, #1
	beq	.L4
	ldr	r9, .L15+32
.L5:
	ldr	r0, [r9]
	ldr	r6, [r5, #12]
	bl	pdMS_TO_TICKS
	mov	r1, sp
	mov	r2, r0
	mov	r0, r6
	bl	xQueueReceive
	sub	r4, r4, #1
	ldr	r0, [sp]
	bl	free
	cmn	r4, #1
	bne	.L5
.L4:
	ldr	r0, [r5, #12]
	bl	vQueueDelete
	mov	r3, #0
	ldr	r0, [r5, #8]
	str	r3, [r5, #12]
	bl	pcap_deinit
	ldr	r3, [r8]
	ldr	r2, [r7]
	sub	r0, r3, r0
	clz	r0, r0
	ldr	r1, .L15+36
	lsr	r0, r0, #5
	bl	SNIFFER_CHECK
	ldr	r3, .L15+4
	ldr	r0, [r8]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	mov	r0, #0
	bl	esp_wifi_set_promiscuous
	ldr	r8, .L15+16
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r1, .L15+40
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	SNIFFER_CHECK
	b	.L3
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	err
	.word	.LC5
	.word	.LC0
	.word	.LC2
	.word	ESP_OK
	.word	SNIFFER_TAG
	.word	.LC3
	.word	portMAX_DELAY
	.word	SNIFFER_PROCESS_PACKET_TIMEOUT_MS
	.word	.LC4
	.word	.LC1
	.size	sniffer_stop, .-sniffer_stop
	.comm	portMAX_DELAY,4,4
	.comm	err,4,4
	.comm	SNIFFER_TAG,4,4
	.comm	SNIFFER_PROCESS_PACKET_TIMEOUT_MS,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
