	.file	"extr_kern_malloc.c_malloc_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"malloc_register before vm_init"
	.align 8
.LC1:
	.string	"malloc_init: bad malloc type magic"
	.text
	.p2align 4
	.globl	malloc_init
	.type	malloc_init, @function
malloc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR vm_cnt[rip], 0
	setne	dil
	call	KASSERT@PLT
	mov	rax, QWORD PTR M_MAGIC[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L2
	lea	rdi, .LC1[rip]
	call	panic@PLT
.L2:
	mov	edi, DWORD PTR mt_zone[rip]
	mov	esi, DWORD PTR M_WAITOK[rip]
	or	esi, DWORD PTR M_ZERO[rip]
	call	uma_zalloc@PLT
	mov	edi, DWORD PTR mt_stats_zone[rip]
	mov	esi, DWORD PTR M_WAITOK[rip]
	or	esi, DWORD PTR M_ZERO[rip]
	mov	rbp, rax
	call	uma_zalloc_pcpu@PLT
	mov	rdi, rbx
	mov	DWORD PTR 0[rbp], eax
	mov	QWORD PTR 16[rbx], rbp
	call	mtp_set_subzone@PLT
	lea	rdi, malloc_mtx[rip]
	call	mtx_lock@PLT
	mov	rax, QWORD PTR kmemstatistics[rip]
	add	DWORD PTR kmemcount[rip], 1
	lea	rdi, malloc_mtx[rip]
	mov	QWORD PTR kmemstatistics[rip], rbx
	mov	QWORD PTR 8[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mtx_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	malloc_init, .-malloc_init
	.comm	vm_cnt,8,8
	.comm	mt_zone,4,4
	.comm	mt_stats_zone,4,4
	.comm	malloc_mtx,4,4
	.comm	kmemstatistics,8,8
	.comm	kmemcount,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MAGIC,8,8
	.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_kern_malloc.c_malloc_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"malloc_register before vm_init\000"
	.align	2
.LC1:
	.ascii	"malloc_init: bad malloc type magic\000"
	.text
	.align	2
	.global	malloc_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	malloc_init, %function
malloc_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L5
	ldr	r1, .L5+4
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	bl	KASSERT
	ldr	r3, .L5+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r0, .L5+12
	bl	panic
.L2:
	ldr	r7, .L5+16
	ldr	r6, .L5+20
	ldr	r1, [r7]
	ldr	r2, [r6]
	ldr	r3, .L5+24
	orr	r1, r1, r2
	ldr	r0, [r3]
	bl	uma_zalloc
	ldr	r2, [r6]
	ldr	r1, [r7]
	ldr	r3, .L5+28
	orr	r1, r1, r2
	mov	r5, r0
	ldr	r0, [r3]
	bl	uma_zalloc_pcpu
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5]
	str	r5, [r4, #8]
	bl	mtp_set_subzone
	ldr	r0, .L5+32
	bl	mtx_lock
	ldr	r1, .L5+36
	ldr	r2, .L5+40
	ldr	r3, [r1]
	ldr	r0, [r2]
	add	r3, r3, #1
	str	r0, [r4, #4]
	str	r4, [r2]
	ldr	r0, .L5+32
	pop	{r4, r5, r6, r7, r8, lr}
	str	r3, [r1]
	b	mtx_unlock
.L6:
	.align	2
.L5:
	.word	vm_cnt
	.word	.LC0
	.word	M_MAGIC
	.word	.LC1
	.word	M_WAITOK
	.word	M_ZERO
	.word	mt_zone
	.word	mt_stats_zone
	.word	malloc_mtx
	.word	kmemcount
	.word	kmemstatistics
	.size	malloc_init, .-malloc_init
	.comm	vm_cnt,4,4
	.comm	mt_zone,4,4
	.comm	mt_stats_zone,4,4
	.comm	malloc_mtx,4,4
	.comm	kmemstatistics,4,4
	.comm	kmemcount,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
