	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_symbol_name
_get_symbol_name:                       ## @get_symbol_name
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r13
	movq	16(%rdi), %rbx
	movslq	%esi, %r12
	shlq	$5, %r12
	movq	(%rbx,%r12), %rax
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rcx
	leaq	L_.str(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_SHT_DYNSYM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_2:
	movq	%r15, %rax
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	callq	_elf_errno
	movl	24(%rbx,%r12), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-56(%rbp), %r15
	movq	%rax, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_gelf_getsym
	cmpq	%r15, %rax
	je	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	movq	%r15, %rax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-44(%rbp), %edi
	callq	_GELF_ST_TYPE
	movq	_STT_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movq	-56(%rbp), %rax
	cmpq	(%r13), %rax
	jge	LBB0_5
## %bb.10:
	movq	16(%r13), %rcx
	shlq	$5, %rax
	movq	8(%rcx,%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_5
LBB0_13:
	movq	16(%rbx,%r12), %rsi
	leaq	L_.str(%rip), %rax
	cmpq	(%r13), %rsi
	jge	LBB0_15
## %bb.14:
	movl	8(%r13), %edi
	movl	-48(%rbp), %edx
	callq	_elf_strptr
	movq	%rax, %rcx
	testq	%rax, %rax
	leaq	L_.str(%rip), %rax
	cmovneq	%rcx, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ## @SHT_DYNSYM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

	.comm	_STT_SECTION,8,3                ## @STT_SECTION
	.no_dead_strip	_get_symbol_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_symbol_name
_get_symbol_name:                       ; @get_symbol_name
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x21, [x0, #16]
	sbfiz	x8, x1, #5, #32
	ldr	x8, [x21, x8]
Lloh0:
	adrp	x9, _SHT_SYMTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHT_SYMTAB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SHT_DYNSYM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SHT_DYNSYM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	sxtw	x22, w1
	bl	_elf_errno
	add	x8, x21, x22, lsl #5
	ldr	w0, [x8, #24]
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, sp
	mov	x2, sp
	mov	x1, x20
	bl	_gelf_getsym
	cmp	x0, x23
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_GELF_ST_TYPE
Lloh6:
	adrp	x8, _STT_SECTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STT_SECTION@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldr	x8, [sp]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.5:
	ldr	x9, [x19, #16]
	add	x8, x9, x8, lsl #5
	ldr	x20, [x8, #8]
	cbnz	x20, LBB0_9
	b	LBB0_8
LBB0_6:
	bl	_elf_errno
	cbz	w0, LBB0_8
; %bb.7:
	bl	_elf_errmsg
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
LBB0_8:
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	add	x8, x21, x22, lsl #5
	ldr	x1, [x8, #16]
	ldr	x8, [x19]
Lloh13:
	adrp	x20, l_.str@PAGE
Lloh14:
	add	x20, x20, l_.str@PAGEOFF
	cmp	x1, x8
	b.ge	LBB0_9
; %bb.11:
	ldr	w0, [x19, #8]
	ldr	w2, [sp, #8]
	bl	_elf_strptr
	cmp	x0, #0
	csel	x20, x20, x0, eq
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ; @SHT_DYNSYM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

	.comm	_STT_SECTION,8,3                ; @STT_SECTION
	.no_dead_strip	_get_symbol_name
.subsections_via_symbols
