	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_step5h
_r_step5h:                              ## @r_step5h
	.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, %rbx
	movl	4(%rdi), %eax
	movl	%eax, (%rdi)
	movq	_a_58@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	32(%rbx), %rax
	movq	$0, (%rax)
	movl	4(%rbx), %r15d
	movl	12(%rbx), %r12d
	movl	%r15d, (%rbx)
	movq	_a_56@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_slice_to
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	_s_96@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_14
## %bb.5:
	movl	4(%rbx), %r14d
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_insert_v
	movl	%r14d, 4(%rbx)
	movl	$1, %ecx
	testl	%eax, %eax
	jns	LBB0_15
	jmp	LBB0_14
LBB0_6:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_7:
	movl	%r14d, %ecx
	jmp	LBB0_15
LBB0_8:
	subl	%r12d, %r15d
	addl	12(%rbx), %r15d
	movl	%r15d, 4(%rbx)
	movl	%r15d, (%rbx)
	movq	_a_57@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$25, %edx
	callq	_find_among_b
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.9:
	movl	4(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	cmpl	24(%rbx), %ecx
	jg	LBB0_14
## %bb.10:
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_slice_to
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_s_97@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	movl	4(%rbx), %r15d
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_insert_v
	movl	%r15d, 4(%rbx)
	movl	$1, %ecx
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	movl	%r14d, %eax
	jns	LBB0_15
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	movl	%eax, %ecx
LBB0_15:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_58,4,2                       ## @a_58
	.comm	_a_56,4,2                       ## @a_56
	.comm	_s_96,4,2                       ## @s_96
	.comm	_a_57,4,2                       ## @a_57
	.comm	_s_97,4,2                       ## @s_97
	.no_dead_strip	_r_step5h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_step5h
_r_step5h:                              ; @r_step5h
	.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
	ldr	w8, [x0, #4]
	str	w8, [x0]
Lloh0:
	adrp	x8, _a_58@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_58@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_find_among_b
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_slice_del
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.2:
	ldr	x8, [x19, #32]
	str	xzr, [x8]
	ldr	w21, [x19, #12]
	ldr	w22, [x19, #4]
	str	w22, [x19]
Lloh3:
	adrp	x8, _a_56@GOTPAGE
Lloh4:
	ldr	x8, [x8, _a_56@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	_find_among_b
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #16]
	str	x0, [x8]
	cbz	x0, LBB0_14
; %bb.4:
Lloh6:
	adrp	x8, _s_96@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_96@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_15
; %bb.5:
	ldr	w21, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_insert_v
	str	w21, [x19, #4]
	tbnz	w0, #31, LBB0_15
LBB0_6:
	mov	w20, #1
	b	LBB0_10
LBB0_7:
	ldr	w8, [x19, #12]
	sub	w9, w22, w21
	add	w8, w8, w9
	stp	w8, w8, [x19]
Lloh9:
	adrp	x8, _a_57@GOTPAGE
Lloh10:
	ldr	x8, [x8, _a_57@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #25
	bl	_find_among_b
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_11
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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_11:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #16]
	str	x0, [x8]
	cbz	x0, LBB0_14
; %bb.12:
Lloh12:
	adrp	x8, _s_97@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_97@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_15
; %bb.13:
	ldr	w21, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_insert_v
	str	w21, [x19, #4]
	cmp	w0, #0
	csel	w20, w0, w20, lt
	tbz	w0, #31, LBB0_6
	b	LBB0_10
LBB0_14:
	mov	w20, #-1
	b	LBB0_10
LBB0_15:
	mov	x20, x0
	b	LBB0_10
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_a_58,4,2                       ; @a_58
	.comm	_a_56,4,2                       ; @a_56
	.comm	_s_96,4,2                       ; @s_96
	.comm	_a_57,4,2                       ; @a_57
	.comm	_s_97,4,2                       ; @s_97
	.no_dead_strip	_r_step5h
.subsections_via_symbols
