	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ARCFOUR_subencrypt
_ARCFOUR_subencrypt:                    ## @ARCFOUR_subencrypt
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CKSUMTYPE_RSA_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__krb5_find_checksum
	movq	%rax, %r14
	movl	%ebx, -116(%rbp)
	movl	$16, -176(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -168(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-116(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	__krb5_internal_hmac
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_krb5_abortx
LBB0_2:
	leaq	-80(%rbp), %rbx
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_memcpy
	leaq	-144(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	$16, -144(%rbp)
	movq	%rbx, -136(%rbp)
	movl	$16, -192(%rbp)
	movq	%r12, -184(%rbp)
	leaq	16(%r12), %r13
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	$-16, %rcx
	leaq	-192(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-112(%rbp), %r9
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	__krb5_internal_hmac
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_krb5_abortx
LBB0_4:
	leaq	-144(%rbp), %rax
	movq	%rax, -112(%rbp)
	movups	-176(%rbp), %xmm0
	movaps	%xmm0, -144(%rbp)
	movl	$16, -160(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -152(%rbp)
	leaq	-160(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-112(%rbp), %r9
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	__krb5_internal_hmac
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	callq	_krb5_abortx
LBB0_6:
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	callq	_krb5_abortx
LBB0_8:
	xorl	%eax, %eax
	callq	_EVP_rc4
	movq	-152(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_EVP_CipherInit_ex
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	_EVP_Cipher
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_free
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CKSUMTYPE_RSA_MD5,4,2          ## @CKSUMTYPE_RSA_MD5
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hmac failed"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failed"

	.no_dead_strip	_ARCFOUR_subencrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ARCFOUR_subencrypt
_ARCFOUR_subencrypt:                    ; @ARCFOUR_subencrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, 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	x8, _CKSUMTYPE_RSA_MD5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CKSUMTYPE_RSA_MD5@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	__krb5_find_checksum
	mov	x23, x0
	str	w21, [sp, #12]
	mov	w21, #16
	str	w21, [sp, #72]
	sub	x8, x29, #88
	str	x8, [sp, #80]
	add	x2, sp, #12
	add	x6, sp, #72
	mov	x0, #0
	mov	x1, x23
	mov	w3, #4
	mov	w4, #0
	mov	x5, x24
	bl	__krb5_internal_hmac
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_abortx
LBB0_2:
	add	x25, sp, #104
	add	x0, sp, #104
	sub	x1, x29, #88
	mov	w2, #16
	bl	_memcpy
	add	x24, sp, #16
	stp	x25, x24, [sp, #24]
	str	w21, [sp, #16]
	str	w21, [sp, #40]
	add	x21, x20, #16
	sub	x22, x22, #16
	str	x20, [sp, #48]
	add	x5, sp, #32
	add	x6, sp, #40
	mov	x0, #0
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	mov	w4, #0
	bl	__krb5_internal_hmac
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_abortx
LBB0_4:
	str	x24, [sp, #32]
	ldur	q0, [sp, #72]
	str	q0, [sp, #16]
	mov	w8, #16
	str	w8, [sp, #56]
	add	x8, sp, #88
	str	x8, [sp, #64]
	add	x5, sp, #32
	add	x6, sp, #56
	mov	x0, #0
	mov	x1, x23
	mov	x2, x20
	mov	w3, #16
	mov	w4, #0
	bl	__krb5_internal_hmac
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_abortx
LBB0_6:
	bl	_EVP_CIPHER_CTX_new
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_krb5_abortx
LBB0_8:
	bl	_EVP_rc4
	mov	x1, x0
	ldr	x3, [sp, #64]
	mov	x0, x20
	mov	x2, #0
	mov	x4, #0
	mov	w5, #1
	bl	_EVP_CipherInit_ex
	mov	x0, x20
	mov	x1, x21
	mov	x2, x21
	mov	x3, x22
	bl	_EVP_Cipher
	mov	x0, x20
	bl	_EVP_CIPHER_CTX_free
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #104
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CKSUMTYPE_RSA_MD5,4,2          ; @CKSUMTYPE_RSA_MD5
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hmac failed"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failed"

	.no_dead_strip	_ARCFOUR_subencrypt
.subsections_via_symbols
