	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function routable_torus
_routable_torus:                        ## @routable_torus
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$-1, -48(%rbp)
	movq	_MSG_DEADLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movq	8(%rdi), %rax
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%r13), %rax
	cmpq	8(%rsi), %rax
	je	LBB0_3
LBB0_2:
	movq	24(%r13), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_3:
	movq	40(%r13), %rax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.12:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	56(%r13), %rcx
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r13), %rax
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_22
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r13), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	testl	%eax, %eax
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	32(%r13), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax,%r12,8), %r8
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movq	%r15, %r9
	callq	_rpt_torus_missing
	incq	%r14
	movq	48(%r13), %rax
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	56(%r13), %rcx
	jmp	LBB0_19
LBB0_22:
	testl	%eax, %eax
	jle	LBB0_5
## %bb.23:
	movq	56(%r13), %rcx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %r14
	pxor	%xmm2, %xmm2
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	40(%r13), %rax
LBB0_44:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r15
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_5
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##       Child Loop BB0_30 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_44
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_26 Depth=2
	incq	%r12
	movq	56(%r13), %rcx
	movslq	%ecx, %rax
	cmpq	%rax, %r12
	jge	LBB0_43
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_30 Depth 3
	movq	48(%r13), %rax
	testl	%eax, %eax
	jle	LBB0_42
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	%eax, %edx
	movq	32(%r13), %rax
	movl	%edx, %ecx
	andl	$1, %ecx
	cmpq	$1, %rdx
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
LBB0_35:                                ##   in Loop: Header=BB0_26 Depth=2
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	(%rax), %rax
	movq	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_38:                                ##   in Loop: Header=BB0_26 Depth=2
	movd	%xmm0, %ebx
	pextrd	$1, %xmm0, %eax
	cmpl	%eax, %ebx
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	%eax, (%rsp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
LBB0_40:                                ##   in Loop: Header=BB0_26 Depth=2
	cmpl	$2, %ebx
	jb	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=2
	subq	%rcx, %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=3
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_35
LBB0_30:                                ##   Parent Loop BB0_24 Depth=1
                                        ##     Parent Loop BB0_26 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rax,%rsi,8), %rdi
	movq	(%rdi,%r12,8), %rdi
	movq	(%rdi,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=3
	movq	(%rdi), %rdi
	movq	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=3
	movq	8(%rax,%rsi,8), %rdi
	movq	(%rdi,%r12,8), %rdi
	movq	(%rdi,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=3
	movq	(%rdi), %rdi
	movq	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	jmp	LBB0_34
LBB0_4:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	48(%r13), %rcx
	testl	%ecx, %ecx
	jle	LBB0_45
## %bb.6:
	xorl	%r15d, %r15d
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %r14
	pxor	%xmm2, %xmm2
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	48(%r13), %rcx
LBB0_67:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_45
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_53 Depth 3
	testl	%eax, %eax
	jle	LBB0_67
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	movq	40(%r13), %rax
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_66
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_53 Depth 3
	movq	56(%r13), %rax
	testl	%eax, %eax
	jle	LBB0_65
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%eax, %edx
	movq	32(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	%edx, %ecx
	andl	$1, %ecx
	cmpq	$1, %rdx
	jne	LBB0_52
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
LBB0_58:                                ##   in Loop: Header=BB0_9 Depth=2
	testq	%rcx, %rcx
	je	LBB0_61
## %bb.59:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rax), %rax
	movq	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_61:                                ##   in Loop: Header=BB0_9 Depth=2
	movd	%xmm0, %ebx
	pextrd	$1, %xmm0, %eax
	cmpl	%eax, %ebx
	je	LBB0_63
## %bb.62:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	%eax, (%rsp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
LBB0_63:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$2, %ebx
	jb	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.4(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_9 Depth=2
	subq	%rcx, %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=3
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_58
LBB0_53:                                ##   Parent Loop BB0_7 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rax,%rsi,8), %rdi
	movq	(%rdi,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=3
	movq	(%rdi), %rdi
	movq	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_55:                                ##   in Loop: Header=BB0_53 Depth=3
	movq	8(%rax,%rsi,8), %rdi
	movq	(%rdi,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_53 Depth=3
	movq	(%rdi), %rdi
	movq	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	jmp	LBB0_57
LBB0_45:
	movq	56(%r13), %rax
	testl	%eax, %eax
	jle	LBB0_84
## %bb.46:
	xorl	%r15d, %r15d
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %r14
	pxor	%xmm2, %xmm2
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_82:                                ##   in Loop: Header=BB0_47 Depth=1
	movq	56(%r13), %rax
LBB0_83:                                ##   in Loop: Header=BB0_47 Depth=1
	incq	%r15
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_84
LBB0_47:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_49 Depth 2
                                        ##       Child Loop BB0_69 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_83
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_81:                                ##   in Loop: Header=BB0_49 Depth=2
	incq	%r12
	movq	48(%r13), %rcx
	movslq	%ecx, %rax
	cmpq	%rax, %r12
	jge	LBB0_82
LBB0_49:                                ##   Parent Loop BB0_47 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_69 Depth 3
	movq	40(%r13), %rax
	testl	%eax, %eax
	jle	LBB0_81
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=2
	movl	%eax, %edx
	movq	32(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r15,8), %rax
	movl	%edx, %ecx
	andl	$1, %ecx
	cmpq	$1, %rdx
	jne	LBB0_68
## %bb.51:                              ##   in Loop: Header=BB0_49 Depth=2
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
LBB0_74:                                ##   in Loop: Header=BB0_49 Depth=2
	testq	%rcx, %rcx
	je	LBB0_77
## %bb.75:                              ##   in Loop: Header=BB0_49 Depth=2
	movq	(%rax,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_77
## %bb.76:                              ##   in Loop: Header=BB0_49 Depth=2
	movq	(%rax), %rax
	movq	16(%rax), %xmm1                 ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_77:                                ##   in Loop: Header=BB0_49 Depth=2
	movd	%xmm0, %ebx
	pextrd	$1, %xmm0, %eax
	cmpl	%eax, %ebx
	je	LBB0_79
## %bb.78:                              ##   in Loop: Header=BB0_49 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	%eax, (%rsp)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.5(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
LBB0_79:                                ##   in Loop: Header=BB0_49 Depth=2
	cmpl	$2, %ebx
	jb	LBB0_81
## %bb.80:                              ##   in Loop: Header=BB0_49 Depth=2
	movq	24(%r13), %rdi
	movl	(%r14), %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.6(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_OSM_LOG
	pxor	%xmm2, %xmm2
	jmp	LBB0_81
	.p2align	4, 0x90
LBB0_68:                                ##   in Loop: Header=BB0_49 Depth=2
	subq	%rcx, %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_69
	.p2align	4, 0x90
LBB0_73:                                ##   in Loop: Header=BB0_69 Depth=3
	addq	$2, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_74
LBB0_69:                                ##   Parent Loop BB0_47 Depth=1
                                        ##     Parent Loop BB0_49 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rax,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_71
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=3
	movq	(%rdi), %rdi
	movq	16(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
LBB0_71:                                ##   in Loop: Header=BB0_69 Depth=3
	movq	8(%rax,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_69 Depth=3
	movq	(%rdi), %rdi
	movq	16(%rdi), %xmm1                 ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
	jmp	LBB0_73
LBB0_84:
	movq	_MSG_DEADLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_86
## %bb.85:
	movq	24(%r13), %rdi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_86:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEADLOCK,4,2               ## @MSG_DEADLOCK
	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Could not construct torus using all known fabric switches and/or links.\n"

	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ERR 4E32: strange failures in x ring at y=%d  z=%d b2g_cnt %u g2b_cnt %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"ERR 4E33: disjoint failures in x ring at y=%d  z=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"ERR 4E34: strange failures in y ring at x=%d  z=%d b2g_cnt %u g2b_cnt %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"ERR 4E35: disjoint failures in y ring at x=%d  z=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"ERR 4E36: strange failures in z ring at x=%d  y=%d b2g_cnt %u g2b_cnt %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"ERR 4E37: disjoint failures in z ring at x=%d  y=%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"ERR 4E38: missing switch topology ==> message deadlock!\n"

	.no_dead_strip	_routable_torus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function routable_torus
_routable_torus:                        ; @routable_torus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	mov	w8, #-1
	str	w8, [sp, #44]
Lloh0:
	adrp	x23, _MSG_DEADLOCK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEADLOCK@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x0, #8]
	ldr	x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x1, #8]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x8, _OSM_LOG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OSM_LOG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
LBB0_3:
	ldr	x8, [x19, #40]
Lloh7:
	adrp	x24, _OSM_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _OSM_LOG_ERROR@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.4:
	mov	x20, #0
	ldr	x9, [x19, #56]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #40]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, #0
	ldr	x8, [x19, #48]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_5
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x22, #0
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x4, [x8, x20, lsl #3]
	add	x5, sp, #44
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_rpt_torus_missing
	add	x22, x22, #1
	ldr	x8, [x19, #48]
	cmp	x22, w8, sxtw
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x19, #56]
	b	LBB0_9
LBB0_14:
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.15:
	mov	x22, #0
	ldr	x9, [x19, #56]
	mov	w0, #1
Lloh9:
	adrp	x20, l_.str.2@PAGE
Lloh10:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x19, #40]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_31
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x25, #0
	mov	x26, x22
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x25, x25, #1
	ldr	x9, [x19, #56]
	cmp	x25, w9, sxtw
	b.ge	LBB0_16
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
	ldr	x8, [x19, #48]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	and	x8, x8, #0xffffffff
	movi.2d	v0, #0000000000000000
	ldr	x9, [x19, #32]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=3
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_26
LBB0_24:                                ;   Parent Loop BB0_18 Depth=1
                                        ;     Parent Loop BB0_21 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9]
	ldr	x10, [x10, x25, lsl #3]
	ldr	x10, [x10, x22, lsl #3]
	cbz	x10, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	ldr	x10, [x10]
	ldr	d1, [x10]
	cmeq.2s	v1, v1, #0
	sub.2s	v0, v0, v1
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_21 Depth=2
	fmov	w27, s0
	mov.s	w8, v0[1]
	cmp	w27, w8
	b.eq	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	stp	x27, x8, [sp, #16]
	stp	x25, x26, [sp]
	mov	x2, x21
	bl	_OSM_LOG
	mov	w0, #0
LBB0_28:                                ;   in Loop: Header=BB0_21 Depth=2
	cmp	w27, #2
	b.lo	LBB0_20
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	mov	x8, x26
	stp	x25, x8, [sp]
	mov	x2, x20
	bl	_OSM_LOG
	mov	w0, #0
	b	LBB0_20
LBB0_30:
	mov	w0, #1
LBB0_31:
	ldr	x9, [x19, #48]
	cmp	w9, #1
	b.lt	LBB0_47
; %bb.32:
	mov	x22, #0
Lloh13:
	adrp	x20, l_.str.4@PAGE
Lloh14:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh15:
	adrp	x21, l_.str.3@PAGE
Lloh16:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	x9, [x19, #48]
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_47
LBB0_35:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_38 Depth 2
                                        ;       Child Loop BB0_41 Depth 3
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x25, #0
	mov	x26, x22
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=2
	add	x25, x25, #1
	ldr	x8, [x19, #40]
	cmp	x25, w8, sxtw
	b.ge	LBB0_33
LBB0_38:                                ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_41 Depth 3
	ldr	x8, [x19, #56]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=2
	and	x8, x8, #0xffffffff
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x22, lsl #3]
	movi.2d	v0, #0000000000000000
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=3
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_43
LBB0_41:                                ;   Parent Loop BB0_35 Depth=1
                                        ;     Parent Loop BB0_38 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9]
	ldr	x10, [x10, x25, lsl #3]
	cbz	x10, LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=3
	ldr	x10, [x10]
	ldr	d1, [x10, #8]
	cmeq.2s	v1, v1, #0
	sub.2s	v0, v0, v1
	b	LBB0_40
LBB0_43:                                ;   in Loop: Header=BB0_38 Depth=2
	fmov	w27, s0
	mov.s	w8, v0[1]
	cmp	w27, w8
	b.eq	LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_38 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	stp	x27, x8, [sp, #16]
	stp	x26, x25, [sp]
	mov	x2, x21
	bl	_OSM_LOG
	mov	w0, #0
LBB0_45:                                ;   in Loop: Header=BB0_38 Depth=2
	cmp	w27, #2
	b.lo	LBB0_37
; %bb.46:                               ;   in Loop: Header=BB0_38 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	mov	x8, x26
	stp	x8, x25, [sp]
	mov	x2, x20
	bl	_OSM_LOG
	mov	w0, #0
	b	LBB0_37
LBB0_47:
	ldr	x8, [x19, #56]
	cmp	w8, #1
	b.lt	LBB0_63
; %bb.48:
	mov	x22, #0
Lloh17:
	adrp	x20, l_.str.6@PAGE
Lloh18:
	add	x20, x20, l_.str.6@PAGEOFF
Lloh19:
	adrp	x21, l_.str.5@PAGE
Lloh20:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_51 Depth=1
	ldr	x8, [x19, #56]
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_63
LBB0_51:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
                                        ;       Child Loop BB0_57 Depth 3
	cmp	w9, #1
	b.lt	LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	mov	x25, #0
	mov	x26, x22
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=2
	add	x25, x25, #1
	ldr	x9, [x19, #48]
	cmp	x25, w9, sxtw
	b.ge	LBB0_49
LBB0_54:                                ;   Parent Loop BB0_51 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_57 Depth 3
	ldr	x8, [x19, #40]
	cmp	w8, #1
	b.lt	LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=2
	and	x8, x8, #0xffffffff
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x25, lsl #3]
	ldr	x9, [x9, x22, lsl #3]
	movi.2d	v0, #0000000000000000
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_57 Depth=3
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_59
LBB0_57:                                ;   Parent Loop BB0_51 Depth=1
                                        ;     Parent Loop BB0_54 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9]
	cbz	x10, LBB0_56
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=3
	ldr	x10, [x10]
	ldr	d1, [x10, #16]
	cmeq.2s	v1, v1, #0
	sub.2s	v0, v0, v1
	b	LBB0_56
LBB0_59:                                ;   in Loop: Header=BB0_54 Depth=2
	fmov	w27, s0
	mov.s	w8, v0[1]
	cmp	w27, w8
	b.eq	LBB0_61
; %bb.60:                               ;   in Loop: Header=BB0_54 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	stp	x27, x8, [sp, #16]
	stp	x25, x26, [sp]
	mov	x2, x21
	bl	_OSM_LOG
	mov	w0, #0
LBB0_61:                                ;   in Loop: Header=BB0_54 Depth=2
	cmp	w27, #2
	b.lo	LBB0_53
; %bb.62:                               ;   in Loop: Header=BB0_54 Depth=2
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
	mov	x8, x26
	stp	x25, x8, [sp]
	mov	x2, x20
	bl	_OSM_LOG
	mov	w0, #0
	b	LBB0_53
LBB0_63:
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_65
; %bb.64:
	ldr	x0, [x19, #24]
	ldr	w1, [x24]
Lloh21:
	adrp	x2, l_.str.7@PAGE
Lloh22:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_OSM_LOG
	mov	w0, #0
LBB0_65:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEADLOCK,4,2               ; @MSG_DEADLOCK
	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Could not construct torus using all known fabric switches and/or links.\n"

	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ERR 4E32: strange failures in x ring at y=%d  z=%d b2g_cnt %u g2b_cnt %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"ERR 4E33: disjoint failures in x ring at y=%d  z=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"ERR 4E34: strange failures in y ring at x=%d  z=%d b2g_cnt %u g2b_cnt %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"ERR 4E35: disjoint failures in y ring at x=%d  z=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"ERR 4E36: strange failures in z ring at x=%d  y=%d b2g_cnt %u g2b_cnt %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"ERR 4E37: disjoint failures in z ring at x=%d  y=%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"ERR 4E38: missing switch topology ==> message deadlock!\n"

	.no_dead_strip	_routable_torus
.subsections_via_symbols
