	.file	"extr_ascii.c_ihex_read.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	ihex_read, @function
ihex_read:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	mov	ecx, 1
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR [rsp], rsi
	lea	r12, 32[rsp]
	lea	r15, 36[rsp]
	mov	QWORD PTR 8[rsp], r9
	lea	rdx, 24[rsp]
	mov	r8, r12
	mov	rsi, r15
	mov	rdi, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rdi
	xor	edi, edi
	mov	QWORD PTR [r9], 0
	mov	rdi, rbp
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 36[rsp], 1
	call	read_num@PLT
	test	rax, rax
	js	.L4
	mov	r8, r12
	mov	ecx, 2
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	call	read_num@PLT
	test	rax, rax
	js	.L4
	movsx	rcx, DWORD PTR 36[rsp]
	cmp	BYTE PTR 0[rbp+rcx], 48
	mov	rax, rcx
	lea	edx, 1[rcx]
	jne	.L4
	movsx	rdx, edx
	add	eax, 2
	mov	rsi, QWORD PTR [rsp]
	movsx	edx, BYTE PTR 0[rbp+rdx]
	mov	DWORD PTR 36[rsp], eax
	mov	eax, edx
	mov	BYTE PTR [rsi], dl
	sub	edx, 48
	sub	eax, 48
	add	DWORD PTR 32[rsp], edx
	cmp	al, 5
	ja	.L15
	lea	rdx, .L6[rip]
	movzx	eax, al
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR 24[rsp], 2
	jne	.L4
	mov	r8, r12
	mov	ecx, 2
.L19:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, rbp
	call	read_num@PLT
	test	rax, rax
	js	.L4
.L12:
	lea	rdx, 28[rsp]
	mov	r8, r12
	mov	ecx, 1
	mov	rsi, r15
	mov	rdi, rbp
	call	read_num@PLT
	test	rax, rax
	js	.L4
	xor	eax, eax
	cmp	BYTE PTR 32[rsp], 0
	setne	al
	neg	eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.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
.L5:
	.cfi_restore_state
	cmp	DWORD PTR 24[rsp], 4
	jne	.L4
	mov	r8, r12
	mov	ecx, 4
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	je	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	movsx	rax, DWORD PTR 24[rsp]
	test	eax, eax
	jle	.L10
	xor	r14d, r14d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR [rbx+r14*4], eax
	movsx	rax, DWORD PTR 24[rsp]
	add	r14, 1
	cmp	eax, r14d
	jle	.L10
.L11:
	mov	r8, r12
	mov	ecx, 1
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, rbp
	call	read_num@PLT
	test	rax, rax
	jns	.L22
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rbx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rbx], rax
	jmp	.L12
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	ihex_read.cold, @function
ihex_read.cold:
.LFSB0:
.L15:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	or	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	ihex_read, .-ihex_read
	.section	.text.unlikely
	.size	ihex_read.cold, .-ihex_read.cold
.LCOLDE0:
	.text
.LHOTE0:
	.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_ascii.c_ihex_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ihex_read, %function
ihex_read:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	ip, #1
	mov	lr, #0
	sub	sp, sp, #32
	ldr	r8, [sp, #68]
	mov	r5, r3
	ldr	r3, .L23
	add	r6, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r9, r1
	str	lr, [r8]
	mov	r10, r2
	mov	r3, ip
	add	r1, sp, #24
	str	r6, [sp]
	add	r2, sp, #12
	mov	r4, r0
	ldr	r7, [sp, #64]
	str	lr, [sp, #20]
	str	ip, [sp, #24]
	bl	read_num
	cmp	r0, #0
	blt	.L15
	mov	r2, r10
	mov	r3, #2
	mov	r0, r4
	str	r6, [sp]
	add	r1, sp, #24
	bl	read_num
	cmp	r0, #0
	blt	.L15
	ldr	r3, [sp, #24]
	ldrb	r2, [r4, r3]	@ zero_extendqisi2
	add	r1, r3, #1
	cmp	r2, #48
	bne	.L15
	ldrb	r2, [r4, r1]	@ zero_extendqisi2
	ldr	r1, [sp, #20]
	strb	r2, [r9]
	sub	r2, r2, #48
	add	r3, r3, #2
	add	r1, r1, r2
	str	r3, [sp, #24]
	str	r1, [sp, #20]
	cmp	r2, #5
	ldrls	pc, [pc, r2, asl #2]
	b	.L15
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
	.word	.L7
	.word	.L5
.L5:
	ldr	r3, [sp, #12]
	cmp	r3, #4
	bne	.L15
.L19:
	mov	r2, r5
	mov	r0, r4
	str	r6, [sp]
	add	r1, sp, #24
	bl	read_num
	cmp	r0, #0
	blt	.L15
.L12:
	mov	r0, r4
	mov	r3, #1
	str	r6, [sp]
	add	r1, sp, #24
	add	r2, sp, #16
	bl	read_num
	cmp	r0, #0
	blt	.L15
	ldrb	r0, [sp, #20]	@ zero_extendqisi2
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, [sp, #12]
	cmp	r3, #2
	beq	.L19
.L15:
	mvn	r0, #0
	b	.L1
.L8:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L12
	b	.L15
.L9:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	ble	.L10
	mov	r9, #0
	sub	r7, r7, #4
	b	.L11
.L22:
	ldr	r3, [sp, #12]
	ldr	r2, [r5]
	add	r9, r9, #1
	cmp	r3, r9
	str	r2, [r7, #4]!
	ble	.L10
.L11:
	mov	r3, #1
	mov	r2, r5
	mov	r0, r4
	str	r6, [sp]
	add	r1, sp, #24
	bl	read_num
	cmp	r0, #0
	bge	.L22
	b	.L15
.L10:
	str	r3, [r8]
	b	.L12
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.size	ihex_read, .-ihex_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
