	.file	"extr_ecard.c___ecard_address.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__ecard_address, @function
__ecard_address:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rdi]
	cmp	ecx, 8
	je	.L12
	mov	eax, -2
	rol	eax, cl
	and	DWORD PTR ectcr[rip], eax
	xor	eax, eax
	cmp	esi, 128
	je	.L4
	cmp	esi, 129
	je	.L5
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	ecx, 3
	jg	.L1
	sal	ecx, 12
	add	ecx, DWORD PTR IO_EC_IOC_BASE[rip]
	sal	edx, 17
	movsx	rsi, ecx
	mov	ecx, eax
	test	rsi, rsi
	lea	eax, [rdx+rsi]
	cmove	eax, ecx
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	ecx, 3
	jg	.L1
	mov	eax, DWORD PTR IO_EC_MEMC_BASE[rip]
	sal	ecx, 12
	add	eax, ecx
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR IO_EC_MEMC8_BASE[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	__ecard_address, .-__ecard_address
	.comm	ectcr,4,4
	.comm	IO_EC_MEMC_BASE,4,4
	.comm	IO_EC_MEMC8_BASE,4,4
	.comm	IO_EC_IOC_BASE,4,4
	.comm	IO_EC_IOC4_BASE,4,4
	.comm	IO_EC_EASI_BASE,4,4
	.comm	IOMD_ECTCR,4,4
	.comm	ECARD_FAST,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_ecard.c___ecard_address.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__ecard_address, %function
__ecard_address:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	cmp	r0, #8
	beq	.L15
	str	lr, [sp, #-4]!
	mov	lr, #1
	ldr	ip, .L16
	cmp	r1, #128
	ldr	r3, [ip]
	bic	r3, r3, lr, lsl r0
	str	r3, [ip]
	beq	.L4
	cmp	r1, #129
	beq	.L5
.L7:
	mov	r0, #0
	ldr	pc, [sp], #4
.L5:
	cmp	r0, #3
	bgt	.L7
	ldr	r3, .L16+4
	ldr	r3, [r3]
	adds	r0, r3, r0, lsl #12
	addne	r0, r0, r2, lsl #17
	ldr	pc, [sp], #4
.L4:
	cmp	r0, #3
	bgt	.L7
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r0, r3, r0, lsl #12
	ldr	pc, [sp], #4
.L15:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	bx	lr
.L17:
	.align	2
.L16:
	.word	ectcr
	.word	IO_EC_IOC_BASE
	.word	IO_EC_MEMC_BASE
	.word	IO_EC_MEMC8_BASE
	.size	__ecard_address, .-__ecard_address
	.comm	ectcr,4,4
	.comm	IO_EC_MEMC_BASE,4,4
	.comm	IO_EC_MEMC8_BASE,4,4
	.comm	IO_EC_IOC_BASE,4,4
	.comm	IO_EC_IOC4_BASE,4,4
	.comm	IO_EC_EASI_BASE,4,4
	.comm	IOMD_ECTCR,4,4
	.comm	ECARD_FAST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
