	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_rc4_set_key              ## -- Begin function rdssl_rc4_set_key
	.p2align	4, 0x90
_rdssl_rc4_set_key:                     ## @rdssl_rc4_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.3:
	cmpl	$0, 8(%r14)
	je	LBB0_9
## %bb.4:
	leal	28(%rbx), %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_g_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$112, %rdi
	movq	_CALG_RC4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_PLAINTEXTKEYBLOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_CUR_BLOB_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	$0, (%r12)
	movl	%ebx, 96(%r12)
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_CryptDestroyKey
	movq	$0, (%r14)
LBB0_7:
	movl	8(%r14), %edi
	movq	_CRYPT_EXPORTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_CryptImportKey
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_g_free
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdssl_rc4_set_key %p %p %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"rdssl_rc4_set_key no memory\n"

	.comm	_CALG_RC4,4,2                   ## @CALG_RC4
	.comm	_PLAINTEXTKEYBLOB,4,2           ## @PLAINTEXTKEYBLOB
	.comm	_CUR_BLOB_VERSION,4,2           ## @CUR_BLOB_VERSION
	.comm	_CRYPT_EXPORTABLE,4,2           ## @CRYPT_EXPORTABLE
L_.str.2:                               ## @.str.2
	.asciz	"CryptImportKey failed with %lx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdssl_rc4_set_key              ; -- Begin function rdssl_rc4_set_key
	.p2align	2
_rdssl_rc4_set_key:                     ; @rdssl_rc4_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x23, LBB0_9
; %bb.2:
	cbz	w22, LBB0_9
; %bb.3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.4:
	add	w21, w22, #28
	mov	x0, x21
	mov	w1, #0
	bl	_g_malloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
	add	x0, x0, #112
Lloh0:
	adrp	x8, _CALG_RC4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CALG_RC4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh3:
	adrp	x8, _PLAINTEXTKEYBLOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAINTEXTKEYBLOB@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CUR_BLOB_VERSION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CUR_BLOB_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	xzr, [x20]
	str	w22, [x20, #96]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_CryptDestroyKey
	str	xzr, [x19]
LBB0_7:
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _CRYPT_EXPORTABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRYPT_EXPORTABLE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	x5, x19
	bl	_CryptImportKey
	mov	x19, x0
	mov	x0, x20
	bl	_g_free
	cbnz	w19, LBB0_11
; %bb.8:
	bl	_GetLastError
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
	stp	x23, x22, [sp, #8]
	str	x19, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_error
LBB0_11:
	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
	add	sp, sp, #96
	ret
LBB0_12:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	add	sp, sp, #96
	b	_error
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdssl_rc4_set_key %p %p %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"rdssl_rc4_set_key no memory\n"

	.comm	_CALG_RC4,4,2                   ; @CALG_RC4
	.comm	_PLAINTEXTKEYBLOB,4,2           ; @PLAINTEXTKEYBLOB
	.comm	_CUR_BLOB_VERSION,4,2           ; @CUR_BLOB_VERSION
	.comm	_CRYPT_EXPORTABLE,4,2           ; @CRYPT_EXPORTABLE
l_.str.2:                               ; @.str.2
	.asciz	"CryptImportKey failed with %lx\n"

.subsections_via_symbols
