	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_group_nodes                    ## -- Begin function group_nodes
	.p2align	4, 0x90
_group_nodes:                           ## @group_nodes
	.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
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.18:
	movq	_IB_NODE_VENDORID_F@GOTPCREL(%rip), %r12
	movq	_VTR_VENDOR_ID@GOTPCREL(%rip), %r13
	movq	_MLX_VENDOR_ID@GOTPCREL(%rip), %r14
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	callq	_fill_voltaire_chassis_record
	testq	%rax, %rax
	jne	LBB0_42
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpl	(%r14), %r15d
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	callq	_fill_mellanox_chassis_record
	testq	%rax, %rax
	je	LBB0_23
LBB0_42:
	movq	-80(%rbp), %rdi
	movl	$-1, %r14d
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rbx
	callq	_free
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_43
	jmp	LBB0_44
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	leaq	-80(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	cmpl	(%r13), %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_is_spine
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_add_chassis
	testq	%rax, %rax
	jne	LBB0_42
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movq	-72(%rbp), %rsi
	movl	%r14d, (%rsi)
	movq	%rbx, %rdi
	callq	_build_chassis
	testq	%rax, %rax
	je	LBB0_11
	jmp	LBB0_42
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_41
## %bb.13:
	movq	_IB_NODE_VENDORID_F@GOTPCREL(%rip), %r13
	movq	_VTR_VENDOR_ID@GOTPCREL(%rip), %r12
	leaq	-80(%rbp), %r15
	jmp	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	(%rax)
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	cmpl	(%r12), %eax
	je	LBB0_37
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%rbx), %edi
	movq	_IB_NODE_SYSTEM_GUID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field64
	testq	%rax, %rax
	je	LBB0_37
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_find_chassisguid
	testq	%rax, %rax
	jne	LBB0_17
## %bb.34:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	callq	_add_chassis
	testq	%rax, %rax
	jne	LBB0_42
## %bb.35:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_get_chassisguid
	movq	-72(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	$1, 4(%rcx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-80(%rbp), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_37
LBB0_24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_41
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_mad_get_field
	cmpl	(%r12), %eax
	je	LBB0_40
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movq	_IB_NODE_SYSTEM_GUID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_mad_get_field64
	testq	%rax, %rax
	je	LBB0_40
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_find_chassisguid
	testq	%rax, %rax
	je	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$2, (%rax)
	jl	LBB0_40
## %bb.30:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$0, 4(%rax)
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_33
LBB0_38:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_MLX_VENDOR_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_insert_mellanox_line_and_spine
	jmp	LBB0_40
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=1
	incl	%r14d
	movl	%r14d, 4(%rax)
	cmpl	$0, (%rbx)
	jne	LBB0_38
LBB0_33:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	$1, (%rbx)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_add_node_to_chassis
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_26
LBB0_41:
	xorl	%r14d, %r14d
	movq	-80(%rbp), %r15
LBB0_44:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NODE_VENDORID_F,4,2         ## @IB_NODE_VENDORID_F
	.comm	_VTR_VENDOR_ID,4,2              ## @VTR_VENDOR_ID
	.comm	_MLX_VENDOR_ID,4,2              ## @MLX_VENDOR_ID
	.comm	_IB_NODE_SYSTEM_GUID_F,4,2      ## @IB_NODE_SYSTEM_GUID_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_group_nodes                    ; -- Begin function group_nodes
	.p2align	2
_group_nodes:                           ; @group_nodes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_20
; %bb.1:
Lloh0:
	adrp	x23, _IB_NODE_VENDORID_F@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_NODE_VENDORID_F@GOTPAGEOFF]
Lloh2:
	adrp	x24, _VTR_VENDOR_ID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VTR_VENDOR_ID@GOTPAGEOFF]
Lloh4:
	adrp	x22, _MLX_VENDOR_ID@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MLX_VENDOR_ID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_mad_get_field
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_fill_voltaire_chassis_record
	cbnz	x0, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_fill_mellanox_chassis_record
	cbz	x0, LBB0_2
LBB0_7:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x0, #8]
	bl	_free
	mov	x0, x20
	cbnz	x20, LBB0_8
LBB0_9:
	mov	x8, #0
	mov	w0, #-1
	b	LBB0_45
LBB0_10:
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_20
; %bb.11:
	mov	w22, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_mad_get_field
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_is_spine
	cbz	w0, LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, sp, #8
	bl	_add_chassis
	cbnz	x0, LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	add	w22, w22, #1
	ldr	x1, [sp, #16]
	str	w22, [x1]
	mov	x0, x20
	bl	_build_chassis
	cbz	x0, LBB0_12
	b	LBB0_7
LBB0_20:
	mov	w22, #0
LBB0_21:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_44
; %bb.22:
Lloh6:
	adrp	x23, _IB_NODE_VENDORID_F@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IB_NODE_VENDORID_F@GOTPAGEOFF]
Lloh8:
	adrp	x24, _VTR_VENDOR_ID@GOTPAGE
Lloh9:
	ldr	x24, [x24, _VTR_VENDOR_ID@GOTPAGEOFF]
	mov	w21, #1
Lloh10:
	adrp	x25, _IB_NODE_SYSTEM_GUID_F@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IB_NODE_SYSTEM_GUID_F@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_31
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_mad_get_field
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x20, #4]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_mad_get_field64
	cbz	x0, LBB0_24
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_find_chassisguid
	cbnz	x0, LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x0, sp, #8
	bl	_add_chassis
	cbnz	x0, LBB0_7
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x20
	bl	_get_chassisguid
	ldr	x8, [sp, #16]
	stp	w21, w0, [x8, #4]
	ldr	x8, [x19]
	cbnz	x8, LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_24
LBB0_31:
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_44
; %bb.32:
	mov	w26, #1
Lloh12:
	adrp	x27, _MLX_VENDOR_ID@GOTPAGE
Lloh13:
	ldr	x27, [x27, _MLX_VENDOR_ID@GOTPAGEOFF]
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_35 Depth=1
	str	w26, [x20]
	mov	x0, x1
	mov	x1, x20
	bl	_add_node_to_chassis
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_44
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_mad_get_field
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x21, x0
	ldr	w0, [x20, #4]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_mad_get_field64
	cbz	x0, LBB0_34
; %bb.37:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_find_chassisguid
	cbz	x0, LBB0_34
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x1, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_34
; %bb.39:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x1, #4]
	cbnz	w8, LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=1
	add	w22, w22, #1
	str	w22, [x1, #4]
LBB0_41:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_33
; %bb.42:                               ;   in Loop: Header=BB0_35 Depth=1
	ldr	w8, [x27]
	cmp	w21, w8
	b.ne	LBB0_34
; %bb.43:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x0, x20
	bl	_insert_mellanox_line_and_spine
	b	LBB0_34
LBB0_44:
	mov	w0, #0
	ldr	x8, [sp, #8]
LBB0_45:
	str	x8, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NODE_VENDORID_F,4,2         ; @IB_NODE_VENDORID_F
	.comm	_VTR_VENDOR_ID,4,2              ; @VTR_VENDOR_ID
	.comm	_MLX_VENDOR_ID,4,2              ; @MLX_VENDOR_ID
	.comm	_IB_NODE_SYSTEM_GUID_F,4,2      ; @IB_NODE_SYSTEM_GUID_F
.subsections_via_symbols
