	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_preview_buttons
_update_preview_buttons:                ## @update_preview_buttons
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IDC_REBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	movq	_ID_PREVIEW_PREVPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movq	_preview@GOTPCREL(%rip), %r15
	xorl	%esi, %esi
	cmpl	$2, (%r15)
	setge	%sil
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_ID_PREVIEW_NEXTPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_is_last_preview_page
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	leal	(%rax,%rcx), %edi
	decl	%edi
	callq	_is_last_preview_page
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
LBB0_2:
	movl	%r14d, %edi
	callq	_EnableWindow
	movq	_ID_PREVIEW_NUMPAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movl	$1, %esi
	cmpl	$1, 4(%r15)
	jg	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_is_last_preview_page
	xorl	%esi, %esi
	orl	8(%r15), %eax
	sete	%sil
LBB0_4:
	movl	%r14d, %edi
	callq	_EnableWindow
	movq	_ID_PREVIEW_ZOOMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	xorl	%esi, %esi
	cmpl	$2, 8(%r15)
	setl	%sil
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_ID_PREVIEW_ZOOMOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	xorl	%esi, %esi
	cmpl	$0, 8(%r15)
	setg	%sil
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EnableWindow                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_REBAR,4,2                  ## @IDC_REBAR
	.comm	_ID_PREVIEW_PREVPAGE,4,2        ## @ID_PREVIEW_PREVPAGE
	.comm	_preview,12,2                   ## @preview
	.comm	_ID_PREVIEW_NEXTPAGE,4,2        ## @ID_PREVIEW_NEXTPAGE
	.comm	_ID_PREVIEW_NUMPAGES,4,2        ## @ID_PREVIEW_NUMPAGES
	.comm	_ID_PREVIEW_ZOOMIN,4,2          ## @ID_PREVIEW_ZOOMIN
	.comm	_ID_PREVIEW_ZOOMOUT,4,2         ## @ID_PREVIEW_ZOOMOUT
	.no_dead_strip	_update_preview_buttons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_preview_buttons
_update_preview_buttons:                ; @update_preview_buttons
	.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
Lloh0:
	adrp	x8, _IDC_REBAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_REBAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
Lloh3:
	adrp	x8, _ID_PREVIEW_PREVPAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ID_PREVIEW_PREVPAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
Lloh6:
	adrp	x21, _preview@GOTPAGE
Lloh7:
	ldr	x21, [x21, _preview@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	cset	w1, gt
	bl	_EnableWindow
Lloh8:
	adrp	x8, _ID_PREVIEW_NEXTPAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ID_PREVIEW_NEXTPAGE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x20, x0
	ldr	w0, [x21]
	bl	_is_last_preview_page
	cbz	w0, LBB0_2
; %bb.1:
	mov	w1, #0
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x21]
	add	w8, w8, w9
	sub	w0, w8, #1
	bl	_is_last_preview_page
	cmp	w0, #0
	cset	w1, eq
LBB0_3:
	mov	x0, x20
	bl	_EnableWindow
Lloh11:
	adrp	x8, _ID_PREVIEW_NUMPAGES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ID_PREVIEW_NUMPAGES@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x20, x0
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.le	LBB0_5
; %bb.4:
	mov	w1, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_is_last_preview_page
	ldr	w8, [x21, #8]
	orr	w8, w0, w8
	cmp	w8, #0
	cset	w1, eq
LBB0_6:
	mov	x0, x20
	bl	_EnableWindow
Lloh14:
	adrp	x8, _ID_PREVIEW_ZOOMIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ID_PREVIEW_ZOOMIN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w8, [x21, #8]
	cmp	w8, #2
	cset	w1, lt
	bl	_EnableWindow
Lloh17:
	adrp	x8, _ID_PREVIEW_ZOOMOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ID_PREVIEW_ZOOMOUT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w8, [x21, #8]
	cmp	w8, #0
	cset	w1, gt
	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
	b	_EnableWindow
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_REBAR,4,2                  ; @IDC_REBAR
	.comm	_ID_PREVIEW_PREVPAGE,4,2        ; @ID_PREVIEW_PREVPAGE
	.comm	_preview,12,2                   ; @preview
	.comm	_ID_PREVIEW_NEXTPAGE,4,2        ; @ID_PREVIEW_NEXTPAGE
	.comm	_ID_PREVIEW_NUMPAGES,4,2        ; @ID_PREVIEW_NUMPAGES
	.comm	_ID_PREVIEW_ZOOMIN,4,2          ; @ID_PREVIEW_ZOOMIN
	.comm	_ID_PREVIEW_ZOOMOUT,4,2         ; @ID_PREVIEW_ZOOMOUT
	.no_dead_strip	_update_preview_buttons
.subsections_via_symbols
