	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_v_ending
_r_v_ending:                            ## @r_v_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
	movslq	4(%rdi), %rax
	movl	%eax, (%rdi)
	leal	-1(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	8(%rdi), %ecx
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rcx
	movl	-4(%rcx,%rax,4), %eax
	orl	$8, %eax
	cmpl	$169, %eax
	jne	LBB0_11
## %bb.2:
	movq	_a_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movl	%eax, %r15d
	movl	4(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_r_R1
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	cmpl	$2, %r15d
	je	LBB0_9
## %bb.5:
	cmpl	$1, %r15d
	jne	LBB0_10
## %bb.6:
	movq	_s_0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_s_1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_8
LBB0_10:
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_8:
	movl	%eax, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_1,4,2                        ## @a_1
	.comm	_s_0,4,2                        ## @s_0
	.comm	_s_1,4,2                        ## @s_1
	.no_dead_strip	_r_v_ending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_v_ending
_r_v_ending:                            ; @r_v_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	w8, w9, [x0, #4]
	str	w8, [x0]
	sub	w8, w8, #1
	cmp	w8, w9
	b.le	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	ldr	w8, [x9, w8, sxtw #2]
	orr	w8, w8, #0x8
	cmp	w8, #169
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _a_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_find_among_b
	cbz	w0, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	w8, [x19, #4]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_r_R1
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	cmp	w20, #2
	b.eq	LBB0_9
; %bb.5:
	cmp	w20, #1
	b.ne	LBB0_11
; %bb.6:
Lloh3:
	adrp	x8, _s_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_0@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh5:
	adrp	x8, _s_1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_1@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_8
LBB0_11:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_a_1,4,2                        ; @a_1
	.comm	_s_0,4,2                        ; @s_0
	.comm	_s_1,4,2                        ; @s_1
	.no_dead_strip	_r_v_ending
.subsections_via_symbols
