	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_set_options           ## -- Begin function registry_set_options
	.p2align	4, 0x90
_registry_set_options:                  ## @registry_set_options
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movl	$0, -28(%rbp)
	movq	_key_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_registry_get_handle
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movl	$24, -64(%rbp)
	leaq	-64(%rbp), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_GetWindowPlacement
	movq	-56(%rbp), %rax
	movq	_SW_SHOWMAXIMIZED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edi
	movq	_var_framerect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$16, %ebx
	xorl	%edx, %edx
	movl	%ebx, %r8d
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-28(%rbp), %edi
	movq	_var_maximized@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r8
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-28(%rbp), %edi
	callq	_registry_set_pagemargins
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	movq	_key_settings@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_registry_get_handle
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:
	movl	-28(%rbp), %edi
	callq	_registry_set_previewpages
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_key_options,4,2                ## @key_options
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_SW_SHOWMAXIMIZED,8,3           ## @SW_SHOWMAXIMIZED
	.comm	_var_framerect,4,2              ## @var_framerect
	.comm	_REG_BINARY,4,2                 ## @REG_BINARY
	.comm	_var_maximized,4,2              ## @var_maximized
	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.comm	_key_settings,4,2               ## @key_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_set_options           ; -- Begin function registry_set_options
	.p2align	2
_registry_set_options:                  ; @registry_set_options
	.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
	mov	x19, x0
	stur	wzr, [x29, #-36]
Lloh0:
	adrp	x8, _key_options@GOTPAGE
Lloh1:
	ldr	x8, [x8, _key_options@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x0, x29, #36
	add	x1, sp, #40
	bl	_registry_get_handle
Lloh3:
	adrp	x20, _ERROR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #24
	str	w8, [sp, #16]
	add	x21, sp, #16
	add	x1, sp, #16
	mov	x0, x19
	bl	_GetWindowPlacement
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, _SW_SHOWMAXIMIZED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SW_SHOWMAXIMIZED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _var_framerect@GOTPAGE
Lloh9:
	ldr	x8, [x8, _var_framerect@GOTPAGEOFF]
	ldur	w0, [x29, #-36]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _REG_BINARY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_BINARY@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	w4, w21, #16
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-36]
Lloh14:
	adrp	x8, _var_maximized@GOTPAGE
Lloh15:
	ldr	x8, [x8, _var_maximized@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-36]
	bl	_registry_set_pagemargins
	ldur	w0, [x29, #-36]
	bl	_RegCloseKey
LBB0_2:
Lloh20:
	adrp	x8, _key_settings@GOTPAGE
Lloh21:
	ldr	x8, [x8, _key_settings@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	sub	x0, x29, #36
	add	x1, sp, #40
	bl	_registry_get_handle
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldur	w0, [x29, #-36]
	bl	_registry_set_previewpages
	ldur	w0, [x29, #-36]
	bl	_RegCloseKey
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_key_options,4,2                ; @key_options
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_SW_SHOWMAXIMIZED,8,3           ; @SW_SHOWMAXIMIZED
	.comm	_var_framerect,4,2              ; @var_framerect
	.comm	_REG_BINARY,4,2                 ; @REG_BINARY
	.comm	_var_maximized,4,2              ; @var_maximized
	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.comm	_key_settings,4,2               ; @key_settings
.subsections_via_symbols
