	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_credential_blob
_write_credential_blob:                 ## @write_credential_blob
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %r12
	movl	%edi, %r15d
	movq	_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%eax, -36(%rbp)
	movq	%rcx, -48(%rbp)
	movl	%r9d, %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, -56(%rbp)
	movl	%r14d, -52(%rbp)
	movq	%rbx, -64(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_SystemFunction032
	movq	_wszPasswordValue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%rbx, %r8
	movl	%r14d, %r9d
	callq	_RegSetValueExW
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_heap_free
	jmp	LBB0_3
LBB0_1:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_SIZE,4,2                   ## @KEY_SIZE
	.comm	_ERROR_OUTOFMEMORY,4,2          ## @ERROR_OUTOFMEMORY
	.comm	_wszPasswordValue,4,2           ## @wszPasswordValue
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
	.no_dead_strip	_write_credential_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_credential_blob
_write_credential_blob:                 ; @write_credential_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x5
	mov	x22, x4
	mov	x21, x0
Lloh0:
	adrp	x8, _KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w8, [sp, #8]
	str	x3, [sp]
	mov	x0, x5
	bl	_heap_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	stp	w19, w19, [sp, #24]
	str	x20, [sp, #16]
	add	x0, sp, #16
	mov	x1, sp
	bl	_SystemFunction032
Lloh3:
	adrp	x8, _wszPasswordValue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wszPasswordValue@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REG_BINARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x4, x20
	mov	x5, x19
	bl	_RegSetValueExW
	mov	x19, x0
	mov	x0, x20
	bl	_heap_free
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_SIZE,4,2                   ; @KEY_SIZE
	.comm	_ERROR_OUTOFMEMORY,4,2          ; @ERROR_OUTOFMEMORY
	.comm	_wszPasswordValue,4,2           ; @wszPasswordValue
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
	.no_dead_strip	_write_credential_blob
.subsections_via_symbols
