	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elftc_demangle                 ## -- Begin function elftc_demangle
	.p2align	4, 0x90
_elftc_demangle:                        ## @elftc_demangle
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movzwl	%r12w, %esi
	callq	_is_mangled
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	shrl	$16, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_demangle
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_strlen
	incl	%eax
	cltq
	cmpq	%r14, %rax
	jbe	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strncpy
	movb	$0, -1(%r14,%r15)
	movq	%rbx, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elftc_demangle                 ; -- Begin function elftc_demangle
	.p2align	2
_elftc_demangle:                        ; @elftc_demangle
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	and	w1, w3, #0xffff
	bl	_is_mangled
	cbz	w0, LBB0_6
; %bb.2:
	mov	x1, x0
	lsr	w2, w22, #16
	mov	x0, x21
	bl	_demangle
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_strlen
	add	w8, w0, #1
	sxtw	x8, w8
	cmp	x8, x19
	b.ls	LBB0_9
LBB0_5:
	mov	x0, x21
	bl	_free
Lloh0:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _errno@GOTPAGE
Lloh5:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
	mov	w0, #-1
LBB0_8:
	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
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_strncpy
	add	x8, x19, x20
	sturb	wzr, [x8, #-1]
	mov	x0, x21
	bl	_free
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
.subsections_via_symbols
