	.file	"extr_qlogicfas408.c_ql_icmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_icmd, @function
ql_icmd:
.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
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	get_priv_by_cmd@PLT
	mov	ebx, DWORD PTR [rax]
	mov	QWORD PTR 24[rax], 0
	mov	r13, rax
	lea	r12d, 5[rbx]
	mov	edi, r12d
	call	inb@PLT
	mov	edi, r12d
	call	inb@PLT
	test	eax, eax
	je	.L2
	lea	r14d, 3[rbx]
	mov	edi, 2
	mov	esi, r14d
	call	outb@PLT
	lea	eax, 7[rbx]
	mov	DWORD PTR 8[rsp], eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, r12d
	call	inb@PLT
	test	eax, eax
	jne	.L4
	lea	r15d, 8[rbx]
	mov	edi, 1
	mov	esi, r15d
	call	outb@PLT
	lea	esi, 11[rbx]
	xor	edi, edi
	mov	DWORD PTR 12[rsp], esi
	call	outb@PLT
	mov	edi, r15d
	call	inb@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, 64
	call	outb@PLT
	mov	edi, DWORD PTR qlcfgc[rip]
	lea	esi, 12[rbx]
	call	outb@PLT
	mov	edi, DWORD PTR qlcfg8[rip]
	or	edi, DWORD PTR 8[r13]
	mov	esi, r15d
	or	edi, 64
	call	outb@PLT
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR qlcfg7[rip]
	call	outb@PLT
	mov	edi, DWORD PTR qlcfg6[rip]
	lea	esi, 6[rbx]
	call	outb@PLT
	mov	edi, DWORD PTR qlcfg5[rip]
	mov	esi, r12d
	lea	r12d, 2[rbx]
	call	outb@PLT
	mov	edi, DWORD PTR qlcfg9[rip]
	lea	esi, 9[rbx]
	and	edi, 7
	call	outb@PLT
	mov	rdi, rbp
	call	scmd_id@PLT
	lea	esi, 4[rbx]
	xor	ebx, ebx
	mov	edi, eax
	call	outb@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	mov	esi, r12d
	add	ebx, 1
	mov	edi, DWORD PTR [rax+rdx*4]
	call	outb@PLT
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L6
.L7:
	mov	QWORD PTR 16[r13], rbp
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r14d
	mov	edi, 65
	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
	jmp	outb@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	eax, 7[rbx]
	lea	r14d, 3[rbx]
	mov	edi, eax
	mov	DWORD PTR 8[rsp], eax
	call	inb@PLT
	test	al, 31
	je	.L4
	mov	esi, r14d
	mov	edi, 1
	call	outb@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ql_icmd, .-ql_icmd
	.comm	qlcfgc,4,4
	.comm	qlcfg9,4,4
	.comm	qlcfg8,4,4
	.comm	qlcfg7,4,4
	.comm	qlcfg6,4,4
	.comm	qlcfg5,4,4
	.comm	REG1,4,4
	.comm	REG0,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_qlogicfas408.c_ql_icmd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_icmd, %function
ql_icmd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	get_priv_by_cmd
	mov	r3, #0
	ldr	r6, [r0]
	str	r3, [r0, #16]
	add	r9, r6, #5
	mov	r7, r0
	mov	r0, r9
	bl	inb
	mov	r0, r9
	bl	inb
	cmp	r0, #0
	beq	.L2
	add	r8, r6, #3
	mov	r1, r8
	mov	r0, #2
	bl	outb
	add	r3, r6, #7
	str	r3, [sp, #4]
.L4:
	mov	r0, r9
	bl	inb
	subs	r4, r0, #0
	bne	.L4
	add	r10, r6, #8
	add	fp, r6, #11
	mov	r1, r10
	mov	r0, #1
	bl	outb
	mov	r1, fp
	mov	r0, r4
	bl	outb
	mov	r0, r10
	bl	inb
	mov	r1, fp
	mov	r0, #64
	bl	outb
	ldr	r2, .L15
	add	r1, r6, #12
	ldr	r0, [r2]
	bl	outb
	ldr	r1, .L15+4
	ldr	r2, [r7, #8]
	ldr	r0, [r1]
	mov	r1, r10
	orr	r0, r0, r2
	orr	r0, r0, #64
	bl	outb
	ldr	r3, .L15+8
	ldr	r1, [sp, #4]
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L15+12
	add	r1, r6, #6
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L15+16
	mov	r1, r9
	ldr	r0, [r3]
	bl	outb
	ldr	r3, .L15+20
	add	r1, r6, #9
	ldr	r0, [r3]
	and	r0, r0, #7
	bl	outb
	mov	r0, r5
	bl	scmd_id
	add	r1, r6, #4
	bl	outb
	ldr	r3, [r5]
	cmp	r3, #0
	addne	r6, r6, #2
	beq	.L7
.L6:
	ldr	r3, [r5, #4]
	mov	r1, r6
	ldr	r0, [r3, r4, lsl #2]
	bl	outb
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L6
.L7:
	mov	r1, r8
	mov	r0, #65
	str	r5, [r7, #12]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	outb
.L2:
	add	r3, r6, #7
	mov	r0, r3
	str	r3, [sp, #4]
	bl	inb
	tst	r0, #31
	add	r8, r6, #3
	beq	.L4
	mov	r1, r8
	mov	r0, #1
	bl	outb
	b	.L4
.L16:
	.align	2
.L15:
	.word	qlcfgc
	.word	qlcfg8
	.word	qlcfg7
	.word	qlcfg6
	.word	qlcfg5
	.word	qlcfg9
	.size	ql_icmd, .-ql_icmd
	.comm	qlcfgc,4,4
	.comm	qlcfg9,4,4
	.comm	qlcfg8,4,4
	.comm	qlcfg7,4,4
	.comm	qlcfg6,4,4
	.comm	qlcfg5,4,4
	.comm	REG1,4,4
	.comm	REG0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
