	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_ntlm_calculate_ntlm2_sess ## -- Begin function heim_ntlm_calculate_ntlm2_sess
	.p2align	4, 0x90
_heim_ntlm_calculate_ntlm2_sess:        ## @heim_ntlm_calculate_ntlm2_sess
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdx
	callq	_heim_ntlm_calculate_ntlm2_sess_hash
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$24, 8(%r12)
	movl	$24, %edi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	$24, 8(%r14)
	movq	(%r12), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%r12), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$21, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%r14), %r15
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	-73(%rbp), %rdi
	leaq	8(%r15), %rdx
	leaq	-56(%rbp), %rsi
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	-66(%rbp), %rdi
	addq	$16, %r15
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdx
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_heim_ntlm_free_buf
	movq	%r12, %rdi
	callq	_heim_ntlm_free_buf
	jmp	LBB0_10
LBB0_4:
	movq	(%r12), %rdi
	callq	_free
	movq	$0, (%r12)
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_ntlm_calculate_ntlm2_sess ; -- Begin function heim_ntlm_calculate_ntlm2_sess
	.p2align	2
_heim_ntlm_calculate_ntlm2_sess:        ; @heim_ntlm_calculate_ntlm2_sess
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x2, sp, #32
	bl	_heim_ntlm_calculate_ntlm2_sess_hash
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.1:
	mov	w23, #24
	mov	w0, #24
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.2:
	str	w23, [x19, #8]
	mov	w0, #24
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #24
	str	w8, [x20, #8]
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x0, [x19]
	mov	x1, x22
	mov	w2, #8
	bl	_memcpy
	add	x22, sp, #11
	add	x0, sp, #11
	mov	w1, #0
	mov	w2, #21
	bl	_memset
	add	x0, sp, #11
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	ldr	x21, [x20]
	add	x0, sp, #11
	add	x1, sp, #32
	mov	x2, x21
	bl	_splitandenc
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.4:
	add	x0, x22, #7
	add	x2, x21, #8
	add	x1, sp, #32
	bl	_splitandenc
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.5:
	add	x8, sp, #11
	add	x0, x8, #14
	add	x2, x21, #16
	add	x1, sp, #32
	bl	_splitandenc
	mov	x23, x0
	cbz	w0, LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_heim_ntlm_free_buf
	mov	x0, x19
	bl	_heim_ntlm_free_buf
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
LBB0_9:
	ldr	x8, [sp, #40]
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_11
; %bb.10:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
