	.file	"extr_segment.c_write_compacted_summaries.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_compacted_summaries, @function
write_compacted_summaries:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, 1[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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 20[rsp], eax
	call	f2fs_grab_meta_page@PLT
	mov	rdi, rax
	mov	r15, rax
	call	page_address@PLT
	mov	rdx, QWORD PTR PAGE_SIZE[rip]
	xor	esi, esi
	mov	rdi, rax
	mov	rbx, rax
	call	memset@PLT
	mov	esi, DWORD PTR CURSEG_HOT_DATA[rip]
	mov	rdi, r12
	call	CURSEG_I@PLT
	mov	rdx, QWORD PTR SUM_JOURNAL_SIZE[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR 8[rax]
	call	memcpy@PLT
	mov	esi, DWORD PTR CURSEG_COLD_DATA[rip]
	mov	r14, QWORD PTR SUM_JOURNAL_SIZE[rip]
	mov	rdi, r12
	call	CURSEG_I@PLT
	movsx	rdi, r14d
	mov	rdx, QWORD PTR SUM_JOURNAL_SIZE[rip]
	mov	esi, DWORD PTR 8[rax]
	add	rdi, rbx
	call	memcpy@PLT
	movsx	rax, DWORD PTR CURSEG_HOT_DATA[rip]
	add	r14d, DWORD PTR SUM_JOURNAL_SIZE[rip]
	cmp	eax, DWORD PTR CURSEG_COLD_DATA[rip]
	mov	DWORD PTR 16[rsp], eax
	jg	.L2
	sal	rax, 3
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR 16[rsp]
	mov	rdi, r12
	call	CURSEG_I@PLT
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR SSR[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r12]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax+rcx], rdi
	jne	.L3
	movzx	eax, WORD PTR [r12]
.L4:
	test	ax, ax
	je	.L5
	movzx	eax, ax
	xor	r13d, r13d
	sub	eax, 1
	lea	rax, 4[0+rax*4]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	movsx	rax, r14d
	mov	rdx, rax
	add	rax, rbx
.L7:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR [rsi]
	mov	esi, DWORD PTR [rsi+r13]
	mov	DWORD PTR [rax], esi
	mov	rax, QWORD PTR SUMMARY_SIZE[rip]
	lea	r14d, [rdx+rax]
	movsx	rsi, r14d
	add	rsi, rax
	mov	rax, QWORD PTR PAGE_SIZE[rip]
	sub	rax, QWORD PTR SUM_FOOTER_SIZE[rip]
	cmp	rsi, rax
	jle	.L8
	mov	rdi, r15
	call	set_page_dirty@PLT
	mov	rdi, r15
	mov	esi, 1
	xor	r15d, r15d
	call	f2fs_put_page@PLT
.L8:
	add	r13, 4
	cmp	QWORD PTR 8[rsp], r13
	je	.L5
.L9:
	test	r15, r15
	jne	.L19
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, r12
	lea	r14d, 1[rsi]
	call	f2fs_grab_meta_page@PLT
	mov	rdi, rax
	mov	r15, rax
	call	page_address@PLT
	mov	rdx, QWORD PTR PAGE_SIZE[rip]
	xor	esi, esi
	mov	rbx, rax
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR 20[rsp], r14d
	mov	rax, rbx
	xor	edx, edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	DWORD PTR 16[rsp], 1
	mov	eax, DWORD PTR 16[rsp]
	add	QWORD PTR 24[rsp], 8
	cmp	DWORD PTR CURSEG_COLD_DATA[rip], eax
	jge	.L10
.L2:
	test	r15, r15
	je	.L1
	mov	rdi, r15
	call	set_page_dirty@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	mov	esi, 1
	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
	jmp	f2fs_put_page@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rsp]
	mov	rdi, r12
	call	curseg_blkoff@PLT
	jmp	.L4
.L1:
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	write_compacted_summaries, .-write_compacted_summaries
	.comm	SUM_JOURNAL_SIZE,8,8
	.comm	SUM_FOOTER_SIZE,8,8
	.comm	SUMMARY_SIZE,8,8
	.comm	SSR,8,8
	.comm	PAGE_SIZE,8,8
	.comm	CURSEG_HOT_DATA,4,4
	.comm	CURSEG_COLD_DATA,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_segment.c_write_compacted_summaries.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_compacted_summaries, %function
write_compacted_summaries:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r3, r1, #1
	sub	sp, sp, #20
	str	r3, [sp, #12]
	mov	r7, r0
	str	r0, [sp, #8]
	bl	f2fs_grab_meta_page
	mov	r5, r0
	bl	page_address
	ldr	r9, .L20
	ldr	r8, .L20+4
	ldr	r2, [r9]
	mov	r1, #0
	mov	r6, r0
	bl	memset
	mov	r0, r7
	ldr	r1, [r8]
	bl	CURSEG_I
	ldr	r4, .L20+8
	ldr	r10, .L20+12
	ldr	r1, [r0, #4]
	ldr	r2, [r4]
	mov	r0, r6
	bl	memcpy
	mov	r0, r7
	ldr	r1, [r10]
	ldr	r7, [r4]
	bl	CURSEG_I
	ldr	r2, [r4]
	ldr	r1, [r0, #4]
	add	r0, r6, r7
	bl	memcpy
	ldr	r1, [r8]
	ldr	r3, [r10]
	ldr	r2, [r4]
	cmp	r1, r3
	str	r1, [sp, #4]
	add	r7, r7, r2
	bgt	.L2
	ldr	fp, .L20+16
	ldr	r10, .L20+20
.L10:
	ldmib	sp, {r1, r4}
	mov	r0, r4
	bl	CURSEG_I
	ldr	r3, [r4, #4]
	ldr	ip, .L20+24
	mov	r8, r0
	ldr	r1, [ip]
	ldr	ip, [r3]
	ldr	r3, [sp, #4]
	ldr	r0, [ip, r3, lsl #2]
	cmp	r0, r1
	bne	.L3
	ldrh	r0, [r4]
.L4:
	cmp	r0, #0
	beq	.L5
	lsl	r3, r0, #2
	str	r3, [sp]
	mov	r3, r7
	mov	r4, #0
	mov	r7, r8
	mov	r8, r3
	b	.L9
.L7:
	ldr	r0, [r7]
	ldr	r1, [fp]
	ldr	ip, [r0]
	ldr	r3, [r10]
	ldr	r0, [r9]
	add	r8, r8, r1
	ldr	ip, [ip, r4]
	add	r1, r1, r8
	sub	r0, r0, r3
	cmp	r1, r0
	add	r4, r4, #4
	str	ip, [lr]
	ble	.L8
	mov	r0, r5
	bl	set_page_dirty
	mov	r0, r5
	mov	r1, #1
	bl	f2fs_put_page
	mov	r5, #0
.L8:
	ldr	r3, [sp]
	cmp	r3, r4
	beq	.L19
.L9:
	cmp	r5, #0
	addne	lr, r6, r8
	bne	.L7
	ldr	r8, [sp, #12]
	ldr	r0, [sp, #8]
	mov	r1, r8
	bl	f2fs_grab_meta_page
	mov	r5, r0
	bl	page_address
	mov	r6, r0
	add	r3, r8, #1
	mov	r1, #0
	ldr	r2, [r9]
	str	r3, [sp, #12]
	mov	r8, #0
	bl	memset
	mov	lr, r6
	b	.L7
.L19:
	mov	r7, r8
.L5:
	ldr	r3, .L20+12
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	add	r2, r2, #1
	cmp	r3, r2
	str	r2, [sp, #4]
	bge	.L10
.L2:
	cmp	r5, #0
	beq	.L1
	mov	r0, r5
	bl	set_page_dirty
	mov	r0, r5
	mov	r1, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	f2fs_put_page
.L3:
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	curseg_blkoff
	b	.L4
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	PAGE_SIZE
	.word	CURSEG_HOT_DATA
	.word	SUM_JOURNAL_SIZE
	.word	CURSEG_COLD_DATA
	.word	SUMMARY_SIZE
	.word	SUM_FOOTER_SIZE
	.word	SSR
	.size	write_compacted_summaries, .-write_compacted_summaries
	.comm	SUM_JOURNAL_SIZE,4,4
	.comm	SUM_FOOTER_SIZE,4,4
	.comm	SUMMARY_SIZE,4,4
	.comm	SSR,4,4
	.comm	PAGE_SIZE,4,4
	.comm	CURSEG_HOT_DATA,4,4
	.comm	CURSEG_COLD_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
