	.file	"extr_jfs_logmgr.c_open_dummy_log.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	open_dummy_log, @function
open_dummy_log:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, jfs_log_mutex[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR dummy_log[rip]
	test	rdi, rdi
	je	.L8
.L2:
	call	LOG_LOCK@PLT
	mov	rax, QWORD PTR dummy_log[rip]
	mov	rdi, rbp
	lea	r12, 8[rax]
	call	JFS_SBI@PLT
	mov	rsi, r12
	xor	r12d, r12d
	lea	rdi, 8[rax]
	call	list_add@PLT
	mov	rdi, rbp
	call	JFS_SBI@PLT
	mov	rdi, QWORD PTR dummy_log[rip]
	mov	QWORD PTR [rax], rdi
	call	LOG_UNLOCK@PLT
	lea	rdi, jfs_log_mutex[rip]
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	mov	QWORD PTR dummy_log[rip], rax
	test	rax, rax
	je	.L9
	lea	rdi, 8[rax]
	call	INIT_LIST_HEAD@PLT
	mov	rax, QWORD PTR dummy_log[rip]
	lea	rdi, 24[rax]
	call	init_waitqueue_head@PLT
	mov	rdi, QWORD PTR dummy_log[rip]
	movabs	rax, 4398046511105
	mov	QWORD PTR 16[rdi], 0
	mov	QWORD PTR [rdi], rax
	call	lmLogInit@PLT
	mov	rdi, QWORD PTR dummy_log[rip]
	mov	r12d, eax
	test	eax, eax
	je	.L2
	call	kfree@PLT
	lea	rdi, jfs_log_mutex[rip]
	mov	QWORD PTR dummy_log[rip], 0
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, jfs_log_mutex[rip]
	call	mutex_unlock@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	open_dummy_log, .-open_dummy_log
	.comm	jfs_log_mutex,4,4
	.comm	dummy_log,8,8
	.comm	GFP_KERNEL,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_jfs_logmgr.c_open_dummy_log.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_dummy_log, %function
open_dummy_log:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L10
	mov	r5, r0
	ldr	r0, .L10+4
	bl	mutex_lock
	ldr	r6, [r4]
	cmp	r6, #0
	beq	.L8
.L2:
	mov	r0, r6
	bl	LOG_LOCK
	mov	r0, r5
	bl	JFS_SBI
	ldr	r1, [r4]
	add	r0, r0, #4
	add	r1, r1, #8
	bl	list_add
	mov	r0, r5
	bl	JFS_SBI
	ldr	r3, [r4]
	mov	r7, #0
	str	r3, [r0]
	mov	r0, r3
	bl	LOG_UNLOCK
	ldr	r0, .L10+4
	bl	mutex_unlock
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10+8
	mov	r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L9
	add	r0, r0, #8
	bl	INIT_LIST_HEAD
	ldr	r0, [r4]
	add	r0, r0, #16
	bl	init_waitqueue_head
	mov	r2, #1
	mov	r3, #1024
	ldr	r0, [r4]
	str	r2, [r0]
	str	r6, [r0, #12]
	str	r3, [r0, #4]
	bl	lmLogInit
	subs	r7, r0, #0
	bne	.L5
	ldr	r6, [r4]
	b	.L2
.L9:
	ldr	r0, .L10+4
	bl	mutex_unlock
	ldr	r3, .L10+12
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L5:
	ldr	r0, [r4]
	bl	kfree
	ldr	r0, .L10+4
	str	r6, [r4]
	bl	mutex_unlock
	b	.L1
.L11:
	.align	2
.L10:
	.word	dummy_log
	.word	jfs_log_mutex
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	open_dummy_log, .-open_dummy_log
	.comm	jfs_log_mutex,4,4
	.comm	dummy_log,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
