	.file	"extr_dcssblk.c_dcssblk_direct_access.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dcssblk_direct_access, @function
dcssblk_direct_access:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r8, rdx
	mov	eax, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdi]
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rsi, QWORD PTR [rdx]
	neg	r12d
	test	rsi, rsi
	je	.L1
	movsx	rdi, DWORD PTR PAGE_SIZE[rip]
	mov	rbx, rcx
	test	edi, edi
	lea	ecx, 511[rdi]
	cmovns	ecx, edi
	cdq
	sar	ecx, 9
	idiv	ecx
	mov	r12d, edx
	test	edx, edx
	jne	.L8
	cdqe
	mov	rcx, QWORD PTR 8[rsi]
	mov	rdx, QWORD PTR [rsi]
	add	rax, 1
	imul	rax, rdi
	sub	rdx, rcx
	lea	r9, -1[rax]
	cmp	r9, rdx
	jbe	.L5
	mov	r12d, DWORD PTR ERANGE[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	sub	rax, rdi
	lea	rdi, [rax+rcx]
	mov	QWORD PTR [r8], rdi
	call	virt_to_phys@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	shr	rax, cl
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dcssblk_direct_access, .-dcssblk_direct_access
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	ERANGE,4,4
	.comm	ENODEV,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_dcssblk.c_dcssblk_direct_access.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dcssblk_direct_access, %function
dcssblk_direct_access:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [ip]
	cmp	r8, #0
	beq	.L8
	mov	r4, r3
	ldr	r3, .L10
	mov	r0, r1
	ldr	r7, [r3]
	mov	r5, r2
	cmp	r7, #0
	add	r1, r7, #508
	add	r1, r1, #3
	movge	r1, r7
	asr	r1, r1, #9
	bl	__aeabi_idivmod
	subs	r6, r1, #0
	bne	.L9
	add	r0, r0, #1
	mul	r0, r7, r0
	ldr	r2, [r8, #4]
	ldr	r3, [r8]
	sub	r1, r0, #1
	sub	r3, r3, r2
	cmp	r1, r3
	bls	.L5
	ldr	r3, .L10+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	sub	r0, r0, r7
	add	r0, r0, r2
	str	r0, [r5]
	bl	virt_to_phys
	ldr	r3, .L10+8
	ldr	r3, [r3]
	lsr	r0, r0, r3
	str	r0, [r4]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	PAGE_SIZE
	.word	ERANGE
	.word	PAGE_SHIFT
	.word	EINVAL
	.word	ENODEV
	.size	dcssblk_direct_access, .-dcssblk_direct_access
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	ERANGE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
