	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_preview_statusbar
_update_preview_statusbar:              ## @update_preview_statusbar
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IDC_STATUSBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_GetModuleHandleW
	movl	%eax, %r15d
	movq	_MAX_STRING_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_preview@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_3
## %bb.1:
	movq	8(%r13), %rdi
	callq	_is_last_preview_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r14), %ebx
LBB0_3:
	movq	_STRING_PREVIEW_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_LoadStringW
	cltq
	movq	%r12, %rdi
	addq	%rax, %rdi
	movq	8(%r13), %rdx
	leaq	_update_preview_statusbar.fmt(%rip), %rsi
	xorl	%eax, %eax
	callq	_wsprintfW
LBB0_5:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_SetWindowTextW
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_STRING_PREVIEW_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_LoadStringW
	cltq
	movq	%r12, %rdi
	addq	%rax, %rdi
	movq	8(%r13), %rdx
	leaq	1(%rdx), %rcx
	leaq	_update_preview_statusbar.fmt.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wsprintfW
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_STATUSBAR,4,2              ## @IDC_STATUSBAR
	.comm	_MAX_STRING_LEN,4,2             ## @MAX_STRING_LEN
	.comm	_preview,16,3                   ## @preview
	.section	__TEXT,__const
_update_preview_statusbar.fmt:          ## @update_preview_statusbar.fmt
	.asciz	" %d"

	.comm	_STRING_PREVIEW_PAGE,4,2        ## @STRING_PREVIEW_PAGE
_update_preview_statusbar.fmt.1:        ## @update_preview_statusbar.fmt.1
	.asciz	" %d-%d"

	.comm	_STRING_PREVIEW_PAGES,4,2       ## @STRING_PREVIEW_PAGES
	.no_dead_strip	_update_preview_statusbar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_preview_statusbar
_update_preview_statusbar:              ; @update_preview_statusbar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _IDC_STATUSBAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_STATUSBAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	mov	w0, #0
	bl	_GetModuleHandleW
	mov	x21, x0
Lloh6:
	adrp	x23, _MAX_STRING_LEN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAX_STRING_LEN@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x9, x3
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh10:
	adrp	x22, _preview@GOTPAGE
Lloh11:
	ldr	x22, [x22, _preview@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x22, #8]
	bl	_is_last_preview_page
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w3, [x23]
LBB0_3:
Lloh12:
	adrp	x8, _STRING_PREVIEW_PAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRING_PREVIEW_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_LoadStringW
	add	x0, x20, w0, sxtw
	ldr	x2, [x22, #8]
Lloh15:
	adrp	x1, _update_preview_statusbar.fmt@PAGE
Lloh16:
	add	x1, x1, _update_preview_statusbar.fmt@PAGEOFF
	bl	_wsprintfW
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_SetWindowTextW
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh20:
	adrp	x8, _STRING_PREVIEW_PAGES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STRING_PREVIEW_PAGES@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x2, x20
	bl	_LoadStringW
	add	x0, x20, w0, sxtw
	ldr	x2, [x22, #8]
	add	x8, x2, #1
	str	x8, [sp, #-16]!
Lloh23:
	adrp	x1, _update_preview_statusbar.fmt.1@PAGE
Lloh24:
	add	x1, x1, _update_preview_statusbar.fmt.1@PAGEOFF
	bl	_wsprintfW
	add	sp, sp, #16
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_STATUSBAR,4,2              ; @IDC_STATUSBAR
	.comm	_MAX_STRING_LEN,4,2             ; @MAX_STRING_LEN
	.comm	_preview,16,3                   ; @preview
	.section	__TEXT,__const
_update_preview_statusbar.fmt:          ; @update_preview_statusbar.fmt
	.asciz	" %d"

	.comm	_STRING_PREVIEW_PAGE,4,2        ; @STRING_PREVIEW_PAGE
_update_preview_statusbar.fmt.1:        ; @update_preview_statusbar.fmt.1
	.asciz	" %d-%d"

	.comm	_STRING_PREVIEW_PAGES,4,2       ; @STRING_PREVIEW_PAGES
	.no_dead_strip	_update_preview_statusbar
.subsections_via_symbols
