	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_get_tl1_schqs
_rvu_get_tl1_schqs:                     ## @rvu_get_tl1_schqs
	.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, %r15
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	callq	_get_nix_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_rvu_get_pfvf
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$4, %r15
	movq	8(%r12,%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_rvu_get_pf
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_is_afvf
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_MAX_LMAC_PER_CGX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	(%r14), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_rvu_get_cgx_lmac_id
	movq	_MAX_LMAC_PER_CGX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	-64(%rbp), %ebx
	addl	-60(%rbp), %ebx
LBB0_5:
	leal	(%rbx,%rbx), %r13d
	incl	%r13d
	cmpl	(%r12,%r15), %r13d
	jle	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	addl	%ebx, %ebx
	movslq	%ebx, %r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%r15,8), %rax
	movq	_U32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_RVU_PFVF_PF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	shll	%cl, %edi
	xorl	%esi, %esi
	callq	_TXSCH_MAP
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	movq	_RVU_PFVF_PF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_TXSCH_MAP
	movslq	%r13d, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_nix_reset_tx_linkcfg
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_nix_reset_tx_shaping
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %ecx
	callq	_nix_reset_tx_linkcfg
	movq	(%r15), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %ecx
	callq	_nix_reset_tx_shaping
LBB0_8:
	xorl	%eax, %eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	%ebx, (%rdx)
	movl	%r13d, 4(%rdx)
	movl	$2, (%rcx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NIX_TXSCH_LVL_TL1,8,3          ## @NIX_TXSCH_LVL_TL1
	.comm	_MAX_LMAC_PER_CGX,4,2           ## @MAX_LMAC_PER_CGX
	.comm	_U32_MAX,8,3                    ## @U32_MAX
	.comm	_RVU_PFVF_PF_SHIFT,4,2          ## @RVU_PFVF_PF_SHIFT
	.no_dead_strip	_rvu_get_tl1_schqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_get_tl1_schqs
_rvu_get_tl1_schqs:                     ; @rvu_get_tl1_schqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_get_nix_hw
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_rvu_get_pfvf
	mov	x25, x0
	ldr	x28, [x24]
Lloh0:
	adrp	x8, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	add	x8, x28, x26, lsl #4
	ldr	x27, [x8, #8]
	mov	x0, x23
	bl	_rvu_get_pf
	mov	x24, x0
	mov	x0, x23
	bl	_is_afvf
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _MAX_LMAC_PER_CGX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_LMAC_PER_CGX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w0, [x25]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_rvu_get_cgx_lmac_id
	ldp	w10, w8, [sp, #8]
Lloh6:
	adrp	x9, _MAX_LMAC_PER_CGX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_LMAC_PER_CGX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	madd	w8, w9, w8, w10
LBB0_4:
	sxtw	x9, w8
	mov	w23, #1
	bfi	x23, x9, #1, #63
	lsl	x9, x26, #4
	ldr	w9, [x28, x9]
	cmp	w23, w9
	b.le	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	sbfiz	x25, x8, #1, #32
	ldr	x8, [x27, w25, sxtw #3]
Lloh12:
	adrp	x9, _U32_MAX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _U32_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x8, x25
	sxtw	x26, w8
Lloh15:
	adrp	x28, _RVU_PFVF_PF_SHIFT@GOTPAGE
Lloh16:
	ldr	x28, [x28, _RVU_PFVF_PF_SHIFT@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	w0, w24, w8
	mov	w1, #0
	bl	_TXSCH_MAP
	str	x0, [x27, x26, lsl #3]
	ldr	w8, [x28]
	lsl	w0, w24, w8
	mov	w1, #0
	bl	_TXSCH_MAP
	str	x0, [x27, x23, lsl #3]
Lloh17:
	adrp	x24, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh18:
	ldr	x24, [x24, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x25
	bl	_nix_reset_tx_linkcfg
	ldr	x2, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x25
	bl	_nix_reset_tx_shaping
	ldr	x2, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	bl	_nix_reset_tx_linkcfg
	ldr	x2, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	bl	_nix_reset_tx_shaping
LBB0_9:
	mov	w0, #0
	cbz	x20, LBB0_6
; %bb.10:
	cbz	x19, LBB0_6
; %bb.11:
	mov	w0, #0
	stp	w25, w23, [x20]
	mov	w8, #2
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NIX_TXSCH_LVL_TL1,8,3          ; @NIX_TXSCH_LVL_TL1
	.comm	_MAX_LMAC_PER_CGX,4,2           ; @MAX_LMAC_PER_CGX
	.comm	_U32_MAX,8,3                    ; @U32_MAX
	.comm	_RVU_PFVF_PF_SHIFT,4,2          ; @RVU_PFVF_PF_SHIFT
	.no_dead_strip	_rvu_get_tl1_schqs
.subsections_via_symbols
