	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_peek
_rs_peek:                               ## @rs_peek
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %r15d
	movq	%rdx, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	shlq	$2, %rsi
	addq	24(%rcx), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, %r12
	subq	%rbx, %r14
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r15
	leaq	(,%r15,4), %rsi
	addq	24(%rbx), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	addl	%r13d, %r15d
	addq	%r13, %r12
	subq	%r13, %r14
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	8(%rbx), %esi
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	%rax, %r14
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	12(%rbx), %esi
	leal	1(%rsi), %ecx
	movl	$0, %edx
	cmovel	%edx, %ecx
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rcx
	movq	16(%rbx), %rbx
	movslq	%r15d, %rsi
	subq	%rsi, %rbx
	movq	%rax, %r13
	subq	%rbx, %r13
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rcx, %rbx
	jmp	LBB0_9
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rs_peek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_peek
_rs_peek:                               ; @rs_peek
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	cbz	x2, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldp	w25, w26, [x0]
	mov	x24, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #24]
	add	x1, x8, w26, sxtw #2
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	add	w26, w26, w22
	add	x20, x20, x22
	subs	x24, x24, x22
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #8]
	cmp	w25, w8
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #32]
	ldr	x22, [x8, w25, sxtw #3]
	cmp	x24, x22
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x24
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #12]
	cmp	w25, w8
	csinc	w25, wzr, w25, eq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #16]
	sxtw	x8, w26
	sub	x23, x9, x8
	subs	x27, x22, x23
	b.ls	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21, #24]
	add	x1, x9, x8, lsl #2
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	mov	w26, #0
	add	x20, x20, x23
	sub	x24, x24, x23
	mov	x22, x27
	b	LBB0_2
LBB0_9:
	mov	x24, #0
LBB0_10:
	sub	x0, x19, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rs_peek
.subsections_via_symbols
