	.file	"extr_ethsw.c_port_fdb_dump.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dma_map_single() failed\n"
.LC1:
	.string	"dpsw_fdb_dump() = %d\n"
	.text
	.p2align 4
	.type	port_fdb_dump, @function
port_fdb_dump:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR [rsp], r8
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rcx
	xor	ecx, ecx
	call	netdev_priv@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r15, QWORD PTR [r12]
	mov	r13, QWORD PTR [rax]
	mov	rbx, rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 40[rsp], r14
	mov	QWORD PTR 48[rsp], rbp
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR 56[rsp], r12
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 8[r13]
	lea	r14d, 0[0+rax*4]
	mov	edi, r14d
	call	kzalloc@PLT
	test	rax, rax
	je	.L18
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, r14d
	mov	rsi, rax
	mov	rdi, r15
	mov	rbp, rax
	call	dma_map_single@PLT
	mov	rdi, r15
	mov	esi, eax
	mov	DWORD PTR 12[rsp], eax
	call	dma_mapping_error@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	rax, rax
	jne	.L19
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	edi, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 0[r13]
	xor	ecx, ecx
	lea	rax, 36[rsp]
	xor	esi, esi
	mov	r9d, r14d
	push	rax
	.cfi_def_cfa_offset 160
	mov	DWORD PTR 28[rsp], r8d
	call	dpsw_fdb_dump@PLT
	pop	rdx
	.cfi_def_cfa_offset 152
	pop	rcx
	.cfi_def_cfa_offset 144
	test	eax, eax
	mov	r8d, DWORD PTR 12[rsp]
	mov	r13d, eax
	jne	.L20
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, r14d
	mov	esi, r8d
	mov	rdi, r15
	call	dma_unmap_single@PLT
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jle	.L7
	xor	r15d, r15d
	lea	r12, 24[rsp]
	lea	r14, 32[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 0[rbp+r15*4]
	mov	rsi, rbx
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], eax
	call	port_fdb_valid_entry@PLT
	test	eax, eax
	je	.L10
	mov	rsi, r14
	mov	rdi, r12
	call	ethsw_fdb_do_dump@PLT
	test	eax, eax
	jne	.L7
.L10:
	add	r15, 1
	cmp	DWORD PTR 28[rsp], r15d
	jg	.L9
.L7:
	mov	eax, DWORD PTR 32[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	rdi, rbp
	mov	DWORD PTR [rcx], eax
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netdev_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, eax
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	DWORD PTR [rsp], r8d
	call	netdev_err@PLT
	mov	r8d, DWORD PTR [rsp]
	mov	edx, r14d
	mov	rdi, r15
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	esi, r8d
	call	dma_unmap_single@PLT
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	port_fdb_dump, .-port_fdb_dump
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,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_ethsw.c_port_fdb_dump.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma_map_single() failed\012\000"
	.align	2
.LC1:
	.ascii	"dpsw_fdb_dump() = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	port_fdb_dump, %function
port_fdb_dump:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #52
	mov	r6, r0
	mov	r0, r2
	mov	r5, r2
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	fp, [sp, #88]
	bl	netdev_priv
	ldr	r8, [r0]
	ldr	r2, .L22+4
	ldr	r7, [r8, #8]
	ldr	r3, [fp]
	lsl	r7, r7, #2
	mov	r4, r0
	ldr	r1, [r2]
	mov	r0, r7
	str	r6, [sp, #36]
	ldr	r10, [r5]
	str	r9, [sp, #32]
	str	r5, [sp, #40]
	str	r3, [sp, #28]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L18
	ldr	r3, .L22+8
	mov	r2, r7
	ldr	r3, [r3]
	mov	r1, r6
	mov	r0, r10
	bl	dma_map_single
	mov	r9, r0
	mov	r0, r10
	mov	r1, r9
	bl	dma_mapping_error
	subs	r3, r0, #0
	bne	.L19
	add	r1, sp, #24
	ldr	r2, [r8]
	ldr	r0, [r8, #4]
	str	r1, [sp, #8]
	str	r7, [sp, #4]
	mov	r1, r3
	str	r9, [sp]
	bl	dpsw_fdb_dump
	subs	r8, r0, #0
	bne	.L20
	ldr	r3, .L22+8
	mov	r2, r7
	ldr	r3, [r3]
	mov	r1, r9
	mov	r0, r10
	bl	dma_unmap_single
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ble	.L7
	mov	r5, r8
	sub	r7, r6, #4
.L9:
	ldr	r3, [r7, #4]!
	mov	r1, r4
	add	r0, sp, #20
	str	r3, [sp, #20]
	bl	port_fdb_valid_entry
	cmp	r0, #0
	beq	.L10
	add	r1, sp, #28
	add	r0, sp, #20
	bl	ethsw_fdb_do_dump
	cmp	r0, #0
	bne	.L7
.L10:
	ldr	r3, [sp, #24]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L9
.L7:
	ldr	r3, [sp, #28]
	mov	r0, r6
	str	r3, [fp]
	bl	kfree
	b	.L1
.L19:
	mov	r0, r5
	ldr	r1, .L22+12
	bl	netdev_err
	ldr	r3, .L22+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
.L5:
	mov	r0, r6
	bl	kfree
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r8
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L22+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L20:
	mov	r2, r8
	mov	r0, r5
	ldr	r1, .L22+20
	bl	netdev_err
	ldr	r3, .L22+24
	mov	r2, r7
	mov	r1, r9
	mov	r0, r10
	ldr	r3, [r3]
	bl	dma_unmap_single
	b	.L5
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	GFP_KERNEL
	.word	DMA_FROM_DEVICE
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	DMA_TO_DEVICE
	.size	port_fdb_dump, .-port_fdb_dump
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
