	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_other_endings
_r_other_endings:                       ## @r_other_endings
	.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
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rcx
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	jl	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %r12d
	movl	%ecx, 16(%rdi)
	movq	%rax, 24(%rdi)
	movq	_a_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$14, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %r15
	movq	%r15, 32(%rbx)
	movl	%r12d, 16(%rbx)
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movl	40(%rbx), %r12d
	movq	_s_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	subl	%r12d, %r15d
	addl	40(%rbx), %r15d
	movslq	%r15d, %rax
	movq	%rax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_slice_del
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovsl	%eax, %ecx
	movl	$1, %r14d
	cmovsl	%ecx, %r14d
	jmp	LBB0_7
LBB0_2:
	movl	%r12d, 16(%rbx)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_7,4,2                        ## @a_7
	.comm	_s_3,4,2                        ## @s_3
	.no_dead_strip	_r_other_endings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_other_endings
_r_other_endings:                       ; @r_other_endings
	.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
	ldp	x8, x9, [x0]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldr	w21, [x0, #16]
	str	w9, [x0, #16]
	str	x8, [x0, #24]
Lloh0:
	adrp	x8, _a_7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_7@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #14
	bl	_find_among_b
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x20, [x19]
	str	x20, [x19, #32]
	str	w21, [x19, #16]
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
	ldr	w21, [x19, #40]
Lloh3:
	adrp	x8, _s_3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_3@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_eq_s_b
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w8, [x19, #40]
	sub	w9, w20, w21
	add	w8, w9, w8
	sxtw	x8, w8
	str	x8, [x19]
LBB0_6:
	mov	x0, x19
	bl	_slice_del
	cmp	w0, #0
	csel	w8, w0, wzr, lt
	csinc	w0, w8, wzr, lt
	b	LBB0_8
LBB0_7:
	str	w21, [x19, #16]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_a_7,4,2                        ; @a_7
	.comm	_s_3,4,2                        ; @s_3
	.no_dead_strip	_r_other_endings
.subsections_via_symbols
