	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_step5a
_r_step5a:                              ## @r_step5a
	.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, %rbx
	movl	4(%rdi), %r15d
	subl	(%rdi), %r15d
	movq	_s_72@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$10, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %eax
	cmpl	8(%rbx), %eax
	jg	LBB0_3
## %bb.2:
	movq	_s_73@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_19
LBB0_3:
	movl	(%rbx), %ecx
	leal	(%rcx,%r15), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 12(%rbx)
	addl	%r15d, %ecx
	addl	$-9, %ecx
	cmpl	8(%rbx), %ecx
	jle	LBB0_8
## %bb.4:
	movq	16(%rbx), %rcx
	cltq
	cmpl	$181, -4(%rcx,%rax,4)
	jne	LBB0_8
## %bb.5:
	movq	_a_40@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movslq	4(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_19
## %bb.7:
	movq	40(%rbx), %rax
	movq	$0, (%rax)
LBB0_8:
	addl	(%rbx), %r15d
	movl	%r15d, 4(%rbx)
	movl	%r15d, 12(%rbx)
	movq	_s_74@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_eq_s_b
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_20
## %bb.9:
	movslq	4(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	movq	40(%rbx), %rax
	movq	$0, (%rax)
	movl	4(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	_a_41@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:
	movslq	4(%rbx), %rax
	movq	%rax, 24(%rbx)
	cmpl	8(%rbx), %eax
	jg	LBB0_20
## %bb.12:
	movq	32(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_slice_to
	movq	32(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	_s_75@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	movl	4(%rbx), %r14d
	movq	32(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_insert_v
	movl	%r14d, 4(%rbx)
	testl	%eax, %eax
	movl	$1, %r14d
	cmovsl	%eax, %r14d
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	$-1, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_s_72,4,2                       ## @s_72
	.comm	_s_73,4,2                       ## @s_73
	.comm	_a_40,4,2                       ## @a_40
	.comm	_s_74,4,2                       ## @s_74
	.comm	_a_41,4,2                       ## @a_41
	.comm	_s_75,4,2                       ## @s_75
	.no_dead_strip	_r_step5a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_step5a
_r_step5a:                              ; @r_step5a
	.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
	mov	x19, x0
	ldp	w20, w21, [x0]
Lloh0:
	adrp	x8, _s_72@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_72@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #10
	bl	_eq_s_b
	cbz	w0, LBB0_3
; %bb.1:
	ldp	w8, w9, [x19, #4]
	cmp	w8, w9
	b.gt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _s_73@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_73@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_17
LBB0_3:
	ldr	w8, [x19]
	sub	w20, w21, w20
	add	w8, w8, w20
	str	w8, [x19, #4]
	str	w8, [x19, #12]
	sub	w9, w8, #9
	ldr	w10, [x19, #8]
	cmp	w9, w10
	b.le	LBB0_8
; %bb.4:
	ldr	x9, [x19, #16]
	sub	w8, w8, #1
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w8, #181
	b.ne	LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _a_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _a_40@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_find_among_b
	cbz	w0, LBB0_8
; %bb.6:
	ldrsw	x8, [x19, #4]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_17
; %bb.7:
	ldr	x8, [x19, #40]
	str	xzr, [x8]
LBB0_8:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19, #4]
	str	w8, [x19, #12]
Lloh9:
	adrp	x8, _s_74@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_74@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_eq_s_b
	cbz	w0, LBB0_17
; %bb.9:
	ldrsw	x8, [x19, #4]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_17
; %bb.10:
	ldr	x8, [x19, #40]
	str	xzr, [x8]
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
Lloh12:
	adrp	x8, _a_41@GOTPAGE
Lloh13:
	ldr	x8, [x8, _a_41@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	_find_among_b
	cbz	w0, LBB0_17
; %bb.11:
	ldp	w8, w9, [x19, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	x8, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_17
LBB0_13:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #32]
	str	x0, [x8]
	cbz	x0, LBB0_16
; %bb.14:
Lloh15:
	adrp	x8, _s_75@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_75@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_17
; %bb.15:
	ldr	w20, [x19, #4]
	ldr	x8, [x19, #32]
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_insert_v
	str	w20, [x19, #4]
	cmp	w0, #0
	csinc	w0, w0, wzr, lt
	b	LBB0_17
LBB0_16:
	mov	w0, #-1
LBB0_17:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_s_72,4,2                       ; @s_72
	.comm	_s_73,4,2                       ; @s_73
	.comm	_a_40,4,2                       ; @a_40
	.comm	_s_74,4,2                       ; @s_74
	.comm	_a_41,4,2                       ; @a_41
	.comm	_s_75,4,2                       ; @s_75
	.no_dead_strip	_r_step5a
.subsections_via_symbols
