	.file	"extr_hlpfile.c_HLPFILE_RtfAddGfxByIndex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Loading picture #%d\n"
.LC1:
	.string	"|bm%u"
.LC2:
	.string	"no sub file\n"
	.text
	.p2align 4
	.type	HLPFILE_RtfAddGfxByIndex, @function
HLPFILE_RtfAddGfxByIndex:
.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
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, edx
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r14, 16[rsp]
	call	WINE_TRACE@PLT
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	sprintf@PLT
	lea	rcx, 8[rsp]
	mov	rdx, rsp
	mov	rsi, r14
	mov	rdi, rbp
	call	HLPFILE_FindSubFile@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	rdi, r13
	lea	rdx, 36[rax]
	sub	rcx, rdx
	mov	QWORD PTR [rsp], rdx
	sar	rcx, 2
	call	HLPFILE_RtfAddGfxByAddr@PLT
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	WINE_WARN@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HLPFILE_RtfAddGfxByIndex, .-HLPFILE_RtfAddGfxByIndex
	.comm	FALSE,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_hlpfile.c_HLPFILE_RtfAddGfxByIndex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Loading picture #%d\012\000"
	.align	2
.LC1:
	.ascii	"|bm%u\000"
	.align	2
.LC2:
	.ascii	"no sub file\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HLPFILE_RtfAddGfxByIndex, %function
HLPFILE_RtfAddGfxByIndex:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r1
	ldr	r3, .L9
	sub	sp, sp, #32
	mov	r1, r2
	mov	r6, r0
	ldr	r0, .L9+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	WINE_TRACE
	mov	r2, r4
	ldr	r1, .L9+8
	add	r0, sp, #12
	bl	sprintf
	mov	r0, r5
	add	r1, sp, #12
	add	r3, sp, #8
	add	r2, sp, #4
	bl	HLPFILE_FindSubFile
	cmp	r0, #0
	beq	.L7
	ldmib	sp, {r2, r3}
	add	r2, r2, #36
	sub	r3, r3, r2
	mov	r1, r5
	mov	r0, r6
	asr	r3, r3, #2
	str	r2, [sp, #4]
	bl	HLPFILE_RtfAddGfxByAddr
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+12
	bl	WINE_WARN
	ldr	r3, .L9+16
	ldr	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	FALSE
	.size	HLPFILE_RtfAddGfxByIndex, .-HLPFILE_RtfAddGfxByIndex
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
