	.file	"extr_dsa2.c_dsa_tree_find_port_by_node.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dsa_tree_find_port_by_node, @function
dsa_tree_find_port_by_node:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR DSA_MAX_SWITCHES[rip]
	test	eax, eax
	jle	.L6
	mov	rcx, QWORD PTR [rdi]
	sub	eax, 1
	lea	rdi, 8[rcx+rax*8]
.L5:
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L3
	mov	rax, QWORD PTR 8[rax]
	sub	edx, 1
	lea	rdx, 8[rax+rdx*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	add	rax, 8
	cmp	rax, rdx
	je	.L3
.L4:
	mov	r8, rax
	cmp	QWORD PTR [rax], rsi
	jne	.L13
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	add	rcx, 8
	cmp	rcx, rdi
	jne	.L5
.L6:
	xor	r8d, r8d
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	dsa_tree_find_port_by_node, .-dsa_tree_find_port_by_node
	.comm	DSA_MAX_SWITCHES,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_dsa2.c_dsa_tree_find_port_by_node.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsa_tree_find_port_by_node, %function
dsa_tree_find_port_by_node:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	ldr	r6, [r3]
	cmp	r6, #0
	ble	.L6
	mov	r5, #0
	ldr	r4, [r0]
	sub	r4, r4, #4
.L5:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	beq	.L3
	ldr	lr, [r3]
	cmp	lr, #0
	ble	.L3
	mov	r2, #0
	ldr	r3, [r3, #4]
.L4:
	ldr	ip, [r3]
	mov	r0, r3
	cmp	ip, r1
	add	r2, r2, #1
	add	r3, r3, #4
	popeq	{r4, r5, r6, pc}
	cmp	r2, lr
	bne	.L4
.L3:
	add	r5, r5, #1
	cmp	r5, r6
	bne	.L5
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	DSA_MAX_SWITCHES
	.size	dsa_tree_find_port_by_node, .-dsa_tree_find_port_by_node
	.comm	DSA_MAX_SWITCHES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
