	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function torus_build_lfts
_torus_build_lfts:                      ## @torus_build_lfts
	.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, %r13
	movq	8(%rdi), %rdi
	cmpl	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_teardown_fabric
	movl	$1, %edi
	movl	$64, %esi
	callq	_calloc
	movq	8(%r13), %rbx
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, 8(%rax)
	movq	%rbx, 40(%r13)
	movl	28(%rbx), %edi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_parse_config
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movq	%r14, %rdi
	callq	_capture_fabric
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movq	8(%r15), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r13), %ecx
	movl	24(%r13), %r8d
	movl	16(%r13), %r9d
	movq	8(%r13), %rax
	movl	40(%rax), %ebx
	movl	48(%rax), %r10d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_OSM_LOG
	addq	$16, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_verify_setup
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movq	8(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	56(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	48(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	40(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_ALL_MESH
	testq	%rax, %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rax, %rbx
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	callq	_OSM_LOG
	addq	$16, %rsp
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_build_torus
	movq	8(%r15), %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	56(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	48(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movl	40(%r15), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	callq	_ALL_MESH
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %r10
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %r10
	movl	32(%r15), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %ebx
	movl	24(%r15), %r11d
	leaq	L_.str.7(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_OSM_LOG
	addq	$32, %rsp
	movq	%r14, %rdi
	callq	_diagnose_fabric
	movq	_NOTIFY_CHANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_report_torus_changes
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_routable_torus
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_route_torus
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	movq	8(%r15), %r12
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_teardown_torus
LBB0_15:
	movq	%r15, (%r13)
	leaq	24(%r12), %rdi
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_check_qos_swe_config
	leaq	20(%r12), %rdi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_check_qos_ep_config
	leaq	16(%r12), %rdi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_check_qos_ep_config
	leaq	12(%r12), %rdi
	leaq	L_.str.10(%rip), %rdx
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_check_qos_ep_config
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_1:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	$-1, %r12d
	jmp	LBB0_17
LBB0_18:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	$-1, %r12d
	jmp	LBB0_16
LBB0_7:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_12:
	movq	%r15, %rdi
	callq	_teardown_torus
LBB0_16:
	movq	%r14, %rdi
	callq	_teardown_fabric
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR 4E44: Routing engine list contains torus-2QoS. Enable QoS for correct operation (-Q or 'qos TRUE' in opensm.conf).\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERR 4E45: allocating torus: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Found fabric w/ %d links, %d switches, %d CA ports, minimum data VLs: endport %d, switchport %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Looking for %d x %d x %d %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"mesh"

L_.str.5:                               ## @.str.5
	.asciz	"torus"

L_.str.6:                               ## @.str.6
	.asciz	"ERR 4E57: build_torus finished with errors\n"

L_.str.7:                               ## @.str.7
	.asciz	"Built %d x %d x %d %s w/ %d links, %d switches, %d CA ports\n"

	.comm	_NOTIFY_CHANGES,4,2             ## @NOTIFY_CHANGES
L_.str.8:                               ## @.str.8
	.asciz	"qos_ca"

L_.str.9:                               ## @.str.9
	.asciz	"qos_sw0"

L_.str.10:                              ## @.str.10
	.asciz	"qos_rtr"

	.no_dead_strip	_torus_build_lfts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function torus_build_lfts
_torus_build_lfts:                      ; @torus_build_lfts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x0
	ldr	x0, [x0, #8]
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_13
; %bb.1:
	add	x19, x21, #16
	mov	x0, x19
	bl	_teardown_fabric
	mov	w0, #1
	mov	w1, #64
	bl	_calloc
	ldr	x22, [x21, #8]
	cbz	x0, LBB0_14
; %bb.2:
	mov	x20, x0
	str	x22, [x0, #8]
	str	x22, [x21, #40]
	ldr	w0, [x22, #28]
	mov	x1, x19
	mov	x2, x20
	bl	_parse_config
	cbz	w0, LBB0_16
; %bb.3:
	mov	x0, x19
	bl	_capture_fabric
	cbz	w0, LBB0_16
; %bb.4:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x24, _OSM_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OSM_LOG_INFO@GOTPAGEOFF]
	ldr	w1, [x24]
	ldp	x9, x8, [x21, #24]
	ldp	x11, x10, [x21, #8]
	ldp	x11, x12, [x11, #40]
	stp	x12, x11, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_OSM_LOG
	mov	x0, x20
	mov	x1, x19
	bl	_verify_setup
	cbz	w0, LBB0_16
; %bb.5:
	ldr	x22, [x20, #8]
	ldr	w23, [x24]
	ldp	x28, x27, [x20, #48]
	ldr	x25, [x20, #40]
	ldr	w0, [x20]
	bl	_ALL_MESH
Lloh4:
	adrp	x8, l_.str.4@PAGE
Lloh5:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh6:
	adrp	x26, l_.str.5@PAGE
Lloh7:
	add	x26, x26, l_.str.5@PAGEOFF
	cmp	x0, #0
	csel	x8, x26, x8, eq
	stp	x25, x8, [sp, #16]
	stp	x27, x28, [sp]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_OSM_LOG
	mov	x0, x19
	mov	x1, x20
	bl	_build_torus
	ldr	x22, [x20, #8]
	cbz	w0, LBB0_15
; %bb.6:
	ldr	w23, [x24]
	ldp	x25, x24, [x20, #48]
	ldr	x27, [x20, #40]
	ldr	w0, [x20]
	bl	_ALL_MESH
	cmp	x0, #0
Lloh10:
	adrp	x8, l_.str.4@PAGE
Lloh11:
	add	x8, x8, l_.str.4@PAGEOFF
	csel	x8, x26, x8, eq
	ldp	x10, x9, [x20, #24]
	ldr	x11, [x20, #16]
	stp	x10, x11, [sp, #40]
	stp	x8, x9, [sp, #24]
Lloh12:
	adrp	x2, l_.str.7@PAGE
Lloh13:
	add	x2, x2, l_.str.7@PAGEOFF
	stp	x25, x27, [sp, #8]
	str	x24, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_OSM_LOG
	mov	x0, x19
	bl	_diagnose_fabric
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _NOTIFY_CHANGES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NOTIFY_CHANGES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_report_torus_changes
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_routable_torus
	cbz	x0, LBB0_16
; %bb.9:
	mov	x0, x20
	bl	_route_torus
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.10:
	ldr	x22, [x20, #8]
	ldr	x0, [x21]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_teardown_torus
LBB0_12:
	str	x20, [x21]
	add	x0, x22, #24
	add	x20, x22, #8
	mov	x1, x20
	mov	x2, x22
	bl	_check_qos_swe_config
	add	x0, x22, #20
Lloh17:
	adrp	x2, l_.str.8@PAGE
Lloh18:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x1, x20
	mov	x3, x22
	bl	_check_qos_ep_config
	add	x0, x22, #16
Lloh19:
	adrp	x2, l_.str.9@PAGE
Lloh20:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x1, x20
	mov	x3, x22
	bl	_check_qos_ep_config
	add	x0, x22, #12
Lloh21:
	adrp	x2, l_.str.10@PAGE
Lloh22:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x1, x20
	mov	x3, x22
	bl	_check_qos_ep_config
	mov	w22, #0
	b	LBB0_18
LBB0_13:
Lloh23:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
	mov	w22, #-1
	b	LBB0_19
LBB0_14:
Lloh28:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
Lloh31:
	adrp	x8, _errno@GOTPAGE
Lloh32:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x2, l_.str.1@PAGE
Lloh35:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x20
	bl	_OSM_LOG
	mov	w22, #-1
	b	LBB0_18
LBB0_15:
Lloh36:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.6@PAGE
Lloh40:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_OSM_LOG
LBB0_16:
	mov	w22, #-1
LBB0_17:
	mov	x0, x20
	bl	_teardown_torus
LBB0_18:
	mov	x0, x19
	bl	_teardown_fabric
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR 4E44: Routing engine list contains torus-2QoS. Enable QoS for correct operation (-Q or 'qos TRUE' in opensm.conf).\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERR 4E45: allocating torus: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Found fabric w/ %d links, %d switches, %d CA ports, minimum data VLs: endport %d, switchport %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Looking for %d x %d x %d %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"mesh"

l_.str.5:                               ; @.str.5
	.asciz	"torus"

l_.str.6:                               ; @.str.6
	.asciz	"ERR 4E57: build_torus finished with errors\n"

l_.str.7:                               ; @.str.7
	.asciz	"Built %d x %d x %d %s w/ %d links, %d switches, %d CA ports\n"

	.comm	_NOTIFY_CHANGES,4,2             ; @NOTIFY_CHANGES
l_.str.8:                               ; @.str.8
	.asciz	"qos_ca"

l_.str.9:                               ; @.str.9
	.asciz	"qos_sw0"

l_.str.10:                              ; @.str.10
	.asciz	"qos_rtr"

	.no_dead_strip	_torus_build_lfts
.subsections_via_symbols
