	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PTW_addsession                 ## -- Begin function PTW_addsession
	.p2align	4, 0x90
_PTW_addsession:                        ## @PTW_addsession
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PTW_KEYHSBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r12), %eax
	movl	4(%r12), %edx
	shll	$16, %eax
	shll	$8, %edx
	orl	%eax, %edx
	movl	8(%r12), %ecx
	orl	%ecx, %edx
	leal	7(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	sarl	$3, %esi
	movq	(%r15), %rdx
	movslq	%esi, %rsi
	movl	(%rdx,%rsi,4), %edi
	movzbl	%cl, %ecx
	xorl	%r13d, %r13d
	btl	%ecx, %edi
	jb	LBB0_6
## %bb.1:
	incl	32(%r15)
	orl	%eax, (%rdx,%rsi,4)
	movq	_PTW_KEYHSBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_guesskeybytes
	movq	_KEYHSBYTES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	24(%r15), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movslq	(%rbx,%rdx,4), %rdi
	incl	(%rsi,%rdi,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_3
LBB0_4:
	movq	8(%r15), %rax
	movq	_CONTROLSESSIONS@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	jae	LBB0_6
## %bb.5:
	movq	16(%r15), %rcx
	movl	4(%rcx,%rax,8), %edi
	movq	_IVBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movl	(%rcx,%rax,8), %edi
	movq	_KSBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	incq	8(%r15)
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTW_KEYHSBYTES,4,2             ## @PTW_KEYHSBYTES
	.comm	_KEYHSBYTES,4,2                 ## @KEYHSBYTES
	.comm	_CONTROLSESSIONS,8,3            ## @CONTROLSESSIONS
	.comm	_IVBYTES,4,2                    ## @IVBYTES
	.comm	_KSBYTES,4,2                    ## @KSBYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PTW_addsession                 ; -- Begin function PTW_addsession
	.p2align	2
_PTW_addsession:                        ; @PTW_addsession
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, x1
	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, #-40]
Lloh3:
	adrp	x12, _PTW_KEYHSBYTES@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PTW_KEYHSBYTES@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldp	w8, w9, [x1]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [x1, #8]
	orr	w8, w8, w9
	add	w10, w8, #7
	cmp	w8, #0
	csel	w10, w10, w8, lt
	asr	w11, w10, #3
	and	x8, x9, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [x0]
	ldr	w11, [x9, w11, sxtw #2]
	tst	w11, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	sbfx	x10, x10, #3, #29
	ldr	w11, [x19, #32]
	add	w11, w11, #1
	str	w11, [x19, #32]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	w3, [x12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_guesskeybytes
Lloh7:
	adrp	x8, _KEYHSBYTES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEYHSBYTES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
	ldr	x10, [x19, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	ldrsw	x12, [x22, x9, lsl #2]
	lsl	x12, x12, #2
	ldr	w13, [x11, x12]
	add	w13, w13, #1
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _CONTROLSESSIONS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CONTROLSESSIONS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.6:
	ldr	x9, [x19, #16]
	add	x8, x9, x8, lsl #3
	ldr	w0, [x8, #4]
Lloh12:
	adrp	x8, _IVBYTES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IVBYTES@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_memcpy
	ldp	x9, x8, [x19, #8]
	lsl	x9, x9, #3
	ldr	w0, [x8, x9]
Lloh15:
	adrp	x8, _KSBYTES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KSBYTES@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PTW_KEYHSBYTES,4,2             ; @PTW_KEYHSBYTES
	.comm	_KEYHSBYTES,4,2                 ; @KEYHSBYTES
	.comm	_CONTROLSESSIONS,8,3            ; @CONTROLSESSIONS
	.comm	_IVBYTES,4,2                    ; @IVBYTES
	.comm	_KSBYTES,4,2                    ; @KSBYTES
.subsections_via_symbols
