	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srec_read_section
_srec_read_section:                     ## @srec_read_section
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -104(%rbp)
	movl	8(%rsi), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bfd_seek
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movq	(%r14), %rax
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_31
## %bb.41:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rsi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_srec_get_byte
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_38:
	cmpq	$0, -104(%rbp)
	je	LBB0_39
LBB0_15:
	testq	%r12, %r12
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_17
LBB0_3:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	_EOF@GOTPCREL(%rip), %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_EOF@GOTPCREL(%rip), %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	-104(%rbp), %rsi
	callq	_srec_get_byte
	cmpl	(%r15), %eax
	je	LBB0_38
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
	cmpl	$10, %eax
	je	LBB0_37
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$13, %eax
	je	LBB0_37
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpl	$83, %eax
	sete	%dil
	callq	_BFD_ASSERT
	leaq	-60(%rbp), %rdi
	movl	$3, %esi
	movq	%rbx, %rdx
	callq	_bfd_bread
	cmpl	$3, %eax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %edi
	callq	_ISHEX
	testq	%rax, %rax
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edi
	callq	_ISHEX
	testq	%rax, %rax
	setne	%al
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_BFD_ASSERT
	leaq	-56(%rbp), %rdi
	callq	_HEX
	movl	%eax, %r15d
	leal	(%r15,%r15), %ebx
	cmpq	%rbx, -112(%rbp)                ## 8-byte Folded Reload
	jae	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_free
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_bfd_malloc
	movq	%rax, %r12
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_14
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_bfd_bread
	cmpl	%ebx, %eax
	jne	LBB0_15
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	movl	-60(%rbp), %eax
	cmpl	$49, %eax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$50, %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$51, %eax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_HEX
	movl	%eax, %r14d
	leaq	8(%rbx), %r12
	decl	%r15d
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	shll	$8, %r14d
	movq	%r12, %rdi
	callq	_HEX
	orl	%eax, %r14d
	addq	$8, %r12
	decl	%r15d
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_HEX
	movl	%eax, %ebx
	leaq	8(%r12), %rdi
	shll	$16, %r14d
	shll	$8, %ebx
	orl	%r14d, %ebx
	callq	_HEX
	orl	%ebx, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ecx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	addl	%r13d, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_26
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	$-3, %r15d
	je	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %r12
	movslq	%r13d, %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_HEX
	movl	%eax, (%r14,%rbx,4)
	addq	$8, %r12
	incq	%rbx
	cmpl	%ebx, %r15d
	jne	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	addl	%ebx, %r13d
	jmp	LBB0_36
LBB0_39:
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	sete	%dil
	callq	_BFD_ASSERT
	testq	%r12, %r12
	je	LBB0_29
## %bb.40:
	movq	%r12, %rdi
	jmp	LBB0_28
LBB0_26:
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r13d
	jmp	LBB0_27
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_22:
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
LBB0_27:
	sete	%dil
	callq	_BFD_ASSERT
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_29
LBB0_28:
	callq	_free
LBB0_29:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_30
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EOF,4,2                        ## @EOF
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_srec_read_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srec_read_section
_srec_read_section:                     ; @srec_read_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #16]
	ldr	w1, [x1, #8]
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_bfd_seek
	cbz	x0, LBB0_4
LBB0_1:
	ldr	x0, [x23]
LBB0_2:
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	add	x1, sp, #16
	mov	x0, x22
	bl	_srec_get_byte
Lloh11:
	adrp	x23, _EOF@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.5:
	mov	w28, #0
	mov	x19, #0
LBB0_6:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_30
LBB0_7:
Lloh13:
	adrp	x23, _FALSE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	cbz	x19, LBB0_1
; %bb.8:
	mov	x0, x19
	bl	_free
	b	LBB0_1
LBB0_9:
	mov	x27, #0
	mov	x19, #0
	mov	w28, #0
	add	x8, sp, #28
	add	x8, x8, #4
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, sp, #16
	mov	x0, x22
	bl	_srec_get_byte
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_6
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	w0, #10
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w0, #13
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w0, #83
	cset	w0, eq
	bl	_BFD_ASSERT
	add	x0, sp, #28
	mov	w1, #3
	mov	x2, x22
	bl	_bfd_bread
	cmp	w0, #3
	b.ne	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #32]
	bl	_ISHEX
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #36]
	bl	_ISHEX
	cmp	x0, #0
	cset	w0, ne
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_BFD_ASSERT
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_HEX
	mov	x24, x0
	lsl	w25, w0, #1
	cmp	x27, x25
	b.hs	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x19, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_free
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_bfd_malloc
	mov	x19, x0
	mov	x27, x25
	cbz	x0, LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x25
	mov	x2, x22
	bl	_bfd_bread
	cmp	w0, w25
	b.ne	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w25, #0
	ldr	w8, [sp, #28]
	mov	x26, x19
	cmp	w8, #49
	b.eq	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #50
	b.eq	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #51
	b.ne	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	bl	_HEX
	mov	x25, x0
	add	x26, x19, #8
	sub	w24, w24, #1
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_HEX
	orr	w25, w0, w25, lsl #8
	add	x26, x26, #8
	sub	w24, w24, #1
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_HEX
	add	x8, x26, #8
	lsl	w9, w0, #8
	orr	w25, w9, w25, lsl #16
	mov	x0, x8
	bl	_HEX
	orr	w8, w25, w0
	ldr	w9, [x20, #4]
	add	w9, w9, w28
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	subs	w25, w24, #3
	b.eq	LBB0_10
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x26, #16
	add	x26, x21, w28, sxtw #2
LBB0_29:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w25, w25, #1
	mov	x0, x24
	bl	_HEX
	str	w0, [x26], #4
	add	x24, x24, #8
	add	w28, w28, #1
	cbnz	w25, LBB0_29
	b	LBB0_10
LBB0_30:
	ldr	w8, [x20]
	cmp	w28, w8
	cset	w0, eq
	bl	_BFD_ASSERT
	cbz	x19, LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_free
LBB0_32:
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	b	LBB0_2
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EOF,4,2                        ; @EOF
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_srec_read_section
.subsections_via_symbols
