	.file	"extr_vme_tsi148.c_tsi148_lm_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tsi148_lm_get, @function
tsi148_lm_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	rbx, QWORD PTR [rax]
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR TSI148_LCSR_LMBAU[rip]
	add	rdi, QWORD PTR [rbx]
	call	ioread32be@PLT
	mov	rdi, QWORD PTR TSI148_LCSR_LMBAL[rip]
	add	rdi, QWORD PTR [rbx]
	mov	r14d, eax
	call	ioread32be@PLT
	mov	rdi, QWORD PTR TSI148_LCSR_LMAT[rip]
	add	rdi, QWORD PTR [rbx]
	mov	r15d, eax
	call	ioread32be@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edi, r14d
	mov	esi, r15d
	mov	ebx, eax
	xor	r14d, r14d
	mov	rdx, r8
	call	reg_join@PLT
	mov	eax, DWORD PTR TSI148_LCSR_LMAT_AS_M[rip]
	test	DWORD PTR TSI148_LCSR_LMAT_EN[rip], ebx
	setne	r14b
	and	eax, ebx
	cmp	eax, DWORD PTR TSI148_LCSR_LMAT_AS_A16[rip]
	jne	.L2
	mov	eax, DWORD PTR VME_A16[rip]
	or	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR TSI148_LCSR_LMAT_AS_M[rip]
	and	eax, ebx
.L2:
	cmp	DWORD PTR TSI148_LCSR_LMAT_AS_A24[rip], eax
	jne	.L3
	mov	eax, DWORD PTR VME_A24[rip]
	or	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR TSI148_LCSR_LMAT_AS_M[rip]
	and	eax, ebx
.L3:
	cmp	DWORD PTR TSI148_LCSR_LMAT_AS_A32[rip], eax
	jne	.L4
	mov	eax, DWORD PTR VME_A32[rip]
	or	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR TSI148_LCSR_LMAT_AS_M[rip]
	and	eax, ebx
.L4:
	cmp	DWORD PTR TSI148_LCSR_LMAT_AS_A64[rip], eax
	jne	.L5
	mov	eax, DWORD PTR VME_A64[rip]
	or	DWORD PTR 0[r13], eax
.L5:
	test	DWORD PTR TSI148_LCSR_LMAT_SUPR[rip], ebx
	je	.L6
	mov	eax, DWORD PTR VME_SUPER[rip]
	or	DWORD PTR 0[rbp], eax
.L6:
	test	DWORD PTR TSI148_LCSR_LMAT_NPRIV[rip], ebx
	je	.L7
	mov	eax, DWORD PTR VME_USER[rip]
	or	DWORD PTR 0[rbp], eax
.L7:
	test	DWORD PTR TSI148_LCSR_LMAT_PGM[rip], ebx
	je	.L8
	mov	eax, DWORD PTR VME_PROG[rip]
	or	DWORD PTR 0[rbp], eax
.L8:
	test	DWORD PTR TSI148_LCSR_LMAT_DATA[rip], ebx
	je	.L9
	mov	eax, DWORD PTR VME_DATA[rip]
	or	DWORD PTR 0[rbp], eax
.L9:
	mov	rdi, r12
	call	mutex_unlock@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tsi148_lm_get, .-tsi148_lm_get
	.comm	VME_USER,4,4
	.comm	VME_SUPER,4,4
	.comm	VME_PROG,4,4
	.comm	VME_DATA,4,4
	.comm	VME_A64,4,4
	.comm	VME_A32,4,4
	.comm	VME_A24,4,4
	.comm	VME_A16,4,4
	.comm	TSI148_LCSR_LMBAU,8,8
	.comm	TSI148_LCSR_LMBAL,8,8
	.comm	TSI148_LCSR_LMAT_SUPR,4,4
	.comm	TSI148_LCSR_LMAT_PGM,4,4
	.comm	TSI148_LCSR_LMAT_NPRIV,4,4
	.comm	TSI148_LCSR_LMAT_EN,4,4
	.comm	TSI148_LCSR_LMAT_DATA,4,4
	.comm	TSI148_LCSR_LMAT_AS_M,4,4
	.comm	TSI148_LCSR_LMAT_AS_A64,4,4
	.comm	TSI148_LCSR_LMAT_AS_A32,4,4
	.comm	TSI148_LCSR_LMAT_AS_A24,4,4
	.comm	TSI148_LCSR_LMAT_AS_A16,4,4
	.comm	TSI148_LCSR_LMAT,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_vme_tsi148.c_tsi148_lm_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tsi148_lm_get, %function
tsi148_lm_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [ip]
	mov	r10, r1
	mov	r7, r2
	mov	r5, r3
	mov	r6, r0
	bl	mutex_lock
	ldr	r3, .L24
	ldr	r0, [r4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	ioread32be
	ldr	r3, .L24+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r8, r0
	add	r0, r2, r3
	bl	ioread32be
	ldr	r3, .L24+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r9, r0
	add	r0, r2, r3
	bl	ioread32be
	mov	r4, r0
	mov	r2, r10
	mov	r0, r8
	mov	r1, r9
	bl	reg_join
	ldr	r1, .L24+12
	ldr	r3, .L24+16
	ldr	r2, .L24+20
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r2, [r2]
	tst	r4, r0
	and	r1, r1, r4
	movne	r8, #1
	moveq	r8, #0
	cmp	r1, r2
	bne	.L2
	ldr	r1, .L24+24
	ldr	r2, [r7]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r7]
	ldr	r1, [r3]
	and	r1, r1, r4
.L2:
	ldr	r2, .L24+28
	ldr	r2, [r2]
	cmp	r2, r1
	bne	.L3
	ldr	r1, .L24+32
	ldr	r2, [r7]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r7]
	ldr	r1, [r3]
	and	r1, r1, r4
.L3:
	ldr	r2, .L24+36
	ldr	r2, [r2]
	cmp	r2, r1
	bne	.L4
	ldr	r1, .L24+40
	ldr	r2, [r7]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r7]
	ldr	r1, [r3]
	and	r1, r1, r4
.L4:
	ldr	r3, .L24+44
	mov	r0, r6
	ldr	r3, [r3]
	cmp	r3, r1
	ldreq	r2, .L24+48
	ldreq	r3, [r7]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r7]
	ldr	r3, .L24+52
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r2, .L24+56
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	ldr	r3, .L24+60
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r2, .L24+64
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	ldr	r3, .L24+68
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r2, .L24+72
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	ldr	r3, .L24+76
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r2, .L24+80
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	bl	mutex_unlock
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	.align	2
.L24:
	.word	TSI148_LCSR_LMBAU
	.word	TSI148_LCSR_LMBAL
	.word	TSI148_LCSR_LMAT
	.word	TSI148_LCSR_LMAT_EN
	.word	TSI148_LCSR_LMAT_AS_M
	.word	TSI148_LCSR_LMAT_AS_A16
	.word	VME_A16
	.word	TSI148_LCSR_LMAT_AS_A24
	.word	VME_A24
	.word	TSI148_LCSR_LMAT_AS_A32
	.word	VME_A32
	.word	TSI148_LCSR_LMAT_AS_A64
	.word	VME_A64
	.word	TSI148_LCSR_LMAT_SUPR
	.word	VME_SUPER
	.word	TSI148_LCSR_LMAT_NPRIV
	.word	VME_USER
	.word	TSI148_LCSR_LMAT_PGM
	.word	VME_PROG
	.word	TSI148_LCSR_LMAT_DATA
	.word	VME_DATA
	.size	tsi148_lm_get, .-tsi148_lm_get
	.comm	VME_USER,4,4
	.comm	VME_SUPER,4,4
	.comm	VME_PROG,4,4
	.comm	VME_DATA,4,4
	.comm	VME_A64,4,4
	.comm	VME_A32,4,4
	.comm	VME_A24,4,4
	.comm	VME_A16,4,4
	.comm	TSI148_LCSR_LMBAU,4,4
	.comm	TSI148_LCSR_LMBAL,4,4
	.comm	TSI148_LCSR_LMAT_SUPR,4,4
	.comm	TSI148_LCSR_LMAT_PGM,4,4
	.comm	TSI148_LCSR_LMAT_NPRIV,4,4
	.comm	TSI148_LCSR_LMAT_EN,4,4
	.comm	TSI148_LCSR_LMAT_DATA,4,4
	.comm	TSI148_LCSR_LMAT_AS_M,4,4
	.comm	TSI148_LCSR_LMAT_AS_A64,4,4
	.comm	TSI148_LCSR_LMAT_AS_A32,4,4
	.comm	TSI148_LCSR_LMAT_AS_A24,4,4
	.comm	TSI148_LCSR_LMAT_AS_A16,4,4
	.comm	TSI148_LCSR_LMAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
