	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_process                    ## -- Begin function rwm_process
	.p2align	4, 0x90
_rwm_process:                           ## @rwm_process
	.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
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	(%rbx), %eax
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	leaq	4(%rbx), %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %r14
	movq	%r14, %rcx
	cmoveq	%r13, %rcx
	cmpq	16(%rbx), %r14
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	addl	4(%r14), %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rcx), %rsi
	subl	%esi, %eax
	movq	16(%r14), %rcx
	addq	(%rcx), %rsi
	movl	%edx, %r15d
	subl	%eax, %r15d
	jle	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rax
	movl	%r15d, %edx
	jmp	LBB0_3
LBB0_7:
	movq	%r12, %rdi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movl	$1, %edi
	jmp	LBB0_11
LBB0_10:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
LBB0_11:
	callq	_assert
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_12:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_process                    ; -- Begin function rwm_process
	.p2align	2
_rwm_process:                           ; @rwm_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, w19
	csel	w19, w8, w19, lt
	cbz	w19, LBB0_12
; %bb.1:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_12
; %bb.2:
	add	x23, x22, #4
	mov	x2, x19
	mov	x24, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, x8
	csel	x8, x23, x24, eq
	ldr	x9, [x22, #16]
	cmp	x24, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w10, w9, [x24]
	add	w9, w10, w9
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x22, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x8]
	ldr	x10, [x24, #16]
	ldr	x10, [x10]
	add	x1, x10, x8
	sub	w8, w9, w8
	subs	w25, w2, w8
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x2, x8
	blr	x20
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	mov	x2, x25
	b	LBB0_3
LBB0_9:
	mov	x0, x21
	blr	x20
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	cmp	w25, #0
	cset	w0, eq
LBB0_11:
	bl	_assert
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
