	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_read_winrect          ## -- Begin function registry_read_winrect
	.p2align	4, 0x90
_registry_read_winrect:                 ## @registry_read_winrect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	movl	$4, -24(%rbp)
	movq	_key_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rdi
	xorl	%esi, %esi
	callq	_registry_get_handle
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.1:
	movl	-20(%rbp), %edi
	movq	_var_framerect@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_RegQueryValueExW
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.2:
	cmpl	$4, -24(%rbp)
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$600, %ecx                      ## imm = 0x258
	movl	$300, %r8d                      ## imm = 0x12C
	callq	_SetRect
LBB0_4:
	movl	-20(%rbp), %edi
	callq	_RegCloseKey
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_key_options,4,2                ## @key_options
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_var_framerect,4,2              ## @var_framerect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_read_winrect          ; -- Begin function registry_read_winrect
	.p2align	2
_registry_read_winrect:                 ; @registry_read_winrect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #4
	stp	w8, wzr, [sp, #8]
Lloh0:
	adrp	x8, _key_options@GOTPAGE
Lloh1:
	ldr	x8, [x8, _key_options@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #0
	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:
	ldr	w0, [sp, #12]
Lloh5:
	adrp	x8, _var_framerect@GOTPAGE
Lloh6:
	ldr	x8, [x8, _var_framerect@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	w2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueExW
	ldr	x8, [x20]
	ldr	w9, [sp, #8]
	cmp	x0, x8
	ccmp	w9, #4, #0, eq
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #600
	mov	w4, #300
	bl	_SetRect
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_key_options,4,2                ; @key_options
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_var_framerect,4,2              ; @var_framerect
.subsections_via_symbols
