	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_srec                    ## -- Begin function create_srec
	.p2align	4, 0x90
_create_srec:                           ## @create_srec
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_ELF_C_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ebx
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_3:
	movq	_SREC_FORCE_S3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	$51, -41(%rbp)                  ## 1-byte Folded Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_24
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rax, %rbx
	leaq	-104(%rbp), %r15
	movq	_SHF_ALLOC@GOTPCREL(%rip), %r14
	movq	_SHT_NOBITS@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	xorl	%eax, %eax
	callq	_elf_errno
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %eax
	testl	%eax, -96(%rbp)
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-104(%rbp), %rax
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-80(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_13:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_3
## %bb.14:
	movq	%rax, %rbx
	leaq	-104(%rbp), %r15
	leaq	L_.str.2(%rip), %r13
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %r14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	xorl	%eax, %eax
	callq	_elf_errno
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-104(%rbp), %rax
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.19:
	leaq	-104(%rbp), %r8
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_srec_write_symtab
	jmp	LBB0_3
LBB0_20:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
LBB0_22:
	movb	$49, -41(%rbp)                  ## 1-byte Folded Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$65536, %eax                    ## imm = 0x10000
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_24
## %bb.23:
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	movb	$51, %al
	sbbb	$0, %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
LBB0_24:
	movq	_SREC_FORCE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.25:
	movl	4(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.26:
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	leal	(%rcx,%rax), %edx
	addl	$-47, %edx
	movl	$301, %esi                      ## imm = 0x12D
	subl	%ecx, %esi
	cmpl	$255, %edx
	cmovbl	%eax, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_30
LBB0_27:
	movl	$16, %eax
	jmp	LBB0_29
LBB0_28:
	movl	$1, %eax
LBB0_29:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_30:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_srec_write_S0
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_elf_nextscn
	testq	%rax, %rax
	je	LBB0_44
## %bb.31:
	movq	%rax, %rbx
	leaq	-104(%rbp), %r14
	movq	_SHF_ALLOC@GOTPCREL(%rip), %r13
	movq	_SHT_NOBITS@GOTPCREL(%rip), %r15
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_34 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	xorl	%eax, %eax
	callq	_elf_errno
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_elf_nextscn
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_44
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_32
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	(%r13), %eax
	testl	%eax, -96(%rbp)
	je	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	-104(%rbp), %rax
	cmpq	(%r15), %rax
	je	LBB0_33
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_33
## %bb.38:                              ##   in Loop: Header=BB0_34 Depth=1
	xorl	%eax, %eax
	callq	_elf_errno
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.40:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_33
## %bb.41:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	-80(%rbp), %edx
	movsbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_srec_write_Sd
	jmp	LBB0_33
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=1
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_33
## %bb.43:                              ##   in Loop: Header=BB0_34 Depth=1
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_33
LBB0_44:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_46
## %bb.45:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warnx
LBB0_46:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gelf_getehdr
	testq	%rax, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_48
## %bb.47:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_48:
	movl	-72(%rbp), %esi
	movq	_SREC_FORCE_S3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%rbx), %edx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_srec_write_Se
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_begin() failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"symbolsrec"

L_.str.2:                               ## @.str.2
	.asciz	"gelf_getshdr failed: %s"

	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.comm	_SREC_FORCE_S3,4,2              ## @SREC_FORCE_S3
	.comm	_SHF_ALLOC,4,2                  ## @SHF_ALLOC
	.comm	_SHT_NOBITS,8,3                 ## @SHT_NOBITS
L_.str.3:                               ## @.str.3
	.asciz	"elf_nextscn failed: %s"

	.comm	_SREC_FORCE_LEN,4,2             ## @SREC_FORCE_LEN
L_.str.5:                               ## @.str.5
	.asciz	"elf_getdata failed: %s"

L_.str.6:                               ## @.str.6
	.asciz	"gelf_getehdr() failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_srec                    ; -- Begin function create_srec
	.p2align	2
_create_srec:                           ; @create_srec
	.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	x22, x3
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _ELF_C_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_C_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	mov	x2, #0
	bl	_elf_begin
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_errx
LBB0_2:
	ldr	w23, [x20, #8]
Lloh8:
	adrp	x24, l_.str.1@PAGE
Lloh9:
	add	x24, x24, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_strncmp
	cbz	w0, LBB0_5
LBB0_3:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _SREC_FORCE_S3@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SREC_FORCE_S3@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.4:
	mov	w25, #51
	b	LBB0_26
LBB0_5:
	mov	x0, x21
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_3
; %bb.6:
	mov	x23, x0
Lloh13:
	adrp	x24, l_.str.2@PAGE
Lloh14:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh15:
	adrp	x25, _SHT_SYMTAB@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SHT_SYMTAB@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x24
	bl	_warnx
	bl	_elf_errno
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_elf_nextscn
	mov	x23, x0
	cbz	x0, LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x23
	bl	_gelf_getshdr
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.11:
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_srec_write_symtab
	b	LBB0_3
LBB0_12:
	mov	x0, x21
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_20
; %bb.13:
	mov	x23, x0
	mov	w25, #0
Lloh17:
	adrp	x26, _SHF_ALLOC@GOTPAGE
Lloh18:
	ldr	x26, [x26, _SHF_ALLOC@GOTPAGEOFF]
Lloh19:
	adrp	x27, _SHT_NOBITS@GOTPAGE
Lloh20:
	ldr	x27, [x27, _SHT_NOBITS@GOTPAGEOFF]
Lloh21:
	adrp	x24, l_.str.2@PAGE
Lloh22:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x24
	bl	_warnx
	bl	_elf_errno
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_elf_nextscn
	mov	x23, x0
	cbz	x0, LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x23
	bl	_gelf_getshdr
	cbz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x27]
	ldr	x9, [sp, #8]
	ldr	x10, [sp, #24]
	cmp	x9, x8
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #32]
	cmp	w8, w25
	csel	w25, w8, w25, gt
	b	LBB0_15
LBB0_20:
	mov	w25, #0
LBB0_21:
	bl	_elf_errno
	cbz	w0, LBB0_23
; %bb.22:
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_23:
	cmp	w25, #16, lsl #12               ; =65536
	b.ge	LBB0_25
; %bb.24:
	mov	w25, #49
	b	LBB0_26
LBB0_25:
	lsr	w8, w25, #24
	cmp	w8, #0
	mov	w8, #50
	cinc	w25, w8, ne
LBB0_26:
	ldr	w8, [x20]
Lloh25:
	adrp	x9, _SREC_FORCE_LEN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SREC_FORCE_LEN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	ldr	w8, [x20, #4]
	mov	w9, #1
	and	w10, w25, #0xff
	add	w11, w10, w8
	sub	w11, w11, #47
	mov	w12, #301
	sub	w10, w12, w10
	cmp	w11, #254
	csel	w10, w10, w8, hi
	cmp	w8, #1
	csel	x23, x9, x10, lt
	b	LBB0_29
LBB0_28:
	mov	w23, #16
LBB0_29:
	mov	x0, x19
	mov	x1, x22
	bl	_srec_write_S0
	mov	x0, x21
	mov	x1, #0
	bl	_elf_nextscn
	cbz	x0, LBB0_42
; %bb.30:
	mov	x22, x0
Lloh28:
	adrp	x24, l_.str.2@PAGE
Lloh29:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh30:
	adrp	x28, _SHF_ALLOC@GOTPAGE
Lloh31:
	ldr	x28, [x28, _SHF_ALLOC@GOTPAGEOFF]
Lloh32:
	adrp	x27, _SHT_NOBITS@GOTPAGE
Lloh33:
	ldr	x27, [x27, _SHT_NOBITS@GOTPAGEOFF]
	sxtb	w25, w25
Lloh34:
	adrp	x26, l_.str.5@PAGE
Lloh35:
	add	x26, x26, l_.str.5@PAGEOFF
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x24
	bl	_warnx
	bl	_elf_errno
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_elf_nextscn
	mov	x22, x0
	cbz	x0, LBB0_42
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_gelf_getshdr
	cbz	x0, LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [x27]
	ldr	x9, [sp, #8]
	ldr	x10, [sp, #24]
	cmp	x9, x8
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_32
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=1
	bl	_elf_errno
	mov	x0, x22
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x3, [x0, #8]
	cbz	x3, LBB0_32
; %bb.38:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x4, [x0]
	cbz	x4, LBB0_32
; %bb.39:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	w2, [sp, #32]
	mov	x0, x19
	mov	x1, x25
	mov	x5, x23
	bl	_srec_write_Sd
	b	LBB0_32
LBB0_40:                                ;   in Loop: Header=BB0_33 Depth=1
	bl	_elf_errno
	cbz	w0, LBB0_32
; %bb.41:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	w0, #-1
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x26
	bl	_warnx
	b	LBB0_32
LBB0_42:
	bl	_elf_errno
	cbz	w0, LBB0_44
; %bb.43:
	bl	_elf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_44:
	add	x1, sp, #40
	mov	x0, x21
	bl	_gelf_getehdr
Lloh38:
	adrp	x22, _SREC_FORCE_S3@GOTPAGE
Lloh39:
	ldr	x22, [x22, _SREC_FORCE_S3@GOTPAGEOFF]
	cbnz	x0, LBB0_46
; %bb.45:
Lloh40:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_46:
	ldr	w1, [sp, #40]
	ldr	w8, [x20]
	ldr	w9, [x22]
	and	w2, w9, w8
	mov	x0, x19
	bl	_srec_write_Se
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_begin() failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"symbolsrec"

l_.str.2:                               ; @.str.2
	.asciz	"gelf_getshdr failed: %s"

	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.comm	_SREC_FORCE_S3,4,2              ; @SREC_FORCE_S3
	.comm	_SHF_ALLOC,4,2                  ; @SHF_ALLOC
	.comm	_SHT_NOBITS,8,3                 ; @SHT_NOBITS
l_.str.3:                               ; @.str.3
	.asciz	"elf_nextscn failed: %s"

	.comm	_SREC_FORCE_LEN,4,2             ; @SREC_FORCE_LEN
l_.str.5:                               ; @.str.5
	.asciz	"elf_getdata failed: %s"

l_.str.6:                               ; @.str.6
	.asciz	"gelf_getehdr() failed: %s"

.subsections_via_symbols
