	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toggle_num_pages
_toggle_num_pages:                      ## @toggle_num_pages
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IDC_REBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movq	_MAX_STRING_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%edi, %edi
	callq	_GetModuleHandleW
	movq	_preview@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	$2, (%rcx)
	setge	%sil
	movl	$2, %edx
	subl	%esi, %edx
	movl	%edx, (%rcx)
	cmpq	$0, 8(%rcx)
	jle	LBB0_2
## %bb.1:
	movl	16(%rcx), %edx
LBB0_2:
	cmpl	$2, %edx
	jl	LBB0_3
## %bb.4:
	movq	_STRING_PREVIEW_ONEPAGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_STRING_PREVIEW_TWOPAGES@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	movl	(%r12), %ecx
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_LoadStringW
	movq	_ID_PREVIEW_NUMPAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_SetWindowTextW
	movq	_IDC_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetDlgItem
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_update_preview_sizes
	movl	%r15d, %edi
	callq	_update_preview
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_REBAR,4,2                  ## @IDC_REBAR
	.comm	_MAX_STRING_LEN,4,2             ## @MAX_STRING_LEN
	.comm	_preview,24,3                   ## @preview
	.comm	_STRING_PREVIEW_ONEPAGE,4,2     ## @STRING_PREVIEW_ONEPAGE
	.comm	_STRING_PREVIEW_TWOPAGES,4,2    ## @STRING_PREVIEW_TWOPAGES
	.comm	_ID_PREVIEW_NUMPAGES,4,2        ## @ID_PREVIEW_NUMPAGES
	.comm	_IDC_PREVIEW,4,2                ## @IDC_PREVIEW
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_toggle_num_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toggle_num_pages
_toggle_num_pages:                      ; @toggle_num_pages
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _IDC_REBAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_REBAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh6:
	adrp	x22, _MAX_STRING_LEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAX_STRING_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w0, #0
	bl	_GetModuleHandleW
Lloh10:
	adrp	x8, _preview@GOTPAGE
Lloh11:
	ldr	x8, [x8, _preview@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	mov	w9, #1
	cinc	w9, w9, le
	str	w9, [x8]
	ldr	x10, [x8, #8]
	ldr	w8, [x8, #16]
	cmp	x10, #0
	csel	w8, w8, w9, gt
Lloh12:
	adrp	x9, _STRING_PREVIEW_ONEPAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _STRING_PREVIEW_ONEPAGE@GOTPAGEOFF]
Lloh14:
	adrp	x10, _STRING_PREVIEW_TWOPAGES@GOTPAGE
Lloh15:
	ldr	x10, [x10, _STRING_PREVIEW_TWOPAGES@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, gt
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x2, x21
	bl	_LoadStringW
Lloh16:
	adrp	x8, _ID_PREVIEW_NUMPAGES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ID_PREVIEW_NUMPAGES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
	mov	x1, x21
	bl	_SetWindowTextW
Lloh19:
	adrp	x8, _IDC_PREVIEW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IDC_PREVIEW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_update_preview_sizes
	mov	x0, x19
	bl	_update_preview
	ldur	x8, [x29, #-40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_REBAR,4,2                  ; @IDC_REBAR
	.comm	_MAX_STRING_LEN,4,2             ; @MAX_STRING_LEN
	.comm	_preview,24,3                   ; @preview
	.comm	_STRING_PREVIEW_ONEPAGE,4,2     ; @STRING_PREVIEW_ONEPAGE
	.comm	_STRING_PREVIEW_TWOPAGES,4,2    ; @STRING_PREVIEW_TWOPAGES
	.comm	_ID_PREVIEW_NUMPAGES,4,2        ; @ID_PREVIEW_NUMPAGES
	.comm	_IDC_PREVIEW,4,2                ; @IDC_PREVIEW
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_toggle_num_pages
.subsections_via_symbols
