	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_var                     ## -- Begin function tl_add_var
	.p2align	4, 0x90
_tl_add_var:                            ## @tl_add_var
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r12, %rdx
	callq	_vkprintf
	movl	$32, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_zstrdup
	movl	%eax, 24(%rbx)
	movl	%r14d, (%rbx)
	movq	%r15, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_vars@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_namespace_level@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	callq	_tree_lookup_tl_var
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %r15d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_tl_var
	movq	(%r12), %rdx
	movq	(%r13), %rcx
	movl	%eax, (%rdx,%rcx,4)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_last_num_var@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%rcx,8)
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %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 var %s\n"

	.comm	_vars,8,3                       ## @vars
	.comm	_namespace_level,8,3            ## @namespace_level
	.comm	_last_num_var,8,3               ## @last_num_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_var                     ; -- Begin function tl_add_var
	.p2align	2
_tl_add_var:                            ; @tl_add_var
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x22
	bl	_vkprintf
	mov	w0, #32
	bl	_zmalloc
	mov	x20, x0
	mov	x0, x22
	bl	_zstrdup
	str	w0, [x20, #24]
	str	w19, [x20]
	stp	xzr, x21, [x20, #8]
Lloh2:
	adrp	x22, _vars@GOTPAGE
Lloh3:
	ldr	x22, [x22, _vars@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh4:
	adrp	x23, _namespace_level@GOTPAGE
Lloh5:
	ldr	x23, [x23, _namespace_level@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x20
	bl	_tree_lookup_tl_var
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	w21, [x8, x9, lsl #2]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_tree_insert_tl_var
	ldr	x9, [x22]
	ldr	x8, [x23]
	str	w0, [x9, x8, lsl #2]
	cbz	w19, LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _last_num_var@GOTPAGE
Lloh7:
	ldr	x9, [x9, _last_num_var@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x20, [x9, x8, lsl #3]
LBB0_3:
	mov	x0, x20
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add var %s\n"

	.comm	_vars,8,3                       ; @vars
	.comm	_namespace_level,8,3            ; @namespace_level
	.comm	_last_num_var,8,3               ; @last_num_var
.subsections_via_symbols
