	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function stem_rus_utf8
LCPI0_0:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_stem_rus_utf8
	.p2align	4, 0x90
_stem_rus_utf8:                         ## @stem_rus_utf8
	.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, %r15d
	movq	%rsi, %r14
	movq	_stem_ts_v@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_string_to_utf8
	movq	_stem_ts@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_maxn@GOTPCREL(%rip), %rbx
	cmpl	$101, (%rbx)
	jl	LBB0_6
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %edi
	callq	_conv_rus_utf8
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	leaq	1(%r14), %rdi
	cmpl	$0, 4(%rcx,%r14,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$101, %r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	movq	%rdi, %r14
	jl	LBB0_3
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_stem_rus
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_38
## %bb.7:
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movl	%r15d, %r8d
	xorl	%esi, %esi
	cmpl	$8, %r15d
	jb	LBB0_28
## %bb.8:
	movq	%rcx, %rdi
	subq	%rax, %rdi
	cmpq	$32, %rdi
	jb	LBB0_28
## %bb.9:
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	(,%r8,4), %rdi
	andq	$-32, %rdi
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [32,32,32,32]
	pcmpeqd	%xmm1, %xmm1
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$32, %rbx
	cmpq	%rbx, %rdi
	je	LBB0_27
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rbx), %xmm3
	movdqu	16(%rax,%rbx), %xmm2
	movdqa	%xmm3, %xmm4
	pcmpeqd	%xmm0, %xmm4
	movd	%xmm4, %edx
	notl	%edx
	testb	$1, %dl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movd	%xmm3, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, (%rcx,%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	pxor	%xmm1, %xmm4
	pextrb	$4, %xmm4, %edx
	testb	$1, %dl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$1, %xmm3, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 4(%rcx,%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	pextrb	$8, %xmm4, %edx
	testb	$1, %dl
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$2, %xmm3, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 8(%rcx,%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	pextrb	$12, %xmm4, %edx
	testb	$1, %dl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$3, %xmm3, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 12(%rcx,%rbx)
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movdqa	%xmm2, %xmm3
	pcmpeqd	%xmm0, %xmm3
	movd	%xmm3, %edx
	notl	%edx
	testb	$1, %dl
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movd	%xmm2, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 16(%rcx,%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	pxor	%xmm1, %xmm3
	pextrb	$4, %xmm3, %edx
	testb	$1, %dl
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$1, %xmm2, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 20(%rcx,%rbx)
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	pextrb	$8, %xmm3, %edx
	testb	$1, %dl
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$2, %xmm2, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 24(%rcx,%rbx)
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	pextrb	$12, %xmm3, %edx
	testb	$1, %dl
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	pextrd	$3, %xmm2, %edx
	addl	$1072, %edx                     ## imm = 0x430
	movl	%edx, 28(%rcx,%rbx)
	jmp	LBB0_26
LBB0_27:
	cmpq	%r8, %rsi
	je	LBB0_38
LBB0_28:
	movq	%rsi, %rdi
	notq	%rdi
	testb	$1, %r8b
	je	LBB0_32
## %bb.29:
	movl	(%rax,%rsi,4), %ebx
	cmpl	$32, %ebx
	je	LBB0_31
## %bb.30:
	addl	$1072, %ebx                     ## imm = 0x430
	movl	%ebx, (%rcx,%rsi,4)
LBB0_31:
	orq	$1, %rsi
LBB0_32:
	addq	%r8, %rdi
	jne	LBB0_33
LBB0_38:
	movq	(%r12), %rdi
	movslq	%r15d, %rax
	movl	$0, (%rdi,%rax,4)
	movq	%r14, %rsi
	callq	_put_string_utf8
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_33 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r8
	je	LBB0_38
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rsi,4), %edi
	cmpl	$32, %edi
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	addl	$1072, %edi                     ## imm = 0x430
	movl	%edi, (%rcx,%rsi,4)
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	movl	4(%rax,%rsi,4), %edi
	cmpl	$32, %edi
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=1
	addl	$1072, %edi                     ## imm = 0x430
	movl	%edi, 4(%rcx,%rsi,4)
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_stem_ts_v,8,3                  ## @stem_ts_v
	.comm	_stem_ts,8,3                    ## @stem_ts
	.comm	_maxn,4,2                       ## @maxn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stem_rus_utf8                  ; -- Begin function stem_rus_utf8
	.p2align	2
_stem_rus_utf8:                         ; @stem_rus_utf8
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x21, _stem_ts_v@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stem_ts_v@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_string_to_utf8
	mov	w0, #0
Lloh2:
	adrp	x22, _stem_ts@GOTPAGE
Lloh3:
	ldr	x22, [x22, _stem_ts@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh4:
	adrp	x23, _maxn@GOTPAGE
Lloh5:
	ldr	x23, [x23, _maxn@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #101
	b.lt	LBB0_4
; %bb.2:
	mov	x0, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x0
	ldr	x8, [x21]
	lsl	x25, x0, #2
	ldr	w0, [x8, x25]
	bl	_conv_rus_utf8
	ldr	x8, [x22]
	add	x8, x8, x25
	str	w0, [x8]
	add	x0, x24, #1
	ldr	w8, [x8, #4]
	add	x9, x24, #101
	ldrsw	x10, [x23]
	cmp	w8, #0
	ccmp	x9, x10, #0, ne
	b.lt	LBB0_3
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x20
	bl	_stem_rus
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_26
; %bb.5:
	mov	x8, #0
	ldr	x10, [x22]
	ldr	x11, [x21]
	mov	w9, w20
	cmp	w20, #8
	b.lo	LBB0_27
; %bb.6:
	sub	x12, x11, x10
	cmp	x12, #32
	b.lo	LBB0_27
; %bb.7:
	and	x8, x9, #0xfffffff8
	add	x12, x10, #16
	add	x13, x11, #16
	movi.2s	v0, #32
	mov	x14, x8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.eq	LBB0_25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d4, d3, [x12, #-16]
	ldp	d2, d1, [x12]
	cmeq.2s	v5, v4, v0
	mvn.8b	v5, v5
	fmov	w15, s5
	tbz	w15, #0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	fmov	w15, s4
	add	w15, w15, #1072
	stur	w15, [x13, #-16]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v5[1]
	tbz	w15, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v4[1]
	add	w15, w15, #1072
	stur	w15, [x13, #-12]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	cmeq.2s	v4, v3, v0
	mvn.8b	v4, v4
	fmov	w15, s4
	tbz	w15, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	fmov	w15, s3
	add	w15, w15, #1072
	stur	w15, [x13, #-8]
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v4[1]
	tbz	w15, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v3[1]
	add	w15, w15, #1072
	stur	w15, [x13, #-4]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cmeq.2s	v3, v2, v0
	mvn.8b	v3, v3
	fmov	w15, s3
	tbz	w15, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	fmov	w15, s2
	add	w15, w15, #1072
	str	w15, [x13]
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v3[1]
	tbz	w15, #0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v2[1]
	add	w15, w15, #1072
	str	w15, [x13, #4]
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	cmeq.2s	v2, v1, v0
	mvn.8b	v2, v2
	fmov	w15, s2
	tbz	w15, #0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	fmov	w15, s1
	add	w15, w15, #1072
	str	w15, [x13, #8]
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v2[1]
	tbz	w15, #0, LBB0_8
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=1
	mov.s	w15, v1[1]
	add	w15, w15, #1072
	str	w15, [x13, #12]
	b	LBB0_8
LBB0_25:
	cmp	x8, x9
	b.ne	LBB0_27
LBB0_26:
	ldr	x0, [x21]
	str	wzr, [x0, w20, sxtw #2]
	mov	x1, x19
	bl	_put_string_utf8
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	lsl	x12, x8, #2
	add	x11, x11, x12
	add	x10, x10, x12
	sub	x8, x9, x8
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x11, x11, #4
	add	x10, x10, #4
	subs	x8, x8, #1
	b.eq	LBB0_26
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10]
	cmp	w9, #32
	b.eq	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	w9, w9, #1072
	str	w9, [x11]
	b	LBB0_28
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stem_ts_v,8,3                  ; @stem_ts_v
	.comm	_stem_ts,8,3                    ; @stem_ts
	.comm	_maxn,4,2                       ; @maxn
.subsections_via_symbols
