	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_step3
_r_step3:                               ## @r_step3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movl	%eax, (%rdi)
	movq	_a_37@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
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_g_v@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$945, %edx                      ## imm = 0x3B1
	movl	$969, %ecx                      ## imm = 0x3C9
	xorl	%r8d, %r8d
	callq	_in_grouping_b_U
	testq	%rax, %rax
	jne	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_9
## %bb.4:
	movq	_s_69@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_7
## %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)
	testl	%eax, %eax
	movl	$1, %r14d
	cmovsl	%eax, %r14d
	jmp	LBB0_8
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	$-1, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_a_37,4,2                       ## @a_37
	.comm	_g_v,4,2                        ## @g_v
	.comm	_s_69,4,2                       ## @s_69
	.no_dead_strip	_r_step3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_step3
_r_step3:                               ; @r_step3
	.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
	mov	x19, x0
	ldr	w8, [x0, #4]
	str	w8, [x0]
Lloh0:
	adrp	x8, _a_37@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_37@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_find_among_b
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	ldr	w8, [x19, #4]
	str	w8, [x19]
Lloh3:
	adrp	x8, _g_v@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_v@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #945
	mov	w3, #969
	mov	w4, #0
	bl	_in_grouping_b_U
	mov	x8, x0
	mov	w0, #0
	cbz	x8, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	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_7
; %bb.5:
Lloh6:
	adrp	x8, _s_69@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_69@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_3
; %bb.6:
	ldr	w20, [x19, #4]
	ldr	x8, [x19, #16]
	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_3
LBB0_7:
	mov	w0, #-1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_a_37,4,2                       ; @a_37
	.comm	_g_v,4,2                        ; @g_v
	.comm	_s_69,4,2                       ; @s_69
	.no_dead_strip	_r_step3
.subsections_via_symbols
