	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trie_rus_add                   ## -- Begin function trie_rus_add
	.p2align	4, 0x90
_trie_rus_add:                          ## @trie_rus_add
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	%rsi, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	cltq
	addq	%rax, %r12
	decq	%r12
	negl	%r15d
	xorl	%ebx, %ebx
	movq	_mem@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	decq	%rbx
	cmpl	%ebx, %r15d
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_conv_rus_win1251
	movq	(%r14), %rcx
	movslq	%r13d, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rdx
	cltq
	movl	(%rdx,%rax,4), %r13d
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_mn@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
	leal	1(%r13), %esi
	movl	%esi, (%rdi)
	movl	%r13d, (%rdx,%rax,4)
	jmp	LBB0_5
LBB0_1:
	movq	_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_6:
	movslq	%r13d, %rbx
	shlq	$4, %rbx
	xorl	%edi, %edi
	cmpl	$0, 8(%rcx,%rbx)
	sete	%dil
	callq	_assert
	movq	_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax,%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem,8,3                        ## @mem
	.comm	_mn,4,2                         ## @mn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trie_rus_add                   ; -- Begin function trie_rus_add
	.p2align	2
_trie_rus_add:                          ; @trie_rus_add
	.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	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x23, _mem@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mem@GOTPAGEOFF]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x8, x22, w0, sxtw
	sub	x22, x8, #1
Lloh2:
	adrp	x24, _mn@GOTPAGE
Lloh3:
	ldr	x24, [x24, _mn@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x22, x22, #1
	subs	w21, w21, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22]
	bl	_conv_rus_win1251
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23]
	sbfiz	x9, x20, #4, #32
	ldr	x9, [x8, x9]
	ldr	w20, [x9, w0, sxtw #2]
	cbnz	w20, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x10, w0
	ldr	w20, [x24]
	add	w11, w20, #1
	str	w11, [x24]
	str	w20, [x9, x10, lsl #2]
	b	LBB0_2
LBB0_5:
	ldr	x8, [x23]
LBB0_6:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sbfiz	x20, x20, #4, #32
	add	x8, x8, x20
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
	add	x8, x8, x20
	str	w19, [x8, #8]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mem,8,3                        ; @mem
	.comm	_mn,4,2                         ; @mn
.subsections_via_symbols
