	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_steps1
_r_steps1:                              ## @r_steps1
	.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, (%rdi)
	movq	_a_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$14, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_slice_del
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	40(%rbx), %rax
	movq	$0, (%rax)
	movslq	4(%rbx), %rax
	movl	%eax, %r15d
	subl	12(%rbx), %r15d
	movl	%eax, (%rbx)
	leal	-3(%rax), %ecx
	cmpl	16(%rbx), %ecx
	jle	LBB0_7
## %bb.3:
	movq	24(%rbx), %rcx
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, %ecx
	andl	$-32, %ecx
	cmpl	$160, %ecx
	jne	LBB0_7
## %bb.4:
	movl	$-2145255424, %ecx              ## imm = 0x80220000
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.5:
	movq	_a_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %eax
	movl	%eax, 8(%rbx)
	cmpl	16(%rbx), %eax
	jle	LBB0_17
LBB0_7:
	addl	12(%rbx), %r15d
	movl	%r15d, 4(%rbx)
	movl	%r15d, (%rbx)
	movq	_a_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$22, %edx
	callq	_find_among_b
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.8:
	movl	4(%rbx), %ecx
	movl	%ecx, 8(%rbx)
	cmpl	16(%rbx), %ecx
	jg	LBB0_15
## %bb.9:
	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_14
## %bb.10:
	movq	_s_36@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movl	4(%rbx), %r15d
	movq	32(%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_16
	jmp	LBB0_15
LBB0_12:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_13:
	movl	%r14d, %ecx
	jmp	LBB0_16
LBB0_17:
	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_14
## %bb.18:
	movq	_s_35@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_slice_from_s
	testl	%eax, %eax
	js	LBB0_15
## %bb.19:
	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)
	movl	$1, %ecx
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_15
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	movl	%eax, %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_4,4,2                        ## @a_4
	.comm	_a_2,4,2                        ## @a_2
	.comm	_s_35,4,2                       ## @s_35
	.comm	_a_3,4,2                        ## @a_3
	.comm	_s_36,4,2                       ## @s_36
	.no_dead_strip	_r_steps1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_steps1
_r_steps1:                              ; @r_steps1
	.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_4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #14
	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, #40]
	str	xzr, [x8]
	ldr	w21, [x19, #4]
	str	w21, [x19]
	sub	w8, w21, #3
	ldp	w22, w9, [x19, #12]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.3:
	ldr	x8, [x19, #24]
	sub	w9, w21, #1
	ldr	w8, [x8, w9, sxtw #2]
	and	w9, w8, #0xffffffe0
	cmp	w9, #160
	b.ne	LBB0_7
; %bb.4:
	mov	w9, #-2145255424
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _a_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _a_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #9
	bl	_find_among_b
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.le	LBB0_15
LBB0_7:
	ldr	w8, [x19, #12]
	sub	w9, w21, w22
	add	w8, w8, w9
	stp	w8, w8, [x19]
Lloh6:
	adrp	x8, _a_3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _a_3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #22
	bl	_find_among_b
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	ldr	w9, [x19, #16]
	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, #32]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #32]
	str	x0, [x8]
	cbz	x0, LBB0_19
; %bb.12:
Lloh9:
	adrp	x8, _s_36@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_36@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_18
; %bb.13:
	ldr	w21, [x19, #4]
	ldr	x8, [x19, #32]
	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
	tbnz	w0, #31, LBB0_10
LBB0_14:
	mov	w20, #1
	b	LBB0_10
LBB0_15:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_slice_to
	ldr	x8, [x19, #32]
	str	x0, [x8]
	cbz	x0, LBB0_19
; %bb.16:
Lloh12:
	adrp	x8, _s_35@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_35@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	bl	_slice_from_s
	tbnz	w0, #31, LBB0_18
; %bb.17:
	ldr	w21, [x19, #4]
	ldr	x8, [x19, #32]
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_insert_v
	str	w21, [x19, #4]
	tbz	w0, #31, LBB0_14
LBB0_18:
	mov	x20, x0
	b	LBB0_10
LBB0_19:
	mov	w20, #-1
	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_4,4,2                        ; @a_4
	.comm	_a_2,4,2                        ; @a_2
	.comm	_s_35,4,2                       ; @s_35
	.comm	_a_3,4,2                        ; @a_3
	.comm	_s_36,4,2                       ; @s_36
	.no_dead_strip	_r_steps1
.subsections_via_symbols
