	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_txsch_alloc ## -- Begin function rvu_mbox_handler_nix_txsch_alloc
	.p2align	4, 0x90
_rvu_mbox_handler_nix_txsch_alloc:      ## @rvu_mbox_handler_nix_txsch_alloc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rsi), %rbx
	movq	%rbx, %rsi
	callq	_rvu_get_pfvf
	movq	%rax, %r14
	movq	_BLKTYPE_NIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_rvu_get_blkaddr
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.1:
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	4(%r13), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_get_nix_hw
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_34
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %rdi
	callq	_rvu_rsrc_free_count
	cmpl	%eax, %r14d
	jge	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_19
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movl	(%rax,%r12,4), %esi
	movl	(%rcx,%r12,4), %eax
	movl	%eax, %r14d
	addl	%esi, %r14d
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %r12
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%esi, %esi
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$2, %eax
	jg	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rvu_get_tl1_schqs
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_TXSCHQ_PER_FUNC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testl	%esi, %esi
	je	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %r13
	addq	%rbx, %rdi
	callq	_rvu_rsrc_check_contig
	movq	%r13, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_5
LBB0_15:
	movq	_NIX_AF_ERR_TLX_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_35
LBB0_16:
	movq	_NIX_AF_ERR_AF_LF_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_36
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_19:
	testl	%eax, %eax
	jle	LBB0_34
## %bb.20:
	xorl	%r12d, %r12d
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%rsi,%r12,4), %r8
	movl	$0, (%r9,%r12,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_rvu_get_tl1_schqs
	movq	%r13, %r14
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r12
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	movq	%r14, %r15
	jge	LBB0_33
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%r12, %rax
	shlq	$4, %rax
	movq	(%r15), %r8
	movl	(%r8,%r12,4), %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %r9
	movl	%esi, (%r9,%r12,4)
	movq	8(%rcx,%rax), %r10
	movq	8(%r15), %rdi
	movl	(%rdi,%r12,4), %ebx
	movq	8(%rdx), %rsi
	movl	%ebx, (%rsi,%r12,4)
	cmpl	$0, (%rdi,%r12,4)
	movq	%r15, %r14
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$0, (%r8,%r12,4)
	je	LBB0_22
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %r13
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	%rdi, %r12
	je	LBB0_21
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	addq	%rax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r8,%r12,4), %esi
	testl	%esi, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %r14
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_rvu_alloc_rsrc_contig
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_TXSCH_MAP
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_nix_reset_tx_linkcfg
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_nix_reset_tx_shaping
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	%r14, (%rax,%rbx,8)
	movq	-112(%rbp), %r14                ## 8-byte Reload
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax,%r12,4), %rax
	cmpq	%rax, %rbx
	jl	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%r14), %rax
	cmpl	$0, (%rax,%r12,4)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_22
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_rvu_alloc_rsrc
	movq	%rax, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_TXSCH_MAP
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_nix_reset_tx_linkcfg
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_nix_reset_tx_shaping
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	%r14, (%rax,%rbx,8)
	movq	-112(%rbp), %r14                ## 8-byte Reload
	incq	%rbx
	movq	8(%r14), %rax
	movslq	(%rax,%r12,4), %rax
	cmpq	%rax, %rbx
	jl	LBB0_32
	jmp	LBB0_22
LBB0_34:
	xorl	%ebx, %ebx
	jmp	LBB0_35
LBB0_33:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_35:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_36:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLKTYPE_NIX,4,2                ## @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ## @NIX_AF_ERR_AF_LF_INVALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ## @NIX_TXSCH_LVL_CNT
	.comm	_NIX_TXSCH_LVL_TL1,4,2          ## @NIX_TXSCH_LVL_TL1
	.comm	_MAX_TXSCHQ_PER_FUNC,4,2        ## @MAX_TXSCHQ_PER_FUNC
	.comm	_NIX_AF_ERR_TLX_ALLOC_FAIL,4,2  ## @NIX_AF_ERR_TLX_ALLOC_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_txsch_alloc ; -- Begin function rvu_mbox_handler_nix_txsch_alloc
	.p2align	2
_rvu_mbox_handler_nix_txsch_alloc:      ; @rvu_mbox_handler_nix_txsch_alloc
	.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	x28, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x27, [x1, #16]
	mov	x1, x27
	bl	_rvu_get_pfvf
	mov	x24, x0
Lloh0:
	adrp	x8, _BLKTYPE_NIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLKTYPE_NIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x27
	bl	_rvu_get_blkaddr
	ldr	w8, [x24]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x23, x0
	tbnz	w0, #31, LBB0_15
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, x23
	bl	_get_nix_hw
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_16
; %bb.3:
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.4:
	mov	x24, #0
	mov	x25, #0
Lloh6:
	adrp	x26, _MAX_TXSCHQ_PER_FUNC@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAX_TXSCHQ_PER_FUNC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x22, x24
	bl	_rvu_rsrc_free_count
	cmp	w20, w0
	b.ge	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
Lloh8:
	adrp	x8, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x24, x24, #16
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x8, x25, #2
	ldp	x9, x10, [x21]
	ldr	w1, [x9, x8]
	ldr	w8, [x10, x8]
	adds	w20, w8, w1
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh11:
	adrp	x9, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	x25, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w1, #0
	ccmp	w8, #2, #0, eq
	b.gt	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x27
	mov	x3, #0
	mov	x4, #0
	bl	_rvu_get_tl1_schqs
	cbz	x0, LBB0_6
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	cmp	w20, w8
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x22, [x8]
	cbz	w1, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x22, x24
	bl	_rvu_rsrc_check_contig
	cbnz	w0, LBB0_5
LBB0_14:
Lloh14:
	adrp	x8, _NIX_AF_ERR_TLX_ALLOC_FAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NIX_AF_ERR_TLX_ALLOC_FAIL@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_32
LBB0_15:
Lloh17:
	adrp	x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_33
LBB0_16:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_33
LBB0_17:
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.18:
	mov	x25, #0
	mov	x22, x27
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	str	wzr, [x9, x25, lsl #2]
	ldr	x8, [x28, #16]
	ldr	x3, [x8, x25, lsl #3]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_rvu_get_tl1_schqs
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x25, x25, #1
Lloh23:
	adrp	x8, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	cmp	x25, x8
	b.ge	LBB0_31
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x8]
	lsl	x10, x25, #2
	ldp	x8, x11, [x21]
	ldr	w12, [x8, x10]
	add	x14, x9, x25, lsl #4
	ldp	x9, x13, [x28]
	str	w12, [x9, x10]
	ldr	x15, [x14, #8]
	ldr	w12, [x11, x10]
	add	x4, x13, x10
	str	w12, [x4]
	ldr	w10, [x11, x10]
	cbnz	w10, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w10, [x8, x25, lsl #2]
	cbz	w10, LBB0_20
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
Lloh26:
	adrp	x10, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh27:
	ldr	x10, [x10, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	x25, x10
	b.eq	LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	stp	x15, x14, [sp, #8]              ; 16-byte Folded Spill
	ldr	w1, [x8, x25, lsl #2]
	mov	x24, x28
	mov	x26, x22
	cbz	w1, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_rvu_alloc_rsrc_contig
	ldr	x8, [x21]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x27, x0
	mov	x22, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x8, x0, lsl #2
LBB0_27:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x28, x27, x22
	mov	x0, x26
	mov	w1, #0
	bl	_TXSCH_MAP
	str	w0, [x20, x22, lsl #2]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x28
	bl	_nix_reset_tx_linkcfg
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x28
	bl	_nix_reset_tx_shaping
	ldr	x8, [x24, #24]
	ldr	x8, [x8, x25, lsl #3]
	str	x28, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x21]
	ldrsw	x8, [x8, x25, lsl #2]
	cmp	x22, x8
	b.lt	LBB0_27
LBB0_28:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, #1
	mov	x28, x24
	mov	x22, x26
	ldp	x26, x24, [sp, #8]              ; 16-byte Folded Reload
	b.lt	LBB0_20
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x20, #0
LBB0_30:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_rvu_alloc_rsrc
	mov	x27, x0
	mov	x0, x22
	mov	w1, #0
	bl	_TXSCH_MAP
	str	w0, [x26, x27, lsl #2]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x27
	bl	_nix_reset_tx_linkcfg
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	mov	x3, x27
	bl	_nix_reset_tx_shaping
	ldr	x8, [x28, #16]
	ldr	x8, [x8, x25, lsl #3]
	str	x27, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x21, #8]
	ldrsw	x8, [x8, x25, lsl #2]
	cmp	x20, x8
	b.lt	LBB0_30
	b	LBB0_20
LBB0_31:
	mov	w20, #0
LBB0_32:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_33:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NIX,4,2                ; @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ; @NIX_AF_ERR_AF_LF_INVALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ; @NIX_TXSCH_LVL_CNT
	.comm	_NIX_TXSCH_LVL_TL1,4,2          ; @NIX_TXSCH_LVL_TL1
	.comm	_MAX_TXSCHQ_PER_FUNC,4,2        ; @MAX_TXSCHQ_PER_FUNC
	.comm	_NIX_AF_ERR_TLX_ALLOC_FAIL,4,2  ; @NIX_AF_ERR_TLX_ALLOC_FAIL
.subsections_via_symbols
