	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heim_ntlm_calculate_ntlm1      ## -- Begin function heim_ntlm_calculate_ntlm1
	.p2align	4, 0x90
_heim_ntlm_calculate_ntlm1:             ## @heim_ntlm_calculate_ntlm1
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MD4_DIGEST_LENGTH@GOTPCREL(%rip), %rbx
	cmpq	%rsi, (%rbx)
	jne	LBB0_6
## %bb.1:
	movq	%rcx, %r15
	movq	%rdi, %rsi
	leaq	-64(%rbp), %rdi
	callq	_memcpy
	movq	(%rbx), %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-64, %rdi
	movl	$21, %edx
	subl	%eax, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	$24, %edi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	$24, (%r15)
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-57(%rbp), %rdi
	movq	8(%r15), %rdx
	addq	$8, %rdx
	movq	%r14, %rsi
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-50(%rbp), %rdi
	movq	8(%r15), %rdx
	addq	$16, %rdx
	movq	%r14, %rsi
	callq	_splitandenc
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:
	movq	%r15, %rdi
	callq	_heim_ntlm_free_buf
	jmp	LBB0_9
LBB0_6:
	movq	_HNTLM_ERR_INVALID_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MD4_DIGEST_LENGTH,8,3          ## @MD4_DIGEST_LENGTH
	.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_calculate_ntlm1      ; -- Begin function heim_ntlm_calculate_ntlm1
	.p2align	2
_heim_ntlm_calculate_ntlm1:             ; @heim_ntlm_calculate_ntlm1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x2, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x21, _MD4_DIGEST_LENGTH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MD4_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x1, x0
	add	x22, sp, #3
	add	x0, sp, #3
	bl	_memcpy
	ldr	x8, [x21]
	add	x0, x22, x8
	mov	w9, #21
	sub	w2, w9, w8
	mov	w1, #0
	bl	_memset
	mov	w21, #24
	mov	w0, #24
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x2, x0
	str	w21, [x19]
	add	x22, sp, #3
	add	x0, sp, #3
	mov	x1, x20
	bl	_splitandenc
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	add	x0, x22, #7
	ldr	x8, [x19, #8]
	add	x2, x8, #8
	mov	x1, x20
	bl	_splitandenc
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	add	x8, sp, #3
	add	x0, x8, #14
	ldr	x8, [x19, #8]
	add	x2, x8, #16
	mov	x1, x20
	bl	_splitandenc
	mov	x21, x0
	cbz	w0, LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_heim_ntlm_free_buf
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x8, _HNTLM_ERR_INVALID_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HNTLM_ERR_INVALID_LENGTH@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MD4_DIGEST_LENGTH,8,3          ; @MD4_DIGEST_LENGTH
	.comm	_HNTLM_ERR_INVALID_LENGTH,4,2   ; @HNTLM_ERR_INVALID_LENGTH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
