	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mix_decrypt_resync
_mix_decrypt_resync:                    ## @mix_decrypt_resync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %eax
	cmpl	$2, (%rdi)
	jne	LBB0_7
## %bb.1:
	movl	$2, %r14d
	subl	%eax, %r14d
	cmpl	%edx, %r14d
	cmovgel	%edx, %r14d
	testl	%r14d, %r14d
	jle	LBB0_2
## %bb.3:
	movslq	%eax, %rdi
	movq	8(%r15), %r8
	movq	16(%r15), %r9
	movslq	%r14d, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %eax
	addq	$4, %rsi
	movl	%eax, (%r8,%rdi,4)
	xorl	(%r9,%rdi,4), %eax
	movl	%eax, (%rcx)
	addq	$4, %rcx
	incq	%rdi
	movslq	4(%r15), %rax
	addq	%rbx, %rax
	cmpq	%rax, %rdi
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	addl	%r14d, %eax
LBB0_5:
	movl	%eax, 4(%r15)
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.12:
	movl	24(%r15), %edi
	movq	8(%r15), %rsi
	addq	$8, %rsi
	movl	28(%r15), %edx
	addl	$-2, %edx
	callq	_memcpy
	movl	24(%r15), %eax
	movl	28(%r15), %ecx
	leal	(%rax,%rcx), %edi
	addl	$-2, %edi
	movq	8(%r15), %rsi
	movl	$2, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	subl	%r14d, %edx
LBB0_7:
	movl	%edx, %r14d
	testl	%edx, %edx
	jle	LBB0_8
## %bb.9:
	movslq	%eax, %r8
	leaq	(,%r8,4), %r10
	movq	8(%r15), %r9
	addq	%r10, %r9
	addq	16(%r15), %r10
	xorl	%edx, %edx
	movslq	%r14d, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdx,4), %eax
	movl	%eax, (%r9,%rdx,4)
	xorl	(%r10,%rdx,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	movslq	4(%r15), %rax
	addq	%rbx, %rax
	leaq	(%r8,%rdx), %rdi
	incq	%rdi
	incq	%rdx
	cmpq	%rax, %rdi
	jl	LBB0_10
	jmp	LBB0_11
LBB0_8:
	addl	%r14d, %eax
LBB0_11:
	movl	%eax, 4(%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mix_decrypt_resync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mix_decrypt_resync
_mix_decrypt_resync:                    ; @mix_decrypt_resync
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w9, w8, [x0]
	cmp	w9, #2
	b.ne	LBB0_9
; %bb.1:
	sub	w9, w9, w8
	cmp	w9, w2
	csel	w20, w9, w2, lt
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
	sxtw	x8, w8
	ldp	x9, x10, [x19, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	lsl	x12, x8, #2
	str	w11, [x9, x12]
	ldr	w12, [x10, x12]
	eor	w11, w12, w11
	str	w11, [x3], #4
	add	x8, x8, #1
	ldrsw	x11, [x19, #4]
	add	x11, x11, w20, sxtw
	cmp	x8, x11
	b.lt	LBB0_3
; %bb.4:
	mov	x8, x11
	b	LBB0_6
LBB0_5:
	add	w8, w8, w20
LBB0_6:
	str	w8, [x19, #4]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	ldp	w0, w8, [x19, #24]
	sub	w2, w8, #2
	bl	_memcpy
	ldp	w8, w9, [x19, #24]
	add	w8, w8, w9
	sub	w0, w8, #2
	ldr	x1, [x19, #8]
	mov	w2, #2
	bl	_memcpy
	mov	w11, #0
	mov	x2, x20
	b	LBB0_13
LBB0_8:
	sub	w2, w2, w20
LBB0_9:
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.10:
	ldp	x9, x10, [x19, #8]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	lsl	x12, x8, #2
	str	w11, [x9, x12]
	ldr	w12, [x10, x12]
	eor	w11, w12, w11
	str	w11, [x3], #4
	add	x8, x8, #1
	ldrsw	x11, [x19, #4]
	add	x11, x11, w2, sxtw
	cmp	x8, x11
	b.lt	LBB0_11
	b	LBB0_13
LBB0_12:
	add	w11, w8, w2
LBB0_13:
	str	w11, [x19, #4]
	mov	x0, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mix_decrypt_resync
.subsections_via_symbols
