	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capture_fabric
_capture_fabric:                        ## @capture_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_OSM_LOG_ENTER
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_cl_qmap_head
	movq	%rax, %r14
	movl	$1, %eax
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r14
	movq	$0, 8(%rbx)
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_osm_node_get_type
	movq	%r14, %rbx
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_osm_node_get_num_physp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_osm_node_get_node_guid
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_alloc_fswitch
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_34
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_cl_qmap_head
	movq	%rax, %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movq	%r12, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r12
	movq	$0, 8(%r14)
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_osm_physp_is_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rdi
	callq	_osm_node_get_type
	movq	%rax, %r13
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_osm_physp_is_valid
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdi
	callq	_osm_node_get_type
	movq	_IB_NODE_TYPE_CA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	sete	%cl
	movq	_IB_NODE_TYPE_ROUTER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r13
	sete	%dl
	orb	%cl, %dl
	cmpb	$1, %dl
	jne	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdi
	callq	_osm_node_get_node_guid
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_osm_physp_get_port_num
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_build_ca_link
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_build_sw_endpoint
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %eax
	je	LBB0_34
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_6
	jmp	LBB0_20
LBB0_9:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_20:
	movq	%r13, %rdi
	callq	_cl_qmap_head
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	jne	LBB0_22
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_cl_qmap_end
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rbx
	cmpq	%rax, %rcx
	je	LBB0_35
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	%rbx, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_osm_node_get_num_physp
	testl	%eax, %eax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%eax, %r14d
	xorl	%r15d, %r15d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=2
	incl	%r15d
	cmpl	%r15d, %r14d
	je	LBB0_21
LBB0_24:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_osm_node_get_physp_ptr
	testq	%rax, %rax
	je	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_osm_physp_is_valid
	testq	%rax, %rax
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	16(%r13), %r12
	testq	%r12, %r12
	je	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r12, %rdi
	callq	_osm_physp_is_valid
	testq	%rax, %rax
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%r12, %r13
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	8(%r13), %rdi
	callq	_osm_node_get_type
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_osm_node_get_type
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%rcx, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	8(%r13), %rdi
	callq	_osm_node_get_node_guid
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_osm_physp_get_port_num
	movl	%eax, %r13d
	movq	8(%r12), %rdi
	callq	_osm_node_get_node_guid
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_osm_physp_get_port_num
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_build_link
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_31
LBB0_34:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_35:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_OSM_LOG_EXIT
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ## @IB_NODE_TYPE_SWITCH
	.comm	_IB_NODE_TYPE_CA,8,3            ## @IB_NODE_TYPE_CA
	.comm	_IB_NODE_TYPE_ROUTER,8,3        ## @IB_NODE_TYPE_ROUTER
	.no_dead_strip	_capture_fabric
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capture_fabric
_capture_fabric:                        ; @capture_fabric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x22, [x0]
	mov	x0, x22
	bl	_OSM_LOG_ENTER
	add	x20, x22, #4
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x23, x0
	mov	w21, #1
Lloh0:
	adrp	x19, _IB_NODE_TYPE_SWITCH@GOTPAGE
Lloh1:
	ldr	x19, [x19, _IB_NODE_TYPE_SWITCH@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x24, x23
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x24, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x24
	bl	_cl_qmap_next
	mov	x23, x0
	str	xzr, [x24, #8]
	ldr	x25, [x24]
	mov	x0, x25
	bl	_osm_node_get_type
	ldr	x8, [x19]
	mov	x24, x23
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_osm_node_get_num_physp
	mov	x21, x0
	mov	x0, x25
	bl	_osm_node_get_node_guid
	mov	x1, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x21
	bl	_alloc_fswitch
	mov	x21, x0
	cbnz	w0, LBB0_1
	b	LBB0_28
LBB0_5:
	add	x22, x22, #8
	mov	x0, x22
	bl	_cl_qmap_head
	mov	x23, x0
	mov	x0, x22
	bl	_cl_qmap_end
	cmp	x23, x0
	b.eq	LBB0_17
; %bb.6:
Lloh2:
	adrp	x27, _IB_NODE_TYPE_CA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _IB_NODE_TYPE_CA@GOTPAGEOFF]
Lloh4:
	adrp	x28, _IB_NODE_TYPE_ROUTER@GOTPAGE
Lloh5:
	ldr	x28, [x28, _IB_NODE_TYPE_ROUTER@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x24
	bl	_build_sw_endpoint
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x0
	cbz	w0, LBB0_28
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_cl_qmap_end
	cmp	x23, x0
	b.eq	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x23
	mov	x0, x23
	bl	_cl_qmap_next
	mov	x23, x0
	str	xzr, [x24, #8]
	ldr	x25, [x24]
	cbz	x25, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	bl	_osm_physp_is_valid
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x25, #8]
	bl	_osm_node_get_type
	ldr	x8, [x25]
	ldr	x9, [x19]
	cmp	x8, #0
	ccmp	x0, x9, #0, eq
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x25, [x25, #16]
	cbz	x25, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x26, x0
	mov	x0, x25
	bl	_osm_physp_is_valid
	cbz	x0, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x25, #8]
	bl	_osm_node_get_type
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x26, x9
	ccmp	x26, x8, #4, ne
	ldr	x8, [x19]
	ccmp	x0, x8, #0, eq
	b.ne	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x25, #8]
	bl	_osm_node_get_node_guid
	mov	x21, x0
	mov	x0, x25
	bl	_osm_physp_get_port_num
	mov	x3, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x21
	bl	_build_ca_link
	b	LBB0_8
LBB0_17:
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x22, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x22, x0
	b.ne	LBB0_19
	b	LBB0_28
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	bl	_cl_qmap_end
	mov	x22, x23
	cmp	x23, x0
	b.eq	LBB0_28
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	mov	x0, x22
	bl	_cl_qmap_next
	mov	x23, x0
	ldr	x0, [x22]
	bl	_osm_node_get_num_physp
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x24, x0
	mov	w25, #0
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=2
	add	w25, w25, #1
	cmp	w24, w25
	b.eq	LBB0_18
LBB0_22:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x22]
	mov	x1, x25
	bl	_osm_node_get_physp_ptr
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	mov	x26, x0
	bl	_osm_physp_is_valid
	cbz	x0, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x27, [x26, #16]
	cbz	x27, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=2
	mov	x0, x27
	bl	_osm_physp_is_valid
	cmp	x0, #0
	ccmp	x26, x27, #4, ne
	b.eq	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x0, [x26, #8]
	bl	_osm_node_get_type
	mov	x28, x0
	ldr	x0, [x27, #8]
	bl	_osm_node_get_type
	ldr	x8, [x19]
	cmp	x28, x8
	ccmp	x0, x8, #0, eq
	b.ne	LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x0, [x26, #8]
	bl	_osm_node_get_node_guid
	mov	x21, x0
	mov	x0, x26
	bl	_osm_physp_get_port_num
	mov	x26, x0
	ldr	x0, [x27, #8]
	bl	_osm_node_get_node_guid
	mov	x28, x0
	mov	x0, x27
	bl	_osm_physp_get_port_num
	mov	x4, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x26
	mov	x3, x28
	bl	_build_link
	mov	x21, x0
	cbnz	w0, LBB0_21
LBB0_28:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x0, [x8]
	bl	_OSM_LOG_EXIT
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ; @IB_NODE_TYPE_SWITCH
	.comm	_IB_NODE_TYPE_CA,8,3            ; @IB_NODE_TYPE_CA
	.comm	_IB_NODE_TYPE_ROUTER,8,3        ; @IB_NODE_TYPE_ROUTER
	.no_dead_strip	_capture_fabric
.subsections_via_symbols
