	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_libntlm_v2
_test_libntlm_v2:                       ## @test_libntlm_v2
	.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	$360, %rsp                      ## imm = 0x168
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GSS_C_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	leaq	-352(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-288(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-224(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_NTLM_NEG_UNICODE@GOTPCREL(%rip), %rax
	movq	_NTLM_NEG_NTLM@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	orl	%r14d, %eax
	orl	(%rcx), %eax
	movl	%eax, -352(%rbp)
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movl	%eax, -296(%rbp)
	movq	$0, -304(%rbp)
	movq	-312(%rbp), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_heim_ntlm_encode_type1
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movups	-96(%rbp), %xmm0
	movups	%xmm0, -128(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	_GSS_C_NO_CREDENTIAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_GSS_C_NO_CHANNEL_BINDINGS@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movups	%xmm0, 16(%rsp)
	leaq	-112(%rbp), %r13
	movq	%r13, 8(%rsp)
	movq	$0, 32(%rsp)
	movq	$0, (%rsp)
	leaq	-80(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	xorl	%r9d, %r9d
	callq	_gss_accept_sec_context
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_GSS_ERROR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rsi
	movq	_GSS_C_NO_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_gssapi_err
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	-112(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-112(%rbp), %rax
LBB0_6:
	movq	-104(%rbp), %rcx
	movq	%rcx, -88(%rbp)
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-288(%rbp), %rsi
	callq	_heim_ntlm_decode_type2
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_8:
	movl	-288(%rbp), %eax
	movl	%eax, -224(%rbp)
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_rk_UNCONST
	movq	%rax, -192(%rbp)
	movl	-268(%rbp), %eax
	movl	%eax, -204(%rbp)
	leaq	L_.str.7(%rip), %rdi
	callq	_rk_UNCONST
	movq	%rax, -200(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-144(%rbp), %rsi
	callq	_heim_ntlm_nt_key
	movq	-144(%rbp), %rsi
	movq	-136(%rbp), %rdi
	movl	-272(%rbp), %r8d
	movl	-268(%rbp), %ecx
	leaq	-276(%rbp), %r9
	leaq	-216(%rbp), %rax
	movq	%rax, 8(%rsp)
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdx
	callq	_heim_ntlm_calculate_ntlm2
	movq	-136(%rbp), %rdi
	callq	_free
	movq	_NTLM_NEG_KEYEX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	-220(%rbp), %rcx
	leaq	-64(%rbp), %rdi
	leaq	-160(%rbp), %rdx
	movl	$16, %esi
	callq	_heim_ntlm_build_ntlm1_master
	movq	-152(%rbp), %rdi
	callq	_free
LBB0_10:
	leaq	-224(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	callq	_heim_ntlm_encode_type3
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movups	-96(%rbp), %xmm0
	movups	%xmm0, -128(%rbp)
	movl	(%r15), %edx
	movl	(%r12), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movq	%r13, 8(%rsp)
	movq	$0, 32(%rsp)
	movq	$0, (%rsp)
	leaq	-80(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	xorl	%r9d, %r9d
	callq	_gss_accept_sec_context
	movq	%rax, %rbx
	movq	-120(%rbp), %rdi
	callq	_free
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_14
## %bb.13:
	movq	-80(%rbp), %rsi
	movq	_GSS_C_NO_OID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_gssapi_err
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	leaq	-80(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	xorl	%edx, %edx
	callq	_gss_delete_sec_context
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	addq	$360, %rsp                      ## imm = 0x168
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"foo"

L_.str.1:                               ## @.str.1
	.asciz	"mydomain"

L_.str.2:                               ## @.str.2
	.asciz	"digestpassword"

	.comm	_GSS_C_NO_CONTEXT,4,2           ## @GSS_C_NO_CONTEXT
	.comm	_NTLM_NEG_UNICODE,4,2           ## @NTLM_NEG_UNICODE
	.comm	_NTLM_NEG_NTLM,4,2              ## @NTLM_NEG_NTLM
L_.str.3:                               ## @.str.3
	.asciz	"heim_ntlm_encode_type1"

	.comm	_GSS_C_NO_CREDENTIAL,4,2        ## @GSS_C_NO_CREDENTIAL
	.comm	_GSS_C_NO_CHANNEL_BINDINGS,4,2  ## @GSS_C_NO_CHANNEL_BINDINGS
L_.str.4:                               ## @.str.4
	.asciz	"accept_sec_context v2 %s"

	.comm	_GSS_C_NO_OID,4,2               ## @GSS_C_NO_OID
L_.str.5:                               ## @.str.5
	.asciz	"output.length == 0"

L_.str.6:                               ## @.str.6
	.asciz	"heim_ntlm_decode_type2"

L_.str.7:                               ## @.str.7
	.asciz	"workstation"

	.comm	_NTLM_NEG_KEYEX,4,2             ## @NTLM_NEG_KEYEX
L_.str.8:                               ## @.str.8
	.asciz	"heim_ntlm_encode_type3"

	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.9:                               ## @.str.9
	.asciz	"accept_sec_context v2 2 %s"

	.no_dead_strip	_test_libntlm_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_libntlm_v2
_test_libntlm_v2:                       ; @test_libntlm_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	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, #-72]
Lloh3:
	adrp	x8, _GSS_C_NO_CONTEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_C_NO_CONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stur	w8, [x29, #-100]
	add	x0, sp, #200
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #136
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh6:
	adrp	x8, _NTLM_NEG_UNICODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NTLM_NEG_UNICODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NTLM_NEG_NTLM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NTLM_NEG_NTLM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w8, w8, w9
	str	w8, [sp, #200]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	str	w0, [sp, #256]
	str	xzr, [sp, #248]
	ldr	x8, [sp, #240]
	stp	xzr, xzr, [x8]
	add	x0, sp, #200
	add	x1, sp, #56
	bl	_heim_ntlm_encode_type1
	cbz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldp	x9, x8, [sp, #56]
	stp	x9, x8, [x29, #-120]
	stp	xzr, xzr, [x29, #-136]
Lloh16:
	adrp	x22, _GSS_C_NO_CREDENTIAL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _GSS_C_NO_CREDENTIAL@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh18:
	adrp	x23, _GSS_C_NO_CHANNEL_BINDINGS@GOTPAGE
Lloh19:
	ldr	x23, [x23, _GSS_C_NO_CHANNEL_BINDINGS@GOTPAGEOFF]
	ldr	w4, [x23]
	stp	xzr, xzr, [sp]
	sub	x0, x29, #96
	sub	x1, x29, #100
	sub	x3, x29, #120
	sub	x7, x29, #136
	str	xzr, [sp, #16]
	mov	x5, #0
	mov	x6, #0
	bl	_gss_accept_sec_context
	mov	x20, x0
	ldr	x0, [sp, #64]
	bl	_free
	mov	x0, x20
	bl	_GSS_ERROR
Lloh20:
	adrp	x21, _GSS_C_NO_OID@GOTPAGE
Lloh21:
	ldr	x21, [x21, _GSS_C_NO_OID@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldur	x1, [x29, #-96]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_gssapi_err
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldur	x8, [x29, #-136]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldur	x8, [x29, #-136]
LBB0_6:
	ldur	x9, [x29, #-128]
	stp	x8, x9, [sp, #56]
	add	x24, sp, #136
	add	x0, sp, #56
	add	x1, sp, #136
	bl	_heim_ntlm_decode_type2
	cbz	x0, LBB0_8
; %bb.7:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	ldr	w8, [sp, #136]
	str	w8, [sp, #72]
Lloh28:
	adrp	x20, l_.str@PAGE
Lloh29:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_rk_UNCONST
	str	x0, [sp, #104]
	ldr	w8, [sp, #156]
	str	w8, [sp, #92]
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_rk_UNCONST
	str	x0, [sp, #96]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #40
	bl	_heim_ntlm_nt_key
	ldp	x1, x0, [sp, #40]
	ldp	w4, w3, [sp, #152]
	add	x5, x24, #12
	add	x24, sp, #72
	add	x7, x24, #8
	sub	x6, x29, #88
	mov	x2, x20
	bl	_heim_ntlm_calculate_ntlm2
	ldr	x0, [sp, #48]
	bl	_free
Lloh34:
	adrp	x8, _NTLM_NEG_KEYEX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NTLM_NEG_KEYEX@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
	orr	x3, x24, #0x4
	sub	x0, x29, #88
	add	x2, sp, #24
	mov	w1, #16
	bl	_heim_ntlm_build_ntlm1_master
	ldr	x0, [sp, #32]
	bl	_free
LBB0_10:
	add	x0, sp, #72
	add	x1, sp, #56
	bl	_heim_ntlm_encode_type3
	cbz	x0, LBB0_12
; %bb.11:
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	ldp	x8, x9, [sp, #56]
	stp	x8, x9, [x29, #-120]
	ldr	w2, [x22]
	ldr	w4, [x23]
	stp	xzr, xzr, [sp]
	sub	x0, x29, #96
	sub	x1, x29, #100
	sub	x3, x29, #120
	sub	x7, x29, #136
	str	xzr, [sp, #16]
	mov	x5, #0
	mov	x6, #0
	bl	_gss_accept_sec_context
	mov	x19, x0
	ldur	x0, [x29, #-112]
	bl	_free
Lloh39:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_14
; %bb.13:
	ldur	x1, [x29, #-96]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_gssapi_err
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	sub	x0, x29, #96
	sub	x1, x29, #100
	mov	x2, #0
	bl	_gss_delete_sec_context
	ldur	x8, [x29, #-72]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"foo"

l_.str.1:                               ; @.str.1
	.asciz	"mydomain"

l_.str.2:                               ; @.str.2
	.asciz	"digestpassword"

	.comm	_GSS_C_NO_CONTEXT,4,2           ; @GSS_C_NO_CONTEXT
	.comm	_NTLM_NEG_UNICODE,4,2           ; @NTLM_NEG_UNICODE
	.comm	_NTLM_NEG_NTLM,4,2              ; @NTLM_NEG_NTLM
l_.str.3:                               ; @.str.3
	.asciz	"heim_ntlm_encode_type1"

	.comm	_GSS_C_NO_CREDENTIAL,4,2        ; @GSS_C_NO_CREDENTIAL
	.comm	_GSS_C_NO_CHANNEL_BINDINGS,4,2  ; @GSS_C_NO_CHANNEL_BINDINGS
l_.str.4:                               ; @.str.4
	.asciz	"accept_sec_context v2 %s"

	.comm	_GSS_C_NO_OID,4,2               ; @GSS_C_NO_OID
l_.str.5:                               ; @.str.5
	.asciz	"output.length == 0"

l_.str.6:                               ; @.str.6
	.asciz	"heim_ntlm_decode_type2"

l_.str.7:                               ; @.str.7
	.asciz	"workstation"

	.comm	_NTLM_NEG_KEYEX,4,2             ; @NTLM_NEG_KEYEX
l_.str.8:                               ; @.str.8
	.asciz	"heim_ntlm_encode_type3"

	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.9:                               ; @.str.9
	.asciz	"accept_sec_context v2 2 %s"

	.no_dead_strip	_test_libntlm_v2
.subsections_via_symbols
