	.file	"extr_fmvj18x_cs.c_fmvj18x_setup_mfc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ioremap failed\n"
	.text
	.p2align 4
	.type	fmvj18x_setup_mfc, @function
fmvj18x_setup_mfc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, r12
	call	netdev_priv@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	rbx, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	eax, DWORD PTR WIN_DATA_WIDTH_8[rip]
	or	eax, DWORD PTR WIN_MEMORY_TYPE_AM[rip]
	or	eax, DWORD PTR WIN_ENABLE[rip]
	mov	DWORD PTR [rsi], eax
	mov	QWORD PTR 16[rsi], 0
	mov	QWORD PTR 8[rsi], 0
	call	pcmcia_request_window@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 24[rax]
	call	resource_size@PLT
	mov	esi, eax
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, QWORD PTR 8[rax]
	call	ioremap@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR 0[rbp]
	xor	edx, edx
	mov	rdi, rbp
	mov	rsi, QWORD PTR 24[rax]
	call	pcmcia_map_mem_page@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR [rbx]
	mov	edi, 71
	mov	ebp, DWORD PTR [r12]
	lea	rsi, 8192[rax]
	call	writeb@PLT
	mov	rax, QWORD PTR [rbx]
	xor	edi, edi
	lea	rsi, 8200[rax]
	call	writeb@PLT
	mov	rax, QWORD PTR [rbx]
	movzx	edi, bpl
	lea	rsi, 8232[rax]
	call	writeb@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 8240[rax]
	mov	eax, ebp
	movzx	edi, ah
	call	writeb@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, 69
	lea	rsi, 8320[rax]
	call	writeb@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	edi, 8
	add	rsi, 8328
	call	writeb@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	mov	r13d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [rbx]
	mov	r13d, -1
	call	iounmap@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L1
.L8:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	r13d, -1
	call	netdev_notice@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fmvj18x_setup_mfc, .-fmvj18x_setup_mfc
	.comm	WIN_MEMORY_TYPE_AM,4,4
	.comm	WIN_ENABLE,4,4
	.comm	WIN_DATA_WIDTH_8,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_fmvj18x_cs.c_fmvj18x_setup_mfc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioremap failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fmvj18x_setup_mfc, %function
fmvj18x_setup_mfc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	mov	r5, r0
	mov	r0, r6
	bl	netdev_priv
	mov	r2, #0
	mov	r4, r0
	ldr	r0, .L10
	ldr	r3, .L10+4
	ldr	ip, [r0]
	ldr	r0, .L10+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r1, [r1, #12]
	orr	r3, r3, ip
	orr	r3, r3, r0
	str	r3, [r1]
	mov	r0, r5
	str	r2, [r1, #8]
	str	r2, [r1, #4]
	bl	pcmcia_request_window
	subs	r7, r0, #0
	bne	.L5
	ldr	r3, [r5]
	ldr	r0, [r3, #12]
	ldr	r8, [r0, #4]
	bl	resource_size
	mov	r1, r0
	mov	r0, r8
	bl	ioremap
	cmp	r0, #0
	str	r0, [r4]
	beq	.L8
	ldr	r3, [r5]
	mov	r0, r5
	mov	r2, r7
	ldr	r1, [r3, #12]
	bl	pcmcia_map_mem_page
	subs	r5, r0, #0
	bne	.L9
	ldr	r1, [r4]
	mov	r0, #71
	add	r1, r1, #8192
	ldr	r6, [r6]
	bl	writeb
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #8192
	add	r1, r1, #8
	bl	writeb
	ldr	r1, [r4]
	and	r0, r6, #255
	add	r1, r1, #8192
	add	r1, r1, #40
	bl	writeb
	ldr	r1, [r4]
	lsr	r0, r6, #8
	add	r1, r1, #8192
	add	r1, r1, #48
	and	r0, r0, #255
	bl	writeb
	ldr	r1, [r4]
	mov	r0, #69
	add	r1, r1, #8320
	bl	writeb
	mov	r0, #8
	ldr	r1, [r4]
	add	r1, r1, #8320
	add	r1, r1, r0
	bl	writeb
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r5, #0
	b	.L1
.L9:
	ldr	r0, [r4]
	bl	iounmap
	mvn	r5, #0
	str	r7, [r4]
	b	.L1
.L8:
	mov	r0, r6
	ldr	r1, .L10+12
	bl	netdev_notice
	mvn	r5, #0
	b	.L1
.L11:
	.align	2
.L10:
	.word	WIN_MEMORY_TYPE_AM
	.word	WIN_DATA_WIDTH_8
	.word	WIN_ENABLE
	.word	.LC0
	.size	fmvj18x_setup_mfc, .-fmvj18x_setup_mfc
	.comm	WIN_MEMORY_TYPE_AM,4,4
	.comm	WIN_ENABLE,4,4
	.comm	WIN_DATA_WIDTH_8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
