	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srec_read
_srec_read:                             ## @srec_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movl	$2, -44(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %r8
	movl	$1, %ecx
	callq	_read_num
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movsbl	1(%rbx), %eax
	movb	%al, (%r13)
	leal	-48(%rax), %ecx
	cmpl	$9, %ecx
	ja	LBB0_11
## %bb.2:
	movl	$943, %edx                      ## imm = 0x3AF
	btl	%ecx, %edx
	jae	LBB0_11
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.srec_read(%rip), %rcx
	movq	-384(%rcx,%rax,8), %r12
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_read_num
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	notq	%r12
	addq	-56(%rbp), %r12
	movq	%r12, -56(%rbp)
	movb	(%r13), %cl
	andb	$-4, %cl
	xorl	%eax, %eax
	cmpb	$48, %cl
	jne	LBB0_9
## %bb.5:
	testq	%r12, %r12
	je	LBB0_9
## %bb.6:
	xorl	%r15d, %r15d
	leaq	-80(%rbp), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	movq	%r13, %r8
	callq	_read_num
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	movq	-56(%rbp), %rax
	cmpq	%r15, %rax
	ja	LBB0_7
LBB0_9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	leaq	-44(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_read_num
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	movzbl	-48(%rbp), %eax
	xorl	$255, %eax
	xorl	%r14d, %r14d
	cmpl	-88(%rbp), %eax
	setne	%r14b
	negl	%r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_srec_read
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.srec_read
l_switch.table.srec_read:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
	.quad	4                               ## 0x4
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.quad	4                               ## 0x4
	.quad	3                               ## 0x3
	.quad	2                               ## 0x2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srec_read
_srec_read:                             ; @srec_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	w8, #2
	stp	w8, wzr, [sp]
	mov	x1, sp
	add	x2, sp, #24
	add	x4, sp, #4
	mov	w3, #1
	bl	_read_num
	tbnz	x0, #63, LBB0_11
; %bb.1:
	ldrsb	w8, [x19, #1]
	strb	w8, [x22]
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_11
; %bb.2:
	mov	w9, #943
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_11
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.srec_read@PAGE
Lloh1:
	add	x9, x9, l_switch.table.srec_read@PAGEOFF
	ldr	x24, [x9, w8, sxtw #3]
	mov	x1, sp
	add	x4, sp, #4
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	bl	_read_num
	tbnz	x0, #63, LBB0_11
; %bb.4:
	mov	x8, #0
	mvn	x9, x24
	ldr	x10, [sp, #24]
	add	x9, x10, x9
	str	x9, [sp, #24]
	ldrb	w10, [x22]
	and	w10, w10, #0xfc
	cmp	w10, #48
	b.ne	LBB0_9
; %bb.5:
	cbz	x9, LBB0_9
; %bb.6:
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	add	x2, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	w3, #1
	bl	_read_num
	tbnz	x0, #63, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x21, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [sp, #24]
	cmp	x8, x22
	b.hi	LBB0_7
LBB0_9:
	str	x8, [x20]
	mov	x1, sp
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	mov	x4, #0
	bl	_read_num
	tbnz	x0, #63, LBB0_11
; %bb.10:
	ldr	w8, [sp, #16]
	ldrb	w9, [sp, #4]
	eor	w9, w9, #0xff
	cmp	w8, w9
	csetm	w0, ne
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_srec_read
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.srec_read
l_switch.table.srec_read:
	.quad	2                               ; 0x2
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
	.quad	4                               ; 0x4
	.quad	2                               ; 0x2
	.quad	2                               ; 0x2
	.quad	2                               ; 0x2
	.quad	4                               ; 0x4
	.quad	3                               ; 0x3
	.quad	2                               ; 0x2

.subsections_via_symbols
