	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb6fire_fw_ihex_next_record
_usb6fire_fw_ihex_next_record:          ## @usb6fire_fw_ihex_next_record
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movl	$0, (%rdi)
	movl	4(%rdi), %eax
	movl	8(%rdi), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_5
## %bb.1:
	movslq	%eax, %rdx
	addq	16(%r13), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$58, (%rdx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, 4(%r13)
	incq	%rdx
	cmpl	%eax, %ecx
	jne	LBB0_2
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_5:
	xorl	%r14d, %r14d
	cmpl	%ecx, %eax
	je	LBB0_17
## %bb.6:
	leal	1(%rax), %edx
	movl	%edx, 4(%r13)
	addl	$9, %eax
	cmpl	%ecx, %eax
	jg	LBB0_16
## %bb.7:
	movslq	%edx, %rdi
	addq	16(%r13), %rdi
	leaq	-44(%rbp), %r15
	movq	%r15, %rsi
	callq	_usb6fire_fw_ihex_hex
	movl	%eax, 24(%r13)
	movslq	4(%r13), %rdi
	addq	$2, %rdi
	movl	%edi, 4(%r13)
	addq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_usb6fire_fw_ihex_hex
	shll	$8, %eax
	movl	%eax, 28(%r13)
	movslq	4(%r13), %rdi
	addq	$2, %rdi
	movl	%edi, 4(%r13)
	addq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_usb6fire_fw_ihex_hex
	orl	%eax, 28(%r13)
	movslq	4(%r13), %rdi
	addq	$2, %rdi
	movl	%edi, 4(%r13)
	addq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_usb6fire_fw_ihex_hex
	movl	%eax, %r15d
	movl	4(%r13), %edx
	movl	24(%r13), %ecx
	leal	2(%rdx), %eax
	movl	%eax, 4(%r13)
	leal	(%rdx,%rcx,2), %edx
	addl	$4, %edx
	cmpl	8(%r13), %edx
	jg	LBB0_16
## %bb.8:
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rdi
	addq	16(%r13), %rdi
	movq	%r12, %rsi
	callq	_usb6fire_fw_ihex_hex
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	4(%r13), %eax
	addl	$2, %eax
	movl	%eax, 4(%r13)
	incq	%rbx
	movslq	24(%r13), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_10
LBB0_11:
	movslq	%eax, %rdi
	addq	16(%r13), %rdi
	leaq	-44(%rbp), %rsi
	callq	_usb6fire_fw_ihex_hex
	cmpl	$0, -44(%rbp)
	je	LBB0_12
LBB0_16:
	movl	$1, (%r13)
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$1, %r15d
	je	LBB0_17
## %bb.13:
	cmpl	$0, 24(%r13)
	je	LBB0_17
## %bb.14:
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.15:
	movl	$1, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_usb6fire_fw_ihex_next_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb6fire_fw_ihex_next_record
_usb6fire_fw_ihex_next_record:          ; @usb6fire_fw_ihex_next_record
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	str	wzr, [x0]
	ldp	w9, w8, [x0, #4]
	cmp	w9, w8
	b.ge	LBB0_4
; %bb.1:
	sxtw	x10, w9
	ldr	x11, [x19, #16]
	add	x10, x11, x10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10]
	cmp	w11, #58
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w9, #1
	str	w9, [x19, #4]
	add	x10, x10, #1
	cmp	w8, w9
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	cmp	w9, w8
	b.ne	LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	add	w10, w9, #1
	str	w10, [x19, #4]
	add	w9, w9, #9
	cmp	w9, w8
	b.gt	LBB0_12
; %bb.7:
	ldr	x8, [x19, #16]
	add	x0, x8, w10, sxtw
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	str	w0, [x19, #24]
	ldrsw	x8, [x19, #4]
	add	x8, x8, #2
	str	w8, [x19, #4]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	lsl	w8, w0, #8
	str	w8, [x19, #28]
	ldrsw	x8, [x19, #4]
	add	x8, x8, #2
	str	w8, [x19, #4]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	ldr	w8, [x19, #28]
	orr	w8, w8, w0
	str	w8, [x19, #28]
	ldrsw	x8, [x19, #4]
	add	x8, x8, #2
	str	w8, [x19, #4]
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	ldp	w10, w11, [x19, #4]
	add	w8, w10, #2
	str	w8, [x19, #4]
	ldr	w9, [x19, #24]
	add	w10, w10, w9, lsl #1
	add	w10, w10, #4
	cmp	w10, w11
	b.gt	LBB0_12
; %bb.8:
	mov	x20, x0
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x0, x9, w8, sxtw
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	ldr	x8, [x19, #32]
	str	w0, [x8, x21, lsl #2]
	ldr	w8, [x19, #4]
	add	w8, w8, #2
	str	w8, [x19, #4]
	add	x21, x21, #1
	ldrsw	x9, [x19, #24]
	cmp	x21, x9
	b.lt	LBB0_10
LBB0_11:
	ldr	x9, [x19, #16]
	add	x0, x9, w8, sxtw
	add	x1, sp, #12
	bl	_usb6fire_fw_ihex_hex
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_14
LBB0_12:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	cmp	w20, #1
	b.eq	LBB0_5
; %bb.15:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
; %bb.16:
	cbnz	w20, LBB0_12
; %bb.17:
	mov	w0, #1
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_usb6fire_fw_ihex_next_record
.subsections_via_symbols
