	.file	"extr_ibnetdisc_cache.c_ibnd_load_fabric.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"file parameter NULL\n"
.LC1:
	.string	"open: %s\n"
.LC2:
	.string	"OOM: fabric_cache\n"
.LC3:
	.string	"OOM: fabric\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Cache invalid: cannot find from node\n"
	.text
	.p2align 4
	.globl	ibnd_load_fabric
	.type	ibnd_load_fabric, @function
ibnd_load_fabric:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], 0
	test	rdi, rdi
	je	.L18
	mov	esi, DWORD PTR O_RDONLY[rip]
	call	open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L19
	mov	edi, 16
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L20
	mov	edx, 16
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	xor	eax, eax
	call	allocate_fabric_internal@PLT
	mov	r13, rax
	test	rax, rax
	je	.L21
	mov	QWORD PTR 8[rbp], rax
	lea	rcx, 4[rsp]
	mov	rdx, rsp
	mov	rsi, rbp
	mov	edi, r12d
	call	_load_header_info@PLT
	test	rax, rax
	js	.L6
	mov	edx, DWORD PTR [rsp]
	test	edx, edx
	je	.L8
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	add	ebx, 1
	cmp	DWORD PTR [rsp], ebx
	jbe	.L8
.L9:
	mov	rsi, rbp
	mov	edi, r12d
	call	_load_node@PLT
	test	rax, rax
	jns	.L22
.L6:
	mov	rdi, r13
	xor	r14d, r14d
	call	ibnd_destroy_fabric@PLT
	mov	rdi, rbp
	call	_destroy_ibnd_fabric_cache@PLT
	mov	edi, r12d
	call	close@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L10
	xor	ebx, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	add	ebx, 1
	cmp	DWORD PTR 4[rsp], ebx
	jbe	.L10
.L11:
	mov	rsi, rbp
	mov	edi, r12d
	call	_load_port@PLT
	test	rax, rax
	jns	.L24
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	_find_node@PLT
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR [rax]
	mov	rdi, rbp
	mov	DWORD PTR 0[r13], eax
	call	_rebuild_nodes@PLT
	test	rax, rax
	js	.L6
	mov	rdi, rbp
	call	_rebuild_ports@PLT
	test	rax, rax
	js	.L6
	mov	rdi, r13
	mov	r14, r13
	call	group_nodes@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbp
	call	_destroy_ibnd_fabric_cache@PLT
	mov	edi, r12d
	call	close@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	xor	r13d, r13d
	call	IBND_DEBUG@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR errno[rip]
	xor	r14d, r14d
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	IBND_DEBUG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC0[rip]
	xor	r14d, r14d
	call	IBND_DEBUG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	IBND_DEBUG@PLT
	jmp	.L6
.L25:
	lea	rdi, .LC4[rip]
	call	IBND_DEBUG@PLT
	jmp	.L6
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ibnd_load_fabric, .-ibnd_load_fabric
	.comm	errno,4,4
	.comm	O_RDONLY,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_ibnetdisc_cache.c_ibnd_load_fabric.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"file parameter NULL\012\000"
	.align	2
.LC1:
	.ascii	"open: %s\012\000"
	.align	2
.LC2:
	.ascii	"OOM: fabric_cache\012\000"
	.align	2
.LC3:
	.ascii	"OOM: fabric\012\000"
	.align	2
.LC4:
	.ascii	"Cache invalid: cannot find from node\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ibnd_load_fabric
	.syntax unified
	.arm
	.fpu softvfp
	.type	ibnd_load_fabric, %function
ibnd_load_fabric:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, #0
	ldr	r2, .L32
	sub	sp, sp, #20
	subs	r3, r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	beq	.L24
	ldr	r3, .L32+4
	ldr	r1, [r3]
	bl	open
	subs	r6, r0, #0
	blt	.L25
	mov	r0, #8
	bl	malloc
	subs	r5, r0, #0
	beq	.L26
	mov	r2, #8
	mov	r1, r4
	bl	memset
	bl	allocate_fabric_internal
	subs	r7, r0, #0
	beq	.L27
	mov	r1, r5
	mov	r0, r6
	str	r7, [r5, #4]
	add	r3, sp, #8
	add	r2, sp, #4
	bl	_load_header_info
	cmp	r0, #0
	blt	.L6
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L9
	b	.L8
.L28:
	ldr	r3, [sp, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L8
.L9:
	mov	r1, r5
	mov	r0, r6
	bl	_load_node
	cmp	r0, #0
	bge	.L28
.L6:
	mov	r0, r7
	bl	ibnd_destroy_fabric
	mov	r0, r5
	bl	_destroy_ibnd_fabric_cache
	mov	r0, r6
	bl	close
	mov	r4, #0
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L10
	mov	r4, #0
	b	.L11
.L30:
	ldr	r3, [sp, #8]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L10
.L11:
	mov	r1, r5
	mov	r0, r6
	bl	_load_port
	cmp	r0, #0
	bge	.L30
	b	.L6
.L10:
	mov	r0, r5
	ldr	r1, [r5]
	bl	_find_node
	cmp	r0, #0
	beq	.L31
	ldr	r3, [r0]
	mov	r0, r5
	str	r3, [r7]
	bl	_rebuild_nodes
	cmp	r0, #0
	blt	.L6
	mov	r0, r5
	bl	_rebuild_ports
	cmp	r0, #0
	blt	.L6
	mov	r0, r7
	bl	group_nodes
	cmp	r0, #0
	mov	r4, r7
	bne	.L6
	mov	r0, r5
	bl	_destroy_ibnd_fabric_cache
	mov	r0, r6
	bl	close
	b	.L1
.L25:
	ldr	r3, .L32+8
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L32+12
	bl	IBND_DEBUG
	b	.L1
.L24:
	ldr	r0, .L32+16
	mov	r4, r3
	bl	IBND_DEBUG
	b	.L1
.L27:
	ldr	r0, .L32+20
	bl	IBND_DEBUG
	b	.L6
.L31:
	ldr	r0, .L32+24
	bl	IBND_DEBUG
	b	.L6
.L29:
	bl	__stack_chk_fail
.L26:
	ldr	r0, .L32+28
	bl	IBND_DEBUG
	mov	r7, r5
	b	.L6
.L33:
	.align	2
.L32:
	.word	.LC5
	.word	O_RDONLY
	.word	errno
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.size	ibnd_load_fabric, .-ibnd_load_fabric
	.comm	errno,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
