	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_read_previewpages     ## -- Begin function registry_read_previewpages
	.p2align	4, 0x90
_registry_read_previewpages:            ## @registry_read_previewpages
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$4, -12(%rbp)
	movl	$1, %ebx
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movq	_var_previewpages@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	_preview@GOTPCREL(%rip), %r8d
	leaq	-12(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_RegQueryValueExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	cmpl	$4, -12(%rbp)
	jne	LBB0_5
## %bb.3:
	movq	_preview@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movl	$2, %ebx
	cmpl	$3, %eax
	jb	LBB0_6
LBB0_5:
	movq	_preview@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_var_previewpages,4,2           ## @var_previewpages
	.comm	_preview,4,2                    ## @preview
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_registry_read_previewpages     ; -- Begin function registry_read_previewpages
	.p2align	2
_registry_read_previewpages:            ; @registry_read_previewpages
	.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	w8, #4
	str	w8, [sp, #12]
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _var_previewpages@GOTPAGE
Lloh1:
	ldr	x8, [x8, _var_previewpages@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x19, _preview@GOTPAGE
Lloh4:
	ldr	x19, [x19, _preview@GOTPAGEOFF]
	add	x5, sp, #12
	mov	w2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueExW
Lloh5:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w9, [sp, #12]
	cmp	x0, x8
	ccmp	w9, #4, #0, eq
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	cmp	w8, #3
	b.lo	LBB0_7
; %bb.4:
	mov	w8, #2
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
Lloh8:
	adrp	x9, _preview@GOTPAGE
Lloh9:
	ldr	x9, [x9, _preview@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_var_previewpages,4,2           ; @var_previewpages
	.comm	_preview,4,2                    ; @preview
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
.subsections_via_symbols
