	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gssapi_verify_mic_arcfour     ## -- Begin function _gssapi_verify_mic_arcfour
	.p2align	4, 0x90
__gssapi_verify_mic_arcfour:            ## @_gssapi_verify_mic_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	24(%rbp), %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movq	$0, (%r9)
LBB0_2:
	movq	(%r8), %rax
	movq	%rax, -88(%rbp)
	movl	8(%r8), %esi
	movq	_GSS_KRB5_MECHANISM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-88(%rbp), %rdi
	callq	__gsskrb5_verify_header
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movq	-88(%rbp), %rdi
	leaq	l_.str(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_GSS_S_BAD_SIG@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	-88(%rbp), %rdi
	addq	$2, %rdi
	movq	%rdi, -88(%rbp)
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_GSS_S_BAD_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	16(%rbp), %rsi
	movq	-88(%rbp), %r9
	leaq	4(%r9), %rax
	movq	%rax, -88(%rbp)
	movq	_KRB5_KU_USAGE_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$-4, %r9
	movl	8(%r15), %eax
	subq	$8, %rsp
	leaq	-64(%rbp), %rcx
	movl	%r13d, %edi
	movl	$8, %r8d
	pushq	$0
	pushq	$0
	pushq	%rax
	pushq	(%r15)
	pushq	$8
	callq	_arcfour_mic_cksum
	addq	$48, %rsp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	leaq	-64(%rbp), %rdx
	leaq	-80(%rbp), %r8
	movl	%r13d, %edi
	movq	16(%rbp), %rsi
	movl	$8, %ecx
	movl	$16, %r9d
	callq	_arcfour_mic_key
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	%rax, (%r14)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rbx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-88(%rbp), %rsi
	addq	$8, %rsi
	leaq	-64(%rbp), %rdi
	movl	$8, %edx
	callq	_ct_memcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_11:
	movq	$0, (%r14)
	movq	_GSS_S_BAD_MIC@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_EVP_rc4
	leaq	-80(%rbp), %r15
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_EVP_CipherInit_ex
	movq	-88(%rbp), %rdx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$8, %ecx
	callq	_EVP_Cipher
	movq	%r13, %rdi
	callq	_EVP_CIPHER_CTX_free
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-92(%rbp), %rsi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	__gsskrb5_decode_be_om_uint32
	movq	_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	leaq	-52(%rbp), %rdi
	leaq	l_.str.2(%rip), %rax
	cmoveq	%rax, %rbx
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcmp
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.15:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movl	8(%r12), %edi
	movl	-92(%rbp), %esi
	callq	__gssapi_msg_order_check
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%rbx, %rbx
	jne	LBB0_18
## %bb.16:
	movq	$0, (%r14)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_8
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_KRB5_MECHANISM,4,2         ## @GSS_KRB5_MECHANISM
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\021\000"

	.comm	_GSS_S_BAD_SIG,8,3              ## @GSS_S_BAD_SIG
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\377\377\377\377"

	.comm	_GSS_S_BAD_MIC,8,3              ## @GSS_S_BAD_MIC
	.comm	_KRB5_KU_USAGE_SIGN,4,2         ## @KRB5_KU_USAGE_SIGN
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_LOCAL,4,2                      ## @LOCAL
	.section	__TEXT,__const
l_.str.2:                               ## @.str.2
	.space	5

	.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_verify_mic_arcfour     ; -- Begin function _gssapi_verify_mic_arcfour
	.p2align	2
__gssapi_verify_mic_arcfour:            ; @_gssapi_verify_mic_arcfour
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x6
	mov	x24, x3
	mov	x23, x2
	mov	x20, 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, #-56]
	cbz	x5, LBB0_2
; %bb.1:
	str	xzr, [x5]
LBB0_2:
	ldr	x8, [x4]
	str	x8, [sp, #24]
	ldr	w1, [x4, #8]
Lloh3:
	adrp	x8, _GSS_KRB5_MECHANISM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_KRB5_MECHANISM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x0, sp, #24
	mov	x2, x7
	bl	__gsskrb5_verify_header
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.3:
	ldr	x0, [sp, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _GSS_S_BAD_SIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_BAD_SIG@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	x8, [sp, #24]
	add	x0, x8, #2
	str	x0, [sp, #24]
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _GSS_S_BAD_MIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSS_S_BAD_MIC@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	ldr	x8, [sp, #24]
	add	x9, x8, #4
	str	x9, [sp, #24]
Lloh14:
	adrp	x9, _KRB5_KU_USAGE_SIGN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KRB5_KU_USAGE_SIGN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	sub	x5, x8, #4
	ldr	x7, [x24]
	ldr	w8, [x24, #8]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
	add	x3, sp, #56
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	w4, #8
	mov	w6, #8
	bl	_arcfour_mic_cksum
	cbnz	x0, LBB0_9
; %bb.8:
	add	x2, sp, #56
	add	x4, sp, #40
	mov	x0, x23
	mov	x1, x22
	mov	w3, #8
	mov	w5, #16
	bl	_arcfour_mic_key
	cbz	x0, LBB0_14
LBB0_9:
	str	x0, [x19]
LBB0_10:
Lloh17:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	x21, [x8]
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.13:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	ldr	x8, [sp, #24]
	add	x1, x8, #8
	add	x0, sp, #56
	mov	w2, #8
	bl	_ct_memcmp
	cbz	w0, LBB0_16
LBB0_15:
	str	xzr, [x19]
	b	LBB0_6
LBB0_16:
	bl	_EVP_CIPHER_CTX_new
	cbz	x0, LBB0_20
; %bb.17:
	mov	x22, x0
	bl	_EVP_rc4
	mov	x1, x0
	add	x3, sp, #40
	mov	x0, x22
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_EVP_CipherInit_ex
	ldr	x2, [sp, #24]
	add	x23, sp, #64
	add	x1, sp, #64
	mov	x0, x22
	mov	w3, #8
	bl	_EVP_Cipher
	mov	x0, x22
	bl	_EVP_CIPHER_CTX_free
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #64
	add	x1, sp, #36
	bl	__gsskrb5_decode_be_om_uint32
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _LOCAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _LOCAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	add	x0, x23, #4
Lloh25:
	adrp	x10, l_.str.2@PAGE
Lloh26:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w9, w8
	csel	x1, x10, x21, eq
	mov	w2, #4
	bl	_memcmp
	mov	x21, x0
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbnz	w21, LBB0_15
; %bb.18:
	add	x22, x20, #4
	mov	x0, x22
	bl	_HEIMDAL_MUTEX_lock
	ldr	w0, [x20, #8]
	ldr	w1, [sp, #36]
	bl	__gssapi_msg_order_check
	mov	x21, x0
	mov	x0, x22
	bl	_HEIMDAL_MUTEX_unlock
	cbnz	x21, LBB0_12
; %bb.19:
	str	xzr, [x19]
Lloh27:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_11
LBB0_20:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_KRB5_MECHANISM,4,2         ; @GSS_KRB5_MECHANISM
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\021\000"

	.comm	_GSS_S_BAD_SIG,8,3              ; @GSS_S_BAD_SIG
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\377\377\377\377"

	.comm	_GSS_S_BAD_MIC,8,3              ; @GSS_S_BAD_MIC
	.comm	_KRB5_KU_USAGE_SIGN,4,2         ; @KRB5_KU_USAGE_SIGN
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_LOCAL,4,2                      ; @LOCAL
	.section	__TEXT,__const
l_.str.2:                               ; @.str.2
	.space	5

	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
