	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_key_defvalueW
_register_key_defvalueW:                ## @register_key_defvalueW
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movq	_KEY_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-28(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movl	-28(%rbp), %ebx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_RegSetValueExW
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.no_dead_strip	_register_key_defvalueW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_key_defvalueW
_register_key_defvalueW:                ; @register_key_defvalueW
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
Lloh0:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KEY_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KEY_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w5, w9, w8
	str	xzr, [sp]
	add	x7, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	mov	x20, x0
Lloh6:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [sp, #12]
Lloh9:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	x3, x21
	mov	x4, x19
	bl	_RegSetValueExW
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.no_dead_strip	_register_key_defvalueW
.subsections_via_symbols
