	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ARCFOUR_string_to_key
_ARCFOUR_string_to_key:                 ## @ARCFOUR_string_to_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%edx, %r13d
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_EVP_md4
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edi
	callq	_wind_utf8ucs2_length
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rdi
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_krb5_set_error_message
LBB0_5:
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_destroy
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rbx
	leaq	(,%rbx,4), %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	testq	%r14, %r14
	jne	LBB0_11
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movq	(%r14), %r12
	jmp	LBB0_5
LBB0_11:
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_wind_utf8ucs2
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r12
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	jmp	LBB0_18
LBB0_13:
	cmpq	$0, -56(%rbp)
	je	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	leaq	-41(%rbp), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rbx,4), %eax
	movb	%al, -41(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_EVP_DigestUpdate
	movzbl	1(%r14,%rbx,4), %eax
	movb	%al, -41(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_EVP_DigestUpdate
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jb	LBB0_15
LBB0_16:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_krb5_data_alloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	movq	%rax, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
LBB0_18:
	movl	%eax, %edx
	callq	_krb5_set_error_message
LBB0_19:
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_destroy
	testq	%r14, %r14
	je	LBB0_6
## %bb.20:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_7
LBB0_22:
	movl	(%rbx), %esi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"Password not an UCS2 string"

	.no_dead_strip	_ARCFOUR_string_to_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ARCFOUR_string_to_key
_ARCFOUR_string_to_key:                 ; @ARCFOUR_string_to_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x5
	mov	x25, x2
	mov	x24, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	bl	_EVP_MD_CTX_create
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	bl	_EVP_md4
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	add	x1, sp, #8
	mov	x0, x25
	bl	_wind_utf8ucs2_length
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_krb5_set_error_message
LBB0_5:
	mov	x0, x19
	bl	_EVP_MD_CTX_destroy
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	bl	_free
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	x22, [sp, #8]
	lsl	x0, x22, #2
	bl	_malloc
	mov	x21, x0
	cbz	x22, LBB0_10
; %bb.8:
	cbnz	x21, LBB0_10
; %bb.9:
Lloh9:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_krb5_set_error_message
	ldr	x22, [x22]
	b	LBB0_5
LBB0_10:
	add	x2, sp, #8
	mov	x0, x25
	mov	x1, x21
	bl	_wind_utf8ucs2
	cbz	x0, LBB0_12
; %bb.11:
	mov	x22, x0
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	b	LBB0_17
LBB0_12:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x22, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	lsl	x25, x22, #2
	ldr	w8, [x21, x25]
	strb	w8, [sp, #7]
	add	x1, sp, #7
	mov	x0, x19
	mov	w2, #1
	bl	_EVP_DigestUpdate
	ldr	w8, [x21, x25]
	lsr	w8, w8, #8
	strb	w8, [sp, #7]
	add	x1, sp, #7
	mov	x0, x19
	mov	w2, #1
	bl	_EVP_DigestUpdate
	add	x22, x22, #1
	ldr	x8, [sp, #8]
	cmp	x22, x8
	b.lo	LBB0_14
LBB0_15:
	str	w24, [x23, #4]
	mov	x0, x23
	mov	w1, #16
	bl	_krb5_data_alloc
	mov	x22, x0
	cbz	x0, LBB0_20
; %bb.16:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	x23, [x8]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
LBB0_17:
	bl	_krb5_set_error_message
LBB0_18:
	mov	x0, x19
	bl	_EVP_MD_CTX_destroy
	cbz	x21, LBB0_6
; %bb.19:
	ldr	x2, [sp, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	b	LBB0_6
LBB0_20:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"Password not an UCS2 string"

	.no_dead_strip	_ARCFOUR_string_to_key
.subsections_via_symbols
