	.file	"extr_swapfile.c_iomap_swapfile_activate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iomap_swapfile_activate
	.type	iomap_swapfile_activate, @function
iomap_swapfile_activate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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
	mov	rbx, rcx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r15d, DWORD PTR PAGE_SIZE[rip]
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 56[rsp], rdi
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	rbp, QWORD PTR [rax]
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 32[rsp], -1
	mov	rdi, rbp
	call	i_size_read@PLT
	mov	esi, r15d
	mov	edi, eax
	call	ALIGN_DOWN@PLT
	mov	esi, 1
	mov	rdi, r14
	mov	r15d, eax
	call	vfs_fsync@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	test	r15d, r15d
	jle	.L3
	lea	r14, 16[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	sub	r15d, eax
	add	r13d, eax
	test	r15d, r15d
	jle	.L3
.L4:
	mov	eax, DWORD PTR iomap_swapfile_activate_actor[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	edx, r15d
	mov	r9, r14
	mov	ecx, DWORD PTR IOMAP_REPORT[rip]
	mov	r8, rbx
	mov	esi, r13d
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 160
	call	iomap_apply@PLT
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	test	eax, eax
	jg	.L15
	mov	r13d, eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L3:
	.cfi_restore_state
	cmp	QWORD PTR 48[rsp], 0
	jne	.L5
.L6:
	mov	rax, QWORD PTR 40[rsp]
	mov	rbx, QWORD PTR 8[rsp]
	mov	r13d, DWORD PTR 16[rsp]
	add	rax, 1
	sub	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 16[r12], rax
	sub	rax, 1
	mov	QWORD PTR 8[r12], rax
	mov	QWORD PTR [r12], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, 16[rsp]
	call	iomap_swapfile_add_extent@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L6
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iomap_swapfile_activate, .-iomap_swapfile_activate
	.comm	iomap_swapfile_activate_actor,4,4
	.comm	PAGE_SIZE,4,4
	.comm	IOMAP_REPORT,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_swapfile.c_iomap_swapfile_activate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iomap_swapfile_activate
	.syntax unified
	.arm
	.fpu softvfp
	.type	iomap_swapfile_activate, %function
iomap_swapfile_activate:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	r10, r0
	mov	r1, #0
	mvn	ip, #0
	ldr	r0, [r8]
	sub	sp, sp, #60
	ldr	r7, [r0]
	mov	r6, r3
	ldr	r3, .L17
	str	r10, [sp, #48]
	str	r2, [sp, #20]
	add	r5, sp, #28
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	str	r1, [sp, #28]
	str	r1, [r5, #4]
	str	r1, [r5, #12]
	str	ip, [sp, #36]
	str	r1, [r5, #16]
	bl	i_size_read
	ldr	r3, .L17+4
	ldr	r1, [r3]
	bl	ALIGN_DOWN
	mov	r1, #1
	mov	r4, r0
	mov	r0, r8
	bl	vfs_fsync
	subs	fp, r0, #0
	bne	.L1
	cmp	r4, #0
	ble	.L3
	ldr	r9, .L17+8
	ldr	r8, .L17+12
	b	.L4
.L15:
	sub	r4, r4, r0
	cmp	r4, #0
	add	fp, fp, r0
	ble	.L3
.L4:
	ldr	r3, [r8]
	mov	r2, r4
	str	r3, [sp, #8]
	mov	r1, fp
	mov	r0, r7
	ldr	r3, [r9]
	str	r5, [sp, #4]
	str	r6, [sp]
	bl	iomap_apply
	cmp	r0, #0
	bgt	.L15
	mov	fp, r0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, fp
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [sp, #44]
	cmp	r3, #0
	bne	.L5
.L6:
	add	r0, sp, #32
	ldm	r0, {r0, r2, r3}
	ldr	r1, [sp, #20]
	add	r3, r3, #1
	sub	r3, r3, r2
	sub	r2, r0, #1
	str	r3, [r1]
	ldr	fp, [sp, #28]
	str	r0, [r10, #8]
	str	r2, [r10, #4]
	str	r2, [r10]
	b	.L1
.L5:
	mov	r0, r5
	bl	iomap_swapfile_add_extent
	subs	fp, r0, #0
	beq	.L6
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	PAGE_SIZE
	.word	IOMAP_REPORT
	.word	iomap_swapfile_activate_actor
	.size	iomap_swapfile_activate, .-iomap_swapfile_activate
	.comm	iomap_swapfile_activate_actor,4,4
	.comm	PAGE_SIZE,4,4
	.comm	IOMAP_REPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
