	.file	"extr_ping_sock.c_esp_ping_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	esp_ping_thread, @function
esp_ping_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbx, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR PING_CHECK_START_TIMEOUT_MS[rip]
	call	pdMS_TO_TICKS@PLT
	mov	edi, DWORD PTR pdTRUE[rip]
	mov	esi, eax
	call	ulTaskNotifyTake@PLT
	test	rax, rax
	jne	.L34
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR PING_FLAGS_INIT[rip], eax
	jne	.L2
	mov	rdi, QWORD PTR 32[rbp]
	test	rdi, rdi
	je	.L12
	call	free@PLT
.L12:
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	jle	.L13
	call	close@PLT
.L13:
	mov	rdi, rbp
	call	free@PLT
	xor	edi, edi
	call	vTaskDelete@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 32
	.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
.L34:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR [rax], 0
	xor	eax, eax
	mov	QWORD PTR 104[rbp], 0
	mov	QWORD PTR 96[rbp], 0
	mov	QWORD PTR 88[rbp], 0
	call	xTaskGetTickCount@PLT
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR PING_FLAGS_START[rip], eax
	jne	.L4
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR 72[rbp]
	test	rax, rax
	je	.L8
.L32:
	mov	esi, DWORD PTR 40[rbp]
	mov	edi, ebp
	call	rax
.L8:
	mov	edi, DWORD PTR 56[rbp]
	call	pdMS_TO_TICKS@PLT
	lea	rdi, 12[rsp]
	mov	esi, eax
	call	vTaskDelayUntil@PLT
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR PING_FLAGS_START[rip], eax
	je	.L9
.L4:
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR 32[rbp]
	cmp	rax, QWORD PTR [rdx]
	jle	.L9
.L10:
	mov	rdi, rbp
	call	esp_ping_send@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	gettimeofday@PLT
	mov	rdi, rbp
	call	esp_ping_receive@PLT
	lea	rdi, 20[rsp]
	xor	esi, esi
	mov	r12d, eax
	call	gettimeofday@PLT
	mov	esi, DWORD PTR 16[rsp]
	mov	edi, DWORD PTR 20[rsp]
	call	PING_TIME_DIFF_MS@PLT
	add	QWORD PTR 88[rbp], rax
	mov	QWORD PTR 80[rbp], rax
	test	r12d, r12d
	jns	.L36
	mov	rax, QWORD PTR 64[rbp]
	test	rax, rax
	jne	.L32
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 48[rbp]
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR 40[rbp]
	mov	edi, ebp
	call	rax
	jmp	.L2
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_ping_thread, .-esp_ping_thread
	.comm	pdTRUE,4,4
	.comm	PING_FLAGS_START,4,4
	.comm	PING_FLAGS_INIT,4,4
	.comm	PING_CHECK_START_TIMEOUT_MS,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_ping_sock.c_esp_ping_thread.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_ping_thread, %function
esp_ping_thread:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L37
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r7, .L37+4
	ldr	r6, .L37+8
	ldr	r8, .L37+12
	ldr	r5, .L37+16
.L2:
	ldr	r0, [r6]
	ldr	r9, [r7]
	bl	pdMS_TO_TICKS
	mov	r1, r0
	mov	r0, r9
	bl	ulTaskNotifyTake
	cmp	r0, #0
	bne	.L34
	ldr	r2, [r4, #4]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L2
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L12
	bl	free
.L12:
	ldr	r0, [r4, #12]
	cmp	r0, #0
	ble	.L13
	bl	close
.L13:
	mov	r0, r4
	bl	free
	mov	r0, #0
	bl	vTaskDelete
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L34:
	mov	r3, #0
	ldr	r2, [r4, #16]
	str	r3, [r2]
	str	r3, [r4, #52]
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	bl	xTaskGetTickCount
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	str	r0, [sp]
	tst	r2, r3
	bne	.L4
	b	.L9
.L36:
	ldr	r3, [r4, #36]
	cmp	r3, #0
	beq	.L8
.L32:
	mov	r0, r4
	ldr	r1, [r4, #20]
	blx	r3
.L8:
	ldr	r0, [r4, #28]
	bl	pdMS_TO_TICKS
	mov	r1, r0
	mov	r0, sp
	bl	vTaskDelayUntil
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	tst	r2, r3
	beq	.L9
.L4:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r2, [r4, #16]
	ldr	r2, [r2]
	cmp	r3, r2
	ble	.L9
.L10:
	mov	r0, r4
	bl	esp_ping_send
	mov	r1, #0
	add	r0, sp, #4
	bl	gettimeofday
	mov	r0, r4
	bl	esp_ping_receive
	mov	r1, #0
	mov	r9, r0
	add	r0, sp, #8
	bl	gettimeofday
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	PING_TIME_DIFF_MS
	ldr	r3, [r4, #44]
	cmp	r9, #0
	add	r3, r3, r0
	str	r0, [r4, #40]
	str	r3, [r4, #44]
	bge	.L36
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L32
	b	.L8
.L9:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L2
	mov	r0, r4
	ldr	r1, [r4, #20]
	blx	r3
	b	.L2
.L35:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	pdTRUE
	.word	PING_CHECK_START_TIMEOUT_MS
	.word	PING_FLAGS_INIT
	.word	PING_FLAGS_START
	.size	esp_ping_thread, .-esp_ping_thread
	.comm	pdTRUE,4,4
	.comm	PING_FLAGS_START,4,4
	.comm	PING_FLAGS_INIT,4,4
	.comm	PING_CHECK_START_TIMEOUT_MS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
