	.file	"extr_ttm_memory.c_ttm_mem_init_kernel_zone.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"kernel"
	.text
	.p2align 4
	.type	ttm_mem_init_kernel_zone, @function
ttm_mem_init_kernel_zone:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	r12, rdi
	mov	edi, 48
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	mov	esi, DWORD PTR M_TTM_ZONE[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	edx, ebp
	mov	esi, 1
	mov	rbx, rax
	lea	rax, .LC0[rip]
	sar	edx, 2
	mov	QWORD PTR [rbx], rax
	mov	eax, ebp
	lea	rdi, 24[rbx]
	mov	DWORD PTR 8[rbx], ebp
	sar	eax
	sar	ebp, 3
	mov	DWORD PTR 12[rbx], eax
	add	edx, eax
	sub	eax, ebp
	mov	DWORD PTR 16[rbx], edx
	mov	QWORD PTR 32[rbx], r12
	mov	DWORD PTR 20[rbx], eax
	mov	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 16[r12], rbx
	call	refcount_init@PLT
	movsx	rax, DWORD PTR [r12]
	mov	rdx, QWORD PTR 8[r12]
	lea	ecx, 1[rax]
	mov	DWORD PTR [r12], ecx
	mov	QWORD PTR [rdx+rax*8], rbx
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ttm_mem_init_kernel_zone, .-ttm_mem_init_kernel_zone
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TTM_ZONE,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_memory.c_ttm_mem_init_kernel_zone.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kernel\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_mem_init_kernel_zone, %function
ttm_mem_init_kernel_zone:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L4
	ldr	r3, .L4+4
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+8
	mov	r6, r0
	orr	r2, r1, r2
	mov	r0, #32
	ldr	r1, [r3]
	bl	malloc
	mov	r7, #0
	mov	r4, r0
	ldr	r2, .L4+12
	asr	r3, r5, #1
	str	r5, [r0, #4]
	str	r2, [r0]
	add	r2, r3, r5, asr #2
	sub	r5, r3, r5, asr #3
	str	r6, [r0, #24]
	str	r3, [r0, #8]
	str	r2, [r0, #12]
	str	r5, [r0, #16]
	str	r7, [r0, #28]
	mov	r1, #1
	str	r4, [r6, #8]
	add	r0, r0, #20
	bl	refcount_init
	ldr	r3, [r6]
	ldr	r2, [r6, #4]
	add	r1, r3, #1
	str	r1, [r6]
	mov	r0, r7
	str	r4, [r2, r3, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_TTM_ZONE
	.word	.LC0
	.size	ttm_mem_init_kernel_zone, .-ttm_mem_init_kernel_zone
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_TTM_ZONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
