	.file	"extr_qlge_dbg.c_ql_get_mac_protocol_registers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Bad type!!! 0x%08x\n"
	.text
	.p2align 4
	.type	ql_get_mac_protocol_registers, @function
ql_get_mac_protocol_registers:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR MAC_ADDR_RS[rip]
	mov	ecx, DWORD PTR MAC_ADDR_TYPE_COUNT[rip]
	mov	DWORD PTR 4[rsp], eax
	test	ecx, ecx
	jle	.L1
	mov	rbx, rdi
	mov	r12, rsi
	xor	r14d, r14d
.L19:
	cmp	r14d, 9
	ja	.L3
	lea	rcx, .L5[rip]
	mov	eax, r14d
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L12-.L5
	.long	.L11-.L5
	.long	.L11-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L11:
	mov	eax, DWORD PTR MAC_ADDR_MAX_CAM_WCOUNT[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], eax
.L13:
	mov	edx, DWORD PTR 16[rsp]
	test	edx, edx
	jle	.L14
.L30:
	mov	eax, DWORD PTR 20[rsp]
	xor	r13d, r13d
	sub	eax, 1
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 8[0+rax*8]
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR 20[rsp]
	xor	ebp, ebp
	test	eax, eax
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ecx, DWORD PTR MAC_ADDR_TYPE_SHIFT[rip]
	mov	edx, r14d
	mov	eax, r13d
	mov	rdi, rbx
	mov	esi, DWORD PTR MAC_ADDR_IDX[rip]
	sal	edx, cl
	mov	ecx, DWORD PTR MAC_ADDR_IDX_SHIFT[rip]
	or	edx, DWORD PTR 4[rsp]
	sal	eax, cl
	or	edx, eax
	or	edx, ebp
	call	ql_write32@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR MAC_ADDR_IDX[rip]
	mov	rdi, rbx
	call	ql_read32@PLT
	mov	r15d, eax
	test	DWORD PTR MAC_ADDR_MR[rip], eax
	je	.L16
	mov	esi, DWORD PTR MAC_ADDR_DATA[rip]
	mov	rdi, rbx
	call	ql_read32@PLT
	mov	DWORD PTR [r12+rbp*8], r15d
	mov	DWORD PTR 4[r12+rbp*8], eax
	lea	rax, 1[rbp]
	cmp	rbp, QWORD PTR 8[rsp]
	je	.L29
	mov	rbp, rax
	jmp	.L17
.L12:
	mov	eax, DWORD PTR MAC_ADDR_MAX_CAM_ENTRIES[rip]
	mov	ecx, DWORD PTR MAC_ADDR_ADR[rip]
	or	DWORD PTR 4[rsp], ecx
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_CAM_WCOUNT[rip]
	mov	edx, DWORD PTR 16[rsp]
	mov	DWORD PTR 20[rsp], eax
	test	edx, edx
	jg	.L30
.L14:
	add	r14d, 1
	cmp	DWORD PTR MAC_ADDR_TYPE_COUNT[rip], r14d
	jg	.L19
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_TU_DP_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
.L6:
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_V6_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_V6_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
.L7:
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_V4_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_V4_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
.L8:
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_VLAN_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_VLAN_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
.L9:
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_MAC_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_MGMT_MAC_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
.L10:
	mov	eax, DWORD PTR MAC_ADDR_MAX_FC_MAC_ENTRIES[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR MAC_ADDR_MAX_FC_MAC_WCOUNT[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L29:
	add	r12, QWORD PTR 24[rsp]
.L18:
	add	r13d, 1
	cmp	DWORD PTR 16[rsp], r13d
	jne	.L15
	add	r14d, 1
	cmp	DWORD PTR MAC_ADDR_TYPE_COUNT[rip], r14d
	jg	.L19
	jmp	.L1
.L3:
	mov	esi, r14d
	lea	rdi, .LC0[rip]
	add	r14d, 1
	call	pr_err@PLT
	cmp	DWORD PTR MAC_ADDR_TYPE_COUNT[rip], r14d
	jg	.L19
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ql_get_mac_protocol_registers, .-ql_get_mac_protocol_registers
	.comm	MAC_ADDR_TYPE_SHIFT,4,4
	.comm	MAC_ADDR_TYPE_COUNT,4,4
	.comm	MAC_ADDR_RS,4,4
	.comm	MAC_ADDR_MR,4,4
	.comm	MAC_ADDR_MAX_MGMT_VLAN_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_VLAN_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_V6_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_V6_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_V4_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_V4_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_TU_DP_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_MAC_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_MAC_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_FC_MAC_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_FC_MAC_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_CAM_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_CAM_ENTRIES,4,4
	.comm	MAC_ADDR_IDX_SHIFT,4,4
	.comm	MAC_ADDR_IDX,4,4
	.comm	MAC_ADDR_DATA,4,4
	.comm	MAC_ADDR_ADR,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_qlge_dbg.c_ql_get_mac_protocol_registers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Bad type!!! 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_get_mac_protocol_registers, %function
ql_get_mac_protocol_registers:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L28
	ldr	r3, .L28+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #36
	cmp	r2, #0
	str	r1, [sp, #20]
	str	r3, [sp, #16]
	ble	.L1
	mov	r3, #0
	mov	r4, r0
	ldr	r9, .L28+8
	ldr	r10, .L28+12
	ldr	fp, .L28+16
	ldr	r5, .L28+20
	str	r3, [sp, #12]
.L20:
	ldr	r3, [sp, #12]
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L12
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L11:
	ldr	r3, .L28+24
	ldr	r3, [r3]
	str	r3, [sp, #24]
	str	r3, [sp, #8]
.L13:
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [sp, #8]
	lsl	r3, r3, #3
	str	r3, [sp, #28]
	mov	r3, #0
	str	r3, [sp, #4]
.L15:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ble	.L19
	mov	r7, #0
	ldr	r3, [sp, #20]
	add	r6, r3, #8
.L17:
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	ldr	r2, [r9]
	ldr	r3, [r10]
	orr	r2, r1, r0, lsl r2
	ldr	r1, [sp, #4]
	mov	r0, r4
	orr	r2, r2, r1, lsl r3
	orr	r2, r2, r7
	ldr	r1, [fp]
	bl	ql_write32
.L16:
	mov	r0, r4
	ldr	r1, [fp]
	bl	ql_read32
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L16
	ldr	r3, .L28+28
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	ql_read32
	ldr	r3, [sp, #8]
	add	r7, r7, #1
	cmp	r3, r7
	str	r0, [r6, #-4]
	str	r8, [r6, #-8]
	add	r6, r6, #8
	bne	.L17
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #28]
	add	r3, r3, r2
	str	r3, [sp, #20]
.L19:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #24]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #4]
	bne	.L15
.L14:
	ldr	r3, .L28
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	add	r2, r2, #1
	cmp	r3, r2
	str	r2, [sp, #12]
	bgt	.L20
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L28+32
	ldr	r2, .L28+36
	ldr	r1, [r3]
	ldr	r3, .L28+24
	ldr	r0, [sp, #16]
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r1, r0, r1
	str	r1, [sp, #16]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L4:
	ldr	r2, .L28+40
	ldr	r3, .L28+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L6:
	ldr	r2, .L28+48
	ldr	r3, .L28+52
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L7:
	ldr	r2, .L28+56
	ldr	r3, .L28+60
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L8:
	ldr	r2, .L28+64
	ldr	r3, .L28+68
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L9:
	ldr	r2, .L28+72
	ldr	r3, .L28+76
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L10:
	ldr	r2, .L28+80
	ldr	r3, .L28+84
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	b	.L13
.L3:
	ldr	r1, [sp, #12]
	ldr	r0, .L28+88
	bl	pr_err
	b	.L14
.L29:
	.align	2
.L28:
	.word	MAC_ADDR_TYPE_COUNT
	.word	MAC_ADDR_RS
	.word	MAC_ADDR_TYPE_SHIFT
	.word	MAC_ADDR_IDX_SHIFT
	.word	MAC_ADDR_IDX
	.word	MAC_ADDR_MR
	.word	MAC_ADDR_MAX_CAM_WCOUNT
	.word	MAC_ADDR_DATA
	.word	MAC_ADDR_ADR
	.word	MAC_ADDR_MAX_CAM_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_TU_DP_WCOUNT
	.word	MAC_ADDR_MAX_MGMT_V6_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_V6_WCOUNT
	.word	MAC_ADDR_MAX_MGMT_V4_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_V4_WCOUNT
	.word	MAC_ADDR_MAX_MGMT_VLAN_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_VLAN_WCOUNT
	.word	MAC_ADDR_MAX_MGMT_MAC_ENTRIES
	.word	MAC_ADDR_MAX_MGMT_MAC_WCOUNT
	.word	MAC_ADDR_MAX_FC_MAC_ENTRIES
	.word	MAC_ADDR_MAX_FC_MAC_WCOUNT
	.word	.LC0
	.size	ql_get_mac_protocol_registers, .-ql_get_mac_protocol_registers
	.comm	MAC_ADDR_TYPE_SHIFT,4,4
	.comm	MAC_ADDR_TYPE_COUNT,4,4
	.comm	MAC_ADDR_RS,4,4
	.comm	MAC_ADDR_MR,4,4
	.comm	MAC_ADDR_MAX_MGMT_VLAN_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_VLAN_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_V6_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_V6_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_V4_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_V4_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_TU_DP_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_TU_DP_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_MGMT_MAC_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_MGMT_MAC_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_FC_MAC_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_FC_MAC_ENTRIES,4,4
	.comm	MAC_ADDR_MAX_CAM_WCOUNT,4,4
	.comm	MAC_ADDR_MAX_CAM_ENTRIES,4,4
	.comm	MAC_ADDR_IDX_SHIFT,4,4
	.comm	MAC_ADDR_IDX,4,4
	.comm	MAC_ADDR_DATA,4,4
	.comm	MAC_ADDR_ADR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
