	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_shstrtab                  ## -- Begin function init_shstrtab
	.p2align	4, 0x90
_init_shstrtab:                         ## @init_shstrtab
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	leaq	-40(%rbp), %rsi
	callq	_elf_getshdrstrndx
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_elf_errno
	jmp	LBB0_7
LBB0_1:
	movl	8(%r12), %edi
	movq	-40(%rbp), %rsi
	callq	_elf_getscn
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	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_3:
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gelf_getshdr
	cmpq	%r14, %rax
	je	LBB0_5
## %bb.4:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_5:
	movq	-48(%rbp), %r14
LBB0_7:
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
	movq	(%r12), %rbx
LBB0_9:
	leaq	L_.str.3(%rip), %r15
	movq	%r15, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 32(%rbx)
	movq	_SHT_STRTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_elftc_string_table_create
	movl	%eax, 12(%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_add_to_shstrtab
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_add_to_shstrtab
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_add_to_shstrtab
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_add_to_shstrtab
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getscn failed: %s"

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

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

L_.str.3:                               ## @.str.3
	.asciz	".shstrtab"

	.comm	_SHT_STRTAB,4,2                 ## @SHT_STRTAB
L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	".symtab"

L_.str.6:                               ## @.str.6
	.asciz	".strtab"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_shstrtab                  ; -- Begin function init_shstrtab
	.p2align	2
_init_shstrtab:                         ; @init_shstrtab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	x1, sp
	bl	_elf_getshdrstrndx
	cbz	x0, LBB0_2
; %bb.1:
	bl	_elf_errno
	mov	x20, #0
	b	LBB0_7
LBB0_2:
	ldr	w0, [x19, #8]
	ldr	x1, [sp]
	bl	_elf_getscn
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_4:
	add	x21, sp, #8
	add	x1, sp, #8
	mov	x0, x20
	bl	_gelf_getshdr
	cmp	x0, x21
	b.eq	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_6:
	ldr	x20, [sp, #8]
LBB0_7:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	mov	x21, x0
	str	x0, [x19]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
	ldr	x21, [x19]
LBB0_9:
Lloh15:
	adrp	x22, l_.str.3@PAGE
Lloh16:
	add	x22, x22, l_.str.3@PAGEOFF
	str	x22, [x21]
	stp	xzr, xzr, [x21, #40]
	str	w23, [x21, #8]
	str	xzr, [x21, #32]
Lloh17:
	adrp	x8, _SHT_STRTAB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SHT_STRTAB@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	str	xzr, [x21, #16]
	mov	x0, x20
	bl	_elftc_string_table_create
	str	w0, [x21, #12]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_add_to_shstrtab
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_add_to_shstrtab
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_add_to_shstrtab
	mov	x0, x19
	mov	x1, x22
	bl	_add_to_shstrtab
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getscn failed: %s"

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

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

l_.str.3:                               ; @.str.3
	.asciz	".shstrtab"

	.comm	_SHT_STRTAB,4,2                 ; @SHT_STRTAB
l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	".symtab"

l_.str.6:                               ; @.str.6
	.asciz	".strtab"

.subsections_via_symbols
