	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpp_demangle_read_tmpl_args
_cpp_demangle_read_tmpl_args:           ## @cpp_demangle_read_tmpl_args
	.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
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	cmpb	$0, (%rax)
	je	LBB0_20
## %bb.2:
	incq	%rax
	movq	%rax, (%r14)
	leaq	12(%r14), %r15
	movq	_READ_TMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_vector_read_cmd_push
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DEM_PUSH_STR
	testl	%eax, %eax
	je	LBB0_20
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%r14), %r12
	leaq	16(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$-1, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_CPP_DEMANGLE_TRY_LIMIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%r13
	cmpq	%rax, %r13
	ja	LBB0_19
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rbx
	movq	%r14, %rdi
	callq	_cpp_demangle_read_tmpl_arg
	testl	%eax, %eax
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edx
	decl	%edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rcx
	callq	_vector_str_substr
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_vector_str_find
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_vector_str_push
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_free
	movq	(%r14), %rax
	movzbl	(%rax), %ecx
	cmpb	$73, %cl
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$69, %cl
	je	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_DEM_PUSH_STR
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_12:
	incq	%rax
	movq	%rax, (%r14)
	movq	24(%r14), %rbx
	xorl	%edi, %edi
	addq	$-1, %rbx
	setb	%dil
	callq	_assert
	movq	32(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_strncmp
	testl	%eax, %eax
	movl	$0, %ebx
	je	LBB0_13
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	movq	%r15, %rdi
	callq	_free
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_DEM_PUSH_STR
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_20
## %bb.16:
	movl	$1, 8(%r14)
	callq	_vector_read_cmd_pop
	movl	%eax, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_TMPL,4,2                  ## @READ_TMPL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<"

L_.str.1:                               ## @.str.1
	.asciz	">"

L_.str.2:                               ## @.str.2
	.asciz	" >"

L_.str.3:                               ## @.str.3
	.asciz	", "

	.comm	_CPP_DEMANGLE_TRY_LIMIT,4,2     ## @CPP_DEMANGLE_TRY_LIMIT
	.no_dead_strip	_cpp_demangle_read_tmpl_args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpp_demangle_read_tmpl_args
_cpp_demangle_read_tmpl_args:           ; @cpp_demangle_read_tmpl_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldrb	w9, [x8]
	cbz	w9, LBB0_16
; %bb.2:
	add	x8, x8, #1
	mov	x20, x19
	str	x8, [x20], #12
Lloh0:
	adrp	x8, _READ_TMPL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_TMPL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_vector_read_cmd_push
	cbz	w0, LBB0_17
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DEM_PUSH_STR
	cbz	w0, LBB0_17
; %bb.4:
	add	x21, x19, #24
	add	x22, x19, #16
	mov	x25, #-1
Lloh5:
	adrp	x26, _CPP_DEMANGLE_TRY_LIMIT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _CPP_DEMANGLE_TRY_LIMIT@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str.3@PAGE
Lloh8:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x26]
	add	x25, x25, #1
	cmp	x25, x8
	b.hi	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #24]
	mov	x0, x19
	bl	_cpp_demangle_read_tmpl_arg
	cbz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	sub	w2, w8, #1
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x24
	bl	_vector_str_substr
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_vector_str_find
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_vector_str_push
	cbz	w0, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_free
	ldr	x8, [x19]
	ldrb	w9, [x8]
	cmp	w9, #73
	b.eq	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #69
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_DEM_PUSH_STR
	cbnz	w0, LBB0_5
	b	LBB0_17
LBB0_13:
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x8, [x19, #24]
	subs	x21, x8, #1
	cset	w0, hs
	bl	_assert
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x21, lsl #2]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_strncmp
	cbz	w0, LBB0_18
; %bb.14:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_15:
	mov	x0, x24
	bl	_free
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_DEM_PUSH_STR
	cbz	w0, LBB0_17
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_vector_read_cmd_pop
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_TMPL,4,2                  ; @READ_TMPL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<"

l_.str.1:                               ; @.str.1
	.asciz	">"

l_.str.2:                               ; @.str.2
	.asciz	" >"

l_.str.3:                               ; @.str.3
	.asciz	", "

	.comm	_CPP_DEMANGLE_TRY_LIMIT,4,2     ; @CPP_DEMANGLE_TRY_LIMIT
	.no_dead_strip	_cpp_demangle_read_tmpl_args
.subsections_via_symbols
