	.file	"extr_imap-send.c_append_msgs_to_imap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"s"
.LC1:
	.string	""
.LC2:
	.string	"failed to open store\n"
.LC3:
	.string	"sending %d message%s\n"
.LC4:
	.string	"%4u%% (%d/%d) done\r"
.LC5:
	.string	"\n"
	.text
	.p2align 4
	.type	append_msgs_to_imap, @function
append_msgs_to_imap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	mov	DWORD PTR 20[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	call	imap_open_store@PLT
	test	rax, rax
	je	.L15
	mov	r14, rax
	mov	rax, QWORD PTR [rsp]
	cmp	ebp, 1
	mov	edx, ebp
	lea	rcx, .LC0[rip]
	lea	rsi, .LC3[rip]
	mov	eax, DWORD PTR 8[rax]
	lea	r13, 16[rsp]
	mov	DWORD PTR [r14], eax
	lea	rax, .LC1[rip]
	mov	edi, DWORD PTR stderr[rip]
	cmove	rcx, rax
	xor	eax, eax
	xor	ebx, ebx
	xor	r12d, r12d
	call	fprintf@PLT
	lea	rax, 20[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r13
	mov	rdi, r14
	add	ebx, 100
	call	imap_store_msg@PLT
	cmp	DWORD PTR DRV_OK[rip], eax
	jne	.L5
	add	r12d, 1
.L7:
	mov	eax, ebx
	mov	edi, DWORD PTR stderr[rip]
	mov	r8d, ebp
	mov	ecx, r12d
	cdq
	lea	rsi, .LC4[rip]
	idiv	ebp
	mov	edx, eax
	xor	eax, eax
	call	fprintf@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r13
	mov	rdi, r15
	call	split_msg@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR [rax], 0
	je	.L6
	mov	rdi, r13
	call	wrap_in_html@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	rdi, r14
	call	imap_close_store@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	append_msgs_to_imap, .-append_msgs_to_imap
	.comm	stderr,4,4
	.comm	STRBUF_INIT,4,4
	.comm	DRV_OK,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_imap-send.c_append_msgs_to_imap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"s\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"failed to open store\012\000"
	.align	2
.LC3:
	.ascii	"sending %d message%s\012\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"%4u%% (%d/%d) done\015\000"
	.align	2
.LC5:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_msgs_to_imap, %function
append_msgs_to_imap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	ldr	r3, .L20
	mov	r6, r2
	ldr	r3, [r3]
	ldr	r2, .L20+4
	sub	sp, sp, #28
	mov	r9, r1
	ldr	r1, [r0, #4]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r8, r0
	str	r3, [sp, #12]
	str	r4, [sp, #16]
	bl	imap_open_store
	subs	r7, r0, #0
	beq	.L18
	ldr	r1, [r8, #4]
	ldr	r2, .L20+8
	str	r1, [r7]
	ldr	r1, .L20+12
	cmp	r6, #1
	ldr	r3, .L20+16
	ldr	r0, [r1]
	movne	r3, r2
	ldr	r1, .L20+20
	mov	r2, r6
	bl	fprintf
	mov	r5, r4
	ldr	r10, .L20+24
	ldr	fp, .L20+28
	b	.L7
.L6:
	mov	r0, r7
	add	r1, sp, #12
	bl	imap_store_msg
	ldr	r3, [fp]
	add	r4, r4, #100
	cmp	r3, r0
	bne	.L5
	add	r5, r5, #1
.L7:
	mov	r1, r6
	mov	r0, r4
	bl	__aeabi_idiv
	mov	r2, r0
	ldr	r0, .L20+12
	str	r6, [sp]
	mov	r3, r5
	mov	r1, r10
	ldr	r0, [r0]
	bl	fprintf
	mov	r0, r9
	add	r2, sp, #16
	add	r1, sp, #12
	bl	split_msg
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L6
	add	r0, sp, #12
	bl	wrap_in_html
	b	.L6
.L5:
	ldr	r3, .L20+12
	ldr	r1, .L20+32
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, r7
	bl	imap_close_store
	mov	r0, #0
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L20+12
	ldr	r1, .L20+36
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	STRBUF_INIT
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	DRV_OK
	.word	.LC5
	.word	.LC2
	.size	append_msgs_to_imap, .-append_msgs_to_imap
	.comm	stderr,4,4
	.comm	STRBUF_INIT,4,4
	.comm	DRV_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
