	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_elf_from_ihex           ## -- Begin function create_elf_from_ihex
	.p2align	4, 0x90
_create_elf_from_ihex:                  ## @create_elf_from_ihex
	.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	$136, %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), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	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, -128(%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	(%r14), %edi
	movl	28(%r14), %esi
	callq	_gelf_newehdr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movl	(%r14), %edi
	leaq	-176(%rbp), %rsi
	callq	_gelf_getehdr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_8:
	movl	28(%r14), %eax
	movq	-152(%rbp), %rcx
	movq	_EI_CLASS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	24(%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	20(%r14), %eax
	movl	%eax, -156(%rbp)
	movq	_ET_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movq	$0, -168(%rbp)
	movq	_RELOCATABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_init_shstrtab
	movq	8(%r14), %rax
	movq	$0, 8(%rax)
	movl	(%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, -120(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_10:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.26:
	movl	$1, -68(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.6(%rip), %r13
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	callq	_warnx
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_32
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$10, %al
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpb	$13, %al
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r13, %rdi
	cmpb	$58, %al
	jne	LBB0_30
## %bb.35:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rbx, %rdi
	leaq	-49(%rbp), %rsi
	leaq	-144(%rbp), %rdx
	leaq	-136(%rbp), %rcx
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	leaq	-112(%rbp), %r9
	callq	_ihex_read
	leaq	L_.str.7(%rip), %rdi
	testq	%rax, %rax
	js	LBB0_30
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=1
	movsbl	-49(%rbp), %eax
	addl	$-48, %eax
	cmpl	$5, %eax
	ja	LBB0_31
## %bb.37:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_38:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-112(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_31
## %bb.39:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-144(%rbp), %rcx
	addq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpq	%rcx, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_48:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-144(%rbp), %rax
	shlq	$4, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_49:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-136(%rbp), %rax
	shlq	$16, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_50:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-136(%rbp), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_31
LBB0_42:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_27 Depth=1
	callq	_finalize_data_section
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_new_data_section
	testq	%rax, %rax
	je	LBB0_45
## %bb.46:                              ##   in Loop: Header=BB0_27 Depth=1
	incl	-68(%rbp)                       ## 4-byte Folded Spill
	movq	-112(%rbp), %rdx
LBB0_47:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_append_data
	movq	-112(%rbp), %rax
	addq	%rax, -120(%rbp)                ## 8-byte Folded Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_45:                                ##   in Loop: Header=BB0_27 Depth=1
	leaq	L_.str.8(%rip), %rdi
	callq	_warnx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
LBB0_32:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:
	callq	_finalize_data_section
LBB0_34:
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.9(%rip), %rdi
	callq	_warn
LBB0_14:
	movq	%r15, %rdi
	callq	_fclose
	movl	(%r14), %edi
	callq	_elf_newscn
	movq	8(%r14), %rsi
	movq	%rax, (%rsi)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.10(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
	movq	8(%r14), %rsi
LBB0_16:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_insert_to_sec_list
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_insert_shtab
	movq	%rax, %r15
	movq	%r12, -168(%rbp)
	movl	(%r14), %edi
	leaq	-176(%rbp), %rsi
	callq	_gelf_update_ehdr
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_18:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_update_shdr
	movl	(%r14), %edi
	leaq	-176(%rbp), %rsi
	callq	_gelf_getehdr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_20:
	movq	%r14, %rdi
	callq	_resync_sections
	movl	(%r15), %eax
	movl	%eax, -176(%rbp)
	movl	(%r14), %edi
	leaq	-176(%rbp), %rsi
	callq	_gelf_update_ehdr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.11(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_22:
	movl	(%r14), %edi
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_elf_update
	testq	%rax, %rax
	jns	LBB0_24
## %bb.23:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.12(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_24:
	movq	%r14, %rdi
	callq	_free_elf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_51
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
LJTI0_0:
	.long	L0_0_set_38
	.long	L0_0_set_32
	.long	L0_0_set_48
	.long	L0_0_set_31
	.long	L0_0_set_49
	.long	L0_0_set_50
	.end_data_region
                                        ## -- 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"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid ihex record"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid ihex 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"

L_.str.11:                              ## @.str.11
	.asciz	"gelf_update_ehdr() failed: %s"

	.comm	_ELF_C_WRITE,4,2                ## @ELF_C_WRITE
L_.str.12:                              ## @.str.12
	.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_ihex           ; -- Begin function create_elf_from_ihex
	.p2align	2
_create_elf_from_ihex:                  ; @create_elf_from_ihex
	.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	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, __DATA_BUFSZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, __DATA_BUFSZ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x1
	bl	_dup
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_fdopen
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_4:
	ldr	w0, [x19]
	ldr	w1, [x19, #28]
	bl	_gelf_newehdr
	cbnz	x0, LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_errx
LBB0_6:
	ldr	w0, [x19]
	sub	x1, x29, #120
	bl	_gelf_getehdr
	cbnz	x0, LBB0_8
; %bb.7:
Lloh29:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh31:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_errx
LBB0_8:
	ldr	w8, [x19, #28]
	ldur	x9, [x29, #-96]
Lloh34:
	adrp	x10, _EI_CLASS@GOTPAGE
Lloh35:
	ldr	x10, [x10, _EI_CLASS@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #24]
Lloh37:
	adrp	x10, _EI_DATA@GOTPAGE
Lloh38:
	ldr	x10, [x10, _EI_DATA@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh40:
	adrp	x8, _ELFOSABI_NONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ELFOSABI_NONE@GOTPAGEOFF]
Lloh42:
	adrp	x10, _EI_OSABI@GOTPAGE
Lloh43:
	ldr	x10, [x10, _EI_OSABI@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh46:
	adrp	x8, _ET_REL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ET_REL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #16]
	stp	w8, w9, [x29, #-104]
	stur	xzr, [x29, #-112]
Lloh49:
	adrp	x8, _RELOCATABLE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RELOCATABLE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_init_shstrtab
	ldr	x8, [x19, #8]
	str	xzr, [x8, #8]
	ldr	w0, [x19]
Lloh52:
	adrp	x8, _ELF_T_EHDR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ELF_T_EHDR@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x8, _EV_CURRENT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EV_CURRENT@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
	mov	w2, #1
	bl	_gelf_fsize
	mov	x23, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh58:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh60:
	ldr	w24, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh61:
	adrp	x1, l_.str.5@PAGE
Lloh62:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_errx
LBB0_10:
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.11:
	mov	x25, #0
	stp	xzr, xzr, [x29, #-168]          ; 16-byte Folded Spill
	mov	x27, #0
Lloh63:
	adrp	x24, l_.str.6@PAGE
Lloh64:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh65:
	adrp	x26, l_.str.7@PAGE
Lloh66:
	add	x26, x26, l_.str.7@PAGEOFF
	mov	w9, #1
	mov	w8, #1
	stp	w9, w8, [x29, #-176]            ; 8-byte Folded Spill
	b	LBB0_16
LBB0_12:
	mov	x27, #0
	b	LBB0_35
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh67:
	adrp	x0, l_.str.8@PAGE
Lloh68:
	add	x0, x0, l_.str.8@PAGEOFF
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_warnx
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x28]
	mov	x0, x20
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_33
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	cmp	w8, #58
	b.ne	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	x1, x29, #145
	sub	x2, x29, #128
	sub	x3, x29, #136
	sub	x5, x29, #144
	mov	x0, x20
	mov	x4, x22
	bl	_ihex_read
	mov	x8, x0
	mov	x0, x26
	tbnz	x8, #63, LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldursb	w8, [x29, #-145]
	sub	w8, w8, #48
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh69:
	adrp	x11, lJTI0_0@PAGE
Lloh70:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_15
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	ldur	x2, [x29, #-144]
	cbz	x2, LBB0_15
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x29, #-128]
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	add	x3, x8, x9
	ldur	w8, [x29, #-172]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	cmp	x8, x3
	b.ne	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	stur	x8, [x29, #-184]                ; 8-byte Folded Spill
	b	LBB0_32
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x29, #-128]
	lsl	x8, x8, #4
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	b	LBB0_15
LBB0_26:                                ;   in Loop: Header=BB0_16 Depth=1
	ldur	x8, [x29, #-136]
	lsl	x8, x8, #16
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	b	LBB0_15
LBB0_27:                                ;   in Loop: Header=BB0_16 Depth=1
	ldur	x27, [x29, #-136]
	b	LBB0_15
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x25, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x25
	mov	x25, x3
	bl	_finalize_data_section
	mov	x3, x25
LBB0_30:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	ldur	w1, [x29, #-176]                ; 4-byte Folded Reload
	mov	x2, x23
	stur	x3, [x29, #-184]                ; 8-byte Folded Spill
	bl	_new_data_section
	mov	x25, x0
	cbz	x0, LBB0_13
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	w8, [x29, #-176]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-176]                ; 4-byte Folded Spill
	ldur	x2, [x29, #-144]
LBB0_32:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_append_data
	stur	wzr, [x29, #-172]               ; 4-byte Folded Spill
	ldur	x8, [x29, #-144]
	add	x23, x8, x23
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	add	x8, x8, x9
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	b	LBB0_15
LBB0_33:
	cbz	x25, LBB0_35
; %bb.34:
	mov	x0, x25
	bl	_finalize_data_section
LBB0_35:
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_37
; %bb.36:
Lloh71:
	adrp	x0, l_.str.9@PAGE
Lloh72:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warn
LBB0_37:
	mov	x0, x21
	bl	_fclose
	ldr	w0, [x19]
	bl	_elf_newscn
	ldr	x1, [x19, #8]
	str	x0, [x1]
	cbnz	x0, LBB0_39
; %bb.38:
Lloh73:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh75:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh76:
	adrp	x1, l_.str.10@PAGE
Lloh77:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_errx
	ldr	x1, [x19, #8]
LBB0_39:
	mov	x0, x19
	mov	w2, #1
	bl	_insert_to_sec_list
	mov	x0, x19
	mov	w1, #1
	bl	_insert_shtab
	mov	x20, x0
	stur	x27, [x29, #-112]
	ldr	w0, [x19]
	sub	x1, x29, #120
	bl	_gelf_update_ehdr
	cbnz	x0, LBB0_41
; %bb.40:
Lloh78:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh80:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh81:
	adrp	x1, l_.str.11@PAGE
Lloh82:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_41:
	mov	x0, x19
	mov	w1, #0
	bl	_update_shdr
	ldr	w0, [x19]
	sub	x1, x29, #120
	bl	_gelf_getehdr
	cbnz	x0, LBB0_43
; %bb.42:
Lloh83:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh85:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh86:
	adrp	x1, l_.str.4@PAGE
Lloh87:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_43:
	mov	x0, x19
	bl	_resync_sections
	ldr	w8, [x20]
	stur	w8, [x29, #-120]
	ldr	w0, [x19]
	sub	x1, x29, #120
	bl	_gelf_update_ehdr
	cbnz	x0, LBB0_45
; %bb.44:
Lloh88:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh89:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh90:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh91:
	adrp	x1, l_.str.11@PAGE
Lloh92:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_45:
	ldr	w0, [x19]
Lloh93:
	adrp	x8, _ELF_C_WRITE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _ELF_C_WRITE@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	bl	_elf_update
	tbz	x0, #63, LBB0_47
; %bb.46:
Lloh96:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh97:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh98:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh99:
	adrp	x1, l_.str.12@PAGE
Lloh100:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_47:
	mov	x0, x19
	bl	_free_elf
	ldur	x8, [x29, #-88]
Lloh101:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh102:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh103:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_49
; %bb.48:
	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_49:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_33-LBB0_15)>>2
	.byte	(LBB0_25-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_26-LBB0_15)>>2
	.byte	(LBB0_27-LBB0_15)>>2
                                        ; -- 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"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid ihex record"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid ihex 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"

l_.str.11:                              ; @.str.11
	.asciz	"gelf_update_ehdr() failed: %s"

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

.subsections_via_symbols
