	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_keystream                  ## -- Begin function add_keystream
	.p2align	4, 0x90
_add_keystream:                         ## @add_keystream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leal	-12(%rsi), %edx
	leaq	-1040(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_known_clear
	cmpl	$16, %eax
	jl	LBB0_2
## %bb.1:
	movups	8(%rbx), %xmm0
	xorps	-1040(%rbp), %xmm0
	addq	$4, %rbx
	movaps	%xmm0, -1040(%rbp)
	movq	_ptw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-1040(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_PTW_addsession
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ptw,4,2                        ## @ptw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_keystream                  ; -- Begin function add_keystream
	.p2align	2
_add_keystream:                         ; @add_keystream
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	sub	w2, w1, #12
	mov	x0, sp
	mov	x1, x19
	bl	_known_clear
	cmp	w0, #16
	b.lt	LBB0_2
; %bb.1:
	add	x1, x19, #4
	ldur	q0, [x19, #8]
	ldr	q1, [sp]
	eor.16b	v0, v1, v0
	str	q0, [sp]
Lloh3:
	adrp	x8, _ptw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ptw@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x2, sp
	bl	_PTW_addsession
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ptw,4,2                        ; @ptw
.subsections_via_symbols
