	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpp_demangle_read_tmpl_param
_cpp_demangle_read_tmpl_param:          ## @cpp_demangle_read_tmpl_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpb	$84, (%rax)
	jne	LBB0_11
## %bb.2:
	leaq	1(%rax), %rdi
	movq	%rdi, (%rbx)
	cmpb	$95, 1(%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_strtol
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_6
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	(%rbx), %rcx
	cmpb	$95, (%rcx)
	je	LBB0_9
## %bb.7:
	incq	%rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, (%rbx)
	cmpb	$95, (%rcx)
	leaq	1(%rcx), %rcx
	jne	LBB0_8
LBB0_9:
	leaq	1(%rax), %r14
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cpp_demangle_get_tmpl_param    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_cpp_demangle_read_tmpl_param
.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_param
_cpp_demangle_read_tmpl_param:          ; @cpp_demangle_read_tmpl_param
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldrb	w9, [x8]
	cmp	w9, #84
	b.ne	LBB0_10
; %bb.2:
	add	x0, x8, #1
	str	x0, [x19]
	ldrb	w8, [x8, #1]
	cmp	w8, #95
	b.ne	LBB0_4
; %bb.3:
	mov	x20, #0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	xzr, [x20]
	mov	x1, #0
	mov	w2, #36
	bl	_strtol
	ldr	x8, [x20]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_10
; %bb.5:
	add	x20, x0, #1
	ldr	x8, [x19]
	ldrb	w9, [x8]
	cmp	w9, #95
	b.eq	LBB0_8
; %bb.6:
	add	x8, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x19]
	ldrb	w9, [x8], #1
	cmp	w9, #95
	b.ne	LBB0_7
LBB0_8:
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpp_demangle_get_tmpl_param
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_cpp_demangle_read_tmpl_param
.subsections_via_symbols
