	.file	"extr_sa11xx_base.c_sa1100_pcmcia_set_mecr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FAST %X  BSM %X  BSA %X  BSIO %X\n"
	.text
	.p2align 4
	.type	sa1100_pcmcia_set_mecr, @function
sa1100_pcmcia_set_mecr:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rsi, 12[rsp]
	call	soc_common_pcmcia_get_timing@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	mov	r15d, eax
	mov	rax, QWORD PTR 8[rbp]
	call	[QWORD PTR [rax]]
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	mov	r13d, eax
	mov	rax, QWORD PTR 8[rbp]
	call	[QWORD PTR [rax]]
	mov	rdi, rbx
	mov	r14d, eax
	call	local_irq_save@PLT
	mov	r12, QWORD PTR MECR[rip]
	mov	esi, DWORD PTR 0[rbp]
	xor	edx, edx
	mov	rdi, r12
	call	MECR_FAST_SET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, r15d
	mov	rdi, r12
	call	MECR_BSIO_SET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, r14d
	mov	rdi, r12
	call	MECR_BSA_SET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, r13d
	mov	rdi, r12
	call	MECR_BSM_SET@PLT
	mov	rdi, rbx
	call	local_irq_restore@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	MECR_BSIO_GET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	mov	r14d, eax
	call	MECR_BSA_GET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	mov	r13d, eax
	call	MECR_BSM_GET@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	mov	ebx, eax
	call	MECR_FAST_GET@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9d, r13d
	mov	r8d, ebx
	push	r14
	.cfi_def_cfa_offset 112
	lea	rdx, .LC0[rip]
	mov	ecx, eax
	mov	esi, 2
	mov	rdi, rbp
	call	debug@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 40
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sa1100_pcmcia_set_mecr, .-sa1100_pcmcia_set_mecr
	.comm	MECR,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_sa11xx_base.c_sa1100_pcmcia_set_mecr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FAST %X  BSM %X  BSA %X  BSIO %X\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sa1100_pcmcia_set_mecr, %function
sa1100_pcmcia_set_mecr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r5, r1
	sub	sp, sp, #36
	ldr	r3, .L6
	add	r1, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	soc_common_pcmcia_get_timing
	ldr	r3, [r4, #4]
	mov	r1, r5
	ldr	r3, [r3]
	ldr	r2, [sp, #24]
	mov	r0, r4
	blx	r3
	ldr	r3, [r4, #4]
	mov	r1, r5
	mov	r8, r0
	ldr	r3, [r3]
	ldr	r2, [sp, #20]
	mov	r0, r4
	blx	r3
	ldr	r3, [r4, #4]
	mov	r1, r5
	mov	r6, r0
	ldr	r3, [r3]
	ldr	r2, [sp, #16]
	mov	r0, r4
	blx	r3
	mov	r9, #0
	mov	r7, r0
	mov	r0, r9
	bl	local_irq_save
	ldr	r3, .L6+4
	mov	r2, r9
	ldr	r5, [r3]
	ldr	r1, [r4]
	mov	r0, r5
	bl	MECR_FAST_SET
	mov	r2, r8
	mov	r0, r5
	ldr	r1, [r4]
	bl	MECR_BSIO_SET
	mov	r2, r7
	mov	r0, r5
	ldr	r1, [r4]
	bl	MECR_BSA_SET
	mov	r2, r6
	ldr	r1, [r4]
	mov	r0, r5
	bl	MECR_BSM_SET
	mov	r0, r9
	bl	local_irq_restore
	mov	r0, r5
	ldr	r1, [r4]
	bl	MECR_FAST_GET
	ldr	r1, [r4]
	mov	r6, r0
	mov	r0, r5
	bl	MECR_BSM_GET
	ldr	r1, [r4]
	mov	r7, r0
	mov	r0, r5
	bl	MECR_BSA_GET
	mov	r3, r0
	ldr	r1, [r4]
	mov	r0, r5
	mov	r5, r3
	bl	MECR_BSIO_GET
	mov	r2, r0
	mov	r3, r6
	str	r2, [sp, #8]
	mov	r0, r4
	ldr	r2, .L6+8
	mov	r1, #2
	str	r7, [sp]
	str	r5, [sp, #4]
	bl	debug
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	MECR
	.word	.LC0
	.size	sa1100_pcmcia_set_mecr, .-sa1100_pcmcia_set_mecr
	.comm	MECR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
