	.file	"extr_ttm_bo_vm.c_ttm_bo_vm_access.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttm_bo_vm_access, @function
ttm_bo_vm_access:
.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, 8
	.cfi_def_cfa_offset 64
	test	ecx, ecx
	jle	.L2
	movsx	rax, DWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rdi]
	mov	r13d, ecx
	mov	r15, rdx
	sub	rsi, rax
	movsx	rax, ecx
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	movsx	rdx, DWORD PTR [r14]
	add	rax, rsi
	mov	rbp, rsi
	shr	rax, cl
	cmp	rax, rdx
	jbe	.L3
.L2:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, 1
	mov	rdi, r14
	mov	ebx, r8d
	call	ttm_bo_reserve@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 24[r14]
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L6
	mov	rax, QWORD PTR 16[r14]
	mov	edi, DWORD PTR [rax]
	and	edi, DWORD PTR TTM_PAGE_FLAG_SWAPPED[rip]
	call	unlikely@PLT
	test	eax, eax
	jne	.L16
.L5:
	mov	r8d, ebx
	mov	ecx, r13d
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	call	ttm_bo_vm_access_kmap@PLT
	mov	r12d, eax
.L9:
	mov	rdi, r14
	call	ttm_bo_unreserve@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r14]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L10
	mov	r8d, ebx
	mov	ecx, r13d
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	call	rax
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 16[r14]
	call	ttm_tt_swapin@PLT
	xor	edi, edi
	test	eax, eax
	mov	r12d, eax
	setne	dil
	call	unlikely@PLT
	test	eax, eax
	je	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	ttm_bo_vm_access, .-ttm_bo_vm_access
	.comm	TTM_PAGE_FLAG_SWAPPED,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	EIO,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_ttm_bo_vm.c_ttm_bo_vm_access.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_bo_vm_access, %function
ttm_bo_vm_access:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r3, #0
	sub	sp, sp, #8
	ble	.L2
	ldm	r0, {r6, r8}
	mov	r7, r2
	ldr	r2, .L17
	ldr	r3, [r6]
	ldr	r2, [r2]
	sub	r8, r1, r8
	add	r1, r5, r8
	cmp	r3, r1, lsr r2
	bcs	.L3
.L2:
	ldr	r3, .L17+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r3, #0
	mov	r1, #1
	mov	r2, r3
	mov	r0, r6
	bl	ttm_bo_reserve
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r6, #12]
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L6
	ldr	r2, [r6, #8]
	ldr	r3, .L17+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	unlikely
	cmp	r0, #0
	bne	.L16
.L5:
	ldr	r3, [sp, #32]
	mov	r2, r7
	str	r3, [sp]
	mov	r1, r8
	mov	r3, r5
	mov	r0, r6
	bl	ttm_bo_vm_access_kmap
	mov	r4, r0
.L9:
	mov	r0, r6
	bl	ttm_bo_unreserve
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r6, #4]
	ldr	r3, [r3]
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L10
	ldr	r3, [sp, #32]
	mov	r2, r7
	str	r3, [sp]
	mov	r1, r8
	mov	r3, r5
	mov	r0, r6
	blx	r4
	mov	r4, r0
	b	.L9
.L16:
	ldr	r0, [r6, #8]
	bl	ttm_tt_swapin
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L5
	b	.L1
.L10:
	ldr	r3, .L17+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L9
.L18:
	.align	2
.L17:
	.word	PAGE_SHIFT
	.word	EIO
	.word	TTM_PAGE_FLAG_SWAPPED
	.size	ttm_bo_vm_access, .-ttm_bo_vm_access
	.comm	TTM_PAGE_FLAG_SWAPPED,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
