	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elftc_string_table_from_section ## -- Begin function elftc_string_table_from_section
	.p2align	4, 0x90
_elftc_string_table_from_section:       ## @elftc_string_table_from_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	-32(%rbp), %rax
	movq	_SHT_STRTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_elftc_string_table_create
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r14
	movq	8(%r15), %rbx
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	movq	%r14, %rdi
	callq	_elftc_string_table_destroy
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r15), %r15
	cmpq	$2, %r15
	jl	LBB0_11
## %bb.13:
	addq	%rbx, %r15
	incq	%rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_elftc_string_table_insert
	testq	%rax, %rax
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_14
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT_STRTAB,8,3                 ## @SHT_STRTAB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elftc_string_table_from_section ; -- Begin function elftc_string_table_from_section
	.p2align	2
_elftc_string_table_from_section:       ; @elftc_string_table_from_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_gelf_getshdr
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _SHT_STRTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHT_STRTAB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_elftc_string_table_create
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
	ldrb	w9, [x8]
	cbz	w9, LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
LBB0_7:
	mov	x0, x19
	bl	_elftc_string_table_destroy
	mov	x19, #0
	b	LBB0_9
LBB0_8:
	mov	x19, #0
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x9, [x20]
	cmp	x9, #2
	b.lt	LBB0_9
; %bb.11:
	add	x21, x8, x9
	add	x20, x8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_elftc_string_table_insert
	cbz	x0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	add	x20, x20, w8, sxtw
	cmp	x20, x21
	b.lo	LBB0_12
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT_STRTAB,8,3                 ; @SHT_STRTAB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
