	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sec_generate_keys
_sec_generate_keys:                     ## @sec_generate_keys
	.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	$584, %rsp                      ## imm = 0x248
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-240(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	leaq	-144(%rbp), %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_memcpy
	leaq	-432(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	$65, %r8d
	callq	_sec_hash_48
	leaq	-624(%rbp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movl	$88, %r8d
	callq	_sec_hash_48
	movq	_g_sec_sign_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$16, %r13d
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_g_sec_decrypt_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	-560(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_sec_hash_16
	movq	_g_sec_encrypt_key@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leaq	-496(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_sec_hash_16
	cmpl	$1, %r14d
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DEBUG
	movq	_g_sec_sign_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_sec_make_40bit
	movq	_g_sec_decrypt_key@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_sec_make_40bit
	movq	(%r12), %rdi
	callq	_sec_make_40bit
	movl	$8, %r13d
	movq	%r12, %r15
	jmp	LBB0_3
LBB0_2:
	movslq	%r14d, %rdi
	callq	_DEBUG
	movq	%r12, %r15
	movq	_g_sec_decrypt_key@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	_g_rc4_key_len@GOTPCREL(%rip), %r14
	movl	%r13d, (%r14)
	movq	_g_sec_decrypt_update_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_g_sec_encrypt_update_key@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r15), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_g_rc4_decrypt_key@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rdssl_rc4_info_delete
	xorl	%eax, %eax
	callq	_rdssl_rc4_info_create
	movl	%eax, (%r12)
	movq	(%rbx), %rsi
	movl	(%r14), %edx
	movl	%eax, %edi
	callq	_rdssl_rc4_set_key
	movq	_g_rc4_encrypt_key@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rdssl_rc4_info_delete
	xorl	%eax, %eax
	callq	_rdssl_rc4_info_create
	movl	%eax, (%rbx)
	movq	(%r15), %rsi
	movl	(%r14), %edx
	movl	%eax, %edi
	callq	_rdssl_rc4_set_key
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_sec_sign_key,8,3             ## @g_sec_sign_key
	.comm	_g_sec_decrypt_key,8,3          ## @g_sec_decrypt_key
	.comm	_g_sec_encrypt_key,8,3          ## @g_sec_encrypt_key
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"40-bit encryption enabled\n"

	.comm	_g_rc4_key_len,4,2              ## @g_rc4_key_len
	.comm	_g_sec_decrypt_update_key,8,3   ## @g_sec_decrypt_update_key
	.comm	_g_sec_encrypt_update_key,8,3   ## @g_sec_encrypt_update_key
	.comm	_g_rc4_decrypt_key,4,2          ## @g_rc4_decrypt_key
	.comm	_g_rc4_encrypt_key,4,2          ## @g_rc4_encrypt_key
	.no_dead_strip	_sec_generate_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sec_generate_keys
_sec_generate_keys:                     ; @sec_generate_keys
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #592
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x22, sp, #392
	add	x0, sp, #392
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	add	x0, x22, #96
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	add	x0, sp, #200
	add	x1, sp, #392
	mov	x2, x21
	mov	x3, x20
	mov	w4, #65
	bl	_sec_hash_48
	add	x25, sp, #8
	add	x0, sp, #8
	add	x1, sp, #200
	mov	x2, x21
	mov	x3, x20
	mov	w4, #88
	bl	_sec_hash_48
Lloh3:
	adrp	x24, _g_sec_sign_key@GOTPAGE
Lloh4:
	ldr	x24, [x24, _g_sec_sign_key@GOTPAGEOFF]
	ldr	x0, [x24]
	add	x1, sp, #8
	mov	w2, #16
	bl	_memcpy
Lloh5:
	adrp	x23, _g_sec_decrypt_key@GOTPAGE
Lloh6:
	ldr	x23, [x23, _g_sec_decrypt_key@GOTPAGEOFF]
	ldr	x0, [x23]
	add	x1, x25, #64
	mov	x2, x21
	mov	x3, x20
	bl	_sec_hash_16
Lloh7:
	adrp	x22, _g_sec_encrypt_key@GOTPAGE
Lloh8:
	ldr	x22, [x22, _g_sec_encrypt_key@GOTPAGEOFF]
	ldr	x0, [x22]
	add	x1, x25, #128
	mov	x2, x21
	mov	x3, x20
	bl	_sec_hash_16
	cmp	w19, #1
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUG
	ldr	x0, [x24]
	bl	_sec_make_40bit
	ldr	x0, [x23]
	bl	_sec_make_40bit
	ldr	x0, [x22]
	bl	_sec_make_40bit
	mov	w8, #8
	b	LBB0_3
LBB0_2:
	sxtw	x0, w19
	bl	_DEBUG
	mov	w8, #16
LBB0_3:
Lloh11:
	adrp	x19, _g_rc4_key_len@GOTPAGE
Lloh12:
	ldr	x19, [x19, _g_rc4_key_len@GOTPAGEOFF]
	str	w8, [x19]
Lloh13:
	adrp	x8, _g_sec_decrypt_update_key@GOTPAGE
Lloh14:
	ldr	x8, [x8, _g_sec_decrypt_update_key@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	ldr	x1, [x23]
	mov	w2, #16
	bl	_memcpy
Lloh16:
	adrp	x8, _g_sec_encrypt_update_key@GOTPAGE
Lloh17:
	ldr	x8, [x8, _g_sec_encrypt_update_key@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	ldr	x1, [x22]
	mov	w2, #16
	bl	_memcpy
Lloh19:
	adrp	x20, _g_rc4_decrypt_key@GOTPAGE
Lloh20:
	ldr	x20, [x20, _g_rc4_decrypt_key@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rdssl_rc4_info_delete
	bl	_rdssl_rc4_info_create
	str	w0, [x20]
	ldr	x1, [x23]
	ldr	w2, [x19]
	bl	_rdssl_rc4_set_key
Lloh21:
	adrp	x20, _g_rc4_encrypt_key@GOTPAGE
Lloh22:
	ldr	x20, [x20, _g_rc4_encrypt_key@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rdssl_rc4_info_delete
	bl	_rdssl_rc4_info_create
	str	w0, [x20]
	ldr	x1, [x22]
	ldr	w2, [x19]
	bl	_rdssl_rc4_set_key
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #592
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_g_sec_sign_key,8,3             ; @g_sec_sign_key
	.comm	_g_sec_decrypt_key,8,3          ; @g_sec_decrypt_key
	.comm	_g_sec_encrypt_key,8,3          ; @g_sec_encrypt_key
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"40-bit encryption enabled\n"

	.comm	_g_rc4_key_len,4,2              ; @g_rc4_key_len
	.comm	_g_sec_decrypt_update_key,8,3   ; @g_sec_decrypt_update_key
	.comm	_g_sec_encrypt_update_key,8,3   ; @g_sec_encrypt_update_key
	.comm	_g_rc4_decrypt_key,4,2          ; @g_rc4_decrypt_key
	.comm	_g_rc4_encrypt_key,4,2          ; @g_rc4_encrypt_key
	.no_dead_strip	_sec_generate_keys
.subsections_via_symbols
