	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_objc_demangle                  ## -- Begin function objc_demangle
	.p2align	4, 0x90
_objc_demangle:                         ## @objc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$95, (%rdi)
	jne	LBB0_22
## %bb.1:
	movq	%rdi, %r15
	movb	1(%rdi), %al
	cmpb	$105, %al
	je	LBB0_3
## %bb.2:
	cmpb	$99, %al
	jne	LBB0_22
LBB0_3:
	cmpb	$95, 2(%r15)
	jne	LBB0_22
## %bb.4:
	movq	%r15, %rdi
	callq	_strlen
	leaq	2(%rax), %rdi
	callq	_xmalloc
	movq	%rax, %r14
	cmpb	$105, 1(%r15)
	sete	%al
	addb	%al, %al
	addb	$43, %al
	leaq	1(%r14), %rbx
	movb	%al, (%r14)
	leaq	2(%r14), %rdi
	movb	$91, 1(%r14)
	leaq	3(%r15), %rsi
	callq	_strcpy
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$95, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	$95, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	movq	%rax, %rbx
	incq	%rbx
	cmpb	$95, 1(%rax)
	jne	LBB0_12
## %bb.8:
	movb	$32, (%rax)
	movq	%rbx, %rax
	subq	%r14, %rax
	leaq	(%r15,%rax), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	jmp	LBB0_14
LBB0_12:
	movb	$40, (%rax)
	movq	%rbx, %rdi
	movl	$95, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movq	%rax, %rbx
	movw	$8233, (%rax)                   ## imm = 0x2029
	addq	$2, %rbx
	movq	%rbx, %rax
	subq	%r14, %rax
	addq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
LBB0_14:
	callq	_strcpy
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	cmpb	$95, %al
	je	LBB0_15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_18 Depth=1
	movb	$58, -1(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$95, %al
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	testb	%al, %al
	jne	LBB0_17
## %bb.20:
	movw	$93, -1(%rbx)
	jmp	LBB0_23
LBB0_21:
	movq	%r14, %rdi
	callq	_xfree
LBB0_22:
	xorl	%r14d, %r14d
LBB0_23:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	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	_objc_demangle                  ; -- Begin function objc_demangle
	.p2align	2
_objc_demangle:                         ; @objc_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
	ldrb	w8, [x0]
	cmp	w8, #95
	b.ne	LBB0_20
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0, #1]
	cmp	w8, #105
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #99
	b.ne	LBB0_20
LBB0_3:
	ldrb	w8, [x20, #2]
	cmp	w8, #95
	b.ne	LBB0_20
; %bb.4:
	mov	x0, x20
	bl	_strlen
	add	x0, x0, #2
	bl	_xmalloc
	mov	x19, x0
	ldrb	w8, [x20, #1]
	mov	w9, #43
	mov	w10, #45
	cmp	w8, #105
	csel	w8, w10, w9, eq
	strb	w8, [x0], #2
	mov	w8, #91
	mov	x21, x19
	strb	w8, [x21, #1]!
	add	x1, x20, #3
	bl	_strcpy
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, #1]!
	cmp	w8, #95
	b.eq	LBB0_5
; %bb.6:
	mov	x0, x21
	mov	w1, #95
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.7:
	mov	x21, x0
	ldrb	w8, [x21, #1]!
	cmp	w8, #95
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #32
	strb	w8, [x0]
	sub	x8, x21, x19
	add	x8, x20, x8
	add	x1, x8, #2
	b	LBB0_11
LBB0_9:
	mov	w8, #40
	strb	w8, [x0]
	mov	x0, x21
	mov	w1, #95
	bl	_strchr
	cbz	x0, LBB0_19
; %bb.10:
	mov	x21, x0
	mov	w8, #8233
	strh	w8, [x21], #2
	sub	x8, x21, x19
	add	x1, x20, x8
LBB0_11:
	mov	x0, x21
	bl	_strcpy
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21], #1
	cmp	w8, #95
	b.eq	LBB0_12
; %bb.13:
	mov	w9, #58
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	sturb	w9, [x21, #-1]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w8, [x21], #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #95
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	w8, LBB0_15
; %bb.18:
	mov	w8, #93
	sturh	w8, [x21, #-1]
	b	LBB0_21
LBB0_19:
	mov	x0, x19
	bl	_xfree
LBB0_20:
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
