	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setValue
_setValue:                              ## @setValue
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	movw	$45, -50(%rbp)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movl	%edx, %r12d
	movq	%rdi, %rbx
	leaq	-50(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_lstrcmpW
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_getDataType
	movq	%rax, %r14
	movq	-64(%rbp), %rax
	movq	_REG_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	-48(%rbp), %rdi
	callq	_REGPROC_unescape_string
	movq	-48(%rbp), %rdi
	callq	_lstrlenW
	movq	-48(%rbp), %r15
	cmpb	$34, -1(%r15,%rax)
	jne	LBB0_21
## %bb.5:
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	decq	%rax
	movq	%rax, -40(%rbp)
	movb	$0, (%r15,%rax)
	movq	-48(%rbp), %r15
	movq	-40(%rbp), %rax
LBB0_7:
	incq	%rax
	movq	%rax, -40(%rbp)
	jmp	LBB0_14
LBB0_8:
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	movq	_currentKeyHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_RegDeleteValueW
	movq	%rax, %rbx
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_23
## %bb.10:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	movq	_REG_DWORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rdi
	leaq	-72(%rbp), %r15
	movq	%r15, %rsi
	callq	_convertHexToDWord
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	movq	$8, -40(%rbp)
LBB0_14:
	movq	_currentKeyHandle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %r9
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_RegSetValueExW
	movq	%rax, %rbx
	movq	-64(%rbp), %rax
	movq	_REG_BINARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.15:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	jmp	LBB0_23
LBB0_16:
	movq	_REG_BINARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.17:
	movq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_convertHexCSVToHex
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	%rax, %r15
	movq	_REG_MULTI_SZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_24
## %bb.19:
	testl	%r12d, %r12d
	jne	LBB0_14
	jmp	LBB0_26
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getAppName
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_fprintf
LBB0_21:
	movq	_ERROR_INVALID_DATA@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rbx
LBB0_23:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.25:
	movq	_REG_EXPAND_SZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
LBB0_26:
	movq	-40(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_GetWideStringN
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	movq	%r12, %r15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR_INVALID_PARAMETER,8,3    ## @ERROR_INVALID_PARAMETER
	.comm	_currentKeyHandle,4,2           ## @currentKeyHandle
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ## @ERROR_FILE_NOT_FOUND
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ## @REG_SZ
	.comm	_ERROR_INVALID_DATA,8,3         ## @ERROR_INVALID_DATA
	.comm	_REG_DWORD,8,3                  ## @REG_DWORD
	.comm	_REG_BINARY,8,3                 ## @REG_BINARY
	.comm	_REG_MULTI_SZ,8,3               ## @REG_MULTI_SZ
	.comm	_REG_EXPAND_SZ,8,3              ## @REG_EXPAND_SZ
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%S: ERROR, unknown data format\n"

	.no_dead_strip	_setValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setValue
_setValue:                              ; @setValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	str	x1, [sp, #40]
	mov	w9, #45
	strh	w9, [sp, #14]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x8, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x22, x2
	mov	x19, x0
	add	x1, sp, #14
	mov	x0, x8
	bl	_lstrcmpW
	cbz	x0, LBB0_9
; %bb.3:
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_getDataType
	mov	x20, x0
	ldr	x8, [sp, #32]
Lloh0:
	adrp	x9, _REG_SZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_SZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	x0, [sp, #40]
	bl	_REGPROC_unescape_string
	ldr	x0, [sp, #40]
	bl	_lstrlenW
	ldr	x21, [sp, #40]
	sub	x8, x0, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #34
	b.ne	LBB0_21
; %bb.5:
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.6:
	str	x8, [sp, #16]
	strb	wzr, [x21, x8]
	ldr	x21, [sp, #40]
	ldr	x0, [sp, #16]
LBB0_7:
	add	x8, x0, #1
	b	LBB0_13
LBB0_8:
Lloh3:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
Lloh5:
	adrp	x8, _currentKeyHandle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _currentKeyHandle@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_RegDeleteValueW
Lloh8:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _ERROR_SUCCESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x19, x9, x0, eq
	b	LBB0_23
LBB0_10:
Lloh14:
	adrp	x9, _REG_DWORD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REG_DWORD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
	ldr	x0, [sp, #40]
	add	x1, sp, #24
	bl	_convertHexToDWord
	cbz	w0, LBB0_21
; %bb.12:
	add	x21, sp, #24
	mov	w8, #8
LBB0_13:
	str	x8, [sp, #16]
LBB0_14:
Lloh17:
	adrp	x8, _currentKeyHandle@GOTPAGE
Lloh18:
	ldr	x8, [x8, _currentKeyHandle@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x5, [sp, #16]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x20
	mov	x4, x21
	bl	_RegSetValueExW
	mov	x19, x0
	ldr	x8, [sp, #32]
Lloh20:
	adrp	x9, _REG_BINARY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _REG_BINARY@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.15:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
	b	LBB0_23
LBB0_16:
Lloh23:
	adrp	x9, _REG_BINARY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _REG_BINARY@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
	ldr	x0, [sp, #40]
	add	x1, sp, #16
	bl	_convertHexCSVToHex
	cbz	x0, LBB0_21
; %bb.18:
	mov	x21, x0
Lloh26:
	adrp	x8, _REG_MULTI_SZ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_MULTI_SZ@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_24
; %bb.19:
	cbnz	w22, LBB0_14
	b	LBB0_26
LBB0_20:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	bl	_getAppName
	mov	x2, x0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_21:
Lloh34:
	adrp	x8, _ERROR_INVALID_DATA@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR_INVALID_DATA@GOTPAGEOFF]
LBB0_22:
	ldr	x19, [x8]
LBB0_23:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_24:
	cbnz	w22, LBB0_14
; %bb.25:
Lloh36:
	adrp	x8, _REG_EXPAND_SZ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REG_EXPAND_SZ@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_14
LBB0_26:
	ldr	x1, [sp, #16]
	add	x2, sp, #16
	mov	x0, x21
	bl	_GetWideStringN
	mov	x22, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
	mov	x21, x22
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR_INVALID_PARAMETER,8,3    ; @ERROR_INVALID_PARAMETER
	.comm	_currentKeyHandle,4,2           ; @currentKeyHandle
	.comm	_ERROR_FILE_NOT_FOUND,8,3       ; @ERROR_FILE_NOT_FOUND
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ; @REG_SZ
	.comm	_ERROR_INVALID_DATA,8,3         ; @ERROR_INVALID_DATA
	.comm	_REG_DWORD,8,3                  ; @REG_DWORD
	.comm	_REG_BINARY,8,3                 ; @REG_BINARY
	.comm	_REG_MULTI_SZ,8,3               ; @REG_MULTI_SZ
	.comm	_REG_EXPAND_SZ,8,3              ; @REG_EXPAND_SZ
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%S: ERROR, unknown data format\n"

	.no_dead_strip	_setValue
.subsections_via_symbols
