	.file	"extr_cassini.c_cas_page_swap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cas_page_swap, @function
cas_page_swap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movsx	r13, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	lea	rbx, [rax+r13*8]
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	page_count@PLT
	cmp	eax, 1
	jg	.L2
.L6:
	mov	rdi, QWORD PTR [rbx]
.L3:
	xor	esi, esi
	call	RX_USED_SET@PLT
	mov	rax, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, r13d
	call	cas_page_spare@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [r14+r13*8], rax
	mov	QWORD PTR [rbx], rdi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cas_page_swap, .-cas_page_swap
	.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_cassini.c_cas_page_swap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cas_page_swap, %function
cas_page_swap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r3, {r6, r7}
	ldr	r3, [r6, r2, lsl #2]
	mov	r5, r0
	ldr	r0, [r3]
	mov	r4, r2
	bl	page_count
	cmp	r0, #1
	bgt	.L2
.L6:
	ldr	r0, [r6, r4, lsl #2]
.L3:
	mov	r1, #0
	bl	RX_USED_SET
	ldr	r0, [r6, r4, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	mov	r1, r4
	bl	cas_page_spare
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r6, r4, lsl #2]
	str	r3, [r7, r4, lsl #2]
	str	r0, [r6, r4, lsl #2]
	b	.L3
	.size	cas_page_swap, .-cas_page_swap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
