	.file	"extr_uipc_shm.c_shm_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"shm timestamps"
.LC1:
	.string	"shm dictionary"
.LC2:
	.string	"shm dev inode not initialized"
	.text
	.p2align 4
	.type	shm_init, @function
shm_init:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	lea	rdi, shm_timestamp_lock[rip]
	call	mtx_init@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, shm_dict_lock[rip]
	call	sx_init@PLT
	mov	esi, DWORD PTR M_SHMFD[rip]
	mov	edi, 1024
	lea	rdx, shm_hash[rip]
	call	hashinit@PLT
	mov	esi, 1
	lea	rdi, shm_ino_unr[rip]
	mov	DWORD PTR shm_dictionary[rip], eax
	call	new_unrhdr64@PLT
	xor	eax, eax
	call	devfs_alloc_cdp_inode@PLT
	xor	edi, edi
	lea	rsi, .LC2[rip]
	test	rax, rax
	mov	QWORD PTR shm_dev_ino[rip], rax
	setg	dil
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	KASSERT@PLT
	.cfi_endproc
.LFE0:
	.size	shm_init, .-shm_init
	.comm	shm_timestamp_lock,4,4
	.comm	shm_ino_unr,4,4
	.comm	shm_hash,4,4
	.comm	shm_dictionary,4,4
	.comm	shm_dict_lock,4,4
	.comm	shm_dev_ino,8,8
	.comm	M_SHMFD,4,4
	.comm	MTX_DEF,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_uipc_shm.c_shm_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"shm timestamps\000"
	.align	2
.LC1:
	.ascii	"shm dictionary\000"
	.align	2
.LC2:
	.ascii	"shm dev inode not initialized\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	shm_init, %function
shm_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, lr}
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	mtx_init
	ldr	r1, .L4+12
	ldr	r0, .L4+16
	bl	sx_init
	ldr	r3, .L4+20
	ldr	r2, .L4+24
	ldr	r1, [r3]
	mov	r0, #1024
	bl	hashinit
	mov	r2, r0
	ldr	r3, .L4+28
	mov	r1, #1
	ldr	r0, .L4+32
	str	r2, [r3]
	bl	new_unrhdr64
	bl	devfs_alloc_cdp_inode
	pop	{r4, lr}
	mov	r3, r0
	cmp	r0, #0
	ldr	r2, .L4+36
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L4+40
	str	r3, [r2]
	b	KASSERT
.L5:
	.align	2
.L4:
	.word	MTX_DEF
	.word	.LC0
	.word	shm_timestamp_lock
	.word	.LC1
	.word	shm_dict_lock
	.word	M_SHMFD
	.word	shm_hash
	.word	shm_dictionary
	.word	shm_ino_unr
	.word	shm_dev_ino
	.word	.LC2
	.size	shm_init, .-shm_init
	.comm	shm_timestamp_lock,4,4
	.comm	shm_ino_unr,4,4
	.comm	shm_hash,4,4
	.comm	shm_dictionary,4,4
	.comm	shm_dict_lock,4,4
	.comm	shm_dev_ino,4,4
	.comm	M_SHMFD,4,4
	.comm	MTX_DEF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
