	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_setshstrndx            ## -- Begin function _libelf_setshstrndx
	.p2align	4, 0x90
__libelf_setshstrndx:                   ## @_libelf_setshstrndx
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	_SHN_LORESERVE@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	ja	LBB0_4
## %bb.1:
	movl	%edx, %r15d
	callq	__libelf_getscn0
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_SHN_UNDEF@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_ELFCLASS32@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r15d, (%rax)
	sete	%cl
	movq	%rbx, 8(%r12,%rcx,8)
	movq	_ELF_C_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ELF_F_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_elf_flagshdr
	movq	_SHN_XINDEX@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
LBB0_4:
	movzwl	%bx, %eax
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHN_LORESERVE,8,3              ## @SHN_LORESERVE
	.comm	_SHN_UNDEF,8,3                  ## @SHN_UNDEF
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELF_C_SET,4,2                  ## @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ## @ELF_F_DIRTY
	.comm	_SHN_XINDEX,8,3                 ## @SHN_XINDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_setshstrndx            ; -- Begin function _libelf_setshstrndx
	.p2align	2
__libelf_setshstrndx:                   ; @_libelf_setshstrndx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x19, x1
Lloh0:
	adrp	x8, _SHN_LORESERVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHN_LORESERVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x2
	bl	__libelf_getscn0
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _SHN_UNDEF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SHN_UNDEF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x8, _ELFCLASS32@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ELFCLASS32@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	mov	w8, #8
	mov	w9, #16
	csel	x8, x9, x8, eq
	str	x20, [x22, x8]
Lloh9:
	adrp	x8, _ELF_C_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ELF_C_SET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _ELF_F_DIRTY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ELF_F_DIRTY@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_elf_flagshdr
Lloh15:
	adrp	x8, _SHN_XINDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SHN_XINDEX@GOTPAGEOFF]
	ldrh	w20, [x8]
LBB0_3:
	and	x8, x20, #0xffff
	str	x8, [x19]
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SHN_LORESERVE,8,3              ; @SHN_LORESERVE
	.comm	_SHN_UNDEF,8,3                  ; @SHN_UNDEF
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELF_C_SET,4,2                  ; @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ; @ELF_F_DIRTY
	.comm	_SHN_XINDEX,8,3                 ; @SHN_XINDEX
.subsections_via_symbols
