	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _gssapi_unwrap_arcfour
LCPI0_0:
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__gssapi_unwrap_arcfour
	.p2align	4, 0x90
__gssapi_unwrap_arcfour:                ## @_gssapi_unwrap_arcfour
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r13
	movl	%edx, -300(%rbp)                ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	$0, -320(%rbp)
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
LBB0_2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%rax)
LBB0_4:
	movq	(%r13), %rax
	movq	%rax, -296(%rbp)
	movq	%r12, %rdi
	callq	_IS_DCE_STYLE
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	addq	%rax, %rsi
	cmpq	%rsi, 8(%r13)
	jae	LBB0_8
	jmp	LBB0_6
LBB0_7:
	movq	8(%r13), %rsi
LBB0_8:
	movq	%rbx, -280(%rbp)                ## 8-byte Spill
	movq	_GSS_KRB5_MECHANISM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-296(%rbp), %rdi
	callq	__gssapi_verify_mech_header
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_48
## %bb.9:
	movq	%r15, -288(%rbp)                ## 8-byte Spill
	movq	-296(%rbp), %r15
	movq	%r15, %rax
	subq	(%r13), %rax
	sarq	$2, %rax
	movq	_GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	8(%r13), %rbx
	subq	%rcx, %rbx
	jae	LBB0_10
LBB0_6:
	movq	_GSS_S_BAD_MECH@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	leaq	8(%r15), %rdi
	leaq	l_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movq	_GSS_S_BAD_SIG@GOTPCREL(%rip), %rax
LBB0_47:
	movq	(%rax), %rbx
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.49:
	movq	%rbx, %rax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	16(%r15), %r13
	leaq	l_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_memcmp
	movl	%eax, -308(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.16:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_14:
	movl	$1, %r13d
LBB0_17:
	addq	$24, %r15
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	_GSS_S_BAD_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_19:
	movq	24(%rbp), %rsi
	movq	-296(%rbp), %rdx
	addq	$64, %rdx
	leaq	-176(%rbp), %r8
	movl	-300(%rbp), %edi                ## 4-byte Reload
	movl	$8, %ecx
	movl	$64, %r9d
	callq	_arcfour_mic_key
	testq	%rax, %rax
	je	LBB0_22
LBB0_20:
	movq	-288(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_22:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	%rax, %r15
	movl	%r13d, -304(%rbp)               ## 4-byte Spill
	xorl	%eax, %eax
	callq	_EVP_rc4
	leaq	-176(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	movq	-296(%rbp), %rdx
	addq	$32, %rdx
	leaq	-208(%rbp), %r13
	movl	$8, %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_EVP_Cipher
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_free
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-312(%rbp), %rsi
	movq	%r13, %rdi
	callq	__gsskrb5_decode_be_om_uint32
	movq	_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	leaq	-192(%rbp), %rdi
	leaq	l_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movq	-288(%rbp), %rax                ## 8-byte Reload
	movq	$0, (%rax)
	movq	_GSS_S_BAD_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_26:
	movq	24(%rbp), %rcx
	movl	16(%rcx), %eax
	movl	%eax, -328(%rbp)
	leaq	-112(%rbp), %r15
	movq	%r15, -344(%rbp)
	movl	$64, -336(%rbp)
	movq	(%rcx), %rax
	movups	(%rax), %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [240,240,240,240]
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -112(%rbp)
	movups	16(%rax), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -96(%rbp)
	movups	32(%rax), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -80(%rbp)
	movups	48(%rax), %xmm0
	xorps	%xmm1, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-344(%rbp), %rsi
	leaq	-208(%rbp), %rdx
	leaq	-176(%rbp), %r8
	movl	-300(%rbp), %edi                ## 4-byte Reload
	movl	$4, %ecx
	movl	$64, %r9d
	callq	_arcfour_mic_key
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_28
## %bb.27:
	movq	-288(%rbp), %rax                ## 8-byte Reload
	movq	%r13, (%rax)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_28:
	movq	%rbx, %rdi
	callq	_malloc
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.29:
	movq	%rbx, 8(%rcx)
	cmpl	$0, -308(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_30
## %bb.33:
	movq	-296(%rbp), %rsi
	addq	$96, %rsi
	leaq	-240(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	addq	-296(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	jmp	LBB0_34
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_20
LBB0_30:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	testq	%rax, %rax
	je	LBB0_31
## %bb.32:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_EVP_rc4
	leaq	-176(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	movq	-296(%rbp), %rdx
	addq	$96, %rdx
	leaq	-240(%rbp), %rsi
	movl	$8, %ecx
	movq	%r15, %rdi
	callq	_EVP_Cipher
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movq	_GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	shlq	$2, %rdx
	addq	-296(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_EVP_Cipher
	movq	%r15, %rdi
	callq	_EVP_CIPHER_CTX_free
LBB0_34:
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_IS_DCE_STYLE
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	-280(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	xorl	%eax, %eax
LBB0_39:
	addq	%rcx, %rax
	movq	_KRB5_KU_USAGE_SEAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-296(%rbp), %r9
	subq	$8, %rsp
	leaq	-240(%rbp), %rbx
	leaq	-272(%rbp), %rcx
	movl	-300(%rbp), %edi                ## 4-byte Reload
	movq	24(%rbp), %rsi
	movl	$32, %r8d
	pushq	%rax
	movq	-280(%rbp), %rax                ## 8-byte Reload
	pushq	(%rax)
	pushq	$32
	pushq	%rbx
	pushq	$8
	callq	_arcfour_mic_cksum
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movq	%rax, %rbx
	movq	-288(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	callq	__gsskrb5_release_buffer
	movq	%rbx, (%r14)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_36:
	leaq	-320(%rbp), %rdx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	__gssapi_verify_pad
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	%rax, %rbx
	movq	-288(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	callq	__gsskrb5_release_buffer
	movq	$0, (%r14)
	jmp	LBB0_48
LBB0_41:
	movq	-296(%rbp), %rsi
	addq	$64, %rsi
	leaq	-272(%rbp), %rdi
	movl	$8, %edx
	callq	_ct_memcmp
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	movq	-288(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	callq	__gsskrb5_release_buffer
	movq	$0, (%rbx)
	movq	_GSS_S_BAD_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_31:
	movq	-288(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	callq	__gsskrb5_release_buffer
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_38:
	movq	-320(%rbp), %rax
	movq	-280(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rdx), %rcx
	subq	%rax, %rcx
	movq	%rcx, 8(%rdx)
	jmp	LBB0_39
LBB0_43:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movl	8(%r12), %edi
	movl	-312(%rbp), %esi
	callq	__gssapi_msg_order_check
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%rbx, %rbx
	jne	LBB0_48
## %bb.44:
	testq	%r14, %r14
	je	LBB0_46
## %bb.45:
	movl	-304(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%r14)
LBB0_46:
	movq	-288(%rbp), %rax                ## 8-byte Reload
	movq	$0, (%rax)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_ARCFOUR_WRAP_TOKEN_SIZE,4,2 ## @GSS_ARCFOUR_WRAP_TOKEN_SIZE
	.comm	_GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE,4,2 ## @GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE
	.comm	_GSS_S_BAD_MECH,8,3             ## @GSS_S_BAD_MECH
	.comm	_GSS_KRB5_MECHANISM,4,2         ## @GSS_KRB5_MECHANISM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\002\001"

	.comm	_GSS_S_BAD_SIG,8,3              ## @GSS_S_BAD_SIG
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"\021\000"

l_.str.2:                               ## @.str.2
	.asciz	"\020\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"\377\377"

	.comm	_GSS_S_BAD_MIC,8,3              ## @GSS_S_BAD_MIC
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_LOCAL,4,2                      ## @LOCAL
L_.str.4:                               ## @.str.4
	.asciz	"\377\377\377\377"

	.section	__TEXT,__const
l_.str.5:                               ## @.str.5
	.space	5

	.comm	_KRB5_KU_USAGE_SEAL,4,2         ## @KRB5_KU_USAGE_SEAL
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gssapi_unwrap_arcfour         ; -- Begin function _gssapi_unwrap_arcfour
	.p2align	2
__gssapi_unwrap_arcfour:                ; @_gssapi_unwrap_arcfour
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x20, x5
	mov	x21, x4
	mov	x26, x3
	mov	x24, x2
	mov	x22, 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, #-96]
	str	xzr, [sp, #32]
	cbz	x5, LBB0_2
; %bb.1:
	str	wzr, [x20]
LBB0_2:
	cbz	x6, LBB0_4
; %bb.3:
	str	xzr, [x6]
LBB0_4:
	ldr	x8, [x26]
	str	x8, [sp, #40]
	mov	x0, x22
	bl	_IS_DCE_STYLE
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
Lloh6:
	adrp	x9, _GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	ldr	x10, [x26, #8]
	add	x1, x9, x8
	cmp	x10, x1
	b.hs	LBB0_7
	b	LBB0_9
LBB0_6:
	ldr	x1, [x26, #8]
LBB0_7:
Lloh9:
	adrp	x8, _GSS_KRB5_MECHANISM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GSS_KRB5_MECHANISM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x0, sp, #40
	bl	__gssapi_verify_mech_header
	mov	x25, x0
	cbnz	x0, LBB0_14
; %bb.8:
	ldr	x27, [sp, #40]
	ldp	x8, x9, [x26]
	sub	x8, x27, x8
Lloh12:
	adrp	x26, _GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _GSS_ARCFOUR_WRAP_TOKEN_SIZE@GOTPAGEOFF]
	ldrsw	x10, [x26]
	add	x8, x10, x8, asr #2
	subs	x25, x9, x8
	b.hs	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _GSS_S_BAD_MECH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSS_S_BAD_MECH@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x27
	mov	w2, #2
	bl	_memcmp
	cbnz	w0, LBB0_12
; %bb.11:
	add	x0, x27, #8
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_16
LBB0_12:
Lloh20:
	adrp	x8, _GSS_S_BAD_SIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GSS_S_BAD_SIG@GOTPAGEOFF]
LBB0_13:
	ldr	x25, [x8]
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_50
; %bb.15:
	mov	x0, x25
	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	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_16:
	add	x28, x27, #16
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x28
	mov	w2, #2
	bl	_memcmp
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	cbz	w0, LBB0_19
; %bb.17:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x28
	mov	w2, #2
	bl	_memcmp
	cbnz	w0, LBB0_12
; %bb.18:
	mov	w28, #0
	b	LBB0_20
LBB0_19:
	mov	w28, #1
LBB0_20:
	add	x0, x27, #24
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_22
LBB0_21:
Lloh31:
	adrp	x8, _GSS_S_BAD_MIC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GSS_S_BAD_MIC@GOTPAGEOFF]
	b	LBB0_13
LBB0_22:
	ldr	x8, [sp, #40]
	add	x2, x8, #64
	add	x4, sp, #176
	mov	x0, x24
	mov	x1, x23
	mov	w3, #8
	mov	w5, #64
	bl	_arcfour_mic_key
	cbz	x0, LBB0_25
; %bb.23:
	str	x0, [x19]
LBB0_24:
Lloh33:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
	b	LBB0_13
LBB0_25:
	bl	_EVP_CIPHER_CTX_new
	cbz	x0, LBB0_44
; %bb.26:
	mov	x27, x0
	bl	_EVP_rc4
	mov	x1, x0
	add	x3, sp, #176
	mov	x0, x27
	mov	x2, #0
	mov	x4, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	ldr	x8, [sp, #40]
	add	x2, x8, #32
	add	x1, sp, #144
	mov	x0, x27
	mov	w3, #8
	bl	_EVP_Cipher
	mov	x0, x27
	bl	_EVP_CIPHER_CTX_free
	mov	w27, #64
	add	x0, sp, #176
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #144
	add	x1, sp, #52
	bl	__gsskrb5_decode_be_om_uint32
	ldr	w8, [x22]
Lloh35:
	adrp	x9, _LOCAL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LOCAL@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	add	x10, sp, #144
	add	x0, x10, #16
Lloh38:
	adrp	x10, l_.str.4@PAGE
Lloh39:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh40:
	adrp	x11, l_.str.5@PAGE
Lloh41:
	add	x11, x11, l_.str.5@PAGEOFF
	tst	w9, w8
	csel	x1, x11, x10, eq
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_28
LBB0_27:
	str	xzr, [x19]
	b	LBB0_21
LBB0_28:
	sub	x8, x29, #160
	str	x8, [sp, #56]
	ldr	w8, [x23, #16]
	str	w8, [sp, #72]
	str	w27, [sp, #64]
	ldr	x8, [x23]
	movi.4s	v0, #240
	ldp	q1, q2, [x8]
	eor.16b	v1, v1, v0
	eor.16b	v2, v2, v0
	stp	q1, q2, [x29, #-160]
	ldp	q1, q2, [x8, #32]
	eor.16b	v1, v1, v0
	eor.16b	v0, v2, v0
	stp	q1, q0, [x29, #-128]
	add	x1, sp, #56
	add	x2, sp, #144
	add	x4, sp, #176
	mov	x0, x24
	mov	w3, #4
	mov	w5, #64
	bl	_arcfour_mic_key
	mov	x27, x0
	sub	x0, x29, #160
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	cbz	x27, LBB0_30
; %bb.29:
	str	x27, [x19]
	b	LBB0_24
LBB0_30:
	mov	x0, x25
	bl	_malloc
	str	x0, [x21]
	cbz	x0, LBB0_44
; %bb.31:
	str	x25, [x21, #8]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_33
; %bb.32:
	ldr	x8, [sp, #40]
	add	x1, x8, #96
	add	x0, sp, #112
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x21]
	ldr	x8, [sp, #40]
	ldrsw	x9, [x26]
	add	x1, x8, x9, lsl #2
	mov	x2, x25
	bl	_memcpy
	b	LBB0_35
LBB0_33:
	bl	_EVP_CIPHER_CTX_new
	cbz	x0, LBB0_43
; %bb.34:
	mov	x27, x0
	bl	_EVP_rc4
	mov	x1, x0
	add	x3, sp, #176
	mov	x0, x27
	mov	x2, #0
	mov	x4, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	ldr	x8, [sp, #40]
	add	x2, x8, #96
	add	x1, sp, #112
	mov	x0, x27
	mov	w3, #8
	bl	_EVP_Cipher
	ldr	x1, [x21]
	ldr	x8, [sp, #40]
	ldrsw	x9, [x26]
	add	x2, x8, x9, lsl #2
	mov	x0, x27
	mov	x3, x25
	bl	_EVP_Cipher
	mov	x0, x27
	bl	_EVP_CIPHER_CTX_free
LBB0_35:
	add	x0, sp, #176
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x0, x22
	bl	_IS_DCE_STYLE
	cbz	x0, LBB0_39
; %bb.36:
	mov	x8, #0
	ldr	x9, [x21, #8]
LBB0_37:
Lloh42:
	adrp	x10, _KRB5_KU_USAGE_SEAL@GOTPAGE
Lloh43:
	ldr	x10, [x10, _KRB5_KU_USAGE_SEAL@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x10]
	ldr	x5, [sp, #40]
	ldr	x10, [x21]
	add	x8, x8, x9
	stp	x10, x8, [sp, #8]
	mov	w8, #32
	str	w8, [sp]
	add	x3, sp, #80
	add	x7, sp, #112
	mov	x0, x24
	mov	x1, x23
	mov	w4, #32
	mov	w6, #8
	bl	_arcfour_mic_cksum
	cbz	x0, LBB0_41
; %bb.38:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	__gsskrb5_release_buffer
	str	x23, [x19]
	b	LBB0_24
LBB0_39:
	add	x2, sp, #32
	mov	x0, x21
	mov	x1, x25
	bl	__gssapi_verify_pad
	cbz	x0, LBB0_45
; %bb.40:
	mov	x25, x0
	mov	x0, x19
	mov	x1, x21
	bl	__gsskrb5_release_buffer
	str	xzr, [x19]
	b	LBB0_14
LBB0_41:
	ldr	x8, [sp, #40]
	add	x1, x8, #64
	add	x0, sp, #80
	mov	w2, #8
	bl	_ct_memcmp
	cbz	w0, LBB0_46
; %bb.42:
	mov	x0, x19
	mov	x1, x21
	bl	__gsskrb5_release_buffer
	b	LBB0_27
LBB0_43:
	mov	x0, x19
	mov	x1, x21
	bl	__gsskrb5_release_buffer
LBB0_44:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_24
LBB0_45:
	ldr	x8, [sp, #32]
	ldr	x9, [x21, #8]
	sub	x9, x9, x8
	str	x9, [x21, #8]
	b	LBB0_37
LBB0_46:
	add	x21, x22, #4
	mov	x0, x21
	bl	_HEIMDAL_MUTEX_lock
	ldr	w0, [x22, #8]
	ldr	w1, [sp, #52]
	bl	__gssapi_msg_order_check
	mov	x25, x0
	mov	x0, x21
	bl	_HEIMDAL_MUTEX_unlock
	cbnz	x25, LBB0_14
; %bb.47:
	cbz	x20, LBB0_49
; %bb.48:
	str	w28, [x20]
LBB0_49:
	str	xzr, [x19]
Lloh48:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_13
LBB0_50:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_ARCFOUR_WRAP_TOKEN_SIZE,4,2 ; @GSS_ARCFOUR_WRAP_TOKEN_SIZE
	.comm	_GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE,4,2 ; @GSS_ARCFOUR_WRAP_TOKEN_DCE_DER_HEADER_SIZE
	.comm	_GSS_S_BAD_MECH,8,3             ; @GSS_S_BAD_MECH
	.comm	_GSS_KRB5_MECHANISM,4,2         ; @GSS_KRB5_MECHANISM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\002\001"

	.comm	_GSS_S_BAD_SIG,8,3              ; @GSS_S_BAD_SIG
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"\021\000"

l_.str.2:                               ; @.str.2
	.asciz	"\020\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"\377\377"

	.comm	_GSS_S_BAD_MIC,8,3              ; @GSS_S_BAD_MIC
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_LOCAL,4,2                      ; @LOCAL
l_.str.4:                               ; @.str.4
	.asciz	"\377\377\377\377"

	.section	__TEXT,__const
l_.str.5:                               ; @.str.5
	.space	5

	.comm	_KRB5_KU_USAGE_SEAL,4,2         ; @KRB5_KU_USAGE_SEAL
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
