	.file	"extr_ql4_isr.c_qla4xxx_process_aen.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"qla4xxx(%ld): AEN[%d]=0x%08x, mbx1=0x%08x mbx2=0x%08x mbx3=0x%08x mbx4=0x%08x\n"
	.align 8
.LC1:
	.string	"scsi%ld: AEN[%d] %04x, index [%d] state=%04x FLUSHED!\n"
	.text
	.p2align 4
	.globl	qla4xxx_process_aen
	.type	qla4xxx_process_aen, @function
qla4xxx_process_aen:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	DWORD PTR -80[rbp], esi
	mov	rbx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MBOX_AEN_REG_COUNT[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L24
.L4:
	mov	rbx, rsp
	lea	r13, 16[r12]
	.p2align 4,,10
	.p2align 3
.L21:
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rcx, QWORD PTR [r12]
	cmp	rcx, QWORD PTR 8[r12]
	je	.L5
	mov	rax, QWORD PTR 32[r12]
	lea	rdx, [rax+rcx*8]
	mov	eax, DWORD PTR MBOX_AEN_REG_COUNT[rip]
	test	eax, eax
	jle	.L6
	mov	rdi, QWORD PTR [rdx]
	lea	esi, -1[rax]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR [rdi+rax*4]
	mov	DWORD PTR [rbx+rax*4], edx
	mov	rdx, rax
	add	rax, 1
	cmp	rdx, rsi
	jne	.L7
.L6:
	movsx	rax, DWORD PTR MAX_AEN_ENTRIES[rip]
	add	rcx, 1
	add	DWORD PTR 24[r12], 1
	mov	rdi, r13
	cmp	rcx, rax
	mov	eax, 0
	cmove	rcx, rax
	xor	esi, esi
	mov	QWORD PTR [r12], rcx
	call	spin_unlock_irqrestore@PLT
	mov	rdx, QWORD PTR [r12]
	mov	r11d, DWORD PTR 16[rbx]
	mov	r14d, DWORD PTR 12[rbx]
	mov	r15d, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR [rbx]
	test	rdx, rdx
	je	.L9
	sub	edx, 1
.L10:
	push	r11
	mov	esi, DWORD PTR 20[r12]
	mov	r9d, r15d
	xor	eax, eax
	push	r14
	lea	rdi, .LC0[rip]
	mov	DWORD PTR -76[rbp], r11d
	mov	DWORD PTR -72[rbp], r8d
	mov	DWORD PTR -68[rbp], ecx
	call	printk@PLT
	mov	edi, eax
	call	DEBUG2@PLT
	mov	ecx, DWORD PTR -68[rbp]
	pop	rax
	mov	r8d, DWORD PTR -72[rbp]
	mov	r11d, DWORD PTR -76[rbp]
	cmp	ecx, 129
	pop	rdx
	jne	.L21
	cmp	DWORD PTR -80[rbp], 130
	je	.L25
	cmp	r8d, 1
	jne	.L21
	mov	ecx, r11d
	mov	edx, r14d
	mov	esi, r15d
	mov	rdi, r12
	call	qla4xxx_process_ddb_changed@PLT
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR MAX_AEN_ENTRIES[rip]
	lea	edx, -1[rax]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L25:
	.cfi_restore_state
	mov	esi, DWORD PTR 20[r12]
	mov	edx, DWORD PTR [r12]
	mov	r9d, r14d
	mov	r8d, r15d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printk@PLT
	mov	edi, eax
	call	DEBUG2@PLT
	jmp	.L21
.L24:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qla4xxx_process_aen, .-qla4xxx_process_aen
	.comm	MBOX_AEN_REG_COUNT,4,4
	.comm	MAX_AEN_ENTRIES,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_ql4_isr.c_qla4xxx_process_aen.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qla4xxx(%ld): AEN[%d]=0x%08x, mbx1=0x%08x mbx2=0x%0"
	.ascii	"8x mbx3=0x%08x mbx4=0x%08x\012\000"
	.align	2
.LC1:
	.ascii	"scsi%ld: AEN[%d] %04x, index [%d] state=%04x FLUSHE"
	.ascii	"D!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	qla4xxx_process_aen
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla4xxx_process_aen, %function
qla4xxx_process_aen:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r2, r1
	mov	r4, r0
	ldr	r3, .L20
	add	r6, r0, #8
	ldr	r3, [r3]
	str	r2, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L20+4
	mov	r0, r6
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	spin_lock_irqsave
	ldr	ip, [r4]
	ldr	r3, [r4, #4]
	cmp	r3, ip
	beq	.L2
	ldr	r10, .L20+8
	add	r5, sp, #16
.L10:
	ldr	r3, .L20
	ldr	r0, [r3]
	ldr	r3, [r4, #20]
	cmp	r0, #0
	ble	.L3
	ldr	r3, [r3, ip, lsl #2]
	sub	r2, r5, #4
	add	r0, r3, r0, lsl #2
	sub	r0, r0, #4
	sub	r3, r3, #4
.L4:
	ldr	r1, [r3, #4]!
	cmp	r3, r0
	str	r1, [r2, #4]!
	bne	.L4
.L3:
	ldr	r3, [r10]
	add	r2, ip, #1
	cmp	r2, r3
	movne	r1, r2
	moveq	r1, #0
	ldr	r3, [r4, #16]
	str	r1, [r4]
	add	r3, r3, #1
	mov	r1, #0
	str	r3, [r4, #16]
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldm	r5, {r3, r7, r9}
	ldr	r2, [r4]
	ldr	r0, [r5, #16]
	cmp	r2, #0
	ldr	r8, [r5, #12]
	ldreq	r2, [r10]
	ldr	r1, [r4, #12]
	sub	r2, r2, #1
	str	r0, [fp, #-52]
	str	r0, [sp, #12]
	str	r7, [sp]
	ldr	r0, .L20+12
	str	r8, [sp, #8]
	str	r9, [sp, #4]
	str	r3, [fp, #-48]
	bl	printk
	bl	DEBUG2
	ldr	r3, [fp, #-48]
	cmp	r3, #129
	beq	.L17
.L8:
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	ip, [r4]
	ldr	r3, [r4, #4]
	cmp	ip, r3
	bne	.L10
.L2:
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r2, [fp, #-56]
	cmp	r2, #130
	beq	.L19
	cmp	r7, #1
	bne	.L8
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	ldr	r3, [fp, #-52]
	bl	qla4xxx_process_ddb_changed
	b	.L8
.L19:
	str	r8, [sp, #4]
	str	r9, [sp]
	ldr	r2, [r4]
	ldr	r1, [r4, #12]
	ldr	r0, .L20+16
	bl	printk
	bl	DEBUG2
	b	.L8
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	MBOX_AEN_REG_COUNT
	.word	.LC2
	.word	MAX_AEN_ENTRIES
	.word	.LC0
	.word	.LC1
	.size	qla4xxx_process_aen, .-qla4xxx_process_aen
	.comm	MBOX_AEN_REG_COUNT,4,4
	.comm	MAX_AEN_ENTRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
