	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_case_ending
_r_case_ending:                         ## @r_case_ending
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	jl	LBB0_27
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %r15d
	movl	%ecx, 16(%rdi)
	movq	%rax, 24(%rdi)
	movq	_a_6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$30, %edx
	callq	_find_among_b
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rcx
	movq	%rcx, 32(%rbx)
	movl	%r15d, 16(%rbx)
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_24
## %bb.3:
	movslq	%r15d, %rdx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_4:
	cmpq	%rdx, %rcx
	jle	LBB0_27
## %bb.5:
	movq	40(%rbx), %rax
	cmpb	$97, -1(%rax,%rcx)
	je	LBB0_15
	jmp	LBB0_27
LBB0_6:
	movl	%r15d, 16(%rbx)
	jmp	LBB0_27
LBB0_7:
	cmpq	%rdx, %rcx
	jle	LBB0_27
## %bb.8:
	movq	40(%rbx), %rax
	cmpb	$101, -1(%rax,%rcx)
	je	LBB0_15
	jmp	LBB0_27
LBB0_9:
	cmpq	%rdx, %rcx
	jle	LBB0_27
## %bb.10:
	movq	40(%rbx), %rax
	cmpb	$105, -1(%rax,%rcx)
	je	LBB0_15
	jmp	LBB0_27
LBB0_11:
	movq	_g_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$97, %edx
	movl	$246, %ecx
	xorl	%r8d, %r8d
	callq	_in_grouping_b
	testl	%eax, %eax
	jne	LBB0_27
## %bb.12:
	movq	_g_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$98, %edx
	movl	$122, %ecx
	xorl	%r8d, %r8d
	callq	_in_grouping_b
	testl	%eax, %eax
	jne	LBB0_27
	jmp	LBB0_24
LBB0_13:
	cmpq	%rdx, %rcx
	jle	LBB0_27
## %bb.14:
	movq	40(%rbx), %rax
	cmpb	$111, -1(%rax,%rcx)
	jne	LBB0_27
LBB0_15:
	decq	%rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_24
LBB0_16:
	movl	48(%rbx), %r14d
	subl	%ecx, %r14d
	movq	%rbx, %rdi
	callq	_r_LONG
	movl	%eax, %edx
	shrl	$31, %edx
	testl	%eax, %eax
	movl	$3, %ecx
	cmovnel	%edx, %ecx
	movslq	%r14d, %r15
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.17:
	cmpl	$3, %ecx
	jne	LBB0_20
## %bb.18:
	movslq	48(%rbx), %rax
	subq	%r15, %rax
	movq	%rax, (%rbx)
	movq	_s_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:
	movslq	48(%rbx), %rax
	subq	%r15, %rax
	jmp	LBB0_23
LBB0_20:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	cmovel	%eax, %r14d
	js	LBB0_27
LBB0_21:
	movslq	48(%rbx), %rax
	subq	%r15, %rax
	cmpl	16(%rbx), %eax
	jle	LBB0_23
## %bb.22:
	decq	%rax
	movq	%rax, (%rbx)
	movq	%rax, 32(%rbx)
	jmp	LBB0_24
LBB0_23:
	movq	%rax, (%rbx)
LBB0_24:
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_26
## %bb.25:
	movq	56(%rbx), %rax
	movl	$1, (%rax)
	movl	$1, %r14d
	jmp	LBB0_27
LBB0_26:
	movl	%eax, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_27
	.long	L0_0_set_27
	.long	L0_0_set_16
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_a_6,4,2                        ## @a_6
	.comm	_s_2,4,2                        ## @s_2
	.comm	_g_V1,4,2                       ## @g_V1
	.comm	_g_C,4,2                        ## @g_C
	.no_dead_strip	_r_case_ending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_case_ending
_r_case_ending:                         ; @r_case_ending
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x8, x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_26
LBB0_2:
	mov	x19, x0
	ldr	w20, [x0, #16]
	str	w9, [x0, #16]
	str	x8, [x0, #24]
Lloh0:
	adrp	x8, _a_6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #30
	bl	_find_among_b
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	str	x8, [x19, #32]
	str	w20, [x19, #16]
	sub	w10, w0, #1
	cmp	w10, #7
	b.hi	LBB0_24
; %bb.4:
	mov	w0, #0
	sxtw	x9, w20
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
	cmp	x8, x9
	b.le	LBB0_1
; %bb.6:
	ldr	x9, [x19, #40]
	sub	x8, x8, #1
	ldrb	w9, [x9, x8]
	cmp	w9, #97
	b.ne	LBB0_1
	b	LBB0_23
LBB0_7:
	str	w20, [x19, #16]
	b	LBB0_26
LBB0_8:
	cmp	x8, x9
	b.le	LBB0_1
; %bb.9:
	ldr	x9, [x19, #40]
	sub	x8, x8, #1
	ldrb	w9, [x9, x8]
	cmp	w9, #101
	b.ne	LBB0_1
	b	LBB0_23
LBB0_10:
	cmp	x8, x9
	b.le	LBB0_1
; %bb.11:
	ldr	x9, [x19, #40]
	sub	x8, x8, #1
	ldrb	w9, [x9, x8]
	cmp	w9, #105
	b.ne	LBB0_1
	b	LBB0_23
LBB0_12:
Lloh5:
	adrp	x8, _g_V1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_V1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #246
	mov	w4, #0
	bl	_in_grouping_b
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_26
; %bb.13:
Lloh8:
	adrp	x8, _g_C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_C@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #98
	mov	w3, #122
	mov	w4, #0
	bl	_in_grouping_b
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_26
	b	LBB0_24
LBB0_14:
	cmp	x8, x9
	b.le	LBB0_1
; %bb.15:
	ldr	x9, [x19, #40]
	sub	x8, x8, #1
	ldrb	w9, [x9, x8]
	cmp	w9, #111
	b.ne	LBB0_1
	b	LBB0_23
LBB0_16:
	ldr	w9, [x19, #48]
	sub	w20, w9, w8
	mov	x0, x19
	bl	_r_LONG
	lsr	w9, w0, #31
	mov	w10, #3
	cmp	w0, #0
	csel	w9, w10, w9, eq
	cbz	w9, LBB0_21
; %bb.17:
	cmp	w9, #3
	b.ne	LBB0_20
; %bb.18:
	ldrsw	x8, [x19, #48]
	sub	x8, x8, w20, sxtw
	str	x8, [x19]
Lloh11:
	adrp	x8, _s_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_2@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_eq_s_b
	cbnz	w0, LBB0_21
; %bb.19:
	ldrsw	x8, [x19, #48]
	sub	x8, x8, w20, sxtw
	b	LBB0_23
LBB0_20:
	mov	x8, x0
	cmp	w0, #0
	csel	w9, w0, wzr, lt
	csel	w0, wzr, w9, eq
	tbnz	w8, #31, LBB0_26
LBB0_21:
	ldrsw	x8, [x19, #48]
	sub	x8, x8, w20, sxtw
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.le	LBB0_23
; %bb.22:
	sub	x8, x8, #1
	str	x8, [x19]
	str	x8, [x19, #32]
	b	LBB0_24
LBB0_23:
	str	x8, [x19]
LBB0_24:
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_26
; %bb.25:
	ldr	x8, [x19, #56]
	mov	w0, #1
	str	w0, [x8]
LBB0_26:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_26-LBB0_5)>>2
	.byte	(LBB0_26-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_a_6,4,2                        ; @a_6
	.comm	_s_2,4,2                        ; @s_2
	.comm	_g_V1,4,2                       ; @g_V1
	.comm	_g_C,4,2                        ; @g_C
	.no_dead_strip	_r_case_ending
.subsections_via_symbols
