	.file	"extr_ttm_bo.c_ttm_bo_init_mm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ttmman"
	.text
	.p2align 4
	.globl	ttm_bo_init_mm
	.type	ttm_bo_init_mm, @function
ttm_bo_init_mm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	xor	edi, edi
	cmp	DWORD PTR TTM_NUM_MEM_TYPES[rip], esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	seta	dil
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	MPASS@PLT
	mov	edx, ebp
	xor	edi, edi
	lea	rax, 0[0+rdx*8]
	sub	rax, rdx
	mov	rdx, QWORD PTR 8[r12]
	lea	rbx, [rdx+rax*8]
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	sete	dil
	call	MPASS@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, 52[rbx]
	mov	QWORD PTR 4[rbx], 1
	call	sx_init@PLT
	lea	rdi, 48[rbx]
	call	INIT_LIST_HEAD@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, rbx
	mov	esi, ebp
	mov	rdi, r12
	call	[QWORD PTR [rax]]
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR TTM_PL_SYSTEM[rip], ebp
	mov	QWORD PTR 40[rbx], r12
	je	.L4
	mov	rax, QWORD PTR 32[rbx]
	mov	rsi, r14
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	test	eax, eax
	jne	.L10
.L4:
	mov	DWORD PTR [rbx], 1
	lea	rdi, 24[rbx]
	mov	DWORD PTR 12[rbx], 1
	mov	QWORD PTR 16[rbx], r14
	call	INIT_LIST_HEAD@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	r13d, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ttm_bo_init_mm, .-ttm_bo_init_mm
	.comm	TTM_PL_SYSTEM,4,4
	.comm	TTM_NUM_MEM_TYPES,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_ttm_bo.c_ttm_bo_init_mm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ttmman\000"
	.text
	.align	2
	.global	ttm_bo_init_mm
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_bo_init_mm, %function
ttm_bo_init_mm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r7, r0
	ldr	r3, .L11
	mov	r8, r2
	ldr	r0, [r3]
	add	r4, r6, r6, lsl #2
	cmp	r0, r1
	movls	r0, #0
	movhi	r0, #1
	bl	MPASS
	ldr	r9, [r7, #4]
	lsl	r10, r4, #3
	ldr	r0, [r9, r10]
	add	r4, r9, r4, lsl #3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	MPASS
	mov	r2, #1
	mov	r3, #0
	ldr	r1, .L11+4
	stmib	r4, {r2, r3}
	add	r0, r4, #36
	bl	sx_init
	add	r0, r4, #32
	bl	INIT_LIST_HEAD
	ldr	r3, [r7]
	mov	r2, r4
	mov	r1, r6
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L11+8
	str	r7, [r4, #28]
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L4
	ldr	r3, [r4, #24]
	mov	r1, r8
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	bne	.L10
.L4:
	mov	r3, #1
	add	r0, r4, #20
	str	r3, [r9, r10]
	str	r3, [r4, #12]
	str	r8, [r4, #16]
	bl	INIT_LIST_HEAD
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r5, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	TTM_NUM_MEM_TYPES
	.word	.LC0
	.word	TTM_PL_SYSTEM
	.size	ttm_bo_init_mm, .-ttm_bo_init_mm
	.comm	TTM_PL_SYSTEM,4,4
	.comm	TTM_NUM_MEM_TYPES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
