	.file	"extr_page_io.c_generic_swapfile_activate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"swapon: swapfile has holes\n"
	.text
	.p2align 4
	.globl	generic_swapfile_activate
	.type	generic_swapfile_activate, @function
generic_swapfile_activate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR [rsi]
	mov	ebx, DWORD PTR PAGE_SIZE[rip]
	mov	QWORD PTR 16[rsp], rdi
	mov	rbp, QWORD PTR [rax]
	mov	QWORD PTR 56[rsp], rdx
	mov	r15d, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	ecx, r15d
	mov	DWORD PTR 52[rsp], r15d
	shr	ebx, cl
	call	i_size_read@PLT
	mov	ecx, r15d
	shr	eax, cl
	mov	DWORD PTR 36[rsp], eax
	cmp	ebx, eax
	ja	.L30
	lea	eax, -1[rbx]
	mov	r13d, ebx
	xor	r12d, r12d
	mov	DWORD PTR 48[rsp], 0
	mov	DWORD PTR 44[rsp], 0
	mov	DWORD PTR 40[rsp], -1
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 28[rsp], eax
.L2:
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], rcx
	jbe	.L31
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	call	cond_resched@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	bmap@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L4
	test	DWORD PTR 28[rsp], eax
	jne	.L5
	lea	eax, [rbx+r12]
	lea	r14d, 1[r12]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, r15d
	sub	eax, r12d
	mov	DWORD PTR 32[rsp], r14d
	mov	r12d, eax
	cmp	ebx, 1
	jbe	.L11
	mov	rax, rbp
	mov	ebp, r14d
	mov	r14, rax
.L10:
	mov	esi, ebp
	mov	rdi, r14
	call	bmap@PLT
	test	eax, eax
	je	.L4
	lea	edx, [r12+rbp]
	cmp	eax, edx
	jne	.L15
	add	ebp, 1
	cmp	DWORD PTR 24[rsp], ebp
	jne	.L10
	mov	rbp, r14
.L11:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	sub	ecx, DWORD PTR 52[rsp]
	shr	r15d, cl
	cmp	QWORD PTR 8[rsp], 0
	mov	ecx, r15d
	jne	.L7
.L8:
	mov	r15, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, 1
	mov	rsi, r15
	call	add_swap_extent@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L1
	add	r15, 1
	mov	r12d, r13d
	add	DWORD PTR 48[rsp], eax
	mov	QWORD PTR 8[rsp], r15
	lea	r13d, [r12+rbx]
	cmp	r13d, DWORD PTR 36[rsp]
	jbe	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 44[rsp]
	mov	eax, 1
	mov	r8d, DWORD PTR 48[rsp]
	add	edx, 1
	sub	edx, DWORD PTR 40[rsp]
	test	rcx, rcx
	cmovne	rax, rcx
	lea	rcx, -1[rax]
.L3:
.L12:
	endbr64
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	mov	DWORD PTR [rdi], edx
	mov	QWORD PTR [rsi], rax
	mov	QWORD PTR 8[rsi], rcx
	mov	QWORD PTR 16[rsi], rcx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR 32[rsp]
	mov	rbp, r14
.L9:
	lea	r13d, [r12+rbx]
	cmp	r13d, DWORD PTR 36[rsp]
	ja	.L32
	mov	rax, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], rcx
	ja	.L13
.L31:
	mov	edx, DWORD PTR 44[rsp]
	mov	eax, 1
	mov	r8d, DWORD PTR 48[rsp]
	add	edx, 1
	sub	edx, DWORD PTR 40[rsp]
	test	rcx, rcx
	cmovne	rax, rcx
	lea	rcx, -1[rax]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12d, 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
.L1:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR 40[rsp]
	cmp	eax, r15d
	cmova	eax, r15d
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR 44[rsp]
	cmp	eax, r15d
	cmovb	eax, r15d
	mov	DWORD PTR 44[rsp], eax
	jmp	.L8
.L30:
	mov	eax, 1
	xor	ecx, ecx
	mov	edx, 2
	xor	r8d, r8d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	generic_swapfile_activate, .-generic_swapfile_activate
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,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_page_io.c_generic_swapfile_activate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"swapon: swapfile has holes\012\000"
	.text
	.align	2
	.global	generic_swapfile_activate
	.syntax unified
	.arm
	.fpu softvfp
	.type	generic_swapfile_activate, %function
generic_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}
	ldr	r1, [r1]
	ldr	r3, .L30
	ldr	r6, [r1]
	ldr	r7, [r3]
	ldr	r3, [r6]
	sub	sp, sp, #44
	mov	r9, r0
	mov	r0, r6
	mov	r4, r3
	lsr	r7, r7, r3
	str	r3, [sp, #32]
	str	r2, [sp, #36]
	bl	i_size_read
	cmp	r7, r0, lsr r4
	movhi	r1, #0
	lsr	r3, r0, r4
	str	r3, [sp, #16]
	movhi	r0, r1
	movhi	r3, #1
	movhi	r2, #2
	bhi	.L3
	mov	r3, #0
	mov	r4, r3
	str	r3, [sp, #20]
	str	r3, [sp, #28]
	str	r3, [sp, #8]
	mvn	r3, #0
	mov	r8, r7
	str	r3, [sp, #24]
	add	r3, r7, r3
	str	r3, [sp, #12]
.L2:
	ldr	r3, [r9]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	bls	.L28
.L13:
	bl	cond_resched
	mov	r1, r4
	mov	r0, r6
	bl	bmap
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, [sp, #12]
	tst	r3, r5
	bne	.L5
	cmp	r7, #1
	bls	.L11
	add	r10, r4, #1
	mov	fp, r10
	add	r3, r7, r4
	str	r3, [sp, #4]
	sub	r4, r5, r4
.L10:
	mov	r1, fp
	mov	r0, r6
	bl	bmap
	cmp	r0, #0
	add	r3, r4, fp
	add	fp, fp, #1
	beq	.L4
	cmp	r0, r3
	bne	.L15
	ldr	r3, [sp, #4]
	cmp	r3, fp
	bne	.L10
.L11:
	ldr	r2, [sp, #8]
	ldr	r3, .L30+4
	cmp	r2, #0
	ldr	r3, [r3]
	ldr	r2, [sp, #32]
	sub	r3, r3, r2
	lsr	r3, r5, r3
	bne	.L7
.L8:
	ldr	r4, [sp, #8]
	mov	r2, #1
	mov	r1, r4
	mov	r0, r9
	bl	add_swap_extent
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp, #20]
	add	r3, r3, r0
	str	r3, [sp, #20]
	add	r3, r4, #1
	mov	r4, r8
	str	r3, [sp, #8]
	ldr	r3, [sp, #16]
	add	r8, r4, r7
	cmp	r8, r3
	bls	.L2
.L29:
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #28]
	cmp	r3, #1
	movcc	r3, #1
	ldr	r1, [sp, #24]
	add	r2, r2, #1
	ldr	r0, [sp, #20]
	sub	r2, r2, r1
	sub	r1, r3, #1
.L3:
.L12:
	ldr	ip, [sp, #36]
	str	r2, [ip]
	str	r3, [r9]
	str	r1, [r9, #4]
	str	r1, [r9, #8]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r4, r10
.L9:
	ldr	r3, [sp, #16]
	add	r8, r4, r7
	cmp	r8, r3
	bhi	.L29
	ldr	r3, [r9]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	bhi	.L13
.L28:
	cmp	r2, #1
	mov	r3, r2
	movcs	r3, r2
	movcc	r3, #1
	ldr	r2, [sp, #28]
	ldr	r1, [sp, #24]
	add	r2, r2, #1
	sub	r2, r2, r1
	ldr	r0, [sp, #20]
	sub	r1, r3, #1
	b	.L3
.L5:
	add	r4, r4, #1
	b	.L9
.L4:
	ldr	r0, .L30+8
	bl	pr_err
	ldr	r3, .L30+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, [sp, #24]
	cmp	r2, r3
	movcs	r2, r3
	str	r2, [sp, #24]
	ldr	r2, [sp, #28]
	cmp	r2, r3
	movcc	r2, r3
	str	r2, [sp, #28]
	b	.L8
.L31:
	.align	2
.L30:
	.word	PAGE_SIZE
	.word	PAGE_SHIFT
	.word	.LC0
	.word	EINVAL
	.size	generic_swapfile_activate, .-generic_swapfile_activate
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
