	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateWindowCaption            ## -- Begin function UpdateWindowCaption
	.p2align	4, 0x90
_UpdateWindowCaption:                   ## @UpdateWindowCaption
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_Globals@GOTPCREL(%rip), %r14
	movl	16(%r14), %ebx
	movq	_STRING_NOTEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r14, %rbx
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_LoadString
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	(%rbx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_StringCchCopy
	jmp	LBB0_3
LBB0_2:
	movl	16(%rbx), %r12d
	movq	_STRING_UNTITLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_LoadString
LBB0_3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	__T
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_StringCbPrintf
	jmp	LBB0_9
LBB0_5:
	movl	12(%rbx), %edi
	movq	_EM_GETMODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	movq	%rbx, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	cmpq	$0, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	__T
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %ecx
	movq	%r13, %r8
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_StringCbPrintf
	movq	%r14, %rbx
LBB0_9:
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_SetWindowText
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_LEN,4,2             ## @MAX_STRING_LEN
	.comm	_Globals,24,3                   ## @Globals
	.comm	_STRING_NOTEPAD,4,2             ## @STRING_NOTEPAD
	.comm	_STRING_UNTITLED,4,2            ## @STRING_UNTITLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s - %s"

	.comm	_EM_GETMODIFY,4,2               ## @EM_GETMODIFY
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"%s%s - %s"

L_.str.2:                               ## @.str.2
	.asciz	"*"

L_.str.3:                               ## @.str.3
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateWindowCaption            ; -- Begin function UpdateWindowCaption
	.p2align	2
_UpdateWindowCaption:                   ; @UpdateWindowCaption
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_STRING_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_STRING_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
Lloh12:
	adrp	x25, _Globals@GOTPAGE
Lloh13:
	ldr	x25, [x25, _Globals@GOTPAGEOFF]
	ldr	w23, [x25, #16]
Lloh14:
	adrp	x8, _STRING_NOTEPAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRING_NOTEPAD@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	bl	_LoadString
	ldr	x8, [x25]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x25]
	mov	x0, x21
	bl	_StringCchCopy
	cbz	x22, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	x22, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_StringCbPrintf
	b	LBB0_5
LBB0_3:
	ldr	w23, [x25, #16]
Lloh19:
	adrp	x8, _STRING_UNTITLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STRING_UNTITLED@GOTPAGEOFF]
Lloh21:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x21
	bl	_LoadString
	cbnz	x22, LBB0_2
LBB0_4:
	ldr	w0, [x25, #12]
Lloh22:
	adrp	x8, _EM_GETMODIFY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EM_GETMODIFY@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessage
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	adrp	x9, _FALSE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x24, [x8]
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	x22, x0
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x23, x0
Lloh31:
	adrp	x8, l_.str.2@PAGE
Lloh32:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh33:
	adrp	x9, l_.str.3@PAGE
Lloh34:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x24, #0
	csel	x0, x9, x8, eq
	bl	__T
	mov	x3, x0
	str	x20, [sp, #-16]!
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x4, x21
	bl	_StringCbPrintf
	add	sp, sp, #16
LBB0_5:
	ldr	w0, [x25, #8]
	mov	x1, x19
	bl	_SetWindowText
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_LEN,4,2             ; @MAX_STRING_LEN
	.comm	_Globals,24,3                   ; @Globals
	.comm	_STRING_NOTEPAD,4,2             ; @STRING_NOTEPAD
	.comm	_STRING_UNTITLED,4,2            ; @STRING_UNTITLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s - %s"

	.comm	_EM_GETMODIFY,4,2               ; @EM_GETMODIFY
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"%s%s - %s"

l_.str.2:                               ; @.str.2
	.asciz	"*"

l_.str.3:                               ; @.str.3
	.space	1

.subsections_via_symbols
