	.file	"extr_subr_rman.c_rman_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rman head"
.LC1:
	.string	"rman_init"
.LC2:
	.string	"implement RMAN_GAUGE"
.LC3:
	.string	"rman"
	.text
	.p2align 4
	.globl	rman_init
	.type	rman_init, @function
rman_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR once.1955[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	test	edx, edx
	je	.L10
.L2:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR 28[rbp]
	test	eax, eax
	je	.L11
.L3:
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR RMAN_UNINIT[rip]
	je	.L12
.L4:
	cmp	QWORD PTR RMAN_GAUGE[rip], rax
	je	.L13
.L5:
	lea	rdi, 24[rbp]
	call	TAILQ_INIT@PLT
	mov	esi, DWORD PTR M_RMAN[rip]
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	edi, 4
	or	edx, DWORD PTR M_ZERO[rip]
	call	malloc@PLT
	mov	rdi, rax
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	rdi, rdi
	je	.L1
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	lea	rsi, .LC3[rip]
	call	mtx_init@PLT
	lea	rdi, rman_mtx[rip]
	call	mtx_lock@PLT
	mov	edx, DWORD PTR rm_link[rip]
	mov	rsi, rbp
	lea	rdi, rman_head[rip]
	call	TAILQ_INSERT_TAIL@PLT
	lea	rdi, rman_mtx[rip]
	call	mtx_unlock@PLT
	xor	eax, eax
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR RMAN_UNINIT[rip]
	mov	DWORD PTR 28[rbp], -1
	jne	.L4
.L12:
	lea	rdi, .LC1[rip]
	call	panic@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR RMAN_GAUGE[rip], rax
	jne	.L5
.L13:
	lea	rdi, .LC2[rip]
	call	panic@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, rman_head[rip]
	mov	DWORD PTR once.1955[rip], 1
	call	TAILQ_INIT@PLT
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	lea	rdi, rman_mtx[rip]
	call	mtx_init@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rman_init, .-rman_init
	.local	once.1955
	.comm	once.1955,4,4
	.comm	rman_mtx,4,4
	.comm	rman_head,4,4
	.comm	rm_link,4,4
	.comm	RMAN_UNINIT,8,8
	.comm	RMAN_GAUGE,8,8
	.comm	M_ZERO,4,4
	.comm	M_RMAN,4,4
	.comm	M_NOWAIT,4,4
	.comm	MTX_DEF,4,4
	.comm	ENOMEM,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_subr_rman.c_rman_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rman head\000"
	.align	2
.LC1:
	.ascii	"rman_init\000"
	.align	2
.LC2:
	.ascii	"implement RMAN_GAUGE\000"
	.align	2
.LC3:
	.ascii	"rman\000"
	.text
	.align	2
	.global	rman_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	rman_init, %function
rman_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	ldr	r5, [r3]
	mov	r4, r0
	cmp	r5, #0
	beq	.L10
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [r4, #16]
	cmp	r3, #0
	mvneq	r3, #0
	streq	r3, [r4, #16]
.L3:
	ldr	r2, .L14+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L4:
	ldr	r2, .L14+8
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L12
.L5:
	add	r0, r4, #12
	bl	TAILQ_INIT
	ldr	r2, .L14+12
	ldr	r3, .L14+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L14+20
	orr	r2, r1, r2
	mov	r0, #4
	ldr	r1, [r3]
	bl	malloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L13
	ldr	r3, .L14+24
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r1, .L14+28
	bl	mtx_init
	ldr	r0, .L14+32
	bl	mtx_lock
	ldr	r3, .L14+36
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, .L14+40
	bl	TAILQ_INSERT_TAIL
	ldr	r0, .L14+32
	bl	mtx_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r2, #1
	ldr	r0, .L14+40
	str	r2, [r3]
	bl	TAILQ_INIT
	ldr	r3, .L14+24
	mov	r2, r5
	ldr	r3, [r3]
	ldr	r1, .L14+44
	ldr	r0, .L14+32
	bl	mtx_init
	b	.L2
.L13:
	ldr	r3, .L14+48
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, .L14+52
	bl	panic
	b	.L5
.L11:
	ldr	r0, .L14+56
	bl	panic
	ldr	r3, [r4, #4]
	b	.L4
.L15:
	.align	2
.L14:
	.word	.LANCHOR0
	.word	RMAN_UNINIT
	.word	RMAN_GAUGE
	.word	M_NOWAIT
	.word	M_ZERO
	.word	M_RMAN
	.word	MTX_DEF
	.word	.LC3
	.word	rman_mtx
	.word	rm_link
	.word	rman_head
	.word	.LC0
	.word	ENOMEM
	.word	.LC2
	.word	.LC1
	.size	rman_init, .-rman_init
	.comm	rman_mtx,4,4
	.comm	rman_head,4,4
	.comm	rm_link,4,4
	.comm	RMAN_UNINIT,4,4
	.comm	RMAN_GAUGE,4,4
	.comm	M_ZERO,4,4
	.comm	M_RMAN,4,4
	.comm	M_NOWAIT,4,4
	.comm	MTX_DEF,4,4
	.comm	ENOMEM,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	once.4239, %object
	.size	once.4239, 4
once.4239:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
