	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetDocumentTitle               ## -- Begin function GetDocumentTitle
	.p2align	4, 0x90
_GetDocumentTitle:                      ## @GetDocumentTitle
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_IStorage_AddRef
	movq	_STGM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_IStorage_OpenStream
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_IStorage_Release
	movl	%r14d, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_WARN
LBB0_4:
	movq	-48(%rbp), %rsi
	leaq	-52(%rbp), %r14
	movq	%r14, %rdi
	callq	_stream_init
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_init
	leaq	-72(%rbp), %rdi
	callq	_strbuf_init
	leaq	-88(%rbp), %rdi
	callq	_strbuf_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_next_node
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-104(%rbp), %rbx
	leaq	-88(%rbp), %r15
	leaq	L_.str(%rip), %r12
	leaq	L_.str.3(%rip), %r13
	leaq	-52(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strbuf_zero
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_next_node
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_node_name
	movq	-96(%rbp), %rsi
	movq	%r12, %rdi
	callq	_TRACE
	movq	-80(%rbp), %rdi
	movq	%r13, %rsi
	movl	$-1, %edx
	callq	__strnicmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	leaq	-72(%rbp), %rsi
	callq	_next_content
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-72(%rbp), %esi
	cmpl	$2, %esi
	jl	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdi
	addq	$4, %rdi
	decl	%esi
	callq	_strdupnAtoW
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_debugstr_w
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_FIXME
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	leaq	-104(%rbp), %rdi
	callq	_strbuf_free
	leaq	-72(%rbp), %rdi
	callq	_strbuf_free
	leaq	-88(%rbp), %rdi
	callq	_strbuf_free
	movq	-48(%rbp), %rdi
	callq	_IStream_Release
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_WARN
LBB0_13:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not open storage to obtain the title for a document.\n"

	.comm	_STGM_READ,4,2                  ## @STGM_READ
L_.str.2:                               ## @.str.2
	.asciz	"Could not open stream: %08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"title"

L_.str.4:                               ## @.str.4
	.asciz	"magic: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetDocumentTitle               ; -- Begin function GetDocumentTitle
	.p2align	2
_GetDocumentTitle:                      ; @GetDocumentTitle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #24]
	mov	x0, x1
	bl	_debugstr_w
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x20, [x20]
	cbz	x20, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_IStorage_AddRef
Lloh2:
	adrp	x8, _STGM_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STGM_READ@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x5, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	mov	w4, #0
	bl	_IStorage_OpenStream
	mov	x19, x0
	mov	x0, x20
	bl	_IStorage_Release
	mov	x0, x19
	bl	_FAILED
	cbz	x0, LBB0_3
; %bb.2:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
LBB0_3:
	ldr	x1, [sp, #24]
	add	x0, sp, #20
	bl	_stream_init
	sub	x0, x29, #32
	bl	_strbuf_init
	add	x0, sp, #32
	bl	_strbuf_init
	add	x0, sp, #48
	bl	_strbuf_init
	add	x0, sp, #20
	sub	x1, x29, #32
	bl	_next_node
	cbz	x0, LBB0_10
; %bb.4:
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
Lloh9:
	adrp	x20, l_.str.3@PAGE
Lloh10:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x0, x29, #32
	bl	_strbuf_zero
	add	x0, sp, #20
	sub	x1, x29, #32
	bl	_next_node
	cbz	x0, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #32
	add	x1, sp, #48
	bl	_get_node_name
	ldur	x1, [x29, #-24]
	mov	x0, x19
	bl	_TRACE
	ldr	x0, [sp, #56]
	mov	x1, x20
	mov	w2, #-1
	bl	__strnicmp
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #20
	add	x1, sp, #32
	bl	_next_content
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #32]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.9:
	ldr	x9, [sp, #40]
	add	x0, x9, #4
	sub	w1, w8, #1
	bl	_strdupnAtoW
	mov	x19, x0
	bl	_debugstr_w
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_FIXME
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	sub	x0, x29, #32
	bl	_strbuf_free
	add	x0, sp, #32
	bl	_strbuf_free
	add	x0, sp, #48
	bl	_strbuf_free
	ldr	x0, [sp, #24]
	bl	_IStream_Release
	b	LBB0_13
LBB0_12:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not open storage to obtain the title for a document.\n"

	.comm	_STGM_READ,4,2                  ; @STGM_READ
l_.str.2:                               ; @.str.2
	.asciz	"Could not open stream: %08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"title"

l_.str.4:                               ; @.str.4
	.asciz	"magic: %s\n"

.subsections_via_symbols
