	.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
	leaq	L_.str(%rip), %r14
	cmpq	%rsi, (%rdi)
	jbe	LBB0_11
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	leaq	(%rsi,%rsi,2), %r12
	movq	(%r13,%r12,8), %rax
	movq	_SHT_SYMTAB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_SHT_DYNSYM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	callq	_elf_errno
	movl	20(%r13,%r12,8), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	leaq	-56(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%rdx, %r15
	callq	_gelf_getsym
	cmpq	%r15, %rax
	jne	LBB0_11
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_GELF_ST_TYPE
	movq	_STT_SECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rax
	cmpq	(%rbx), %rax
	jae	LBB0_11
## %bb.9:
	movq	16(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	8(%rcx,%rax,8), %rcx
	leaq	_get_symbol_name.sname(%rip), %r14
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_snprintf
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	jmp	LBB0_11
LBB0_10:
	movl	8(%rbx), %edi
	movl	16(%r13,%r12,8), %esi
	movl	-48(%rbp), %edx
	callq	_elf_strptr
	testq	%rax, %rax
	leaq	L_.str(%rip), %r14
	cmovneq	%rax, %r14
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_symbol_name.sname,64,4 ## @get_symbol_name.sname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_SHT_SYMTAB,8,3                 ## @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ## @SHT_DYNSYM
L_.str.1:                               ## @.str.1
	.asciz	"elf_getdata failed: %s"

	.comm	_STT_SECTION,8,3                ## @STT_SECTION
L_.str.2:                               ## @.str.2
	.asciz	"%s (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
	ldr	x8, [x0]
	cmp	x8, x1
	b.ls	LBB0_9
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	mov	w8, #24
	mul	x8, x1, x8
	ldr	x8, [x22, 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_9
; %bb.2:
	mov	x19, x2
	bl	_elf_errno
	mov	w8, #24
	madd	x8, x21, x8, x22
	ldr	w0, [x8, #20]
	mov	x1, #0
	bl	_elf_getdata
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, sp
	mov	x2, sp
	mov	x1, x19
	bl	_gelf_getsym
Lloh6:
	adrp	x19, l_.str@PAGE
Lloh7:
	add	x19, x19, l_.str@PAGEOFF
	cmp	x0, x23
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_GELF_ST_TYPE
Lloh8:
	adrp	x8, _STT_SECTION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STT_SECTION@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [sp]
	ldr	x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.6:
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x3, [x8, #8]
Lloh11:
	adrp	x19, _get_symbol_name.sname@PAGE
Lloh12:
	add	x19, x19, _get_symbol_name.sname@PAGEOFF
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #64
	bl	_snprintf
	b	LBB0_10
LBB0_7:
	bl	_elf_errno
	cbz	w0, LBB0_9
; %bb.8:
	bl	_elf_errmsg
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
LBB0_9:
Lloh17:
	adrp	x19, l_.str@PAGE
Lloh18:
	add	x19, x19, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	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_11:
	ldr	w0, [x20, #8]
	mov	w8, #24
	madd	x8, x21, x8, x22
	ldr	w1, [x8, #16]
	ldr	w2, [sp, #8]
	bl	_elf_strptr
	cmp	x0, #0
	csel	x19, x19, x0, eq
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_symbol_name.sname,64,0 ; @get_symbol_name.sname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_SHT_SYMTAB,8,3                 ; @SHT_SYMTAB
	.comm	_SHT_DYNSYM,8,3                 ; @SHT_DYNSYM
l_.str.1:                               ; @.str.1
	.asciz	"elf_getdata failed: %s"

	.comm	_STT_SECTION,8,3                ; @STT_SECTION
l_.str.2:                               ; @.str.2
	.asciz	"%s (section)"

	.no_dead_strip	_get_symbol_name
.subsections_via_symbols
