	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_to_trie
_add_to_trie:                           ## @add_to_trie
	.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
	movq	%rdi, %r15
	movb	(%rsi), %cl
	testb	%cl, %cl
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rdi
	cmpb	%cl, (%rdi)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %rcx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	1(%rdi,%rsi), %eax
	leaq	1(%rsi), %rbx
	cmpb	1(%r14,%rsi), %al
	movq	%rbx, %rsi
	je	LBB0_6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%r14,%r8)
	je	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movslq	%r8d, %rcx
	movzbl	(%r14,%rcx), %esi
	movq	(%rax,%rsi,8), %rax
	leaq	(%r14,%rcx), %rdi
	incq	%rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rdi), %cl
	movq	%rdi, %r14
	movq	%rax, %r15
	testb	%cl, %cl
	jne	LBB0_3
	jmp	LBB0_15
LBB0_1:
	movq	%r15, %rax
LBB0_15:
	movq	16(%rax), %r13
	movq	%rdx, 16(%rax)
	jmp	LBB0_18
LBB0_16:
	movq	%rdx, %rsi
	callq	_make_trie_node
	movq	24(%r15), %rcx
	movslq	(%r15), %rdx
	movzbl	(%r14,%rdx), %edx
	movq	%rax, (%rcx,%rdx,8)
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	addq	%r13, %r14
	movl	$32, %edi
	callq	_xmalloc
	movq	%rax, %r12
	movq	24(%rax), %rdi
	movq	24(%r15), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	%ebx, %esi
	notl	%esi
	addl	(%r15), %esi
	movl	%esi, (%r12)
	je	LBB0_11
## %bb.10:
	movq	8(%r15), %rax
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	callq	_xstrndup
	movq	%rax, 8(%r12)
LBB0_11:
	movq	16(%r15), %rax
	movq	%rax, 16(%r12)
	movq	$0, 16(%r15)
	movl	%ebx, (%r15)
	movq	24(%r15), %rdi
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movzbl	(%rax,%rbx), %eax
	movq	%r12, (%rcx,%rax,8)
	leaq	1(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_make_trie_node
	movq	24(%r15), %rcx
	movzbl	(%r14), %edx
	movq	%rax, (%rcx,%rdx,8)
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	16(%r15), %r13
	movq	%rdx, 16(%r15)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_to_trie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_to_trie
_add_to_trie:                           ; @add_to_trie
	.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	x20, x0
	ldrb	w9, [x1]
	cbz	w9, LBB0_10
; %bb.1:
	mov	x21, x1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x20, #8]
	ldrb	w11, [x10]
	cmp	w11, w9
	b.ne	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, #0
	add	x9, x10, #1
	add	x10, x21, #1
	sub	x11, x8, #1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x11, x22
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w12, [x10, x22]
	ldrb	w13, [x9, x22]
	add	x22, x22, #1
	cmp	w13, w12
	b.eq	LBB0_5
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x21, x8]
	cbz	w9, LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #24]
	add	x0, x21, w8, sxtw
	ldrb	w8, [x0], #1
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x0]
	mov	x21, x0
	mov	x20, x8
	cbnz	w9, LBB0_2
	b	LBB0_11
LBB0_10:
	mov	x8, x20
LBB0_11:
	ldr	x0, [x8, #16]
	str	x19, [x8, #16]
	b	LBB0_18
LBB0_12:
	mov	x1, x19
	bl	_make_trie_node
	mov	x8, x0
	mov	x0, #0
	ldr	x9, [x20, #24]
	ldrsw	x10, [x20]
	ldrb	w10, [x21, x10]
	b	LBB0_17
LBB0_13:
	mov	x22, #0
LBB0_14:
	and	x24, x22, #0xffffffff
	add	x23, x21, x24
	mov	w0, #32
	bl	_xmalloc
	mov	x21, x0
	ldr	x0, [x0, #24]
	ldr	x1, [x20, #24]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x20]
	mvn	w9, w22
	adds	w1, w8, w9
	str	w1, [x21]
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	add	x0, x8, #1
	bl	_xstrndup
	str	x0, [x21, #8]
LBB0_16:
	ldp	x8, x0, [x20, #16]
	str	x8, [x21, #16]
	str	xzr, [x20, #16]
	str	w22, [x20]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	ldrb	w9, [x9, x24]
	str	x21, [x8, x9, lsl #3]
	add	x0, x23, #1
	mov	x1, x19
	bl	_make_trie_node
	mov	x8, x0
	mov	x0, #0
	ldr	x9, [x20, #24]
	ldrb	w10, [x23]
LBB0_17:
	str	x8, [x9, x10, lsl #3]
LBB0_18:
	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
LBB0_19:
	ldr	x0, [x20, #16]
	str	x19, [x20, #16]
	b	LBB0_18
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_to_trie
.subsections_via_symbols
