	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_type                    ## -- Begin function tl_add_type
	.p2align	4, 0x90
_tl_add_type:                           ## @tl_add_type
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leal	1(%r12), %r15d
	movl	%r15d, %edi
	callq	_zmalloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	movb	$0, (%r13,%rax)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r13, %rdx
	callq	_vkprintf
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -120(%rbp)
	movq	%r13, -128(%rbp)
	movq	_tl_type_tree@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-128(%rbp), %rsi
	callq	_tree_lookup_value_tl_type
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_zfree
	movq	(%r14), %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	cmpl	%eax, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 16(%rbx)
	je	LBB0_16
LBB0_4:
	movq	(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_TL_ERROR
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_5:
	movq	%rbx, %r15
	movl	$72, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	%r13, (%rax)
	movq	%r13, %rdi
	callq	_zstrdup
	movq	%rax, 24(%rbx)
	testl	%r12d, %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jle	LBB0_12
## %bb.6:
	movl	%r12d, %ecx
	decq	%rcx
	xorl	%edx, %edx
	movabsq	$70407398883328, %rsi           ## imm = 0x400900000000
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax,%rdx), %edi
	cmpq	$46, %rdi
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	btq	%rdi, %rsi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movb	$36, (%rax,%rdx)
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%rbx), %rax
	incq	%rdx
	jmp	LBB0_7
LBB0_12:
	movl	$0, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	testl	%r14d, %r14d
	js	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	cmpl	$65, %r14d
	setb	%dil
	callq	_assert
	movl	%r14d, 8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	jmp	LBB0_15
LBB0_14:
	movl	$4, 32(%rbx)
	movl	$-1, 8(%rbx)
LBB0_15:
	movl	(%r15), %r14d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_tl_type
	movl	%eax, (%r15)
	movq	_total_types_num@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_16:
	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 type %s\n"

	.comm	_tl_type_tree,4,2               ## @tl_type_tree
L_.str.1:                               ## @.str.1
	.asciz	"Wrong params_num or types for type %s\n"

	.comm	_total_types_num,4,2            ## @total_types_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_type                    ; -- Begin function tl_add_type
	.p2align	2
_tl_add_type:                           ; @tl_add_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x24, x0
	add	w21, w1, #1
	mov	x0, x21
	bl	_zmalloc
	mov	x23, x0
	mov	x1, x24
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x23, w22, sxtw]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x23
	bl	_vkprintf
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	x23, [sp, #8]
Lloh2:
	adrp	x25, _tl_type_tree@GOTPAGE
Lloh3:
	ldr	x25, [x25, _tl_type_tree@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x1, sp, #8
	bl	_tree_lookup_value_tl_type
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x21
	bl	_zfree
	ldr	x21, [x24]
	tbnz	w20, #31, LBB0_15
; %bb.2:
	ldr	w8, [x21, #8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21, #16]
	cmp	x8, x19
	b.eq	LBB0_15
LBB0_4:
	ldr	x1, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TL_ERROR
	mov	x21, #0
	b	LBB0_15
LBB0_5:
	mov	w0, #72
	bl	_zmalloc
	mov	x21, x0
	str	x23, [x0]
	mov	x0, x23
	bl	_zstrdup
	str	x0, [x21, #24]
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x8, #0
	mov	w9, w22
	sub	x9, x9, #1
	mov	w10, #1
	mov	x11, #70407398883328
	mov	w12, #36
LBB0_7:                                 ; =>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_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w12, [x0, x8]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x21, #24]
	add	x8, x8, #1
	b	LBB0_7
LBB0_11:
	str	wzr, [x21, #32]
	movi.2d	v0, #0000000000000000
	stur	q0, [x21, #40]
	stur	q0, [x21, #56]
	tbnz	w20, #31, LBB0_13
; %bb.12:
	cmp	w20, #65
	cset	w0, lo
	bl	_assert
	str	w20, [x21, #8]
	str	x19, [x21, #16]
	b	LBB0_14
LBB0_13:
	mov	w8, #4
	str	w8, [x21, #32]
	mov	w8, #-1
	str	w8, [x21, #8]
LBB0_14:
	ldr	w19, [x25]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_tree_insert_tl_type
	str	w0, [x25]
Lloh6:
	adrp	x8, _total_types_num@GOTPAGE
Lloh7:
	ldr	x8, [x8, _total_types_num@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add type %s\n"

	.comm	_tl_type_tree,4,2               ; @tl_type_tree
l_.str.1:                               ; @.str.1
	.asciz	"Wrong params_num or types for type %s\n"

	.comm	_total_types_num,4,2            ; @total_types_num
.subsections_via_symbols
