	.file	"extr_ttm_bo_manager.c_ttm_bo_man_get_node.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttm_bo_man_get_node, @function
ttm_bo_man_get_node:
.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
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR [rdx]
	lea	r15, 4[r14]
	test	r13, r13
	jne	.L5
	mov	r13, QWORD PTR [rdi]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r14
	call	spin_lock@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[r12]
	mov	rdi, r15
	mov	esi, DWORD PTR 20[r12]
	mov	r9d, 1
	mov	r8, r13
	call	drm_mm_search_free_in_range@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[r12]
	mov	rdi, rbp
	mov	r8, r13
	mov	esi, DWORD PTR 20[r12]
	call	drm_mm_get_block_atomic_range@PLT
	mov	rdi, r14
	mov	rbp, rax
	call	spin_unlock@PLT
	test	rbp, rbp
	jne	.L11
.L5:
	mov	rdi, r15
	call	drm_mm_pre_get@PLT
	mov	edi, eax
	mov	ebp, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebp
	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
.L10:
	.cfi_restore_state
	mov	rdi, r14
	xor	ebp, ebp
	call	spin_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[r12], rbp
	xor	ebp, ebp
	mov	DWORD PTR [r12], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ttm_bo_man_get_node, .-ttm_bo_man_get_node
	.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_manager.c_ttm_bo_man_get_node.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_bo_man_get_node, %function
ttm_bo_man_get_node:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r2]
	ldr	r9, [r0, #4]
	cmp	r8, #0
	mov	r7, r2
	mov	r5, r3
	mov	fp, #1
	ldreq	r8, [r0]
	sub	sp, sp, #20
	add	r10, r9, #4
	b	.L5
.L12:
	mov	r0, r9
	bl	spin_lock
	stm	sp, {r8, fp}
	mov	r0, r10
	ldr	r3, [r7, #4]
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #12]
	bl	drm_mm_search_free_in_range
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r4, r0, #0
	bne	.L10
	str	r8, [sp]
	mov	r0, r6
	ldr	r3, [r7, #4]
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #12]
	bl	drm_mm_get_block_atomic_range
	mov	r6, r0
	mov	r0, r9
	bl	spin_unlock
	cmp	r6, #0
	bne	.L11
.L5:
	mov	r0, r10
	bl	drm_mm_pre_get
	mov	r4, r0
	bl	unlikely
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r0, r9
	bl	spin_unlock
	ldr	r4, [sp, #12]
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r0, r4
	ldr	r3, [r6]
	stm	r5, {r3, r6}
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	ttm_bo_man_get_node, .-ttm_bo_man_get_node
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
