	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_load_fabric               ## -- Begin function ibnd_load_fabric
	.p2align	4, 0x90
_ibnd_load_fabric:                      ## @ibnd_load_fabric
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_allocate_fabric_internal
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movq	%rax, 8(%r12)
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__load_header_info
	testq	%rax, %rax
	js	LBB0_8
## %bb.12:
	cmpl	$0, -40(%rbp)
	je	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__load_node
	testq	%rax, %rax
	js	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	-40(%rbp), %ebx
	jb	LBB0_14
LBB0_16:
	cmpl	$0, -36(%rbp)
	je	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	__load_port
	testq	%rax, %rax
	js	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incl	%ebx
	cmpl	-36(%rbp), %ebx
	jb	LBB0_19
LBB0_20:
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	__find_node
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	__rebuild_nodes
	testq	%rax, %rax
	js	LBB0_8
## %bb.23:
	movq	%r12, %rdi
	callq	__rebuild_ports
	testq	%rax, %rax
	js	LBB0_8
## %bb.24:
	movq	%r15, %rdi
	callq	_group_nodes
	testq	%rax, %rax
	jne	LBB0_8
## %bb.25:
	movq	%r12, %rdi
	callq	__destroy_ibnd_fabric_cache
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_26
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IBND_DEBUG
	jmp	LBB0_26
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IBND_DEBUG
	jmp	LBB0_26
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%eax, %eax
	callq	_IBND_DEBUG
LBB0_8:
	movq	%r15, %rdi
	callq	_ibnd_destroy_fabric
	movq	%r12, %rdi
	callq	__destroy_ibnd_fabric_cache
	movl	%r14d, %edi
	callq	_close
	xorl	%r15d, %r15d
LBB0_26:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file parameter NULL\n"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"OOM: fabric_cache\n"

L_.str.3:                               ## @.str.3
	.asciz	"OOM: fabric\n"

L_.str.4:                               ## @.str.4
	.asciz	"Cache invalid: cannot find from node\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibnd_load_fabric               ; -- Begin function ibnd_load_fabric
	.p2align	2
_ibnd_load_fabric:                      ; @ibnd_load_fabric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	str	xzr, [sp, #8]
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_19
; %bb.2:
	mov	x19, x0
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	bl	_allocate_fabric_internal
	mov	x21, x0
	cbz	x0, LBB0_22
; %bb.4:
	str	x21, [x20, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	__load_header_info
	tbnz	x0, #63, LBB0_24
; %bb.5:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.6:
	mov	w22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__load_node
	tbnz	x0, #63, LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #12]
	cmp	w22, w8
	b.lo	LBB0_7
LBB0_9:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_13
; %bb.10:
	mov	w22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__load_port
	tbnz	x0, #63, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldr	w8, [sp, #8]
	cmp	w22, w8
	b.lo	LBB0_11
LBB0_13:
	ldr	w1, [x20]
	mov	x0, x20
	bl	__find_node
	cbz	x0, LBB0_27
; %bb.14:
	ldr	w8, [x0]
	str	w8, [x21]
	mov	x0, x20
	bl	__rebuild_nodes
	tbnz	x0, #63, LBB0_24
; %bb.15:
	mov	x0, x20
	bl	__rebuild_ports
	tbnz	x0, #63, LBB0_24
; %bb.16:
	mov	x0, x21
	bl	_group_nodes
	cbnz	x0, LBB0_24
; %bb.17:
	mov	x0, x20
	bl	__destroy_ibnd_fabric_cache
	mov	x0, x19
	bl	_close
	b	LBB0_26
LBB0_18:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_20:
	bl	_IBND_DEBUG
	b	LBB0_25
LBB0_21:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IBND_DEBUG
	mov	x21, #0
	b	LBB0_24
LBB0_22:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_23:
	bl	_IBND_DEBUG
LBB0_24:
	mov	x0, x21
	bl	_ibnd_destroy_fabric
	mov	x0, x20
	bl	__destroy_ibnd_fabric_cache
	mov	x0, x19
	bl	_close
LBB0_25:
	mov	x21, #0
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_27:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file parameter NULL\n"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"OOM: fabric_cache\n"

l_.str.3:                               ; @.str.3
	.asciz	"OOM: fabric\n"

l_.str.4:                               ; @.str.4
	.asciz	"Cache invalid: cannot find from node\n"

.subsections_via_symbols
