	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ihex_read
_ihex_read:                             ## @ihex_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$0, (%r9)
	movl	$0, -48(%rbp)
	movl	$1, -44(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movl	$1, %ecx
	callq	_read_num
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_19
## %bb.1:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_read_num
	testq	%rax, %rax
	js	LBB0_18
## %bb.2:
	movslq	-44(%rbp), %rax
	cmpb	$48, (%rbx,%rax)
	jne	LBB0_18
## %bb.3:
	leal	2(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movsbl	1(%rax,%rbx), %eax
	movb	%al, (%r13)
	addl	$-48, %eax
	addl	%eax, -48(%rbp)
	cmpl	$5, %eax
	ja	LBB0_18
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	cmpl	$2, -52(%rbp)
	jne	LBB0_18
## %bb.13:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$2, %ecx
	jmp	LBB0_14
LBB0_15:
	cmpl	$4, -52(%rbp)
	jne	LBB0_18
## %bb.16:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	$4, %ecx
LBB0_14:
	callq	_read_num
	testq	%rax, %rax
	jns	LBB0_10
	jmp	LBB0_18
LBB0_5:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdx
	movl	$1, %ecx
	movq	%r13, %r8
	callq	_read_num
	testq	%rax, %rax
	js	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movslq	-52(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_9:
	cltq
	movq	%rax, (%r12)
	jmp	LBB0_10
LBB0_17:
	cmpl	$0, -52(%rbp)
	je	LBB0_10
LBB0_18:
	movl	$-1, %ecx
LBB0_19:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-44(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_read_num
	testq	%rax, %rax
	movl	$-1, %ecx
	js	LBB0_19
## %bb.11:
	xorl	%ecx, %ecx
	cmpb	-48(%rbp), %cl
	sbbl	%ecx, %ecx
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_17
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_ihex_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ihex_read
_ihex_read:                             ; @ihex_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
	str	xzr, [x5]
	mov	w8, #1
	stp	w8, wzr, [sp]
	mov	x1, sp
	add	x2, sp, #12
	add	x4, sp, #4
	mov	w3, #1
	bl	_read_num
	tbnz	x0, #63, LBB0_18
; %bb.1:
	mov	x1, sp
	add	x4, sp, #4
	mov	x0, x19
	mov	x2, x24
	mov	w3, #2
	bl	_read_num
	tbnz	x0, #63, LBB0_18
; %bb.2:
	ldrsw	x8, [sp]
	ldrb	w9, [x19, x8]
	cmp	w9, #48
	b.ne	LBB0_18
; %bb.3:
	add	x9, x8, x19
	add	w10, w8, #2
	ldrsb	w8, [x9, #1]
	strb	w8, [x23]
	sub	w8, w8, #48
	ldr	w9, [sp, #4]
	add	w9, w8, w9
	stp	w10, w9, [sp]
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.ne	LBB0_18
; %bb.6:
	mov	x1, sp
	add	x4, sp, #4
	mov	x0, x19
	mov	x2, x20
	mov	w3, #2
	bl	_read_num
	tbz	x0, #63, LBB0_16
	b	LBB0_18
LBB0_7:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.ne	LBB0_18
; %bb.8:
	mov	x1, sp
	add	x4, sp, #4
	mov	x0, x19
	mov	x2, x20
	mov	w3, #4
	bl	_read_num
	tbz	x0, #63, LBB0_16
	b	LBB0_18
LBB0_9:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	add	x4, sp, #4
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_read_num
	tbnz	x0, #63, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20]
	str	w8, [x22, x23, lsl #2]
	add	x23, x23, #1
	ldrsw	x8, [sp, #12]
	cmp	x23, x8
	b.lt	LBB0_11
; %bb.13:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_14:
	sxtw	x8, w8
	str	x8, [x21]
	b	LBB0_16
LBB0_15:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_18
LBB0_16:
	mov	x1, sp
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	w3, #1
	bl	_read_num
	tbnz	x0, #63, LBB0_18
; %bb.17:
	ldrb	w8, [sp, #4]
	cmp	w8, #0
	csetm	w0, ne
	b	LBB0_19
LBB0_18:
	mov	w0, #-1
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
                                        ; -- End function
	.no_dead_strip	_ihex_read
.subsections_via_symbols
