	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rwm_encrypt_decrypt           ## -- Begin function _rwm_encrypt_decrypt
	.p2align	4, 0x90
__rwm_encrypt_decrypt:                  ## @_rwm_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	andl	$-16, %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_37
## %bb.1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_rwm_fork_deep
	movq	24(%rbx), %rax
	movl	4(%rbx), %r13d
	cmpq	16(%rbx), %rax
	je	LBB0_2
## %bb.3:
	movl	(%rax), %r12d
	addl	4(%rax), %r12d
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r12d
LBB0_4:
	subl	%r13d, %r12d
	xorl	%ecx, %ecx
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	sete	%cl
	shlq	$3, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	%r14d, %r13d
	subl	%r14d, %ecx
	movq	%r12, %rax
	movl	%ecx, %r12d
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	addl	$-16, %r14d
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	je	LBB0_37
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	notl	%r13d
	shrl	$31, %r13d
	movl	%r13d, %edi
	callq	_assert
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	cmpl	$16, %r12d
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %ebx
	andl	$-16, %ebx
	cmpl	%r14d, %r12d
	cmovgel	%r14d, %ebx
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%r15d, %rdx
	addq	(%rax), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rsi
	movl	%ebx, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	*(%rdi)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, %ecx
	testl	%r12d, %r12d
	jne	LBB0_12
	jmp	LBB0_31
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%r15d, %rdx
	addq	(%rax), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rsi
	movl	%ebx, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	callq	*8(%rdi)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	andl	$15, %r12d
	addl	%ebx, %ecx
	subl	%ebx, %r14d
	testl	%r12d, %r12d
	je	LBB0_31
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	je	LBB0_31
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, %r14
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	xorl	%edi, %edi
	cmpl	$16, %ebx
	sete	%dil
	callq	_assert
	movl	$-1, %r12d
	movl	$-1, %eax
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$16, %ebx
	jge	LBB0_21
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %r15d
	movl	$16, %r13d
	subl	%ebx, %r13d
	cmpl	%r13d, %r12d
	movl	%r13d, %ebx
	cmovll	%r12d, %ebx
	movslq	%r15d, %rdi
	leaq	__rwm_encrypt_decrypt.c(%rip), %rcx
	addq	%rcx, %rdi
	movq	16(%r14), %rcx
	movslq	%eax, %rsi
	addq	(%rcx), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	cmpl	%r13d, %r12d
	jg	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	addl	%r15d, %ebx
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	(%r14), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	16(%rcx), %r14
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%r14), %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r12d
	subl	%eax, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	16(%rcx), %rax
	je	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rax), %r12d
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	__rwm_encrypt_decrypt.c(%rip), %rdx
	movq	%rdx, %rsi
	movl	$16, %ecx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	callq	*(%rdi,%rax)
	xorl	%r14d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-92(%rbp), %r13d                ## 4-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=2
	xorl	%edi, %edi
	cmpl	$16, %r14d
	sete	%dil
	movq	%rax, %rbx
	callq	_assert
	movq	%rbx, %rax
	movl	$-1, %r12d
	movl	$-1, %r13d
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$16, %r14d
	jge	LBB0_30
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r15d
	movl	$16, %ebx
	subl	%r14d, %ebx
	cmpl	%ebx, %r12d
	movl	%ebx, %r14d
	cmovll	%r12d, %r14d
	movq	%rax, %r12
	movq	16(%rax), %rax
	movslq	%r13d, %rdi
	addq	(%rax), %rdi
	movslq	%r15d, %rsi
	leaq	__rwm_encrypt_decrypt.c(%rip), %rax
	addq	%rax, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ebx, %ecx
	jg	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	addl	%r15d, %r14d
	movq	8(%r12), %r12
	testq	%r12, %r12
	movq	%r12, %rax
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	(%rax), %r13d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	16(%rcx), %rax
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	4(%rax), %r12d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r12d
	subl	%r13d, %r12d
	jmp	LBB0_29
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$-1, %r12d
	movl	$-1, %r13d
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r12d
	subl	%r13d, %r12d
	jmp	LBB0_36
LBB0_37:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__rwm_encrypt_decrypt.c,16,4 ## @_rwm_encrypt_decrypt.c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rwm_encrypt_decrypt           ; -- Begin function _rwm_encrypt_decrypt
	.p2align	2
__rwm_encrypt_decrypt:                  ; @_rwm_encrypt_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x27, x4
	str	w3, [sp, #32]                   ; 4-byte Folded Spill
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	mov	x23, x1
	mov	x22, x0
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, w23
	csel	w8, w8, w23, lt
	ands	w8, w8, #0xfffffff0
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b.eq	LBB0_36
; %bb.1:
	mov	x0, x22
	bl	_rwm_fork_deep
	ldr	w20, [x22, #4]
	ldp	x8, x21, [x22, #16]
	cmp	x21, x8
	b.eq	LBB0_3
; %bb.2:
	ldp	w9, w8, [x21]
	add	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w8, [x22, #8]
LBB0_4:
	sub	w23, w8, w20
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w8, eq
	lsl	x8, x8, #3
	stp	x8, x27, [sp, #16]              ; 16-byte Folded Spill
Lloh0:
	adrp	x24, __rwm_encrypt_decrypt.c@PAGE
Lloh1:
	add	x24, x24, __rwm_encrypt_decrypt.c@PAGEOFF
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w25, w20
	sub	w23, w23, w25
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w19, [sp, #36]                  ; 4-byte Folded Reload
	sub	w19, w19, #16
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w19, LBB0_36
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	mvn	w8, w23
	lsr	w0, w8, #31
	bl	_assert
	cmp	w23, #16
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	and	w8, w23, #0xfffffff0
	cmp	w23, w19
	csel	w25, w8, w19, lt
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x0, #8]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	add	x1, x9, w20, sxtw
	mov	x2, x1
	mov	x3, x25
	mov	x4, x27
	blr	x8
	and	w23, w23, #0xf
	add	w20, w25, w20
	sub	w19, w19, w25
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w23, LBB0_23
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	w19, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w19, [sp, #36]                  ; 4-byte Folded Spill
	mov	w19, #0
	mov	x26, x21
	mov	x8, x20
	mov	x27, x23
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w19, #16
	cset	w0, eq
	bl	_assert
	mov	w27, #-1
	mov	w8, #-1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w19, #16
	b.ge	LBB0_26
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w9, #16
	sub	w28, w9, w19
	cmp	w27, w28
	csel	w25, w27, w28, lt
	add	x0, x24, w19, sxtw
	ldr	x9, [x26, #16]
	ldr	x9, [x9]
	add	x1, x9, w8, sxtw
	mov	x2, x25
	bl	_memcpy
	cmp	w27, w28
	mov	w28, #16
	b.gt	LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	w19, w25, w19
	ldr	x26, [x26, #8]
	cbz	x26, LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x26]
	ldr	x9, [x22, #16]
	cmp	x26, x9
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w27, [x26, #4]
	b	LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w9, [x22, #8]
	sub	w27, w9, w8
	b	LBB0_17
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_34
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w20, [x21]
	ldr	x8, [x22, #16]
	cmp	x21, x8
	b.eq	LBB0_35
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w23, [x21, #4]
	b	LBB0_7
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	ldp	x8, x27, [sp, #16]              ; 16-byte Folded Reload
	ldr	x8, [x0, x8]
	mov	x1, x24
	mov	x2, x24
	mov	w3, #16
	mov	x4, x27
	blr	x8
	mov	w19, #0
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	cmp	w19, #16
	cset	w0, eq
	bl	_assert
	mov	w23, #-1
	mov	w20, #-1
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	cmp	w19, #16
	b.ge	LBB0_6
LBB0_29:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w26, w28, w19
	cmp	w23, w26
	csel	w25, w23, w26, lt
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	add	x0, x8, w20, sxtw
	add	x1, x24, w19, sxtw
	mov	x2, x25
	bl	_memcpy
	cmp	w23, w26
	b.gt	LBB0_5
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	add	w19, w25, w19
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w20, [x21]
	ldr	x8, [x22, #16]
	cmp	x21, x8
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	w23, [x21, #4]
	b	LBB0_28
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [x22, #8]
	sub	w23, w8, w20
	b	LBB0_28
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #-1
	mov	w20, #-1
	b	LBB0_7
LBB0_35:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22, #8]
	sub	w23, w8, w20
	b	LBB0_7
LBB0_36:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__rwm_encrypt_decrypt.c,16,0 ; @_rwm_encrypt_decrypt.c
.subsections_via_symbols
