	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lithuanian_UTF_8_stem          ## -- Begin function lithuanian_UTF_8_stem
	.p2align	4, 0x90
_lithuanian_UTF_8_stem:                 ## @lithuanian_UTF_8_stem
	.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
	movl	8(%rdi), %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movl	12(%rdi), %ebx
	cmpl	8(%rdi), %ebx
	je	LBB0_5
## %bb.1:
	movslq	%ebx, %rax
	movq	16(%r15), %rdi
	cmpb	$97, (%rdi,%rax)
	jne	LBB0_5
## %bb.2:
	callq	_len_utf8
	movl	%eax, %ecx
	movl	%ebx, %eax
	cmpl	$7, %ecx
	jl	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	movl	8(%r15), %ecx
	movl	12(%r15), %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_skip_utf8
	testl	%eax, %eax
	cmovsl	%ebx, %eax
LBB0_4:
	movl	%eax, 12(%r15)
LBB0_5:
	movq	_g_v@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$97, %edx
	movl	$371, %ecx                      ## imm = 0x173
	movl	$1, %r8d
	callq	_out_grouping_U
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	addl	%eax, 12(%r15)
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$97, %edx
	movl	$371, %ecx                      ## imm = 0x173
	movl	$1, %r8d
	callq	_in_grouping_U
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	addl	12(%r15), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movl	%ebx, 24(%r15)
	movl	8(%r15), %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rdi
	callq	_r_fix_conflicts
	movl	%eax, %ebx
	shrl	$31, %eax
	testl	%ebx, %ebx
	movl	$4, %ecx
	cmovnel	%eax, %ecx
	testb	$1, %cl
	jne	LBB0_10
## %bb.9:
	movl	8(%r15), %r12d
	movl	%r12d, 12(%r15)
	movl	%r12d, %r13d
LBB0_12:
	movq	%r15, %rdi
	callq	_r_step1
	movl	%eax, %r14d
	shrl	$31, %eax
	testl	%r14d, %r14d
	cmovnsl	%ebx, %r14d
	movl	$5, %ecx
	cmovnel	%eax, %ecx
	cmovel	%ebx, %r14d
	cmpl	$5, %ecx
	je	LBB0_14
## %bb.13:
	testl	%ecx, %ecx
	jne	LBB0_15
LBB0_14:
	subl	%r13d, %r12d
	movl	8(%r15), %ebx
	addl	%ebx, %r12d
	movl	%r12d, 12(%r15)
LBB0_17:
	movq	%r15, %rdi
	callq	_r_fix_chdz
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	movl	$6, %edx
	cmovnel	%ecx, %edx
	cmovnel	%eax, %r14d
	cmpl	$6, %edx
	je	LBB0_19
## %bb.18:
	testl	%edx, %edx
	jne	LBB0_20
LBB0_19:
	subl	%ebx, %r12d
	movl	8(%r15), %ebx
	addl	%ebx, %r12d
	movl	%r12d, 12(%r15)
	jmp	LBB0_22
LBB0_10:
	movl	%ebx, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.11:
	movl	8(%r15), %r13d
	movl	12(%r15), %r12d
	jmp	LBB0_12
LBB0_15:
	testl	%eax, %eax
	jne	LBB0_34
## %bb.16:
	movl	8(%r15), %ebx
	movl	12(%r15), %r12d
	jmp	LBB0_17
LBB0_20:
	testl	%ecx, %ecx
	jne	LBB0_34
## %bb.21:
	movl	8(%r15), %ebx
	movl	12(%r15), %r12d
LBB0_22:
	movq	%r15, %rdi
	callq	_r_step2
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	movl	$7, %edx
	cmovnel	%ecx, %edx
	cmovnel	%eax, %r14d
	cmpl	$7, %edx
	je	LBB0_24
## %bb.23:
	testl	%edx, %edx
	jne	LBB0_25
LBB0_24:
	subl	%ebx, %r12d
	movl	8(%r15), %ebx
	addl	%ebx, %r12d
	movl	%r12d, 12(%r15)
	jmp	LBB0_27
LBB0_25:
	testl	%ecx, %ecx
	jne	LBB0_34
## %bb.26:
	movl	8(%r15), %ebx
	movl	12(%r15), %r12d
LBB0_27:
	movq	%r15, %rdi
	callq	_r_fix_chdz
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	movl	$8, %edx
	cmovnel	%ecx, %edx
	cmovnel	%eax, %r14d
	testb	$1, %dl
	jne	LBB0_29
## %bb.28:
	subl	%ebx, %r12d
	addl	8(%r15), %r12d
	movl	%r12d, 12(%r15)
LBB0_30:
	movq	%r15, %rdi
	callq	_r_fix_gd
	movl	%eax, %ecx
	shrl	$31, %ecx
	testl	%eax, %eax
	movl	$9, %edx
	cmovnel	%ecx, %edx
	testl	%edx, %edx
	je	LBB0_33
## %bb.31:
	cmpl	$9, %edx
	je	LBB0_33
## %bb.32:
	testl	%eax, %eax
	cmovnsl	%r14d, %eax
	cmovnel	%eax, %r14d
	testl	%ecx, %ecx
	jne	LBB0_34
LBB0_33:
	movl	24(%r15), %eax
	movl	%eax, 12(%r15)
	movl	$1, %r14d
LBB0_34:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	testl	%ecx, %ecx
	je	LBB0_30
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_g_v,4,2                        ## @g_v
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lithuanian_UTF_8_stem          ; -- Begin function lithuanian_UTF_8_stem
	.p2align	2
_lithuanian_UTF_8_stem:                 ; @lithuanian_UTF_8_stem
	.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, x0
	ldr	w8, [x0, #8]
	ldr	x9, [x0]
	str	w8, [x9]
	ldp	w8, w20, [x0, #8]
	cmp	w20, w8
	b.eq	LBB0_5
; %bb.1:
	sxtw	x8, w20
	ldr	x0, [x19, #16]
	ldrb	w8, [x0, x8]
	cmp	w8, #97
	b.ne	LBB0_5
; %bb.2:
	bl	_len_utf8
	mov	x8, x20
	cmp	w0, #7
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
	ldp	w3, w1, [x19, #8]
	mov	w2, #0
	mov	w4, #1
	bl	_skip_utf8
	cmp	w0, #0
	csel	w8, w20, w0, lt
LBB0_4:
	str	w8, [x19, #12]
LBB0_5:
Lloh0:
	adrp	x21, _g_v@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_v@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #371
	mov	w4, #1
	bl	_out_grouping_U
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w8, [x19, #12]
	add	w8, w8, w0
	str	w8, [x19, #12]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #371
	mov	w4, #1
	bl	_in_grouping_U
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	w8, [x19, #12]
	add	w8, w8, w0
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_8:
	str	w20, [x19, #24]
	ldr	w8, [x19, #8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_r_fix_conflicts
	mov	x20, x0
	lsr	w8, w0, #31
	mov	w9, #4
	cmp	w0, #0
	csel	w9, w9, w8, eq
	orr	w9, w9, #0x4
	cmp	w9, #4
	b.ne	LBB0_16
; %bb.9:
	ldr	w22, [x19, #8]
	str	w22, [x19, #12]
	mov	x23, x22
LBB0_10:
	mov	x0, x19
	bl	_r_step1
	lsr	w8, w0, #31
	cmp	w0, #0
	csel	w10, w0, w20, lt
	mov	w9, #5
	csel	w9, w9, w8, eq
	csel	w20, w20, w10, eq
	cmp	w9, #5
	b.eq	LBB0_12
; %bb.11:
	cbnz	w9, LBB0_18
LBB0_12:
	ldr	w21, [x19, #8]
	sub	w8, w22, w23
	add	w23, w8, w21
	str	w23, [x19, #12]
LBB0_13:
	mov	x0, x19
	bl	_r_fix_chdz
	lsr	w8, w0, #31
	cmp	w0, #0
	csel	w10, w0, w20, lt
	mov	w9, #6
	csel	w9, w9, w8, eq
	csel	w20, w20, w10, eq
	cmp	w9, #6
	b.eq	LBB0_15
; %bb.14:
	cbnz	w9, LBB0_20
LBB0_15:
	ldr	w22, [x19, #8]
	sub	w8, w23, w21
	add	w23, w8, w22
	str	w23, [x19, #12]
	b	LBB0_22
LBB0_16:
	cbnz	w8, LBB0_33
; %bb.17:
	ldp	w23, w22, [x19, #8]
	b	LBB0_10
LBB0_18:
	cbnz	w8, LBB0_33
; %bb.19:
	ldp	w21, w23, [x19, #8]
	b	LBB0_13
LBB0_20:
	cbnz	w8, LBB0_33
; %bb.21:
	ldp	w22, w23, [x19, #8]
LBB0_22:
	mov	x0, x19
	bl	_r_step2
	lsr	w8, w0, #31
	cmp	w0, #0
	csel	w10, w0, w20, lt
	mov	w9, #7
	csel	w9, w9, w8, eq
	csel	w20, w20, w10, eq
	cmp	w9, #7
	b.eq	LBB0_24
; %bb.23:
	cbnz	w9, LBB0_25
LBB0_24:
	ldr	w21, [x19, #8]
	sub	w8, w23, w22
	add	w22, w8, w21
	str	w22, [x19, #12]
	b	LBB0_27
LBB0_25:
	cbnz	w8, LBB0_33
; %bb.26:
	ldp	w21, w22, [x19, #8]
LBB0_27:
	mov	x0, x19
	bl	_r_fix_chdz
	lsr	w8, w0, #31
	cmp	w0, #0
	csel	w9, w0, w20, lt
	mov	w10, #8
	csel	w10, w10, w8, eq
	csel	w20, w20, w9, eq
	orr	w9, w10, #0x8
	cmp	w9, #8
	b.ne	LBB0_34
; %bb.28:
	ldr	w8, [x19, #8]
	sub	w9, w22, w21
	add	w8, w9, w8
	str	w8, [x19, #12]
LBB0_29:
	mov	x0, x19
	bl	_r_fix_gd
	lsr	w8, w0, #31
	mov	w9, #9
	cmp	w0, #0
	csel	w9, w9, w8, eq
	cbz	w9, LBB0_32
; %bb.30:
	cmp	w9, #9
	b.eq	LBB0_32
; %bb.31:
	cmp	w0, #0
	csel	w9, w0, w20, lt
	csel	w20, w20, w9, eq
	cbnz	w8, LBB0_33
LBB0_32:
	ldr	w8, [x19, #24]
	str	w8, [x19, #12]
	mov	w20, #1
LBB0_33:
	mov	x0, x20
	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_34:
	cbz	w8, LBB0_29
	b	LBB0_33
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g_v,4,2                        ; @g_v
.subsections_via_symbols
