	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_shstrtab
_set_shstrtab:                          ## @set_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	%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	%rdi, %r14
	movq	8(%rdi), %r15
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.1:
	movl	4(%r14), %edi
	callq	_elf_newscn
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_insert_to_sec_list
	movq	8(%r15), %rdi
LBB0_4:
	leaq	-112(%rbp), %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	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_6:
	movq	$0, -56(%rbp)
	movl	$1, -112(%rbp)
	movl	20(%r15), %eax
	movl	%eax, -60(%rbp)
	movq	_SHT_STRTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	8(%r15), %rdi
	callq	_elf_newdata
	movq	%rax, %rbx
	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.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_8:
	movq	_SYMTAB_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_10
## %bb.9:
	movl	16(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elftc_string_table_remove
	movl	16(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_elftc_string_table_remove
LBB0_10:
	movl	16(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_elftc_string_table_image
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	movq	-48(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	8(%r15), %rdi
	leaq	-112(%rbp), %rsi
	callq	_gelf_update_shdr
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	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_12:
	movl	$1, (%rbx)
	movq	%r12, 32(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	$0, 24(%rbx)
	movq	_ELF_T_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %ebx
	movq	8(%r15), %rdi
	callq	_elf_ndxscn
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_elf_setshstrndx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_newscn failed: %s"

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

	.comm	_SHT_STRTAB,4,2                 ## @SHT_STRTAB
L_.str.2:                               ## @.str.2
	.asciz	"elf_newdata() failed: %s"

	.comm	_SYMTAB_EXIST,4,2               ## @SYMTAB_EXIST
L_.str.3:                               ## @.str.3
	.asciz	".symtab"

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

L_.str.5:                               ## @.str.5
	.asciz	"gelf_update_shdr() failed: %s"

	.comm	_ELF_T_BYTE,4,2                 ## @ELF_T_BYTE
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
L_.str.6:                               ## @.str.6
	.asciz	"elf_setshstrndx() failed: %s"

	.no_dead_strip	_set_shstrtab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_shstrtab
_set_shstrtab:                          ; @set_shstrtab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_elf_newscn
	str	x0, [x19, #8]
	cbnz	x0, LBB0_3
; %bb.2:
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_3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_insert_to_sec_list
	ldr	x0, [x19, #8]
LBB0_4:
	add	x1, sp, #16
	bl	_gelf_getshdr
	cbnz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w21, [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, x21
	bl	_errx
LBB0_6:
	str	xzr, [sp, #72]
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	w8, [x19, #20]
Lloh10:
	adrp	x9, _SHT_STRTAB@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SHT_STRTAB@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	ldr	x0, [x19, #8]
	bl	_elf_newdata
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_errx
LBB0_8:
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _SYMTAB_EXIST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SYMTAB_EXIST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x19, #16]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elftc_string_table_remove
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_elftc_string_table_remove
LBB0_10:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_elftc_string_table_image
	mov	x22, x0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x8, [sp, #8]
	str	x8, [sp, #24]
	ldr	x0, [x19, #8]
	add	x1, sp, #16
	bl	_gelf_update_shdr
	cbnz	w0, LBB0_12
; %bb.11:
Lloh25:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_errx
LBB0_12:
	mov	w8, #1
	str	w8, [x21]
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
	stp	xzr, x22, [x21, #24]
Lloh30:
	adrp	x8, _ELF_T_BYTE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ELF_T_BYTE@GOTPAGEOFF]
Lloh32:
	adrp	x9, _EV_CURRENT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EV_CURRENT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
	ldr	w20, [x20, #4]
	ldr	x0, [x19, #8]
	bl	_elf_ndxscn
	mov	x1, x0
	mov	x0, x20
	bl	_elf_setshstrndx
	cbnz	w0, LBB0_14
; %bb.13:
Lloh36:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh38:
	ldr	w19, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_errx
LBB0_14:
	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
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_newscn failed: %s"

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

	.comm	_SHT_STRTAB,4,2                 ; @SHT_STRTAB
l_.str.2:                               ; @.str.2
	.asciz	"elf_newdata() failed: %s"

	.comm	_SYMTAB_EXIST,4,2               ; @SYMTAB_EXIST
l_.str.3:                               ; @.str.3
	.asciz	".symtab"

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

l_.str.5:                               ; @.str.5
	.asciz	"gelf_update_shdr() failed: %s"

	.comm	_ELF_T_BYTE,4,2                 ; @ELF_T_BYTE
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
l_.str.6:                               ; @.str.6
	.asciz	"elf_setshstrndx() failed: %s"

	.no_dead_strip	_set_shstrtab
.subsections_via_symbols
