	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_field                   ## -- Begin function tl_add_field
	.p2align	4, 0x90
_tl_add_field:                          ## @tl_add_field
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_namespace_level@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	$10, (%r15)
	setl	%dil
	callq	_assert
	movl	(%r15), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	_fields@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%rbx, %rsi
	callq	_tree_lookup_tl_field
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movslq	(%r15), %rcx
	movl	(%rax,%rcx,4), %r14d
	xorl	%eax, %eax
	callq	_lrand48
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_tree_insert_tl_field
	movq	(%r12), %rcx
	movslq	(%r15), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_namespace_level,4,2            ## @namespace_level
	.comm	_fields,8,3                     ## @fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_add_field                   ; -- Begin function tl_add_field
	.p2align	2
_tl_add_field:                          ; @tl_add_field
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _namespace_level@GOTPAGE
Lloh1:
	ldr	x21, [x21, _namespace_level@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #10
	cset	w0, lt
	bl	_assert
	ldr	w8, [x21]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
Lloh2:
	adrp	x22, _fields@GOTPAGE
Lloh3:
	ldr	x22, [x22, _fields@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x19
	bl	_tree_lookup_tl_field
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	ldr	w20, [x8, x9, lsl #2]
	bl	_lrand48
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_tree_insert_tl_field
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	str	w0, [x8, x9, lsl #2]
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_namespace_level,4,2            ; @namespace_level
	.comm	_fields,8,3                     ; @fields
.subsections_via_symbols
