	.file	"extr_swapfile.c_discard_swap_cluster.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	discard_swap_cluster, @function
discard_swap_cluster:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	offset_to_swap_extent@PLT
	test	r13d, r13d
	je	.L1
	mov	rbp, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	next_se@PLT
	mov	rbp, rax
	test	r13d, r13d
	je	.L1
.L3:
	mov	edx, DWORD PTR 8[rbp]
	mov	eax, ebx
	mov	esi, DWORD PTR 4[rbp]
	sub	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [r12]
	sub	edx, eax
	add	esi, eax
	mov	eax, DWORD PTR PAGE_SHIFT[rip]
	cmp	edx, r13d
	cmovg	edx, r13d
	lea	ecx, -9[rax]
	xor	r8d, r8d
	sal	esi, cl
	add	ebx, edx
	sub	r13d, edx
	sal	edx, cl
	mov	ecx, DWORD PTR GFP_NOIO[rip]
	call	blkdev_issue_discard@PLT
	test	rax, rax
	je	.L10
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	discard_swap_cluster, .-discard_swap_cluster
	.comm	PAGE_SHIFT,4,4
	.comm	GFP_NOIO,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_discard_swap_cluster.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	discard_swap_cluster, %function
discard_swap_cluster:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	sub	sp, sp, #8
	mov	r7, r0
	mov	r6, r1
	bl	offset_to_swap_extent
	cmp	r5, #0
	beq	.L1
	mov	r4, r0
	mov	r10, #0
	ldr	r9, .L11
	ldr	r8, .L11+4
	b	.L3
.L10:
	mov	r0, r4
	bl	next_se
	cmp	r5, #0
	mov	r4, r0
	beq	.L1
.L3:
	ldr	r1, [r4]
	ldr	ip, [r4, #8]
	sub	r1, r6, r1
	sub	ip, ip, r1
	cmp	ip, r5
	movge	ip, r5
	ldr	r2, [r4, #4]
	ldr	r3, [r9]
	add	r1, r1, r2
	sub	r3, r3, #9
	str	r10, [sp]
	lsl	r2, ip, r3
	lsl	r1, r1, r3
	ldr	r0, [r7]
	ldr	r3, [r8]
	add	r6, r6, ip
	sub	r5, r5, ip
	bl	blkdev_issue_discard
	cmp	r0, #0
	beq	.L10
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	PAGE_SHIFT
	.word	GFP_NOIO
	.size	discard_swap_cluster, .-discard_swap_cluster
	.comm	PAGE_SHIFT,4,4
	.comm	GFP_NOIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
