	.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_get_mic_arcfour
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	17                              ## 0x11
	.long	0                               ## 0x0
LCPI0_1:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__gssapi_get_mic_arcfour
	.p2align	4, 0x90
__gssapi_get_mic_arcfour:               ## @_gssapi_get_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movq	%rsi, -144(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GSS_KRB5_MECHANISM@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-160(%rbp), %rsi
	leaq	-152(%rbp), %rdx
	movl	$22, %edi
	callq	__gsskrb5_encap_length
	movq	-152(%rbp), %rdi
	movq	%rdi, (%r13)
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r12
	movq	-160(%rbp), %rsi
	movl	(%r14), %edx
	movq	%rax, %rdi
	callq	__gssapi_make_mech_header
	movq	%rax, %rbx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,17,0]
	movups	%xmm0, (%rax)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, 16(%rax)
	movq	_KRB5_KU_USAGE_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	64(%rbx), %r14
	subq	$8, %rsp
	movl	-116(%rbp), %edi                ## 4-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rcx
	movl	$8, %r8d
	movq	%rbx, %r9
	pushq	$0
	pushq	$0
	pushq	(%r15)
	pushq	8(%r15)
	pushq	$8
	callq	_arcfour_mic_cksum
	addq	$48, %rsp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-112(%rbp), %r8
	movl	-116(%rbp), %edi                ## 4-byte Reload
	movq	16(%rbp), %rsi
	movq	%r14, %rdx
	movl	$8, %ecx
	movl	$64, %r9d
	callq	_arcfour_mic_key
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%rax, %r15
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	__gsskrb5_release_buffer
	jmp	LBB0_8
LBB0_4:
	movq	-144(%rbp), %r15                ## 8-byte Reload
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movl	8(%r15), %esi
	leaq	-120(%rbp), %rdx
	movl	-116(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %edi
	callq	_krb5_auth_con_getlocalseqnumber
	leaq	32(%rbx), %rsi
	movl	-120(%rbp), %edi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	callq	__gsskrb5_encode_be_om_uint32
	movl	8(%r15), %esi
	movl	-120(%rbp), %edx
	incl	%edx
	movl	%edx, -120(%rbp)
	movl	%r12d, %edi
	callq	_krb5_auth_con_setlocalseqnumber
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	addq	$48, %rbx
	movq	_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	movl	$255, %esi
	cmovnel	%ecx, %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_EVP_rc4
	leaq	-112(%rbp), %r14
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	movq	%rbx, %rdi
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rsi
	movl	$8, %ecx
	callq	_EVP_Cipher
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_free
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_9
LBB0_6:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	__gsskrb5_release_buffer
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_8:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_9:
	movq	%r15, (%rbx)
	movq	(%rax), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_KRB5_MECHANISM,4,2         ## @GSS_KRB5_MECHANISM
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_KRB5_KU_USAGE_SIGN,4,2         ## @KRB5_KU_USAGE_SIGN
	.comm	_LOCAL,4,2                      ## @LOCAL
	.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
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function _gssapi_get_mic_arcfour
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	17                              ; 0x11
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__gssapi_get_mic_arcfour
	.p2align	2
__gssapi_get_mic_arcfour:               ; @_gssapi_get_mic_arcfour
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x24, x6
	mov	x20, x5
	mov	x25, x4
	mov	x22, x2
	mov	x21, 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, #-72]
Lloh3:
	adrp	x23, _GSS_KRB5_MECHANISM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GSS_KRB5_MECHANISM@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x1, sp, #40
	add	x2, sp, #32
	mov	w0, #22
	bl	__gsskrb5_encap_length
	ldr	x0, [sp, #32]
	str	x0, [x20]
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x1, [sp, #40]
	ldr	w2, [x23]
	bl	__gssapi_make_mech_header
	mov	x23, x0
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	movi.2d	v1, #0x0000ff000000ff
	stp	q0, q1, [x0]
Lloh7:
	adrp	x8, _KRB5_KU_USAGE_SIGN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KRB5_KU_USAGE_SIGN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x26, x0, #64
	ldp	x8, x7, [x25]
	str	wzr, [sp, #16]
	stp	x8, xzr, [sp]
	mov	x0, x22
	mov	x1, x24
	mov	x3, x26
	mov	w4, #8
	mov	x5, x23
	mov	w6, #8
	bl	_arcfour_mic_cksum
	cbnz	x0, LBB0_3
; %bb.2:
	add	x4, sp, #56
	mov	x0, x22
	mov	x1, x24
	mov	x2, x26
	mov	w3, #8
	mov	w5, #64
	bl	_arcfour_mic_key
	cbz	x0, LBB0_4
LBB0_3:
	mov	x25, x0
	mov	x0, x19
	mov	x1, x20
	bl	__gsskrb5_release_buffer
	b	LBB0_8
LBB0_4:
	add	x25, x21, #4
	mov	x0, x25
	bl	_HEIMDAL_MUTEX_lock
	ldr	w1, [x21, #8]
	add	x2, sp, #52
	mov	x0, x22
	bl	_krb5_auth_con_getlocalseqnumber
	add	x24, x23, #32
	ldr	w0, [sp, #52]
	mov	x1, x24
	bl	__gsskrb5_encode_be_om_uint32
	ldr	w1, [x21, #8]
	ldr	w8, [sp, #52]
	add	w2, w8, #1
	str	w2, [sp, #52]
	mov	x0, x22
	bl	_krb5_auth_con_setlocalseqnumber
	mov	x0, x25
	bl	_HEIMDAL_MUTEX_unlock
	add	x0, x23, #48
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _LOCAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LOCAL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #255
	csel	w1, w8, wzr, eq
	mov	w2, #4
	bl	_memset
	bl	_EVP_CIPHER_CTX_new
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	bl	_EVP_rc4
	mov	x1, x0
	add	x3, sp, #56
	mov	x0, x21
	mov	x2, #0
	mov	x4, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	mov	x0, x21
	mov	x1, x24
	mov	x2, x24
	mov	w3, #8
	bl	_EVP_Cipher
	mov	x0, x21
	bl	_EVP_CIPHER_CTX_free
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x25, #0
Lloh13:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	__gsskrb5_release_buffer
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	x25, [x8]
LBB0_8:
Lloh18:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_9:
	str	x25, [x19]
	ldr	x0, [x8]
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_KRB5_MECHANISM,4,2         ; @GSS_KRB5_MECHANISM
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_KRB5_KU_USAGE_SIGN,4,2         ; @KRB5_KU_USAGE_SIGN
	.comm	_LOCAL,4,2                      ; @LOCAL
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
