	.file	"extr_ibnetdisc_cache.c__rebuild_ports.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cache invalid: cannot find node\n"
	.align 8
.LC1:
	.string	"Cache invalid: cannot find remote port\n"
	.text
	.p2align 4
	.type	_rebuild_ports, @function
_rebuild_ports:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	test	rbp, rbp
	je	.L2
	mov	r12, rdi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	QWORD PTR 0[r13], 0
.L7:
	mov	rax, QWORD PTR [r12]
	mov	rdi, r13
	mov	esi, DWORD PTR [rax]
	call	add_to_portlid_hash@PLT
	test	rbp, rbp
	je	.L2
.L8:
	mov	rbx, rbp
	mov	rdi, r12
	mov	rbp, QWORD PTR 32[rbp]
	mov	esi, DWORD PTR 24[rbx]
	mov	r13, QWORD PTR [rbx]
	call	_find_node@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR [rax]
	cmp	QWORD PTR 16[rbx], 0
	mov	DWORD PTR 8[r13], eax
	je	.L5
	lea	rsi, 8[rbx]
	mov	rdi, r12
	call	_find_port@PLT
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 0[r13], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	IBND_DEBUG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	IBND_DEBUG@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_rebuild_ports, .-_rebuild_ports
	.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_ibnetdisc_cache.c__rebuild_ports.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cache invalid: cannot find node\012\000"
	.align	2
.LC1:
	.ascii	"Cache invalid: cannot find remote port\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rebuild_ports, %function
_rebuild_ports:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #4]
	cmp	r5, #0
	beq	.L2
	mov	r7, r0
	b	.L8
.L7:
	ldr	r3, [r7]
	mov	r0, r6
	ldr	r1, [r3]
	bl	add_to_portlid_hash
	cmp	r5, #0
	beq	.L2
.L8:
	mov	r4, r5
	ldr	r1, [r5, #12]
	mov	r0, r7
	ldr	r5, [r5, #16]
	ldr	r6, [r4]
	bl	_find_node
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r4, #8]
	ldr	r2, [r0]
	cmp	r3, #0
	str	r2, [r6, #4]
	streq	r3, [r6]
	beq	.L7
	mov	r0, r7
	add	r1, r4, #4
	bl	_find_port
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r0]
	str	r3, [r6]
	b	.L7
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, .L17
	bl	IBND_DEBUG
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r0, .L17+4
	bl	IBND_DEBUG
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.size	_rebuild_ports, .-_rebuild_ports
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
