	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_sched_add_vsi_child_nodes
_ice_sched_add_vsi_child_nodes:         ## @ice_sched_add_vsi_child_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	$0, -72(%rbp)
	movq	%r13, %rdi
	callq	_ice_sched_get_qgrp_layer
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_ice_sched_get_vsi_layer
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_ice_sched_get_vsi_node
	movq	%rax, %rdx
	incq	%r12
	xorl	%eax, %eax
	cmpq	%r15, %r12
	ja	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r15, %r12
	ja	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx,%r12,8), %r8
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rsi, %r14
	movq	%rdx, %r15
	movq	%rcx, %r13
	movq	%r12, %rcx
	leaq	-60(%rbp), %r9
	callq	_ice_sched_add_nodes_to_layer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rcx
	movq	(%r13,%r12,8), %rax
	cmpq	-72(%rbp), %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %esi
	movq	%r14, %rdi
	callq	_ice_sched_find_node_by_teid
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, (%rax)
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rsi
	movq	%r13, %rcx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rcx
	jmp	LBB0_13
LBB0_3:
	movq	_ICE_ERR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_CFG,4,2                ## @ICE_ERR_CFG
	.no_dead_strip	_ice_sched_add_vsi_child_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_sched_add_vsi_child_nodes
_ice_sched_add_vsi_child_nodes:         ; @ice_sched_add_vsi_child_nodes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	ldr	x25, [x0]
	str	xzr, [sp]
	mov	x0, x25
	bl	_ice_sched_get_qgrp_layer
	mov	x23, x0
	mov	x0, x25
	bl	_ice_sched_get_vsi_layer
	mov	x26, x0
	mov	x0, x25
	mov	x1, x21
	mov	x2, x24
	bl	_ice_sched_get_vsi_node
	add	x24, x26, #1
	cmp	x24, x23
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	mov	x25, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #8]
	ldr	x25, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, x23
	b.hi	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	x25, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x20, x24, lsl #3]
	add	x5, sp, #12
	mov	x6, sp
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	bl	_ice_sched_add_nodes_to_layer
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, x24, lsl #3]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_ice_sched_find_node_by_teid
	mov	x25, x0
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x25
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x19, [x8]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_11
	b	LBB0_4
LBB0_12:
Lloh0:
	adrp	x8, _ICE_ERR_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_ERR_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_CFG,4,2                ; @ICE_ERR_CFG
	.no_dead_strip	_ice_sched_add_vsi_child_nodes
.subsections_via_symbols
