	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_Step_5a
_r_Step_5a:                             ## @r_Step_5a
	.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
	movslq	4(%rdi), %rbx
	movl	%ebx, (%rdi)
	xorl	%eax, %eax
	cmpl	8(%rdi), %ebx
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rcx
	cmpb	$101, -1(%rcx,%rbx)
	jne	LBB0_10
## %bb.2:
	decq	%rbx
	movl	%ebx, 4(%r15)
	movl	%ebx, 24(%r15)
	movl	28(%r15), %r12d
	movq	%r15, %rdi
	callq	_r_R2
	movl	%eax, %r14d
	movl	%eax, %edx
	shrl	$31, %edx
	testl	%eax, %eax
	movl	$2, %eax
	cmovnel	%edx, %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%r14d, %ecx
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.4:
	subl	%r12d, %ebx
	addl	28(%r15), %ebx
	movl	%ebx, 4(%r15)
	movq	%r15, %rdi
	callq	_r_R1
	testl	%eax, %eax
	jle	LBB0_10
## %bb.5:
	movl	4(%r15), %ebx
	movl	28(%r15), %r12d
	movq	%r15, %rdi
	callq	_r_shortv
	movl	%eax, %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	testl	%eax, %eax
	cmovnsl	%r14d, %ecx
	movl	$4, %eax
	cmovnel	%edx, %eax
	cmovel	%r14d, %ecx
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$4, %eax
	jne	LBB0_8
## %bb.7:
	subl	%r12d, %ebx
	addl	28(%r15), %ebx
	movl	%ebx, 4(%r15)
	jmp	LBB0_9
LBB0_8:
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_slice_del
	movl	%eax, %ecx
	testl	%eax, %eax
	movl	$1, %eax
	cmovsl	%ecx, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r_Step_5a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_Step_5a
_r_Step_5a:                             ; @r_Step_5a
	.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
	ldp	w8, w9, [x0, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	w8, [x0]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	sub	x21, x8, #1
	ldrb	w8, [x9, x21]
	cmp	w8, #101
	b.ne	LBB0_8
; %bb.2:
	str	w21, [x19, #4]
	str	w21, [x19, #24]
	ldr	w22, [x19, #28]
	mov	x0, x19
	bl	_r_R2
	lsr	w8, w0, #31
	mov	w9, #2
	cmp	w0, #0
	csel	w9, w9, w8, eq
	cbz	w9, LBB0_11
; %bb.3:
	mov	x20, x0
	cmp	w9, #2
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [x19, #28]
	sub	w9, w21, w22
	add	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_r_R1
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.5:
	ldr	w21, [x19, #28]
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_r_shortv
	lsr	w8, w0, #31
	cmp	w0, #0
	csel	w10, w0, w20, lt
	mov	w9, #4
	csel	w9, w9, w8, eq
	csel	w20, w20, w10, eq
	cbz	w9, LBB0_13
; %bb.6:
	cmp	w9, #4
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #28]
	sub	w9, w22, w21
	add	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_8:
	mov	w20, #0
LBB0_9:
	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_10:
	cbnz	w8, LBB0_9
LBB0_11:
	mov	x0, x19
	bl	_slice_del
	cmp	w0, #0
	csinc	w20, w0, wzr, lt
	b	LBB0_9
LBB0_12:
	mov	x20, x0
	b	LBB0_9
LBB0_13:
	mov	x20, x9
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r_Step_5a
.subsections_via_symbols
