	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_process_encrypt_decrypt    ## -- Begin function rwm_process_encrypt_decrypt
	.p2align	4, 0x90
_rwm_process_encrypt_decrypt:           ## @rwm_process_encrypt_decrypt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	48(%rdi), %r13
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	16(%r13), %rax
	movq	8(%rax), %rdi
	movq	8(%r12), %rax
	movl	%ecx, %r15d
	movq	_MSG_STD_BUFFER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	cmovlq	%rax, %rsi
	callq	_alloc_msg_buffer
	movq	%rax, %rbx
	movq	16(%r13), %rdi
	movq	%rax, %rsi
	callq	_new_msg_part
	movq	16(%r13), %rcx
	movq	%rax, 16(%rcx)
	movl	%r15d, %ecx
	movq	%rax, 16(%r13)
	movq	$0, 8(%r13)
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%r12)
LBB0_2:
	movslq	%ecx, %rax
	subq	%rax, 8(%r12)
	movslq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movl	$16, %edx
	subl	%edi, %edx
	addq	24(%r12), %rdi
	cmpl	%ecx, %edx
	jle	LBB0_4
## %bb.12:
	movq	%r14, %rsi
	movl	%ecx, %edx
	movl	%ecx, %ebx
	callq	_memcpy
	addl	%ebx, 16(%r12)
	jmp	LBB0_13
LBB0_4:
	movq	%r14, %rsi
	movl	%ecx, %ebx
	callq	_memcpy
	movslq	16(%r12), %rax
	movl	$16, %ecx
	subq	%rax, %rcx
	subl	%ecx, %ebx
	addq	%rcx, %r14
	movl	$0, 16(%r12)
	movl	36(%r12), %edi
	movq	24(%r12), %rsi
	movq	8(%r13), %rdx
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	addq	(%rax), %rdx
	movl	32(%r12), %r8d
	movl	$16, %ecx
	callq	*40(%r12)
	movl	%ebx, %ecx
	movq	16(%r13), %rax
	addl	$16, (%rax)
	addq	$16, 8(%r13)
	addl	$16, (%r13)
	movl	(%r12), %ebx
	addl	$-16, %ebx
	movl	%ebx, (%r12)
LBB0_5:
	movl	%ecx, %r15d
	andl	$15, %r15d
	je	LBB0_7
## %bb.6:
	andl	$-16, %ecx
	movq	24(%r12), %rdi
	movslq	%ecx, %rsi
	addq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ecx, %ebx
	callq	_memcpy
	movl	%ebx, %ecx
	movl	%r15d, 16(%r12)
	movl	(%r12), %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	*%rax
	movq	16(%r13), %rax
	addl	%ebx, (%rax)
	movslq	%ebx, %rax
	addq	%rax, 8(%r13)
	addl	%ebx, (%r13)
	addq	%rax, %r14
	movl	(%r12), %eax
	subl	%ebx, %eax
	movl	%eax, (%r12)
	movl	%eax, %ebx
	movl	%r15d, %ecx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rax
	movq	8(%rax), %rdi
	movslq	%ecx, %rsi
	addq	8(%r12), %rsi
	movq	_MSG_STD_BUFFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	cmovgeq	%rax, %rsi
	movl	%ecx, %r15d
	callq	_alloc_msg_buffer
	movq	%rax, %rbx
	movq	16(%r13), %rdi
	movq	%rax, %rsi
	callq	_new_msg_part
	movq	16(%r13), %rcx
	movq	%rax, 16(%rcx)
	movl	%r15d, %ecx
	movq	%rax, 16(%r13)
	movq	$0, 8(%r13)
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rdx
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	addq	(%rax), %rdx
	movl	%ecx, %r15d
	movq	40(%r12), %rax
	movl	32(%r12), %r8d
	movl	36(%r12), %edi
	subl	%ebx, %r15d
	jg	LBB0_11
## %bb.10:
	movq	%r14, %rsi
	movl	%ecx, %ebx
	callq	*%rax
	movq	16(%r13), %rax
	addl	%ebx, (%rax)
	movslq	%ebx, %rax
	addq	%rax, 8(%r13)
	addl	%ebx, (%r13)
	subl	%ebx, (%r12)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_STD_BUFFER,8,3             ## @MSG_STD_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_process_encrypt_decrypt    ; -- Begin function rwm_process_encrypt_decrypt
	.p2align	2
_rwm_process_encrypt_decrypt:           ; @rwm_process_encrypt_decrypt
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0, #48]
	ldr	w22, [x0]
Lloh0:
	adrp	x25, _MSG_STD_BUFFER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MSG_STD_BUFFER@GOTPAGEOFF]
	cbnz	w22, LBB0_2
; %bb.1:
	ldr	x8, [x24, #16]
	ldr	x0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	csel	x1, x8, x9, lt
	bl	_alloc_msg_buffer
	mov	x22, x0
	ldr	x0, [x24, #16]
	mov	x1, x22
	bl	_new_msg_part
	ldr	x8, [x24, #16]
	str	x0, [x8, #16]
	stp	xzr, x0, [x24, #8]
	ldr	x8, [x22]
	ldr	w22, [x8]
	str	w22, [x19]
LBB0_2:
	ldr	x8, [x19, #8]
	sub	x8, x8, w21, sxtw
	str	x8, [x19, #8]
	ldrsw	x8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w9, #16
	ldr	x10, [x19, #24]
	add	x0, x10, x8
	sub	w2, w9, w8
	cmp	w2, w21
	b.le	LBB0_5
; %bb.4:
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19, #16]
	add	w8, w8, w21
	str	w8, [x19, #16]
	b	LBB0_13
LBB0_5:
	mov	x1, x20
	bl	_memcpy
	ldrsw	x8, [x19, #16]
	mov	w9, #16
	sub	x8, x9, x8
	sub	w21, w21, w8
	add	x20, x20, x8
	str	wzr, [x19, #16]
	ldr	x8, [x19, #40]
	ldr	x1, [x19, #24]
	ldp	x10, x9, [x24, #8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	add	x2, x10, x9
	ldp	w4, w0, [x19, #32]
	mov	w3, #16
	blr	x8
	ldp	x9, x8, [x24, #8]
	ldr	w10, [x8]
	add	w10, w10, #16
	str	w10, [x8]
	add	x8, x9, #16
	str	x8, [x24, #8]
	ldr	w8, [x24]
	add	w8, w8, #16
	str	w8, [x24]
	ldr	w8, [x19]
	sub	w22, w8, #16
	str	w22, [x19]
LBB0_6:
	ands	w23, w21, #0xf
	b.eq	LBB0_9
; %bb.7:
	and	w21, w21, #0xfffffff0
	ldr	x0, [x19, #24]
	add	x1, x20, w21, sxtw
	mov	x2, x23
	bl	_memcpy
	str	w23, [x19, #16]
	ldr	w22, [x19]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x20
	mov	x3, x22
	blr	x8
	ldp	x9, x8, [x24, #8]
	ldr	w10, [x8]
	add	w10, w10, w22
	str	w10, [x8]
	sxtw	x8, w22
	add	x9, x9, x8
	str	x9, [x24, #8]
	ldr	w9, [x24]
	add	w9, w9, w22
	str	w9, [x24]
	add	x20, x20, x8
	ldr	w8, [x19]
	sub	w22, w8, w22
	str	w22, [x19]
	mov	x21, x23
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w22, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24, #16]
	ldr	x0, [x8, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, w21, sxtw
	ldr	x9, [x25]
	cmp	x8, x9
	csel	x1, x8, x9, lt
	bl	_alloc_msg_buffer
	mov	x22, x0
	ldr	x0, [x24, #16]
	mov	x1, x22
	bl	_new_msg_part
	ldr	x8, [x24, #16]
	str	x0, [x8, #16]
	stp	xzr, x0, [x24, #8]
	ldr	x8, [x22]
	ldr	w22, [x8]
	str	w22, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #40]
	ldp	x10, x9, [x24, #8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	add	x2, x10, x9
	ldp	w4, w0, [x19, #32]
	subs	w23, w21, w22
	b.gt	LBB0_8
; %bb.12:
	mov	x1, x20
	mov	x3, x21
	blr	x8
	ldp	x9, x8, [x24, #8]
	ldr	w10, [x8]
	add	w10, w10, w21
	str	w10, [x8]
	add	x8, x9, w21, sxtw
	str	x8, [x24, #8]
	ldr	w8, [x24]
	add	w8, w8, w21
	str	w8, [x24]
	ldr	w8, [x19]
	sub	w8, w8, w21
	str	w8, [x19]
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_STD_BUFFER,8,3             ; @MSG_STD_BUFFER
.subsections_via_symbols
