	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_demangle                   ## -- Begin function bfd_demangle
	.p2align	4, 0x90
_bfd_demangle:                          ## @bfd_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	%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, %r13d
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	callq	_bfd_get_symbol_leading_char
	xorl	%ecx, %ecx
	cmpb	(%rbx), %al
	sete	%cl
	addq	%rcx, %rbx
LBB0_3:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	decq	%r14
	incq	%rax
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rax), %ecx
	cmpb	$46, %cl
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$36, %cl
	je	LBB0_4
## %bb.7:
	movq	%rbx, %r12
	subq	%r14, %r12
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	%rax, %r15
	subq	%rbx, %r15
	leaq	(%r15,%r14), %rdi
	incq	%rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_bfd_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %r13
	addq	%r14, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r13, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r15
	addq	%rcx, %rax
	subq	%rbx, %rax
	movb	$0, (%rax,%r14)
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_cplus_demangle
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_free
	testq	%r12, %r12
	jne	LBB0_10
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_14:
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_cplus_demangle
	movq	%rax, %r12
	testq	%r12, %r12
	je	LBB0_16
LBB0_10:
	movq	%r14, %rax
	orq	%r15, %rax
	je	LBB0_17
## %bb.11:
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %r13
	leaq	(%r12,%r13), %rdi
	testq	%r15, %r15
	cmovneq	%r15, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	cltq
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	movq	%rax, %r13
	subq	%r14, %rdi
	callq	_bfd_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdx
	negq	%rdx
	incq	%r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r15, %rdi
	subq	%r14, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r15, %rdi
	addq	%rbx, %rdi
	subq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_memcpy
LBB0_13:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_17:
	movq	%r12, %r15
LBB0_18:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_demangle                   ; -- Begin function bfd_demangle
	.p2align	2
_bfd_demangle:                          ; @bfd_demangle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	cbz	x0, LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	bl	_bfd_get_symbol_leading_char
	mov	x8, x19
	ldrb	w9, [x8], #1
	cmp	w9, w0, uxtb
	csel	x19, x19, x8, ne
LBB0_3:
	mov	x8, #0
	mov	x25, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x25, x25, #1
	add	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x19, x8]
	cmp	w9, #46
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #36
	b.eq	LBB0_4
; %bb.7:
	sub	x22, x19, x25
	mov	x0, x22
	mov	w1, #64
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.8:
	sub	x8, x21, x19
	add	x24, x8, x25
	add	x0, x24, #1
	bl	_bfd_malloc
	cbz	x0, LBB0_10
; %bb.9:
	mov	x23, x0
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	add	x8, x23, x21
	sub	x8, x8, x19
	strb	wzr, [x8, x25]
	mov	x0, x23
	mov	x1, x20
	bl	_cplus_demangle
	mov	x20, x0
	mov	x0, x23
	bl	_free
	cbnz	x20, LBB0_12
LBB0_10:
	mov	x21, #0
	b	LBB0_17
LBB0_11:
	mov	x0, x22
	mov	x1, x20
	bl	_cplus_demangle
	mov	x20, x0
	cbz	x20, LBB0_10
LBB0_12:
	orr	x8, x25, x21
	cbz	x8, LBB0_16
; %bb.13:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	add	x8, x20, x23
	cmp	x21, #0
	csel	x22, x8, x21, eq
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtw	x24, w8
	add	x8, x23, x24
	sub	x0, x8, x25
	bl	_bfd_malloc
	mov	x21, x0
	cbz	x0, LBB0_15
; %bb.14:
	neg	x2, x25
	mov	x0, x21
	mov	x1, x19
	bl	_memcpy
	sub	x0, x21, x25
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	add	x8, x21, x23
	sub	x0, x8, x25
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
LBB0_15:
	mov	x0, x20
	bl	_free
	b	LBB0_17
LBB0_16:
	mov	x21, x20
LBB0_17:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
