	.file	"extr_nmea_parser.c_gps_decode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CRC Error for statement:%s"
	.text
	.p2align 4
	.type	gps_decode, @function
gps_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, 100
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rdi]
	movzx	eax, BYTE PTR 0[rbp]
	test	al, al
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	al, 44
	je	.L18
	cmp	al, 42
	je	.L19
	mov	rdi, QWORD PTR 48[rbx]
	cmp	al, 13
	je	.L20
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	jne	.L10
	xor	BYTE PTR 28[rbx], al
.L10:
	mov	rax, QWORD PTR 16[rbx]
	lea	rdx, 1[rax]
	mov	QWORD PTR 16[rbx], rdx
	movzx	edx, BYTE PTR 0[rbp]
	mov	BYTE PTR [rdi+rax], dl
	mov	rdx, QWORD PTR 48[rbx]
	mov	rax, QWORD PTR 16[rbx]
	mov	BYTE PTR [rdx+rax], 0
.L4:
	movzx	eax, BYTE PTR 1[rbp]
	add	rbp, 1
	test	al, al
	je	.L11
.L2:
	cmp	al, 36
	jne	.L3
	mov	QWORD PTR 16[rbx], 1
	mov	rax, QWORD PTR 48[rbx]
	add	rbp, 1
	mov	DWORD PTR 8[rbx], 0
	mov	QWORD PTR 72[rbx], 0
	mov	DWORD PTR 24[rbx], 0
	mov	BYTE PTR 28[rbx], 0
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 48[rbx]
	mov	BYTE PTR [rdx+rax], 0
	movzx	eax, BYTE PTR 0[rbp]
	test	al, al
	jne	.L2
.L11:
	mov	eax, DWORD PTR ESP_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbx
	call	parse_item@PLT
	movzx	eax, BYTE PTR 0[rbp]
	xor	BYTE PTR 28[rbx], al
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR 16[rbx], 0
	mov	BYTE PTR [rax], 0
	add	QWORD PTR 72[rbx], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbx
	call	parse_item@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	DWORD PTR 8[rbx], 1
	mov	QWORD PTR 16[rbx], 0
	mov	BYTE PTR [rax], 0
	add	QWORD PTR 72[rbx], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	xor	esi, esi
	mov	edx, 16
	call	strtol@PLT
	cmp	BYTE PTR 28[rbx], al
	jne	.L8
	mov	eax, DWORD PTR 60[rbx]
	mov	edx, DWORD PTR 56[rbx]
	and	edx, eax
	cmp	eax, edx
	je	.L21
.L9:
	mov	eax, DWORD PTR STATEMENT_UNKNOWN[rip]
	cmp	DWORD PTR 24[rbx], eax
	jne	.L4
	mov	eax, r13d
	mov	edi, DWORD PTR 68[rbx]
	mov	rcx, QWORD PTR [rbx]
	mov	r8, r12
	cdq
	mov	esi, DWORD PTR ESP_NMEA_EVENT[rip]
	idiv	DWORD PTR portTICK_PERIOD_MS[rip]
	mov	edx, DWORD PTR GPS_UNKNOWN[rip]
	mov	r9d, eax
	call	esp_event_post_to@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR [rbx]
	mov	edi, DWORD PTR GPS_TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGD@PLT
	jmp	.L9
.L21:
	mov	eax, r13d
	mov	edi, DWORD PTR 68[rbx]
	mov	esi, DWORD PTR ESP_NMEA_EVENT[rip]
	lea	rcx, 64[rbx]
	cdq
	mov	DWORD PTR 56[rbx], 0
	mov	r8d, 4
	idiv	DWORD PTR portTICK_PERIOD_MS[rip]
	mov	edx, DWORD PTR GPS_UPDATE[rip]
	mov	r9d, eax
	call	esp_event_post_to@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	gps_decode, .-gps_decode
	.comm	portTICK_PERIOD_MS,4,4
	.comm	STATEMENT_UNKNOWN,4,4
	.comm	GPS_UPDATE,4,4
	.comm	GPS_UNKNOWN,4,4
	.comm	GPS_TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_NMEA_EVENT,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_nmea_parser.c_gps_decode.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CRC Error for statement:%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gps_decode, %function
gps_decode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	sub	sp, sp, #20
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	mov	r4, r0
	mov	r6, r1
	ldr	r7, .L21
	ldr	fp, .L21+4
	ldr	r10, .L21+8
	ldr	r9, .L21+12
	ldr	r8, .L21+16
	b	.L2
.L3:
	cmp	r3, #44
	beq	.L17
	cmp	r3, #42
	beq	.L18
	cmp	r3, #13
	ldr	r0, [r4, #28]
	beq	.L19
	mov	r1, #0
	ldr	r2, [r4, #4]
	cmp	r2, #0
	ldrbeq	r2, [r4, #16]	@ zero_extendqisi2
	eoreq	r3, r3, r2
	strbeq	r3, [r4, #16]
	ldr	r3, [r4, #8]
	add	r2, r3, #1
	str	r2, [r4, #8]
	ldrb	r2, [r5]	@ zero_extendqisi2
	strb	r2, [r0, r3]
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #8]
	strb	r1, [r2, r3]
.L4:
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
.L2:
	cmp	r3, #36
	bne	.L3
	mov	r3, #0
	mov	r2, #1
	str	r3, [r4, #4]
	str	r2, [r4, #8]
	str	r3, [r4, #48]
	str	r3, [r4, #12]
	strb	r3, [r4, #16]
	str	r3, [r4, #20]
	str	r3, [r4, #24]
	ldrb	r1, [r5]	@ zero_extendqisi2
	ldr	r2, [r4, #28]
	strb	r1, [r2]
	ldr	r1, [r4, #28]
	ldr	r2, [r4, #8]
	strb	r3, [r1, r2]
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
.L11:
	ldr	r3, .L21+20
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r0, r4
	bl	parse_item
	mov	r2, #0
	ldrb	r1, [r5]	@ zero_extendqisi2
	ldrb	r3, [r4, #16]	@ zero_extendqisi2
	str	r2, [r4, #8]
	eor	r3, r3, r1
	ldr	r1, [r4, #28]
	strb	r3, [r4, #16]
	strb	r2, [r1]
	ldr	r3, [r4, #48]
	add	r3, r3, #1
	str	r3, [r4, #48]
	b	.L4
.L18:
	mov	r0, r4
	bl	parse_item
	mov	r3, #0
	mov	r1, #1
	ldr	r2, [r4, #28]
	stmib	r4, {r1, r3}
	strb	r3, [r2]
	ldr	r3, [r4, #48]
	add	r3, r3, r1
	str	r3, [r4, #48]
	b	.L4
.L19:
	mov	r2, #16
	mov	r1, #0
	bl	strtol
	ldrb	r3, [r4, #16]	@ zero_extendqisi2
	and	r0, r0, #255
	cmp	r3, r0
	bne	.L8
	ldr	r3, [r4, #36]
	ldr	r2, [r4, #32]
	bics	r3, r3, r2
	beq	.L20
.L9:
	ldr	r2, [r4, #12]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L21+24
	mov	r0, #100
	ldr	r1, [r3]
	bl	__aeabi_idiv
	mov	ip, r0
	ldr	r3, [r4]
	ldr	r0, [r4, #44]
	ldr	r2, [fp]
	stm	sp, {r6, ip}
	ldr	r1, [r10]
	bl	esp_event_post_to
	b	.L4
.L8:
	mov	r1, r8
	ldr	r2, [r4]
	ldr	r0, [r9]
	bl	ESP_LOGD
	b	.L9
.L20:
	mov	r2, #0
	ldr	r3, .L21+28
	str	r2, [r4, #32]
	ldr	r2, .L21+24
	mov	r0, #100
	ldr	r1, [r2]
	ldr	r2, [r3]
	str	r2, [sp, #12]
	bl	__aeabi_idiv
	mov	ip, #4
	mov	r3, r0
	ldr	r1, [r10]
	ldr	r0, [r4, #44]
	ldr	r2, [sp, #12]
	str	r3, [sp, #4]
	str	ip, [sp]
	add	r3, r4, #40
	bl	esp_event_post_to
	b	.L9
.L22:
	.align	2
.L21:
	.word	STATEMENT_UNKNOWN
	.word	GPS_UNKNOWN
	.word	ESP_NMEA_EVENT
	.word	GPS_TAG
	.word	.LC0
	.word	ESP_OK
	.word	portTICK_PERIOD_MS
	.word	GPS_UPDATE
	.size	gps_decode, .-gps_decode
	.comm	portTICK_PERIOD_MS,4,4
	.comm	STATEMENT_UNKNOWN,4,4
	.comm	GPS_UPDATE,4,4
	.comm	GPS_UNKNOWN,4,4
	.comm	GPS_TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_NMEA_EVENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
