	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_step5g
_r_step5g:                              ## @r_step5g
	.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, %r12
	movl	4(%rdi), %eax
	movl	%eax, %ebx
	subl	(%rdi), %ebx
	movl	%eax, 8(%rdi)
	movq	_a_52@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	4(%r12), %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	callq	_slice_del
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_23
## %bb.2:
	movq	40(%r12), %rax
	movq	$0, (%rax)
	jmp	LBB0_4
LBB0_3:
                                        ## implicit-def: $r14d
LBB0_4:
	addl	(%r12), %ebx
	movl	%ebx, 4(%r12)
	movl	%ebx, 8(%r12)
	movq	_a_55@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	4(%r12), %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	callq	_slice_del
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	js	LBB0_12
## %bb.6:
	movq	40(%r12), %rax
	movq	$0, (%rax)
	movl	(%r12), %r15d
	movl	4(%r12), %ebx
	movl	%ebx, 8(%r12)
	movq	_a_53@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movl	4(%r12), %eax
	movl	%eax, 12(%r12)
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_slice_to
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	_s_94@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_21
## %bb.9:
	movl	4(%r12), %r14d
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_insert_v
	movl	%r14d, 4(%r12)
	movl	$1, %r14d
	testl	%eax, %eax
	jns	LBB0_23
LBB0_21:
	movl	%eax, %r15d
	jmp	LBB0_22
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_12:
	movl	%eax, %r14d
	jmp	LBB0_23
LBB0_13:
	subl	%r15d, %ebx
	movl	(%r12), %eax
	leal	(%rax,%rbx), %ecx
	movl	%ecx, 4(%r12)
	movl	%ecx, 8(%r12)
	addl	%ebx, %eax
	decl	%eax
	xorl	%r15d, %r15d
	cmpl	24(%r12), %eax
	jle	LBB0_22
## %bb.14:
	movq	32(%r12), %rcx
	cltq
	cmpl	$184, (%rcx,%rax,4)
	jne	LBB0_22
## %bb.15:
	movq	_a_54@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	movl	4(%r12), %eax
	movl	%eax, 12(%r12)
	cmpl	24(%r12), %eax
	jg	LBB0_22
## %bb.17:
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_slice_to
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	_s_95@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_21
## %bb.19:
	movl	4(%r12), %r15d
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_insert_v
	movl	%r15d, 4(%r12)
	testl	%eax, %eax
	cmovsl	%eax, %r14d
	movl	%r14d, %r15d
	movl	$1, %r14d
	jns	LBB0_23
	jmp	LBB0_22
LBB0_20:
	movl	$-1, %r15d
LBB0_22:
	movl	%r15d, %r14d
LBB0_23:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_52,4,2                       ## @a_52
	.comm	_a_55,4,2                       ## @a_55
	.comm	_a_53,4,2                       ## @a_53
	.comm	_s_94,4,2                       ## @s_94
	.comm	_a_54,4,2                       ## @a_54
	.comm	_s_95,4,2                       ## @s_95
	.no_dead_strip	_r_step5g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_step5g
_r_step5g:                              ; @r_step5g
	.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	w21, w22, [x0]
	str	w22, [x0, #8]
Lloh0:
	adrp	x8, _a_52@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_52@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, #12]
	mov	x0, x19
	bl	_slice_del
	mov	x20, x0
	tbnz	w0, #31, LBB0_21
; %bb.2:
	ldr	x8, [x19, #40]
	str	xzr, [x8]
	b	LBB0_4
LBB0_3:
                                        ; implicit-def: $w20
LBB0_4:
	ldr	w8, [x19]
	sub	w9, w22, w21
	add	w8, w8, w9
	stp	w8, w8, [x19, #4]
Lloh3:
	adrp	x8, _a_55@GOTPAGE
Lloh4:
	ldr	x8, [x8, _a_55@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_find_among_b
	cbz	w0, LBB0_15
; %bb.5:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_slice_del
	cmp	w0, #0
	csel	w21, w0, w20, lt
	tbnz	w0, #31, LBB0_19
; %bb.6:
	ldr	x8, [x19, #40]
	str	xzr, [x8]
	ldp	w20, w22, [x19]
	str	w22, [x19, #8]
Lloh6:
	adrp	x8, _a_53@GOTPAGE
Lloh7:
	ldr	x8, [x8, _a_53@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_find_among_b
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #16]
	str	x0, [x8]
	cbz	x0, LBB0_20
; %bb.8:
Lloh9:
	adrp	x8, _s_94@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_94@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_19
; %bb.9:
	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_19
LBB0_10:
	mov	w20, #1
	b	LBB0_21
LBB0_11:
	ldr	w8, [x19]
	sub	w9, w22, w20
	add	w8, w8, w9
	stp	w8, w8, [x19, #4]
	sub	w8, w8, #1
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_15
; %bb.12:
	ldr	x9, [x19, #32]
	ldr	w8, [x9, w8, sxtw #2]
	cmp	w8, #184
	b.ne	LBB0_15
; %bb.13:
Lloh12:
	adrp	x8, _a_54@GOTPAGE
Lloh13:
	ldr	x8, [x8, _a_54@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_find_among_b
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_16
LBB0_15:
	mov	w20, #0
	b	LBB0_21
LBB0_16:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #16]
	str	x0, [x8]
	cbz	x0, LBB0_20
; %bb.17:
Lloh15:
	adrp	x8, _s_95@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_95@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_19
; %bb.18:
	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
	csel	w20, w0, w21, lt
	tbz	w0, #31, LBB0_10
	b	LBB0_21
LBB0_19:
	mov	x20, x0
	b	LBB0_21
LBB0_20:
	mov	w20, #-1
LBB0_21:
	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
	.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	_a_52,4,2                       ; @a_52
	.comm	_a_55,4,2                       ; @a_55
	.comm	_a_53,4,2                       ; @a_53
	.comm	_s_94,4,2                       ; @s_94
	.comm	_a_54,4,2                       ; @a_54
	.comm	_s_95,4,2                       ; @s_95
	.no_dead_strip	_r_step5g
.subsections_via_symbols
