	.file	"extr_crypto.c_virt_to_scatterlist.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	virt_to_scatterlist
	.type	virt_to_scatterlist, @function
virt_to_scatterlist:
.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
	mov	r14, rdi
	mov	rdi, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	mov	esi, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], ecx
	call	sg_init_table@PLT
	test	r12d, r12d
	jle	.L2
	test	ebx, ebx
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r14
	add	r13d, 1
	call	virt_to_page@PLT
	mov	rdi, r14
	mov	r15, rax
	call	offset_in_page@PLT
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, rbp
	mov	ecx, eax
	mov	ebx, eax
	call	sg_set_page@PLT
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	sub	eax, ebx
	cmp	eax, r12d
	jle	.L20
	mov	DWORD PTR 0[rbp], r12d
.L1:
	add	rsp, 24
	.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
.L20:
	.cfi_restore_state
	movsx	rdx, eax
	sub	r12d, eax
	mov	DWORD PTR 0[rbp], eax
	add	rbp, 4
	add	r14, rdx
	test	r12d, r12d
	jle	.L1
	cmp	r13d, DWORD PTR 12[rsp]
	jl	.L4
.L2:
	test	r12d, r12d
	jle	.L1
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	virt_to_scatterlist, .-virt_to_scatterlist
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,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_crypto.c_virt_to_scatterlist.c"
	.text
	.align	2
	.global	virt_to_scatterlist
	.syntax unified
	.arm
	.fpu softvfp
	.type	virt_to_scatterlist, %function
virt_to_scatterlist:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	mov	r4, r1
	mov	r5, r0
	mov	r1, r3
	mov	r0, r2
	mov	r6, r2
	bl	sg_init_table
	cmp	r4, #0
	cmpgt	r8, #0
	movgt	r7, #1
	movle	r7, #0
	ble	.L2
	mov	r7, #0
	ldr	r9, .L11
.L4:
	mov	r0, r5
	bl	virt_to_page
	mov	fp, r0
	mov	r0, r5
	bl	offset_in_page
	mov	r10, r0
	mov	r3, r0
	mov	r1, fp
	mov	r2, #0
	mov	r0, r6
	bl	sg_set_page
	ldr	ip, [r9]
	add	r7, r7, #1
	sub	r0, ip, r10
	cmp	r0, r4
	ble	.L10
	str	r4, [r6]
.L1:
	mov	r0, r7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	sub	r4, r4, r0
	cmp	r4, #0
	movle	r3, #0
	movgt	r3, #1
	cmp	r7, r8
	movge	r3, #0
	cmp	r3, #0
	add	r5, r5, r0
	str	r0, [r6], #4
	bne	.L4
.L2:
	cmp	r4, #0
	ldrgt	r3, .L11+4
	ldrgt	r7, [r3]
	rsbgt	r7, r7, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	PAGE_SIZE
	.word	ENOMEM
	.size	virt_to_scatterlist, .-virt_to_scatterlist
	.comm	PAGE_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
