	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_tidy
_r_tidy:                                ## @r_tidy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	8(%rdi), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	cmpl	%ecx, %eax
	jl	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	16(%rdi), %r15d
	movl	20(%rdi), %r12d
	movl	%ecx, 16(%rdi)
	subl	%eax, %r12d
	callq	_r_LONG
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	js	LBB0_27
## %bb.4:
	movl	20(%rbx), %eax
	subl	%r12d, %eax
	movl	%eax, 24(%rbx)
	cmpl	16(%rbx), %eax
	jle	LBB0_6
## %bb.5:
	decl	%eax
	movl	%eax, (%rbx)
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_27
LBB0_6:
	movl	20(%rbx), %eax
	subl	%r12d, %eax
	movl	%eax, (%rbx)
	movl	%eax, 24(%rbx)
	movq	_g_AEI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$97, %edx
	movl	$228, %ecx
	xorl	%r8d, %r8d
	callq	_in_grouping_b
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	(%rbx), %eax
	movl	%eax, 28(%rbx)
	movq	_g_C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$98, %edx
	movl	$122, %ecx
	xorl	%r8d, %r8d
	callq	_in_grouping_b
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_27
LBB0_9:
	movl	16(%rbx), %ecx
	movl	20(%rbx), %eax
	subl	%r12d, %eax
	movl	%eax, (%rbx)
	movl	%eax, 24(%rbx)
	cmpl	%ecx, %eax
	jle	LBB0_16
## %bb.10:
	movq	32(%rbx), %rsi
	movslq	%eax, %rdx
	cmpb	$106, -1(%rsi,%rdx)
	jne	LBB0_16
## %bb.11:
	leaq	-1(%rdx), %rdi
	movl	%edi, (%rbx)
	movl	%edi, 28(%rbx)
	cmpl	%ecx, %edi
	jle	LBB0_16
## %bb.12:
	movb	-2(%rsi,%rdx), %sil
	cmpb	$117, %sil
	je	LBB0_14
## %bb.13:
	cmpb	$111, %sil
	jne	LBB0_16
LBB0_14:
	addq	$-2, %rdx
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_27
## %bb.15:
	movl	16(%rbx), %ecx
	movl	20(%rbx), %eax
	subl	%r12d, %eax
LBB0_16:
	movl	%eax, (%rbx)
	movl	%eax, 24(%rbx)
	cmpl	%ecx, %eax
	jle	LBB0_22
## %bb.17:
	movq	32(%rbx), %rsi
	movslq	%eax, %rdx
	cmpb	$111, -1(%rsi,%rdx)
	jne	LBB0_22
## %bb.18:
	leaq	-1(%rdx), %rdi
	movl	%edi, (%rbx)
	movl	%edi, 28(%rbx)
	cmpl	%ecx, %edi
	jle	LBB0_22
## %bb.19:
	cmpb	$106, -2(%rsi,%rdx)
	jne	LBB0_22
## %bb.20:
	addq	$-2, %rdx
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_27
## %bb.21:
	movl	20(%rbx), %eax
	subl	%r12d, %eax
LBB0_22:
	movl	%eax, (%rbx)
	movl	%r15d, 16(%rbx)
	movq	_g_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$97, %edx
	movl	$246, %ecx
	movl	$1, %r8d
	callq	_in_grouping_b
	testq	%rax, %rax
	js	LBB0_28
## %bb.23:
	movl	(%rbx), %eax
	movl	%eax, 24(%rbx)
	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
	testq	%rax, %rax
	jne	LBB0_1
## %bb.24:
	movl	(%rbx), %eax
	movl	%eax, 28(%rbx)
	movq	40(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_slice_to
	movq	40(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_eq_v_b
	testl	%eax, %eax
	je	LBB0_1
## %bb.26:
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	movl	$1, %r14d
	cmovsl	%eax, %r14d
	jmp	LBB0_1
LBB0_27:
	movl	%eax, %r14d
	jmp	LBB0_1
LBB0_28:
	xorl	%r14d, %r14d
LBB0_1:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	$-1, %r14d
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_g_AEI,4,2                      ## @g_AEI
	.comm	_g_C,4,2                        ## @g_C
	.comm	_g_V1,4,2                       ## @g_V1
	.no_dead_strip	_r_tidy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_tidy
_r_tidy:                                ; @r_tidy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldp	w20, w10, [x0, #16]
	str	w9, [x0, #16]
	sub	w21, w10, w8
	bl	_r_LONG
	cbz	w0, LBB0_7
; %bb.4:
	tbnz	w0, #31, LBB0_2
; %bb.5:
	ldp	w9, w8, [x19, #16]
	sub	w8, w8, w21
	cmp	w8, w9
	str	w8, [x19, #24]
	b.le	LBB0_7
; %bb.6:
	sub	w8, w8, #1
	str	w8, [x19]
	str	w8, [x19, #28]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_2
LBB0_7:
	ldr	w8, [x19, #20]
	sub	w8, w8, w21
	str	w8, [x19]
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _g_AEI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_AEI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #228
	mov	w4, #0
	bl	_in_grouping_b
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x19]
	str	w8, [x19, #28]
Lloh3:
	adrp	x8, _g_C@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_C@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #98
	mov	w3, #122
	mov	w4, #0
	bl	_in_grouping_b
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_2
LBB0_10:
	ldp	w9, w8, [x19, #16]
	sub	w8, w8, w21
	cmp	w8, w9
	str	w8, [x19]
	str	w8, [x19, #24]
	b.le	LBB0_17
; %bb.11:
	ldr	x10, [x19, #32]
	sxtw	x11, w8
	sub	x12, x11, #1
	ldrb	w13, [x10, x12]
	cmp	w13, #106
	b.ne	LBB0_17
; %bb.12:
	str	w12, [x19]
	str	w12, [x19, #28]
	cmp	w12, w9
	b.le	LBB0_17
; %bb.13:
	sub	x11, x11, #2
	ldrb	w10, [x10, x11]
	cmp	w10, #117
	b.eq	LBB0_15
; %bb.14:
	cmp	w10, #111
	b.ne	LBB0_17
LBB0_15:
	str	w11, [x19]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_2
; %bb.16:
	ldp	w9, w8, [x19, #16]
	sub	w8, w8, w21
LBB0_17:
	str	w8, [x19]
	str	w8, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_23
; %bb.18:
	ldr	x10, [x19, #32]
	mov	x11, x8
	sxtw	x11, w11
	sub	x12, x11, #1
	ldrb	w13, [x10, x12]
	cmp	w13, #111
	b.ne	LBB0_23
; %bb.19:
	str	w12, [x19]
	str	w12, [x19, #28]
	cmp	w12, w9
	b.le	LBB0_23
; %bb.20:
	sub	x9, x11, #2
	ldrb	w10, [x10, x9]
	cmp	w10, #106
	b.ne	LBB0_23
; %bb.21:
	str	w9, [x19]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_2
; %bb.22:
	ldr	w8, [x19, #20]
	sub	w8, w8, w21
LBB0_23:
	str	w8, [x19]
	str	w20, [x19, #16]
Lloh6:
	adrp	x8, _g_V1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_V1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #97
	mov	w3, #246
	mov	w4, #1
	bl	_in_grouping_b
	tbnz	x0, #63, LBB0_1
; %bb.24:
	ldr	w8, [x19]
	str	w8, [x19, #24]
Lloh9:
	adrp	x8, _g_C@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_C@GOTPAGEOFF]
Lloh11:
	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	x8, LBB0_2
; %bb.25:
	ldr	w8, [x19]
	str	w8, [x19, #28]
	ldr	x8, [x19, #40]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #40]
	str	x0, [x8]
	cbz	x0, LBB0_28
; %bb.26:
	mov	x1, x0
	mov	x0, x19
	bl	_eq_v_b
	cbz	w0, LBB0_2
; %bb.27:
	mov	x0, x19
	bl	_slice_del
	cmp	w0, #0
	csinc	w0, w0, wzr, lt
	b	LBB0_2
LBB0_28:
	mov	w0, #-1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_AEI,4,2                      ; @g_AEI
	.comm	_g_C,4,2                        ; @g_C
	.comm	_g_V1,4,2                       ; @g_V1
	.no_dead_strip	_r_tidy
.subsections_via_symbols
