	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_function                ## -- Begin function tl_add_function
	.p2align	4, 0x90
_tl_add_function:                       ## @tl_add_function
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edx, %r14d
	testl	%edx, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:
	movb	$1, %r15b
	cmpb	$35, (%r13)
	movl	$0, %ebx
	je	LBB0_9
LBB0_4:
	leaq	-1(%r14), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	cmpq	%rbx, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	1(%rdx), %rbx
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$35, 1(%r13,%rdx)
	jne	LBB0_7
## %bb.22:
	cmpq	%r14, %rbx
	setb	%r15b
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	incq	%rdx
	cmpq	%r14, %rdx
	setb	%r15b
	movl	%r14d, %ebx
LBB0_9:
	leal	1(%rbx), %edi
	callq	_zmalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	%ebx, %ebx
	movb	$0, (%r12,%rbx)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r12, %rdx
	callq	_vkprintf
	testb	%r15b, %r15b
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	subl	%ebx, %eax
	xorl	%edi, %edi
	cmpl	$9, %eax
	sete	%dil
	callq	_assert
	movzbl	1(%rbx,%r13), %eax
	leal	16777129(%rax), %ecx
	movl	%eax, %edx
	addl	$16777168, %edx                 ## imm = 0xFFFFD0
	cmpb	$58, %al
	cmovgel	%ecx, %edx
	shll	$4, %edx
	movzbl	2(%rbx,%r13), %eax
	cmpb	$58, %al
	leal	16777168(%rdx,%rax), %ecx
	leal	16777129(%rdx,%rax), %eax
	cmovll	%ecx, %eax
	shll	$4, %eax
	movsbl	3(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	16777168(%rax,%rcx), %edx
	leal	16777129(%rax,%rcx), %eax
	cmovll	%edx, %eax
	shll	$4, %eax
	movsbl	4(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	16777168(%rax,%rcx), %edx
	leal	16777129(%rax,%rcx), %eax
	cmovll	%edx, %eax
	shll	$4, %eax
	movsbl	5(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	16777168(%rax,%rcx), %edx
	leal	16777129(%rax,%rcx), %eax
	cmovll	%edx, %eax
	shll	$4, %eax
	movsbl	6(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	16777168(%rax,%rcx), %edx
	leal	16777129(%rax,%rcx), %eax
	cmovll	%edx, %eax
	shll	$4, %eax
	movsbl	7(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	268435408(%rax,%rcx), %edx
	leal	268435369(%rax,%rcx), %eax
	cmovll	%edx, %eax
	shll	$4, %eax
	movsbl	8(%rbx,%r13), %ecx
	cmpl	$58, %ecx
	leal	-48(%rax,%rcx), %edx
	leal	-87(%rax,%rcx), %eax
	cmovll	%edx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	decl	%eax
	xorl	%edi, %edi
	cmpl	$-2, %eax
	setb	%dil
	callq	_assert
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movups	%xmm0, -96(%rbp)
	movups	%xmm0, -112(%rbp)
	movq	%r12, -120(%rbp)
	movq	_tl_function_tree@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-120(%rbp), %rsi
	callq	_tree_lookup_tl_constructor
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_TL_ERROR
	incl	%r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_zfree
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_13:
	movl	$56, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	callq	_zstrdup
	movq	%rax, 16(%rbx)
	movq	$0, 40(%rbx)
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.14:
	decq	%r14
	xorl	%ecx, %ecx
	movabsq	$70407398883328, %rdx           ## imm = 0x400900000000
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rcx), %esi
	cmpq	$46, %rsi
	ja	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	btq	%rsi, %rdx
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movb	$36, (%rax,%rcx)
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	%rcx, %r14
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rbx), %rax
	incq	%rcx
	jmp	LBB0_15
LBB0_20:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	(%r13), %r14d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_tl_constructor
	movl	%eax, (%r13)
	movq	_total_functions_num@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_21:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add function %s\n"

	.comm	_tl_function_tree,4,2           ## @tl_function_tree
L_.str.1:                               ## @.str.1
	.asciz	"Duplicate function id `%s`\n"

	.comm	_total_functions_num,4,2        ## @total_functions_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_function                ; -- Begin function tl_add_function
	.p2align	2
_tl_add_function:                       ; @tl_add_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	w24, w2
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.1:
	cbnz	w3, LBB0_5
; %bb.2:
	ldrb	w8, [x22]
	cmp	w8, #35
	b.ne	LBB0_5
; %bb.3:
	mov	w23, #0
	mov	w25, #1
	b	LBB0_11
LBB0_4:
	mov	w23, #0
	mov	w25, #0
	b	LBB0_11
LBB0_5:
	mov	w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	cmp	x24, x8
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, #1
	cbnz	w3, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w9, [x22, x9]
	cmp	w9, #35
	b.ne	LBB0_6
; %bb.9:
	sub	x23, x8, #1
	cmp	x23, x24
	cset	w25, lo
	b	LBB0_11
LBB0_10:
	cmp	x9, x24
	cset	w25, lo
	mov	x23, x24
LBB0_11:
	add	w0, w23, #1
	bl	_zmalloc
	mov	x21, x0
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	mov	w23, w23
	strb	wzr, [x21, x23]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x21
	bl	_vkprintf
	mov	w26, #0
	cbz	w25, LBB0_13
; %bb.12:
	sub	w8, w19, w23
	cmp	w8, #9
	cset	w0, eq
	bl	_assert
	add	x8, x23, x22
	ldrb	w9, [x8, #1]
	sxtb	w10, w9
	mov	w11, #65449
	movk	w11, #255, lsl #16
	add	w12, w11, #39
	cmp	w10, #58
	csel	w10, w12, w11, lt
	add	w9, w10, w9
	ldrb	w10, [x8, #2]
	sxtb	w13, w10
	cmp	w13, #58
	csel	w13, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w13
	ldrsb	w10, [x8, #3]
	cmp	w10, #58
	csel	w13, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w13
	ldrsb	w10, [x8, #4]
	cmp	w10, #58
	csel	w13, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w13
	ldrsb	w10, [x8, #5]
	cmp	w10, #58
	csel	w13, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w13
	ldrsb	w10, [x8, #6]
	cmp	w10, #58
	csel	w11, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w11
	ldrsb	w10, [x8, #7]
	mov	w11, #65449
	movk	w11, #4095, lsl #16
	add	w12, w11, #39
	cmp	w10, #58
	csel	w11, w12, w11, lt
	add	w9, w10, w9, lsl #4
	add	w9, w9, w11
	ldrsb	w8, [x8, #8]
	mov	w10, #-87
	mov	w11, #-48
	cmp	w8, #58
	csel	w10, w11, w10, lt
	add	w8, w8, w9, lsl #4
	add	w26, w8, w10
	sub	w8, w26, #1
	cmn	w8, #2
	cset	w0, lo
	bl	_assert
LBB0_13:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stur	q0, [sp, #16]
	str	x21, [sp, #8]
Lloh2:
	adrp	x23, _tl_function_tree@GOTPAGE
Lloh3:
	ldr	x23, [x23, _tl_function_tree@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x1, sp, #8
	bl	_tree_lookup_tl_constructor
	cbz	x0, LBB0_15
; %bb.14:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_TL_ERROR
	add	w1, w19, #1
	mov	x0, x21
	bl	_zfree
	mov	x22, #0
	b	LBB0_22
LBB0_15:
	mov	w0, #56
	bl	_zmalloc
	mov	x22, x0
	str	x20, [x0, #48]
	str	w26, [x0, #8]
	str	x21, [x0]
	mov	x0, x21
	bl	_zstrdup
	str	x0, [x22, #16]
	str	xzr, [x22, #40]
	cmp	w19, #1
	b.lt	LBB0_21
; %bb.16:
	mov	x8, #0
	sub	x9, x24, #1
	mov	w10, #1
	mov	x11, #70407398883328
	mov	w12, #36
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x0, x8]
	cmp	w13, #46
	lsl	x13, x10, x13
	and	x13, x13, x11
	ccmp	x13, #0, #4, ls
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	strb	w12, [x0, x8]
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	x9, x8
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x22, #16]
	add	x8, x8, #1
	b	LBB0_17
LBB0_21:
	stp	xzr, xzr, [x22, #24]
	ldr	w19, [x23]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_tree_insert_tl_constructor
	str	w0, [x23]
Lloh6:
	adrp	x8, _total_functions_num@GOTPAGE
Lloh7:
	ldr	x8, [x8, _total_functions_num@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add function %s\n"

	.comm	_tl_function_tree,4,2           ; @tl_function_tree
l_.str.1:                               ; @.str.1
	.asciz	"Duplicate function id `%s`\n"

	.comm	_total_functions_num,4,2        ; @total_functions_num
.subsections_via_symbols
