	.file	"extr_nozomi.c_nozomi_read_config_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ConfigTable Bad! 0x%08X != 0x%08X\n"
	.align 8
.LC1:
	.string	"Second phase, configuring card"
	.align 8
.LC2:
	.string	"toggle ports: MDM UL:%d MDM DL:%d, DIAG DL:%d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Initialization OK!\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"First phase: pushing upload buffers, clearing download"
	.section	.rodata.str1.1
.LC5:
	.string	"Version of card: %d\n"
.LC6:
	.string	"First phase done"
	.text
	.p2align 4
	.type	nozomi_read_config_table, @function
nozomi_read_config_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 4
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	add	rdi, 16
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR 56[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	read_mem32@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR CONFIG_MAGIC[rip]
	cmp	rdx, rcx
	jne	.L16
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR TOGGLE_VALID[rip]
	cmp	QWORD PTR 32[rbx], rcx
	je	.L4
	mov	r12d, 1
	test	rax, rax
	jle	.L1
	lea	rdi, .LC4[rip]
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	mov	rbp, rsp
	call	DBG1@PLT
	mov	rdx, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR 56[rbx]
	xor	eax, eax
	lea	rsi, .LC5[rip]
	call	dev_info@PLT
	mov	rdi, rbx
	call	setup_memory@PLT
	mov	rax, QWORD PTR PORT_MDM[rip]
	mov	rdx, QWORD PTR CH_A[rip]
	mov	rsi, rbp
	sal	rax, 5
	add	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	edx, 4
	call	write_mem32@PLT
	mov	rax, QWORD PTR PORT_MDM[rip]
	mov	rdx, QWORD PTR CH_B[rip]
	mov	rsi, rbp
	sal	rax, 5
	add	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	edx, 4
	call	write_mem32@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR MDM_UL[rip]
	or	edi, DWORD PTR DIAG_DL[rip]
	or	edi, DWORD PTR MDM_DL[rip]
	call	writew@PLT
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	DBG1@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DBG1@PLT
	mov	rdi, rbx
	call	setup_memory@PLT
	mov	rax, QWORD PTR PORT_MDM[rip]
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR 48[rbx]
	sal	rax, 5
	mov	ecx, DWORD PTR 40[rbx]
	add	rax, rdi
	mov	DWORD PTR 20[rax], edx
	mov	rdx, QWORD PTR PORT_DIAG[rip]
	mov	DWORD PTR 24[rax], esi
	sal	rdx, 5
	mov	DWORD PTR 20[rdi+rdx], ecx
	mov	edx, DWORD PTR 20[rax]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DBG1@PLT
	mov	rdi, rbx
	call	dump_table@PLT
	mov	rbp, QWORD PTR PORT_MDM[rip]
	cmp	ebp, DWORD PTR MAX_PORT[rip]
	mov	r12d, ebp
	jge	.L6
	movsx	rbp, ebp
	sal	rbp, 5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r13, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	xor	edx, edx
	add	r12d, 1
	mov	edi, DWORD PTR FIFO_BUFFER_SIZE_UL[rip]
	add	r13, rbp
	call	kfifo_alloc@PLT
	mov	rdi, QWORD PTR 8[rbx]
	xor	esi, esi
	mov	edx, 4
	mov	DWORD PTR 16[r13], eax
	add	rdi, rbp
	add	rdi, 12
	call	memset@PLT
	mov	rdi, QWORD PTR 8[rbx]
	xor	esi, esi
	mov	edx, 4
	add	rdi, rbp
	add	rbp, 32
	add	rdi, 8
	call	memset@PLT
	cmp	DWORD PTR MAX_PORT[rip], r12d
	jg	.L7
.L6:
	mov	edi, DWORD PTR [rbx]
	or	edi, DWORD PTR CTRL_DL[rip]
	mov	r12d, 1
	mov	DWORD PTR [rbx], edi
	mov	esi, DWORD PTR 68[rbx]
	call	writew@PLT
	mov	eax, DWORD PTR NOZOMI_STATE_ALLOCATED[rip]
	mov	rdi, QWORD PTR 56[rbx]
	lea	rsi, .LC3[rip]
	mov	DWORD PTR 64[rbx], eax
	xor	eax, eax
	call	dev_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 56[rbx]
	lea	rsi, .LC0[rip]
	xor	r12d, r12d
	call	dev_err@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nozomi_read_config_table, .-nozomi_read_config_table
	.comm	TOGGLE_VALID,8,8
	.comm	PORT_MDM,8,8
	.comm	PORT_DIAG,8,8
	.comm	NOZOMI_STATE_ALLOCATED,4,4
	.comm	MDM_UL,4,4
	.comm	MDM_DL,4,4
	.comm	MAX_PORT,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	FIFO_BUFFER_SIZE_UL,4,4
	.comm	DIAG_DL,4,4
	.comm	CTRL_DL,4,4
	.comm	CONFIG_MAGIC,8,8
	.comm	CH_B,8,8
	.comm	CH_A,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_nozomi.c_nozomi_read_config_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ConfigTable Bad! 0x%08X != 0x%08X\012\000"
	.align	2
.LC1:
	.ascii	"Second phase, configuring card\000"
	.align	2
.LC2:
	.ascii	"toggle ports: MDM UL:%d MDM DL:%d, DIAG DL:%d\000"
	.align	2
.LC3:
	.ascii	"Initialization OK!\012\000"
	.align	2
.LC4:
	.ascii	"First phase: pushing upload buffers, clearing downl"
	.ascii	"oad\000"
	.align	2
.LC5:
	.ascii	"Version of card: %d\012\000"
	.align	2
.LC6:
	.ascii	"First phase done\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nozomi_read_config_table, %function
nozomi_read_config_table:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L18
	mov	r2, #4
	ldr	r1, [r0, #48]
	sub	sp, sp, #12
	add	r0, r0, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	read_mem32
	ldr	r3, .L18+4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L18+8
	ldr	r1, [r4, #20]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L4
	cmp	r3, #0
	movle	r0, #1
	ble	.L1
	mov	r3, #0
	ldr	r0, .L18+12
	str	r3, [sp]
	ldr	r5, .L18+16
	bl	DBG1
	ldr	r2, [r4, #16]
	ldr	r1, .L18+20
	ldr	r0, [r4, #36]
	bl	dev_info
	mov	r0, r4
	bl	setup_memory
	ldr	r3, [r5]
	ldr	r1, [r4, #8]
	ldr	r2, .L18+24
	add	r3, r3, r3, lsl #1
	ldr	r3, [r1, r3, lsl #3]
	ldr	r2, [r2]
	mov	r1, sp
	ldr	r0, [r3, r2, lsl #2]
	mov	r2, #4
	bl	write_mem32
	ldr	r3, [r5]
	ldr	r1, [r4, #8]
	ldr	r2, .L18+28
	add	r3, r3, r3, lsl #1
	ldr	r3, [r1, r3, lsl #3]
	ldr	r2, [r2]
	mov	r1, sp
	ldr	r0, [r3, r2, lsl #2]
	mov	r2, #4
	bl	write_mem32
	ldr	r3, .L18+32
	ldr	r2, .L18+36
	ldr	r1, .L18+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	orr	r3, r3, r2
	ldr	r1, [r4, #4]
	orr	r0, r3, r0
	bl	writew
	ldr	r0, .L18+44
	bl	DBG1
	mov	r0, #1
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r0, .L18+48
	bl	DBG1
	mov	r0, r4
	bl	setup_memory
	ldr	r5, .L18+16
	ldr	r3, .L18+52
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r3, [r4, #8]
	add	r2, r2, r2, lsl #1
	add	r0, r0, r0, lsl #1
	ldr	r1, [r4, #32]
	ldr	ip, [r4, #28]
	add	r2, r3, r2, lsl #3
	add	r0, r3, r0, lsl #3
	ldr	r3, [r4, #24]
	str	r1, [r2, #20]
	str	ip, [r2, #16]
	str	r3, [r0, #16]
	ldr	r2, [r2, #16]
	ldr	r0, .L18+56
	ldr	r7, .L18+60
	bl	DBG1
	mov	r0, r4
	bl	dump_table
	ldr	r10, [r5]
	ldr	r3, [r7]
	cmp	r10, r3
	bge	.L6
	mov	r5, #0
	add	r6, r10, r10, lsl #1
	ldr	r9, .L18+64
	ldr	r8, .L18+68
	lsl	r6, r6, #3
.L7:
	mov	r2, #0
	ldr	r1, [r9]
	ldr	r0, [r8]
	ldr	fp, [r4, #8]
	bl	kfifo_alloc
	ldr	r3, [r4, #8]
	add	fp, fp, r6
	add	r3, r3, r6
	str	r0, [fp, #12]
	strb	r5, [r3, #8]
	strb	r5, [r3, #9]
	strb	r5, [r3, #10]
	strb	r5, [r3, #11]
	ldr	r3, [r4, #8]
	ldr	r2, [r7]
	add	r10, r10, #1
	add	r3, r3, r6
	cmp	r2, r10
	strb	r5, [r3, #4]
	add	r6, r6, #24
	strb	r5, [r3, #5]
	strb	r5, [r3, #6]
	strb	r5, [r3, #7]
	bgt	.L7
.L6:
	ldr	r3, .L18+72
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #44]
	orr	r0, r0, r3
	str	r0, [r4]
	bl	writew
	ldr	r3, .L18+76
	ldr	r0, [r4, #36]
	ldr	r3, [r3]
	ldr	r1, .L18+80
	str	r3, [r4, #40]
	bl	dev_info
	mov	r0, #1
	b	.L1
.L16:
	ldr	r0, [r4, #36]
	ldr	r1, .L18+84
	bl	dev_err
	mov	r0, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	CONFIG_MAGIC
	.word	TOGGLE_VALID
	.word	.LC4
	.word	PORT_MDM
	.word	.LC5
	.word	CH_A
	.word	CH_B
	.word	MDM_UL
	.word	DIAG_DL
	.word	MDM_DL
	.word	.LC6
	.word	.LC1
	.word	PORT_DIAG
	.word	.LC2
	.word	MAX_PORT
	.word	GFP_ATOMIC
	.word	FIFO_BUFFER_SIZE_UL
	.word	CTRL_DL
	.word	NOZOMI_STATE_ALLOCATED
	.word	.LC3
	.word	.LC0
	.size	nozomi_read_config_table, .-nozomi_read_config_table
	.comm	TOGGLE_VALID,4,4
	.comm	PORT_MDM,4,4
	.comm	PORT_DIAG,4,4
	.comm	NOZOMI_STATE_ALLOCATED,4,4
	.comm	MDM_UL,4,4
	.comm	MDM_DL,4,4
	.comm	MAX_PORT,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	FIFO_BUFFER_SIZE_UL,4,4
	.comm	DIAG_DL,4,4
	.comm	CTRL_DL,4,4
	.comm	CONFIG_MAGIC,4,4
	.comm	CH_B,4,4
	.comm	CH_A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
