	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_voltaire_chassis_record
_fill_voltaire_chassis_record:          ## @fill_voltaire_chassis_record
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_36:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movl	$1, (%rdi)
	callq	_is_router
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpl	$0, 4(%r15)
	jle	LBB0_31
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	4(%r15), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_31
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	8(%rax,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	16(%rax), %rdi
	callq	_is_spine
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_get_router_slot
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_is_spine
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:
	callq	_is_spine_4700x2
	cmpl	$0, 4(%r15)
	jle	LBB0_31
## %bb.10:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	_IB_NODE_SWITCH@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%rdi)
	je	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movslq	4(%r15), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_31
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	8(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$18, (%rsi)
	jg	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rax), %rdi
	movq	8(%rdi), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 24(%r15)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_get_sfb_slot
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_get_router_slot
	jmp	LBB0_20
LBB0_21:
	callq	_is_line
	testq	%rax, %rax
	je	LBB0_31
## %bb.22:
	movq	%r15, %rdi
	callq	_is_line_4700
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_31
## %bb.23:
	movq	16(%r15), %rdx
	incq	%rcx
	movl	$1, %edi
	jmp	LBB0_24
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$12, %ebx
	jle	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	je	LBB0_31
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	(%rbx), %ebx
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$18, %ebx
	jg	LBB0_28
LBB0_30:
	movq	%r15, %rdi
	callq	_get_slb_slot
LBB0_31:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_36
## %bb.32:
	xorl	%ebx, %ebx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	movslq	%eax, %rcx
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_36
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	8(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	callq	_voltaire_portmap
	movl	4(%r15), %eax
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NODE_SWITCH,8,3             ## @IB_NODE_SWITCH
	.no_dead_strip	_fill_voltaire_chassis_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_voltaire_chassis_record
_fill_voltaire_chassis_record:          ; @fill_voltaire_chassis_record
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	bl	_is_router
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #1
	cmp	x20, x8
	b.ge	LBB0_32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x20, lsl #3
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, #16]
	bl	_is_spine
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_get_router_slot
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_is_spine
	cbz	x0, LBB0_22
; %bb.10:
	mov	x0, x19
	bl	_is_spine_4700x2
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.11:
	mov	x20, x0
	mov	x21, #0
Lloh0:
	adrp	x22, _IB_NODE_SWITCH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IB_NODE_SWITCH@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x0]
	cbz	w8, LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrsw	x8, [x19, #4]
	add	x21, x21, #1
	cmp	x21, x8
	b.ge	LBB0_32
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x21, lsl #3
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	w20, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x1]
	cmp	w9, #18
	b.gt	LBB0_13
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x8, #16]
	ldr	x9, [x0, #8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w9, [x19, #24]
	cbnz	w9, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x8
	bl	_get_sfb_slot
	b	LBB0_13
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_get_router_slot
	b	LBB0_13
LBB0_22:
	mov	x0, x19
	bl	_is_line
	cbz	x0, LBB0_32
; %bb.23:
	mov	x0, x19
	bl	_is_line_4700
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.24:
	ldr	x9, [x19, #16]
	add	x9, x9, #8
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	cmp	w10, #12
	b.le	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_32
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x1, [x10, #8]
	cbz	x1, LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w10, [x10]
	cbz	w0, LBB0_25
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	cmp	w10, #18
	b.gt	LBB0_26
LBB0_31:
	mov	x0, x19
	bl	_get_slb_slot
LBB0_32:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.33:
	mov	x20, #0
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_1
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x9, x9, x20, lsl #3
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	bl	_voltaire_portmap
	ldr	w8, [x19, #4]
	b	LBB0_34
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NODE_SWITCH,8,3             ; @IB_NODE_SWITCH
	.no_dead_strip	_fill_voltaire_chassis_record
.subsections_via_symbols
