	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_step6
_r_step6:                               ## @r_step6
	.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), %eax
	movl	%eax, %r15d
	subl	(%rdi), %r15d
	movl	%eax, 8(%rdi)
	movq	_a_71@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	_s_106@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	addl	(%rbx), %r15d
	movl	%r15d, 4(%rbx)
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movl	%r15d, 8(%rbx)
	movq	_a_72@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$84, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	movl	$1, %r14d
	cmovsl	%eax, %r14d
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_71,4,2                       ## @a_71
	.comm	_s_106,4,2                      ## @s_106
	.comm	_a_72,4,2                       ## @a_72
	.no_dead_strip	_r_step6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_step6
_r_step6:                               ; @r_step6
	.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]
	str	w21, [x0, #8]
Lloh0:
	adrp	x8, _a_71@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_71@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_find_among_b
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
Lloh3:
	adrp	x8, _s_106@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_106@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_6
LBB0_2:
	ldr	w8, [x19]
	sub	w9, w21, w20
	add	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	cbz	w9, LBB0_5
; %bb.3:
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _a_72@GOTPAGE
Lloh7:
	ldr	x8, [x8, _a_72@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #84
	bl	_find_among_b
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_slice_del
	cmp	w0, #0
	csinc	w0, w0, wzr, lt
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_a_71,4,2                       ; @a_71
	.comm	_s_106,4,2                      ; @s_106
	.comm	_a_72,4,2                       ; @a_72
	.no_dead_strip	_r_step6
.subsections_via_symbols
