	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_WriteSerializedToReg
_CRYPT_WriteSerializedToReg:            ## @CRYPT_WriteSerializedToReg
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-224(%rbp), %r13
	movq	%rdx, %rdi
	movq	%r13, %rsi
	callq	_CRYPT_HashToStr
	movq	_KEY_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-228(%rbp), %rax
	movl	%ebx, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	-228(%rbp), %edi
	movq	_BlobW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_RegSetValueExW
	movq	%rax, %rbx
	movl	-228(%rbp), %edi
	callq	_RegCloseKey
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_ALL_ACCESS,4,2             ## @KEY_ALL_ACCESS
	.comm	_BlobW,4,2                      ## @BlobW
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_CRYPT_WriteSerializedToReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_WriteSerializedToReg
_CRYPT_WriteSerializedToReg:            ; @CRYPT_WriteSerializedToReg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x1, sp, #20
	mov	x0, x2
	bl	_CRYPT_HashToStr
Lloh3:
	adrp	x8, _KEY_ALL_ACCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KEY_ALL_ACCESS@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	str	xzr, [sp]
	add	x1, sp, #20
	add	x7, sp, #16
	mov	x0, x22
	mov	w2, #0
	mov	x3, #0
	mov	x4, x21
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #16]
Lloh6:
	adrp	x8, _BlobW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BlobW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REG_BINARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_BINARY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x20
	mov	x5, x19
	bl	_RegSetValueExW
	mov	x21, x0
	ldr	w0, [sp, #16]
	bl	_RegCloseKey
	cbz	x21, LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_SetLastError
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
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_6
; %bb.4:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_5:
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_ALL_ACCESS,4,2             ; @KEY_ALL_ACCESS
	.comm	_BlobW,4,2                      ; @BlobW
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_CRYPT_WriteSerializedToReg
.subsections_via_symbols
