	.file	"extr_chm.c_GetDocumentTitle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not open storage to obtain the title for a document.\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Could not open stream: %08x\n"
.LC3:
	.string	"title"
.LC4:
	.string	"magic: %s\n"
	.text
	.p2align 4
	.globl	GetDocumentTitle
	.type	GetDocumentTitle, @function
GetDocumentTitle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	call	debugstr_w@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	TRACE@PLT
	mov	r13, QWORD PTR [rbx]
	test	r13, r13
	je	.L18
	mov	rdi, r13
	call	IStorage_AddRef@PLT
	mov	ecx, DWORD PTR STGM_READ[rip]
	xor	r8d, r8d
	xor	edx, edx
	mov	rsi, rbp
	lea	r9, 8[rsp]
	mov	rdi, r13
	call	IStorage_OpenStream@PLT
	mov	rdi, r13
	mov	ebp, eax
	call	IStorage_Release@PLT
	mov	edi, ebp
	call	FAILED@PLT
	test	rax, rax
	jne	.L19
.L4:
	mov	rsi, QWORD PTR 8[rsp]
	lea	rbx, 4[rsp]
	lea	rbp, 16[rsp]
	mov	rdi, rbx
	lea	r14, 48[rsp]
	lea	r12, 32[rsp]
	call	stream_init@PLT
	mov	rdi, rbp
	lea	r13, .LC0[rip]
	call	strbuf_init@PLT
	mov	rdi, r14
	call	strbuf_init@PLT
	mov	rdi, r12
	call	strbuf_init@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r12
	mov	rdi, rbp
	call	get_node_name@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r13
	call	TRACE@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	edx, -1
	lea	rsi, .LC3[rip]
	call	_strnicmp@PLT
	test	eax, eax
	jne	.L6
	mov	rsi, r14
	mov	rdi, rbx
	call	next_content@PLT
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR 48[rsp]
	cmp	eax, 1
	jg	.L20
.L6:
	mov	rdi, rbp
	call	strbuf_zero@PLT
.L5:
	mov	rsi, rbp
	mov	rdi, rbx
	call	next_node@PLT
	test	rax, rax
	jne	.L8
	xor	r13d, r13d
.L7:
	mov	rdi, rbp
	call	strbuf_free@PLT
	mov	rdi, r14
	call	strbuf_free@PLT
	mov	rdi, r12
	call	strbuf_free@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	IStream_Release@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	WARN@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	lea	esi, -1[rax]
	mov	rax, QWORD PTR 56[rsp]
	lea	rdi, 4[rax]
	call	strdupnAtoW@PLT
	mov	rdi, rax
	mov	r13, rax
	call	debugstr_w@PLT
	lea	rdi, .LC4[rip]
	mov	rsi, rax
	call	FIXME@PLT
	jmp	.L7
.L18:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	WARN@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GetDocumentTitle, .-GetDocumentTitle
	.comm	STGM_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_chm.c_GetDocumentTitle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.align	2
.LC1:
	.ascii	"Could not open storage to obtain the title for a do"
	.ascii	"cument.\012\000"
	.align	2
.LC2:
	.ascii	"Could not open stream: %08x\012\000"
	.align	2
.LC3:
	.ascii	"title\000"
	.align	2
.LC4:
	.ascii	"magic: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetDocumentTitle
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetDocumentTitle, %function
GetDocumentTitle:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, #0
	ldr	r3, .L22
	sub	sp, sp, #48
	mov	r4, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r1
	str	r6, [sp, #12]
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L22+4
	bl	TRACE
	ldr	r4, [r4]
	cmp	r4, r6
	beq	.L18
	mov	r0, r4
	bl	IStorage_AddRef
	ldr	r3, .L22+8
	add	r0, sp, #12
	str	r6, [sp]
	mov	r2, r6
	mov	r1, r5
	ldr	r3, [r3]
	str	r0, [sp, #4]
	mov	r0, r4
	bl	IStorage_OpenStream
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	IStorage_Release
	mov	r0, r4
	bl	FAILED
	cmp	r0, #0
	bne	.L19
.L4:
	ldr	r1, [sp, #12]
	add	r0, sp, #16
	bl	stream_init
	add	r0, sp, #20
	bl	strbuf_init
	add	r0, sp, #36
	bl	strbuf_init
	add	r0, sp, #28
	bl	strbuf_init
	ldr	r5, .L22+4
	ldr	r4, .L22+12
	b	.L5
.L8:
	add	r1, sp, #28
	add	r0, sp, #20
	bl	get_node_name
	ldr	r1, [sp, #24]
	mov	r0, r5
	bl	TRACE
	mvn	r2, #0
	mov	r1, r4
	ldr	r0, [sp, #32]
	bl	_strnicmp
	cmp	r0, #0
	bne	.L6
	add	r1, sp, #36
	add	r0, sp, #16
	bl	next_content
	cmp	r0, #0
	beq	.L6
	ldr	r1, [sp, #36]
	cmp	r1, #1
	bgt	.L20
.L6:
	add	r0, sp, #20
	bl	strbuf_zero
.L5:
	add	r1, sp, #20
	add	r0, sp, #16
	bl	next_node
	cmp	r0, #0
	bne	.L8
	mov	r4, r0
.L7:
	add	r0, sp, #20
	bl	strbuf_free
	add	r0, sp, #36
	bl	strbuf_free
	add	r0, sp, #28
	bl	strbuf_free
	ldr	r0, [sp, #12]
	bl	IStream_Release
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L19:
	mov	r1, r4
	ldr	r0, .L22+16
	bl	WARN
	b	.L4
.L20:
	ldr	r0, [sp, #40]
	sub	r1, r1, #1
	add	r0, r0, #4
	bl	strdupnAtoW
	mov	r4, r0
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L22+20
	bl	FIXME
	b	.L7
.L18:
	ldr	r0, .L22+24
	bl	WARN
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	.LC0
	.word	STGM_READ
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.word	.LC1
	.size	GetDocumentTitle, .-GetDocumentTitle
	.comm	STGM_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
