	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_elf_from_srec           ## -- Begin function create_elf_from_srec
	.p2align	4, 0x90
_create_elf_from_srec:                  ## @create_elf_from_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	__DATA_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_dup
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	callq	_fdopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_4:
	movl	4(%r14), %edi
	movl	24(%r14), %esi
	callq	_gelf_newehdr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movl	4(%r14), %edi
	leaq	-160(%rbp), %rsi
	callq	_gelf_getehdr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_8:
	movl	24(%r14), %eax
	movq	-136(%rbp), %rcx
	movq	_EI_CLASS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	20(%r14), %eax
	movq	_EI_DATA@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_ELFOSABI_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EI_OSABI@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	16(%r14), %eax
	movl	%eax, -140(%rbp)
	movq	_ET_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movq	$0, -152(%rbp)
	movq	_RELOCATABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_init_shstrtab
	movq	8(%r14), %rax
	movq	$0, 8(%rax)
	movl	4(%r14), %edi
	movq	_ELF_T_EHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_gelf_fsize
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_10:
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	$1, %ecx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.6(%rip), %r12
	movl	$1, -80(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	callq	_warnx
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_42
LBB0_14:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
	movq	$0, -96(%rbp)
	movb	(%rbx), %al
	cmpb	$35, %al
	jg	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpb	$10, %al
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r12, %rdi
	cmpb	$13, %al
	je	LBB0_20
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpb	$36, %al
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r12, %rdi
	cmpb	$83, %al
	jne	LBB0_19
## %bb.26:                              ##   in Loop: Header=BB0_14 Depth=2
	movb	1(%rbx), %al
	addb	$-58, %al
	movq	%r12, %rdi
	cmpb	$-10, %al
	jb	LBB0_19
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%rbx, %rdi
	leaq	-49(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	-96(%rbp), %r8
	callq	_srec_read
	leaq	L_.str.7(%rip), %rdi
	testq	%rax, %rax
	js	LBB0_19
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpb	$36, 1(%rbx)
	movq	%r12, %rdi
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	_SYMTAB_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_42
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	cmpb	$36, (%rbx)
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=3
	cmpb	$36, 1(%rbx)
	jne	LBB0_23
	jmp	LBB0_20
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	movsbl	-49(%rbp), %eax
	leal	-55(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=1
	addl	$-49, %eax
	cmpl	$2, %eax
	ja	LBB0_41
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-96(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_41
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-104(%rbp), %rcx
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rcx, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-104(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_41
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_finalize_data_section
	movq	-104(%rbp), %rcx
LBB0_36:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_new_data_section
	testq	%rax, %rax
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	incl	-76(%rbp)                       ## 4-byte Folded Spill
	movq	-104(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rdx
LBB0_39:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_append_data
	movq	-96(%rbp), %rax
	addq	%rax, %r13
	addq	%rax, -88(%rbp)                 ## 8-byte Folded Spill
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
LBB0_41:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_42
LBB0_37:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.8(%rip), %rdi
	callq	_warnx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_41
LBB0_42:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.43:
	callq	_finalize_data_section
	jmp	LBB0_44
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
LBB0_44:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	leaq	L_.str.9(%rip), %rdi
	callq	_warn
LBB0_46:
	movl	4(%r14), %edi
	callq	_elf_newscn
	movq	8(%r14), %rsi
	movq	%rax, (%rsi)
	testq	%rax, %rax
	jne	LBB0_48
## %bb.47:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.10(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
	movq	8(%r14), %rsi
LBB0_48:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_insert_to_sec_list
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_insert_shtab
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_SYMTAB_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_49
## %bb.50:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fseek
	testq	%rax, %rax
	js	LBB0_70
## %bb.51:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_61
## %bb.52:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_53
LBB0_49:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
LBB0_61:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_63
## %bb.62:
	leaq	L_.str.9(%rip), %rdi
	callq	_warn
LBB0_63:
	testl	%r12d, %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_71
## %bb.64:
	movq	%r14, %rdi
	callq	_finalize_external_symtab
	movq	%r14, %rdi
	callq	_create_symtab_data
	movl	4(%r14), %edi
	movq	_ELF_T_SHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %edx
	callq	_gelf_fsize
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addl	%eax, 4(%rbx)
	jmp	LBB0_72
LBB0_70:
	leaq	L_.str.11(%rip), %rdi
	callq	_warn
LBB0_71:
	movq	_SYMTAB_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_72:
	movq	%r15, %rdi
	callq	_fclose
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -152(%rbp)
	movl	4(%r14), %edi
	leaq	-160(%rbp), %rsi
	callq	_gelf_update_ehdr
	testq	%rax, %rax
	jne	LBB0_74
## %bb.73:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.14(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_74:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_update_shdr
	movl	4(%r14), %edi
	leaq	-160(%rbp), %rsi
	callq	_gelf_getehdr
	testq	%rax, %rax
	jne	LBB0_76
## %bb.75:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_76:
	movq	%r14, %rdi
	callq	_resync_sections
	movl	(%rbx), %eax
	movl	%eax, -160(%rbp)
	movl	4(%r14), %edi
	leaq	-160(%rbp), %rsi
	callq	_gelf_update_ehdr
	testq	%rax, %rax
	jne	LBB0_78
## %bb.77:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.14(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_78:
	movl	4(%r14), %edi
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_elf_update
	testq	%rax, %rax
	jns	LBB0_80
## %bb.79:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.15(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_80:
	movq	%r14, %rdi
	callq	_free_elf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_82
## %bb.81:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:                                ##   in Loop: Header=BB0_53 Depth=1
	leaq	L_.str.13(%rip), %rdi
	callq	_warnx
LBB0_59:                                ##   in Loop: Header=BB0_53 Depth=1
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_60:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	__LINE_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_61
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	je	LBB0_68
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	cmpb	$36, (%rbx)
	jne	LBB0_57
## %bb.55:                              ##   in Loop: Header=BB0_53 Depth=1
	cmpb	$36, 1(%rbx)
	je	LBB0_56
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.12(%rip), %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	leaq	-116(%rbp), %rcx
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_58
## %bb.65:                              ##   in Loop: Header=BB0_53 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_create_external_symtab
LBB0_67:                                ##   in Loop: Header=BB0_53 Depth=1
	movl	-116(%rbp), %r13d
	movq	_SHN_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_STB_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STT_NOTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ELF32_ST_INFO
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	pushq	$1
	pushq	$0
	callq	_add_to_symtab
	addq	$16, %rsp
	movl	$1, %r12d
LBB0_68:                                ##   in Loop: Header=BB0_53 Depth=1
	cmpb	$36, (%rbx)
	jne	LBB0_60
## %bb.69:                              ##   in Loop: Header=BB0_53 Depth=1
	cmpb	$36, 1(%rbx)
	jne	LBB0_60
	jmp	LBB0_59
LBB0_56:                                ##   in Loop: Header=BB0_53 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_60
LBB0_82:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__LINE_BUFSZ,4,2                ## @_LINE_BUFSZ
	.comm	__DATA_BUFSZ,4,2                ## @_DATA_BUFSZ
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dup failed"

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

L_.str.2:                               ## @.str.2
	.asciz	"fdopen failed"

L_.str.3:                               ## @.str.3
	.asciz	"gelf_newehdr failed: %s"

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

	.comm	_EI_CLASS,8,3                   ## @EI_CLASS
	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.comm	_ELFOSABI_NONE,4,2              ## @ELFOSABI_NONE
	.comm	_EI_OSABI,8,3                   ## @EI_OSABI
	.comm	_ET_REL,4,2                     ## @ET_REL
	.comm	_RELOCATABLE,4,2                ## @RELOCATABLE
	.comm	_ELF_T_EHDR,4,2                 ## @ELF_T_EHDR
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
L_.str.5:                               ## @.str.5
	.asciz	"gelf_fsize() failed: %s"

	.comm	_SYMTAB_EXIST,4,2               ## @SYMTAB_EXIST
L_.str.6:                               ## @.str.6
	.asciz	"Invalid srec record"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid srec record or mismatched checksum"

L_.str.8:                               ## @.str.8
	.asciz	"new_data_section failed"

L_.str.9:                               ## @.str.9
	.asciz	"fgets failed"

L_.str.10:                              ## @.str.10
	.asciz	"elf_newscn failed: %s"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.11:                              ## @.str.11
	.asciz	"fseek failed"

L_.str.12:                              ## @.str.12
	.asciz	"%s $%jx"

L_.str.13:                              ## @.str.13
	.asciz	"Invalid symbolsrec record"

	.comm	_SHN_ABS,4,2                    ## @SHN_ABS
	.comm	_STB_GLOBAL,4,2                 ## @STB_GLOBAL
	.comm	_STT_NOTYPE,4,2                 ## @STT_NOTYPE
	.comm	_ELF_T_SHDR,4,2                 ## @ELF_T_SHDR
L_.str.14:                              ## @.str.14
	.asciz	"gelf_update_ehdr() failed: %s"

	.comm	_ELF_C_WRITE,4,2                ## @ELF_C_WRITE
L_.str.15:                              ## @.str.15
	.asciz	"elf_update() failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_elf_from_srec           ; -- Begin function create_elf_from_srec
	.p2align	2
_create_elf_from_srec:                  ; @create_elf_from_srec
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, __LINE_BUFSZ@GOTPAGE
Lloh4:
	ldr	x28, [x28, __LINE_BUFSZ@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh9:
	adrp	x8, __DATA_BUFSZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, __DATA_BUFSZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x1
	bl	_dup
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fdopen
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_4:
	ldr	w0, [x19, #4]
	ldr	w1, [x19, #24]
	bl	_gelf_newehdr
	cbnz	x0, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_errx
LBB0_6:
	ldr	w0, [x19, #4]
	sub	x1, x29, #120
	bl	_gelf_getehdr
	cbnz	x0, LBB0_8
; %bb.7:
Lloh31:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh33:
	ldr	w24, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_errx
LBB0_8:
	ldr	w8, [x19, #24]
	ldur	x9, [x29, #-96]
Lloh36:
	adrp	x10, _EI_CLASS@GOTPAGE
Lloh37:
	ldr	x10, [x10, _EI_CLASS@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #20]
Lloh39:
	adrp	x10, _EI_DATA@GOTPAGE
Lloh40:
	ldr	x10, [x10, _EI_DATA@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh42:
	adrp	x8, _ELFOSABI_NONE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ELFOSABI_NONE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x10, _EI_OSABI@GOTPAGE
Lloh46:
	ldr	x10, [x10, _EI_OSABI@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #16]
Lloh48:
	adrp	x9, _ET_REL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ET_REL@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-104]
	stur	xzr, [x29, #-112]
Lloh51:
	adrp	x8, _RELOCATABLE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RELOCATABLE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_init_shstrtab
	ldr	x8, [x19, #8]
	str	xzr, [x8, #8]
	ldr	w0, [x19, #4]
Lloh54:
	adrp	x8, _ELF_T_EHDR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ELF_T_EHDR@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_gelf_fsize
	mov	x24, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh60:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh62:
	ldr	w25, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh63:
	adrp	x1, l_.str.5@PAGE
Lloh64:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x25
	bl	_errx
LBB0_10:
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
Lloh65:
	adrp	x25, _SYMTAB_EXIST@GOTPAGE
Lloh66:
	ldr	x25, [x25, _SYMTAB_EXIST@GOTPAGEOFF]
	cbz	x0, LBB0_42
; %bb.11:
	mov	x26, #0
	mov	x22, #0
	stur	xzr, [x29, #-176]               ; 8-byte Folded Spill
Lloh67:
	adrp	x27, l_.str.6@PAGE
Lloh68:
	add	x27, x27, l_.str.6@PAGEOFF
	mov	w8, #1
	mov	w9, #1
	stur	w9, [x29, #-180]                ; 4-byte Folded Spill
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_23 Depth 3
	stur	w8, [x29, #-168]                ; 4-byte Folded Spill
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	bl	_warnx
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_40
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_23 Depth 3
	stur	xzr, [x29, #-144]
	ldrb	w8, [x21]
	cmp	w8, #35
	b.gt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	mov	x0, x27
	b.eq	LBB0_14
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=2
	cmp	w8, #36
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x27
	cmp	w8, #83
	b.ne	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	ldrb	w8, [x21, #1]
	sub	w8, w8, #58
	mov	x0, x27
	cmn	w8, #10
	b.lo	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=2
	sub	x1, x29, #145
	sub	x2, x29, #128
	sub	x4, x29, #144
	mov	x0, x21
	mov	x3, x23
	bl	_srec_read
	mov	x8, x0
Lloh69:
	adrp	x0, l_.str.7@PAGE
Lloh70:
	add	x0, x0, l_.str.7@PAGEOFF
	tbnz	x8, #63, LBB0_13
	b	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=2
	ldrb	w8, [x21, #1]
	mov	x0, x27
	cmp	w8, #36
	b.ne	LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_23:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_40
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=3
	ldrb	w8, [x21]
	cmp	w8, #36
	b.ne	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=3
	ldrb	w8, [x21, #1]
	cmp	w8, #36
	b.ne	LBB0_23
	b	LBB0_14
LBB0_26:                                ;   in Loop: Header=BB0_12 Depth=1
	ldursb	w8, [x29, #-145]
	sub	w9, w8, #55
	cmp	w9, #3
	b.lo	LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w8, w8, #49
	cmp	w8, #2
	b.hi	LBB0_38
; %bb.28:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x2, [x29, #-144]
	cbz	x2, LBB0_38
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x3, [x29, #-128]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	ldur	w9, [x29, #-180]                ; 4-byte Folded Reload
	cbnz	w9, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x8, x3
	b.ne	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_12 Depth=1
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	b	LBB0_37
LBB0_32:                                ;   in Loop: Header=BB0_12 Depth=1
	ldur	x22, [x29, #-128]
	b	LBB0_38
LBB0_33:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	x26, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	bl	_finalize_data_section
	ldur	x3, [x29, #-128]
LBB0_35:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	ldur	w1, [x29, #-168]                ; 4-byte Folded Reload
	mov	x2, x24
	bl	_new_data_section
	mov	x26, x0
	cbz	x0, LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w8, [x29, #-168]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-168]                ; 4-byte Folded Spill
	ldur	x8, [x29, #-128]
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	ldur	x2, [x29, #-144]
LBB0_37:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	mov	x1, x23
	bl	_append_data
	stur	wzr, [x29, #-180]               ; 4-byte Folded Spill
	ldur	x8, [x29, #-144]
	add	x24, x8, x24
	ldur	x9, [x29, #-176]                ; 8-byte Folded Reload
	add	x9, x8, x9
	stur	x9, [x29, #-176]                ; 8-byte Folded Spill
LBB0_38:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
	ldur	w8, [x29, #-168]                ; 4-byte Folded Reload
	cbnz	x0, LBB0_12
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh71:
	adrp	x0, l_.str.8@PAGE
Lloh72:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warnx
	b	LBB0_38
LBB0_40:
	cbz	x26, LBB0_43
; %bb.41:
	mov	x0, x26
	bl	_finalize_data_section
	b	LBB0_43
LBB0_42:
	mov	x22, #0
LBB0_43:
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_45
; %bb.44:
Lloh73:
	adrp	x0, l_.str.9@PAGE
Lloh74:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warn
LBB0_45:
	ldr	w0, [x19, #4]
	bl	_elf_newscn
	ldr	x1, [x19, #8]
	str	x0, [x1]
	cbnz	x0, LBB0_47
; %bb.46:
Lloh75:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh77:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh78:
	adrp	x1, l_.str.10@PAGE
Lloh79:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_errx
	ldr	x1, [x19, #8]
LBB0_47:
	mov	x0, x19
	mov	w2, #1
	bl	_insert_to_sec_list
	mov	x0, x19
	mov	w1, #1
	bl	_insert_shtab
	mov	x23, x0
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.48:
Lloh80:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
	tbnz	x0, #63, LBB0_57
; %bb.49:
	stp	x23, x22, [x29, #-176]          ; 16-byte Folded Spill
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
	mov	w25, #0
	cbz	x0, LBB0_52
; %bb.50:
	mov	w22, #0
Lloh83:
	adrp	x24, l_.str.12@PAGE
Lloh84:
	add	x24, x24, l_.str.12@PAGEOFF
Lloh85:
	adrp	x23, _STT_NOTYPE@GOTPAGE
Lloh86:
	ldr	x23, [x23, _STT_NOTYPE@GOTPAGEOFF]
	b	LBB0_72
LBB0_51:
	stp	x23, x22, [x29, #-176]          ; 16-byte Folded Spill
	mov	w25, #0
LBB0_52:
	mov	x0, x20
	bl	_ferror
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	cbz	x0, LBB0_54
; %bb.53:
Lloh87:
	adrp	x0, l_.str.9@PAGE
Lloh88:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warn
LBB0_54:
	ldur	x23, [x29, #-176]               ; 8-byte Folded Reload
	cbz	w25, LBB0_56
; %bb.55:
	mov	x0, x19
	bl	_finalize_external_symtab
	mov	x0, x19
	bl	_create_symtab_data
	ldr	w0, [x19, #4]
Lloh89:
	adrp	x8, _ELF_T_SHDR@GOTPAGE
Lloh90:
	ldr	x8, [x8, _ELF_T_SHDR@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh93:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh94:
	ldr	w3, [x8]
	mov	w2, #2
	bl	_gelf_fsize
	ldr	w8, [x23, #4]
	add	w8, w8, w0
	str	w8, [x23, #4]
	b	LBB0_59
LBB0_56:
Lloh95:
	adrp	x8, _SYMTAB_EXIST@GOTPAGE
Lloh96:
	ldr	x8, [x8, _SYMTAB_EXIST@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	b	LBB0_58
LBB0_57:
Lloh98:
	adrp	x0, l_.str.11@PAGE
Lloh99:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_warn
	ldr	w8, [x25]
LBB0_58:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_59:
	mov	x0, x20
	bl	_fclose
	stur	x22, [x29, #-112]
	ldr	w0, [x19, #4]
	sub	x1, x29, #120
	bl	_gelf_update_ehdr
	cbnz	x0, LBB0_61
; %bb.60:
Lloh100:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh102:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh103:
	adrp	x1, l_.str.14@PAGE
Lloh104:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_61:
	mov	x0, x19
	mov	w1, #0
	bl	_update_shdr
	ldr	w0, [x19, #4]
	sub	x1, x29, #120
	bl	_gelf_getehdr
	cbnz	x0, LBB0_63
; %bb.62:
Lloh105:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh106:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh107:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh108:
	adrp	x1, l_.str.4@PAGE
Lloh109:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_63:
	mov	x0, x19
	bl	_resync_sections
	ldr	w8, [x23]
	stur	w8, [x29, #-120]
	ldr	w0, [x19, #4]
	sub	x1, x29, #120
	bl	_gelf_update_ehdr
	cbnz	x0, LBB0_65
; %bb.64:
Lloh110:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh111:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh112:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh113:
	adrp	x1, l_.str.14@PAGE
Lloh114:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_65:
	ldr	w0, [x19, #4]
Lloh115:
	adrp	x8, _ELF_C_WRITE@GOTPAGE
Lloh116:
	ldr	x8, [x8, _ELF_C_WRITE@GOTPAGEOFF]
Lloh117:
	ldr	w1, [x8]
	bl	_elf_update
	tbz	x0, #63, LBB0_67
; %bb.66:
Lloh118:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh119:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh120:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh121:
	adrp	x1, l_.str.15@PAGE
Lloh122:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_67:
	mov	x0, x19
	bl	_free_elf
	ldur	x8, [x29, #-88]
Lloh123:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh124:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh125:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_82
; %bb.68:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_69:                                ;   in Loop: Header=BB0_72 Depth=1
Lloh126:
	adrp	x0, l_.str.13@PAGE
Lloh127:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_warnx
LBB0_70:                                ;   in Loop: Header=BB0_72 Depth=1
	mov	w22, #1
LBB0_71:                                ;   in Loop: Header=BB0_72 Depth=1
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_52
LBB0_72:                                ; =>This Inner Loop Header: Depth=1
	cbz	w22, LBB0_79
; %bb.73:                               ;   in Loop: Header=BB0_72 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #36
	b.ne	LBB0_75
; %bb.74:                               ;   in Loop: Header=BB0_72 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #36
	b.eq	LBB0_81
LBB0_75:                                ;   in Loop: Header=BB0_72 Depth=1
	sub	x3, x29, #132
	mov	x0, x21
	mov	x1, x24
	ldur	x2, [x29, #-160]                ; 8-byte Folded Reload
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_69
; %bb.76:                               ;   in Loop: Header=BB0_72 Depth=1
	cbnz	w25, LBB0_78
; %bb.77:                               ;   in Loop: Header=BB0_72 Depth=1
	mov	x0, x19
	bl	_create_external_symtab
LBB0_78:                                ;   in Loop: Header=BB0_72 Depth=1
	ldur	w26, [x29, #-132]
Lloh128:
	adrp	x8, _SHN_ABS@GOTPAGE
Lloh129:
	ldr	x8, [x8, _SHN_ABS@GOTPAGEOFF]
Lloh130:
	ldr	w27, [x8]
Lloh131:
	adrp	x8, _STB_GLOBAL@GOTPAGE
Lloh132:
	ldr	x8, [x8, _STB_GLOBAL@GOTPAGEOFF]
Lloh133:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_ELF32_ST_INFO
	mov	x5, x0
	mov	w25, #1
	mov	x0, x19
	ldur	x1, [x29, #-160]                ; 8-byte Folded Reload
	mov	x2, x26
	mov	w3, #0
	mov	x4, x27
	mov	w6, #0
	mov	w7, #1
	bl	_add_to_symtab
LBB0_79:                                ;   in Loop: Header=BB0_72 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #36
	b.ne	LBB0_71
; %bb.80:                               ;   in Loop: Header=BB0_72 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #36
	b.ne	LBB0_71
	b	LBB0_70
LBB0_81:                                ;   in Loop: Header=BB0_72 Depth=1
	mov	w22, #0
	b	LBB0_71
LBB0_82:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.cfi_endproc
                                        ; -- End function
	.comm	__LINE_BUFSZ,4,2                ; @_LINE_BUFSZ
	.comm	__DATA_BUFSZ,4,2                ; @_DATA_BUFSZ
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dup failed"

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

l_.str.2:                               ; @.str.2
	.asciz	"fdopen failed"

l_.str.3:                               ; @.str.3
	.asciz	"gelf_newehdr failed: %s"

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

	.comm	_EI_CLASS,8,3                   ; @EI_CLASS
	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.comm	_ELFOSABI_NONE,4,2              ; @ELFOSABI_NONE
	.comm	_EI_OSABI,8,3                   ; @EI_OSABI
	.comm	_ET_REL,4,2                     ; @ET_REL
	.comm	_RELOCATABLE,4,2                ; @RELOCATABLE
	.comm	_ELF_T_EHDR,4,2                 ; @ELF_T_EHDR
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
l_.str.5:                               ; @.str.5
	.asciz	"gelf_fsize() failed: %s"

	.comm	_SYMTAB_EXIST,4,2               ; @SYMTAB_EXIST
l_.str.6:                               ; @.str.6
	.asciz	"Invalid srec record"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid srec record or mismatched checksum"

l_.str.8:                               ; @.str.8
	.asciz	"new_data_section failed"

l_.str.9:                               ; @.str.9
	.asciz	"fgets failed"

l_.str.10:                              ; @.str.10
	.asciz	"elf_newscn failed: %s"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.11:                              ; @.str.11
	.asciz	"fseek failed"

l_.str.12:                              ; @.str.12
	.asciz	"%s $%jx"

l_.str.13:                              ; @.str.13
	.asciz	"Invalid symbolsrec record"

	.comm	_SHN_ABS,4,2                    ; @SHN_ABS
	.comm	_STB_GLOBAL,4,2                 ; @STB_GLOBAL
	.comm	_STT_NOTYPE,4,2                 ; @STT_NOTYPE
	.comm	_ELF_T_SHDR,4,2                 ; @ELF_T_SHDR
l_.str.14:                              ; @.str.14
	.asciz	"gelf_update_ehdr() failed: %s"

	.comm	_ELF_C_WRITE,4,2                ; @ELF_C_WRITE
l_.str.15:                              ; @.str.15
	.asciz	"elf_update() failed: %s"

.subsections_via_symbols
