	.file	"extr_esp_websocket_client.c_esp_websocket_client_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Client was not started"
	.text
	.p2align 4
	.globl	esp_websocket_client_stop
	.type	esp_websocket_client_stop, @function
esp_websocket_client_stop:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L9
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	test	eax, eax
	je	.L10
	mov	DWORD PTR [rdi], 0
	mov	edi, DWORD PTR 8[rdi]
	mov	ecx, 1
	xor	edx, edx
	mov	r8d, DWORD PTR portMAX_DELAY[rip]
	mov	esi, DWORD PTR STOPPED_BIT[rip]
	call	xEventGroupWaitBits@PLT
	mov	eax, DWORD PTR WEBSOCKET_STATE_UNKNOW[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR ESP_OK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGW@PLT
	mov	eax, DWORD PTR ESP_FAIL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	mov	eax, DWORD PTR ESP_ERR_INVALID_ARG[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	esp_websocket_client_stop, .-esp_websocket_client_stop
	.comm	portMAX_DELAY,4,4
	.comm	WEBSOCKET_STATE_UNKNOW,4,4
	.comm	TAG,4,4
	.comm	STOPPED_BIT,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_ARG,4,4
	.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_esp_websocket_client.c_esp_websocket_client_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Client was not started\000"
	.text
	.align	2
	.global	esp_websocket_client_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_websocket_client_stop, %function
esp_websocket_client_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	sub	sp, sp, #8
	beq	.L7
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L8
	mov	r2, #0
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	r1, [r1]
	str	r2, [r4]
	str	r1, [sp]
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	mov	r3, #1
	bl	xEventGroupWaitBits
	ldr	r2, .L9+8
	ldr	r3, .L9+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r3, [r4, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	ldr	r3, .L9+16
	ldr	r1, .L9+20
	ldr	r0, [r3]
	bl	ESP_LOGW
	ldr	r3, .L9+24
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L7:
	ldr	r3, .L9+28
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	portMAX_DELAY
	.word	STOPPED_BIT
	.word	ESP_OK
	.word	WEBSOCKET_STATE_UNKNOW
	.word	TAG
	.word	.LC0
	.word	ESP_FAIL
	.word	ESP_ERR_INVALID_ARG
	.size	esp_websocket_client_stop, .-esp_websocket_client_stop
	.comm	portMAX_DELAY,4,4
	.comm	WEBSOCKET_STATE_UNKNOW,4,4
	.comm	TAG,4,4
	.comm	STOPPED_BIT,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_ARG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
