	.file	"extr_vme_tsi148.c_tsi148_dma_set_vme_dest_attributes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Currently not setting Broadcast Select Registers\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Invalid data width\n"
.LC2:
	.string	"Invalid address space\n"
	.text
	.p2align 4
	.type	tsi148_dma_set_vme_dest_attributes, @function
tsi148_dma_set_vme_dest_attributes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rsi]
	call	be32_to_cpu@PLT
	mov	ebx, eax
	mov	eax, r14d
	and	eax, 143
	cmp	eax, 140
	je	.L2
	cmp	eax, 141
	je	.L3
	cmp	eax, 139
	je	.L56
.L5:
	test	DWORD PTR VME_SCT[rip], r14d
	je	.L6
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_SCT[rip]
.L6:
	test	DWORD PTR VME_BLT[rip], r14d
	je	.L7
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_BLT[rip]
.L7:
	test	DWORD PTR VME_MBLT[rip], r14d
	je	.L8
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_MBLT[rip]
.L8:
	test	DWORD PTR VME_2eVME[rip], r14d
	je	.L9
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_2eVME[rip]
.L9:
	test	DWORD PTR VME_2eSST[rip], r14d
	je	.L10
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_2eSST[rip]
.L10:
	test	DWORD PTR VME_2eSSTB[rip], r14d
	jne	.L57
.L11:
	cmp	r15d, 132
	je	.L12
	cmp	r15d, 133
	jne	.L13
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_DBW_16[rip]
.L14:
	add	ebp, -128
	cmp	ebp, 10
	ja	.L16
	lea	rdx, .L18[rip]
	movsx	rax, DWORD PTR [rdx+rbp*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L18:
	.long	.L26-.L18
	.long	.L25-.L18
	.long	.L24-.L18
	.long	.L23-.L18
	.long	.L16-.L18
	.long	.L16-.L18
	.long	.L22-.L18
	.long	.L21-.L18
	.long	.L20-.L18
	.long	.L19-.L18
	.long	.L17-.L18
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_DBW_32[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_TM_2eSSTB[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_2eSSTM_267[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L56:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_2eSSTM_320[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_2eSSTM_160[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_A16[rip]
	mov	edi, ebx
	.p2align 4,,10
	.p2align 3
.L27:
	test	DWORD PTR VME_SUPER[rip], r14d
	je	.L28
	or	edi, DWORD PTR TSI148_LCSR_DDAT_SUP[rip]
.L28:
	test	DWORD PTR VME_PROG[rip], r14d
	je	.L29
	or	edi, DWORD PTR TSI148_LCSR_DDAT_PGM[rip]
.L29:
	call	cpu_to_be32@PLT
	mov	DWORD PTR [r12], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR TSI148_LCSR_DDAT_AMODE_USER4[rip]
	or	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_USER3[rip]
	mov	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR TSI148_LCSR_DDAT_AMODE_USER2[rip]
	or	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L23:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_USER1[rip]
	mov	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR TSI148_LCSR_DDAT_AMODE_CRCSR[rip]
	or	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L21:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_A64[rip]
	mov	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L20:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_A32[rip]
	mov	edi, ebx
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L19:
	or	ebx, DWORD PTR TSI148_LCSR_DDAT_AMODE_A24[rip]
	mov	edi, ebx
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	tsi148_dma_set_vme_dest_attributes, .-tsi148_dma_set_vme_dest_attributes
	.comm	VME_SUPER,4,4
	.comm	VME_SCT,4,4
	.comm	VME_PROG,4,4
	.comm	VME_MBLT,4,4
	.comm	VME_BLT,4,4
	.comm	VME_2eVME,4,4
	.comm	VME_2eSSTB,4,4
	.comm	VME_2eSST,4,4
	.comm	TSI148_LCSR_DDAT_TM_SCT,4,4
	.comm	TSI148_LCSR_DDAT_TM_MBLT,4,4
	.comm	TSI148_LCSR_DDAT_TM_BLT,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eVME,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eSSTB,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eSST,4,4
	.comm	TSI148_LCSR_DDAT_SUP,4,4
	.comm	TSI148_LCSR_DDAT_PGM,4,4
	.comm	TSI148_LCSR_DDAT_DBW_32,4,4
	.comm	TSI148_LCSR_DDAT_DBW_16,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER4,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER3,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER2,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER1,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_CRCSR,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A64,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A32,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A24,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A16,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_320,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_267,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_160,4,4
	.comm	EINVAL,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_vme_tsi148.c_tsi148_dma_set_vme_dest_attributes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Currently not setting Broadcast Select Registers\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Invalid data width\012\000"
	.align	2
.LC2:
	.ascii	"Invalid address space\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tsi148_dma_set_vme_dest_attributes, %function
tsi148_dma_set_vme_dest_attributes:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r3
	mov	r8, r0
	ldr	r0, [r1]
	mov	r7, r1
	mov	r6, r2
	ldr	r9, [sp, #32]
	bl	be32_to_cpu
	and	r3, r4, #143
	cmp	r3, #140
	mov	r5, r0
	beq	.L2
	cmp	r3, #141
	beq	.L3
	cmp	r3, #139
	beq	.L56
.L5:
	ldr	r3, .L58
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+4
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L58+8
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+12
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L58+16
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+20
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L58+24
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+28
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L58+32
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+36
	ldrne	r3, [r3]
	orrne	r5, r5, r3
	ldr	r3, .L58+40
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L57
.L11:
	cmp	r9, #132
	beq	.L12
	cmp	r9, #133
	bne	.L13
	ldr	r3, .L58+44
	ldr	r0, [r3]
	orr	r5, r5, r0
.L14:
	sub	r2, r6, #128
	cmp	r2, #10
	ldrls	pc, [pc, r2, asl #2]
	b	.L16
.L18:
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L16
	.word	.L16
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L17
.L12:
	ldr	r3, .L58+48
	ldr	r0, [r3]
	orr	r5, r5, r0
	b	.L14
.L13:
	mov	r0, r8
	ldr	r1, .L58+52
	bl	dev_err
	ldr	r3, .L58+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L57:
	mov	r0, r8
	ldr	r1, .L58+60
	bl	dev_err
	ldr	r3, .L58+64
	ldr	r3, [r3]
	orr	r5, r5, r3
	b	.L11
.L2:
	ldr	r3, .L58+68
	ldr	r3, [r3]
	orr	r5, r0, r3
	b	.L5
.L56:
	ldr	r3, .L58+72
	ldr	r3, [r3]
	orr	r5, r0, r3
	b	.L5
.L3:
	ldr	r3, .L58+76
	ldr	r3, [r3]
	orr	r5, r0, r3
	b	.L5
.L17:
	ldr	r3, .L58+80
	ldr	r0, [r3]
	orr	r0, r5, r0
.L27:
	ldr	r3, .L58+84
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+88
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	ldr	r3, .L58+92
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L58+96
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	bl	cpu_to_be32
	mov	r3, r0
	mov	r0, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r8
	ldr	r1, .L58+100
	bl	dev_err
	ldr	r3, .L58+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r3, .L58+104
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L25:
	ldr	r3, .L58+108
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L24:
	ldr	r3, .L58+112
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L23:
	ldr	r3, .L58+116
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L22:
	ldr	r3, .L58+120
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L21:
	ldr	r3, .L58+124
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L20:
	ldr	r3, .L58+128
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L19:
	ldr	r3, .L58+132
	ldr	r0, [r3]
	orr	r0, r5, r0
	b	.L27
.L59:
	.align	2
.L58:
	.word	VME_SCT
	.word	TSI148_LCSR_DDAT_TM_SCT
	.word	VME_BLT
	.word	TSI148_LCSR_DDAT_TM_BLT
	.word	VME_MBLT
	.word	TSI148_LCSR_DDAT_TM_MBLT
	.word	VME_2eVME
	.word	TSI148_LCSR_DDAT_TM_2eVME
	.word	VME_2eSST
	.word	TSI148_LCSR_DDAT_TM_2eSST
	.word	VME_2eSSTB
	.word	TSI148_LCSR_DDAT_DBW_16
	.word	TSI148_LCSR_DDAT_DBW_32
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	TSI148_LCSR_DDAT_TM_2eSSTB
	.word	TSI148_LCSR_DDAT_2eSSTM_267
	.word	TSI148_LCSR_DDAT_2eSSTM_320
	.word	TSI148_LCSR_DDAT_2eSSTM_160
	.word	TSI148_LCSR_DDAT_AMODE_A16
	.word	VME_SUPER
	.word	TSI148_LCSR_DDAT_SUP
	.word	VME_PROG
	.word	TSI148_LCSR_DDAT_PGM
	.word	.LC2
	.word	TSI148_LCSR_DDAT_AMODE_USER4
	.word	TSI148_LCSR_DDAT_AMODE_USER3
	.word	TSI148_LCSR_DDAT_AMODE_USER2
	.word	TSI148_LCSR_DDAT_AMODE_USER1
	.word	TSI148_LCSR_DDAT_AMODE_CRCSR
	.word	TSI148_LCSR_DDAT_AMODE_A64
	.word	TSI148_LCSR_DDAT_AMODE_A32
	.word	TSI148_LCSR_DDAT_AMODE_A24
	.size	tsi148_dma_set_vme_dest_attributes, .-tsi148_dma_set_vme_dest_attributes
	.comm	VME_SUPER,4,4
	.comm	VME_SCT,4,4
	.comm	VME_PROG,4,4
	.comm	VME_MBLT,4,4
	.comm	VME_BLT,4,4
	.comm	VME_2eVME,4,4
	.comm	VME_2eSSTB,4,4
	.comm	VME_2eSST,4,4
	.comm	TSI148_LCSR_DDAT_TM_SCT,4,4
	.comm	TSI148_LCSR_DDAT_TM_MBLT,4,4
	.comm	TSI148_LCSR_DDAT_TM_BLT,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eVME,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eSSTB,4,4
	.comm	TSI148_LCSR_DDAT_TM_2eSST,4,4
	.comm	TSI148_LCSR_DDAT_SUP,4,4
	.comm	TSI148_LCSR_DDAT_PGM,4,4
	.comm	TSI148_LCSR_DDAT_DBW_32,4,4
	.comm	TSI148_LCSR_DDAT_DBW_16,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER4,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER3,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER2,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_USER1,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_CRCSR,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A64,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A32,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A24,4,4
	.comm	TSI148_LCSR_DDAT_AMODE_A16,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_320,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_267,4,4
	.comm	TSI148_LCSR_DDAT_2eSSTM_160,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
