	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_ntlm_v2_base_session      ## -- Begin function heim_ntlm_v2_base_session
	.p2align	4, 0x90
_heim_ntlm_v2_base_session:             ## @heim_ntlm_v2_base_session
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$16, (%rdx)
	jg	LBB0_2
## %bb.1:
	movq	_HNTLM_ERR_INVALID_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$16, (%r15)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_HMAC_CTX_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_EVP_md5
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_HMAC_Init_ex
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_HMAC_Update
	movq	8(%r15), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r12, %rdi
	callq	_HMAC_Final
	movq	%r12, %rdi
	callq	_HMAC_CTX_free
	jmp	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	callq	_heim_ntlm_free_buf
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNTLM_ERR_INVALID_LENGTH,4,2   ## @HNTLM_ERR_INVALID_LENGTH
	.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_v2_base_session      ; -- Begin function heim_ntlm_v2_base_session
	.p2align	2
_heim_ntlm_v2_base_session:             ; @heim_ntlm_v2_base_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x2]
	cmp	w8, #16
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HNTLM_ERR_INVALID_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNTLM_ERR_INVALID_LENGTH@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	w21, #16
	mov	w0, #16
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	str	w21, [x19]
	bl	_HMAC_CTX_new
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	bl	_EVP_md5
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x4, #0
	bl	_HMAC_Init_ex
	ldr	x1, [x20, #8]
	mov	x0, x21
	mov	w2, #16
	bl	_HMAC_Update
	ldr	x1, [x19, #8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_HMAC_Final
	mov	x0, x21
	bl	_HMAC_CTX_free
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_heim_ntlm_free_buf
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HNTLM_ERR_INVALID_LENGTH,4,2   ; @HNTLM_ERR_INVALID_LENGTH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
