	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetFindFlags
_SetFindFlags:                          ## @SetFindFlags
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_szGeneralRegKey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_ALL_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-36(%rbp), %rax
	leaq	-28(%rbp), %r10
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r10
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movzwl	%bx, %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edi
	movq	_s_szFindFlags@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_DWORD@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-32(%rbp), %r14
	xorl	%edx, %edx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_RegSetValueExW
	shrl	$16, %ebx
	movl	%ebx, -32(%rbp)
	movl	-28(%rbp), %edi
	movq	_s_szFindFlagsR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ## @g_szGeneralRegKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_ALL_ACCESS,4,2             ## @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_s_szFindFlags,4,2              ## @s_szFindFlags
	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.comm	_s_szFindFlagsR,4,2             ## @s_szFindFlagsR
	.no_dead_strip	_SetFindFlags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetFindFlags
_SetFindFlags:                          ; @SetFindFlags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _g_szGeneralRegKey@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_szGeneralRegKey@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _KEY_ALL_ACCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KEY_ALL_ACCESS@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	add	x8, sp, #24
	str	x8, [sp]
	sub	x7, x29, #20
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
Lloh12:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	and	w8, w19, #0xffff
	str	w8, [sp, #20]
	ldur	w0, [x29, #-20]
Lloh15:
	adrp	x8, _s_szFindFlags@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_szFindFlags@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x20, _REG_DWORD@GOTPAGE
Lloh19:
	ldr	x20, [x20, _REG_DWORD@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x4, sp, #20
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	lsr	w8, w19, #16
	str	w8, [sp, #20]
	ldur	w0, [x29, #-20]
Lloh20:
	adrp	x8, _s_szFindFlagsR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _s_szFindFlagsR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x20]
	add	x4, sp, #20
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-20]
	bl	_RegCloseKey
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ; @g_szGeneralRegKey
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_ALL_ACCESS,4,2             ; @KEY_ALL_ACCESS
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_s_szFindFlags,4,2              ; @s_szFindFlags
	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.comm	_s_szFindFlagsR,4,2             ; @s_szFindFlagsR
	.no_dead_strip	_SetFindFlags
.subsections_via_symbols
