	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_encrypt_decrypt_to         ## -- Begin function rwm_encrypt_decrypt_to
	.p2align	4, 0x90
_rwm_encrypt_decrypt_to:                ## @rwm_encrypt_decrypt_to
	.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	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	%edx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	(%r15), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	andl	$-16, %ebx
	je	LBB0_12
## %bb.1:
	movq	24(%r13), %rax
	testq	%rax, %rax
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.2:
	cmpq	$0, 24(%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%rax), %rcx
	cmpq	8(%r13), %rcx
	je	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_fork_message_chain
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	8(%rax), %rdi
	cmpl	$1, (%rdi)
	movl	%ebx, %eax
	jne	LBB0_7
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_RM_PREPEND_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	xorl	%edi, %edi
LBB0_7:
	movq	_MSG_STD_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	cmovll	%eax, %esi
	callq	_alloc_msg_buffer
	movq	24(%r13), %rdi
	movq	%rax, %rsi
	callq	_new_msg_part
	movq	24(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rax, 24(%rcx)
	movq	%rax, 24(%r13)
	leaq	8(%r13), %rax
	jmp	LBB0_10
LBB0_9:
	movq	%rax, 32(%r13)
	movq	%rax, 24(%r13)
	movq	_RM_PREPEND_RESERVE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movl	%ecx, 16(%r13)
	movq	%rcx, 8(%r13)
	addq	$16, %rax
LBB0_10:
	movq	$0, (%rax)
LBB0_11:
	leaq	_rwm_encrypt_decrypt_to.t(%rip), %r12
	xorl	%edi, %edi
	cmpl	$0, _rwm_encrypt_decrypt_to.t+48(%rip)
	sete	%dil
	callq	_assert
	movq	%r14, _rwm_encrypt_decrypt_to.t(%rip)
	movq	24(%r13), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	subl	8(%r13), %eax
	movl	%eax, _rwm_encrypt_decrypt_to.t+8(%rip)
	movq	%r13, _rwm_encrypt_decrypt_to.t+40(%rip)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, _rwm_encrypt_decrypt_to.t+32(%rip)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, _rwm_encrypt_decrypt_to.t+16(%rip)
	movl	%ebx, _rwm_encrypt_decrypt_to.t+24(%rip)
	movq	_rwm_process_encrypt_decrypt@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rwm_process_and_advance        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_PREPEND_RESERVE,4,2         ## @RM_PREPEND_RESERVE
	.comm	_MSG_STD_BUFFER,4,2             ## @MSG_STD_BUFFER
.zerofill __DATA,__bss,_rwm_encrypt_decrypt_to.t,56,3 ## @rwm_encrypt_decrypt_to.t
	.comm	_rwm_process_encrypt_decrypt,8,3 ## @rwm_process_encrypt_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_encrypt_decrypt_to         ; -- Begin function rwm_encrypt_decrypt_to
	.p2align	2
_rwm_encrypt_decrypt_to:                ; @rwm_encrypt_decrypt_to
	.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	x19, x5
	mov	x24, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	mvn	w8, w2
	lsr	w0, w8, #31
	bl	_assert
	ldr	w8, [x20]
	cmp	w8, w23
	csel	w8, w8, w23, lt
	ands	w23, w8, #0xfffffff0
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x8]
	ldr	x10, [x22, #8]
	cmp	x9, x10
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_fork_message_chain
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x0, [x8, #8]
	ldr	w9, [x0]
	mov	x8, x23
	cmp	w9, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_6:
	mov	w0, #0
	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
LBB0_7:
	mov	x0, #0
Lloh0:
	adrp	x8, _RM_PREPEND_RESERVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RM_PREPEND_RESERVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w23
LBB0_8:
Lloh3:
	adrp	x9, _MSG_STD_BUFFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_STD_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w1, w8, w9, lt
	bl	_alloc_msg_buffer
	mov	x1, x0
	ldr	x0, [x22, #24]
	bl	_new_msg_part
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_10
; %bb.9:
	str	x0, [x8, #24]
	str	x0, [x22, #24]
	add	x0, x22, #8
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _RM_PREPEND_RESERVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RM_PREPEND_RESERVE@GOTPAGEOFF]
	stp	x0, x0, [x22, #24]
Lloh8:
	ldrsw	x8, [x8]
	str	x8, [x0], #16
	str	w8, [x22, #16]
	str	x8, [x22, #8]
LBB0_11:
	str	xzr, [x0]
LBB0_12:
Lloh9:
	adrp	x25, _rwm_encrypt_decrypt_to.t@PAGE
Lloh10:
	add	x25, x25, _rwm_encrypt_decrypt_to.t@PAGEOFF
	ldr	w8, [x25, #48]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	str	x24, [x25]
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	sub	w8, w8, w9
	str	w8, [x25, #8]
	stp	x21, x22, [x25, #32]
	str	x19, [x25, #16]
Lloh11:
	adrp	x8, _rwm_process_encrypt_decrypt@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rwm_process_encrypt_decrypt@GOTPAGEOFF]
	str	w23, [x25, #24]
Lloh13:
	ldr	x2, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x25
	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
	b	_rwm_process_and_advance
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_PREPEND_RESERVE,4,2         ; @RM_PREPEND_RESERVE
	.comm	_MSG_STD_BUFFER,4,2             ; @MSG_STD_BUFFER
.zerofill __DATA,__bss,_rwm_encrypt_decrypt_to.t,56,3 ; @rwm_encrypt_decrypt_to.t
	.comm	_rwm_process_encrypt_decrypt,8,3 ; @rwm_process_encrypt_decrypt
.subsections_via_symbols
