	.file	"extr_lsm_shared.c_dbOpenSharedFd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dbOpenSharedFd, @function
dbOpenSharedFd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rsi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	rcx, r13
	mov	r12d, edx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 8[rsi]
	call	lsmEnvOpen@PLT
	cmp	DWORD PTR LSM_IOERR[rip], eax
	jne	.L1
	test	r12d, r12d
	jne	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR LSM_OPEN_READONLY[rip]
	mov	rcx, r13
	mov	rdi, rbp
	call	lsmEnvOpen@PLT
	mov	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dbOpenSharedFd, .-dbOpenSharedFd
	.comm	LSM_OPEN_READONLY,4,4
	.comm	LSM_IOERR,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_lsm_shared.c_dbOpenSharedFd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dbOpenSharedFd, %function
dbOpenSharedFd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r1, #4
	mov	r5, r2
	mov	r3, r7
	mov	r4, r1
	mov	r2, #0
	ldr	r1, [r1, #8]
	mov	r6, r0
	bl	lsmEnvOpen
	ldr	r3, .L8
	cmp	r5, #0
	ldr	r1, [r3]
	sub	r1, r1, r0
	clz	r1, r1
	lsr	r1, r1, #5
	moveq	r1, #0
	cmp	r1, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L8+4
	mov	r3, r7
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r4, #8]
	bl	lsmEnvOpen
	mov	r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	LSM_IOERR
	.word	LSM_OPEN_READONLY
	.size	dbOpenSharedFd, .-dbOpenSharedFd
	.comm	LSM_OPEN_READONLY,4,4
	.comm	LSM_IOERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
