	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_txschq_cfg ## -- Begin function rvu_mbox_handler_nix_txschq_cfg
	.p2align	4, 0x90
_rvu_mbox_handler_nix_txschq_cfg:       ## @rvu_mbox_handler_nix_txschq_cfg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	movl	8(%rsi), %eax
	movq	_MAX_REGS_PER_MBOX_MSG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
LBB0_2:
	movq	_NIX_AF_INVAL_TXSCHQ_CFG@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r14
	movq	32(%r12), %r15
	movq	8(%rdi), %rbx
	movq	_BLKTYPE_NIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_rvu_get_blkaddr
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdi
	movl	%eax, %r13d
	movl	%eax, %esi
	callq	_get_nix_hw
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %rbx
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %eax
	shlq	$2, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rsi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addq	%rax, %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_rvu_get_lf
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	(%rbx), %rdx
	movq	(%r12), %rcx
	movq	%rcx, %rax
	shlq	$4, %rax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdx,%rax), %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rdx
	testq	%r15, (%rdx)
	je	LBB0_13
## %bb.9:
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nix_tl1_default_cfg            ## TAILCALL
LBB0_11:
	movq	_NIX_AF_ERR_AF_LF_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_13:
	cmpl	$0, 8(%r12)
	jle	LBB0_26
## %bb.14:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	addq	%rax, -72(%rbp)                 ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	movslq	8(%r12), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r13
	jge	LBB0_4
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rax,%r13,4), %ebx
	movl	(%rcx,%r13,4), %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	callq	_is_txschq_config_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movzwl	%bx, %r14d
	xorl	%edi, %edi
	callq	_NIX_AF_SMQX_CFG
	cmpl	%eax, %r14d
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	-104(%rbp), %rsi                ## 8-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_rvu_get_lf
	andl	$-2130706433, %r15d             ## imm = 0x80FFFFFF
	shll	$24, %eax
	orl	%eax, %r15d
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%edi, %edi
	callq	_NIX_AF_TL1X_SCHEDULE
	cmpl	%eax, %r14d
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%edi, %edi
	callq	_NIX_AF_TL1X_GREEN_BYTES
	cmpl	%eax, %r14d
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_TXSCHQ_IDX_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_TXSCHQ_IDX
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	callq	_TXSCH_MAP_FUNC
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edi
	callq	_TXSCH_MAP_FLAGS
	movq	_NIX_TXSCHQ_TL1_CFG_DONE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_TXSCH_MAP
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_rvu_write64
	xorl	%edi, %edi
	callq	_NIX_AF_SMQX_CFG
	cmpl	%eax, %r14d
	movq	%rbx, %r14
	jne	LBB0_15
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$49, %edi
	callq	_BIT_ULL
	testl	%r15d, %eax
	je	LBB0_15
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$49, %edi
	callq	_BIT_ULL
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_rvu_poll_reg
	testl	%eax, %eax
	je	LBB0_15
## %bb.25:
	movq	_NIX_AF_SMQ_FLUSH_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NIX_TXSCH_LVL_CNT,8,3          ## @NIX_TXSCH_LVL_CNT
	.comm	_MAX_REGS_PER_MBOX_MSG,4,2      ## @MAX_REGS_PER_MBOX_MSG
	.comm	_NIX_AF_INVAL_TXSCHQ_CFG,4,2    ## @NIX_AF_INVAL_TXSCHQ_CFG
	.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	_RVU_PFVF_FUNC_MASK,8,3         ## @RVU_PFVF_FUNC_MASK
	.comm	_NIX_TXSCH_LVL_TL1,8,3          ## @NIX_TXSCH_LVL_TL1
	.comm	_TXSCHQ_IDX_SHIFT,4,2           ## @TXSCHQ_IDX_SHIFT
	.comm	_NIX_TXSCHQ_TL1_CFG_DONE,8,3    ## @NIX_TXSCHQ_TL1_CFG_DONE
	.comm	_NIX_AF_SMQ_FLUSH_FAILED,4,2    ## @NIX_AF_SMQ_FLUSH_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_txschq_cfg ; -- Begin function rvu_mbox_handler_nix_txschq_cfg
	.p2align	2
_rvu_mbox_handler_nix_txschq_cfg:       ; @rvu_mbox_handler_nix_txschq_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #8]
Lloh3:
	adrp	x9, _MAX_REGS_PER_MBOX_MSG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_REGS_PER_MBOX_MSG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _NIX_AF_INVAL_TXSCHQ_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NIX_AF_INVAL_TXSCHQ_CFG@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	mov	x19, x0
	ldr	x21, [x20, #32]
	ldr	x8, [x0, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _BLKTYPE_NIX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLKTYPE_NIX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_rvu_get_blkaddr
	tbnz	w0, #31, LBB0_22
; %bb.6:
	mov	x22, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_get_nix_hw
	cbz	x0, LBB0_23
; %bb.7:
	mov	x23, x0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x1, x8, w22, uxtw #2
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_rvu_get_lf
	tbnz	w0, #31, LBB0_22
; %bb.8:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _RVU_PFVF_FUNC_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RVU_PFVF_FUNC_MASK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	and	x9, x9, x21
Lloh14:
	adrp	x10, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, #0
	ccmp	x8, x10, #0, ne
	b.eq	LBB0_24
; %bb.9:
	ldr	w9, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.10:
	mov	x27, #0
	mov	w26, w22
	ldr	x9, [x23]
	add	x10, x9, x8, lsl #4
	ldr	x10, [x10, #8]
	stp	x10, x26, [sp, #16]             ; 16-byte Folded Spill
	add	x25, x9, x8, lsl #4
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	add	x27, x27, #1
	ldrsw	x8, [x20, #8]
	cmp	x27, x8
	b.ge	LBB0_4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x27, #2
	ldp	x9, x10, [x20, #16]
	ldr	w23, [x9, x8]
	ldr	w24, [x10, x8]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x4, x23
	mov	x5, x24
	bl	_is_txschq_config_valid
	cbz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	and	w28, w23, #0xffff
	mov	w0, #0
	bl	_NIX_AF_SMQX_CFG
	cmp	w28, w0
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x1, x8, x26, lsl #2
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_rvu_get_lf
	and	w8, w24, #0x80ffffff
	orr	w24, w8, w0, lsl #24
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	bl	_NIX_AF_TL1X_SCHEDULE
	cmp	w28, w0
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #0
	bl	_NIX_AF_TL1X_GREEN_BYTES
	cmp	w28, w0
	b.gt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh17:
	adrp	x8, _TXSCHQ_IDX_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TXSCHQ_IDX_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_TXSCHQ_IDX
	mov	x25, x0
	mov	x0, x19
	bl	_mutex_lock
	lsl	x26, x25, #2
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w0, [x25, x26]
	bl	_TXSCH_MAP_FUNC
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w0, [x25, x26]
	bl	_TXSCH_MAP_FLAGS
Lloh20:
	adrp	x8, _NIX_TXSCHQ_TL1_CFG_DONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NIX_TXSCHQ_TL1_CFG_DONE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	orr	x1, x8, x0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_TXSCH_MAP
	str	w0, [x25, x26]
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_mutex_unlock
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_rvu_write64
	mov	w0, #0
	bl	_NIX_AF_SMQX_CFG
	cmp	w28, w0
	b.ne	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #49
	bl	_BIT_ULL
	tst	w0, w24
	b.eq	LBB0_11
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #49
	bl	_BIT_ULL
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w4, #1
	bl	_rvu_poll_reg
	cbz	w0, LBB0_11
; %bb.21:
Lloh23:
	adrp	x8, _NIX_AF_SMQ_FLUSH_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NIX_AF_SMQ_FLUSH_FAILED@GOTPAGEOFF]
	b	LBB0_3
LBB0_22:
Lloh25:
	adrp	x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGEOFF]
	b	LBB0_3
LBB0_23:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_24:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_nix_tl1_default_cfg
LBB0_25:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NIX_TXSCH_LVL_CNT,8,3          ; @NIX_TXSCH_LVL_CNT
	.comm	_MAX_REGS_PER_MBOX_MSG,4,2      ; @MAX_REGS_PER_MBOX_MSG
	.comm	_NIX_AF_INVAL_TXSCHQ_CFG,4,2    ; @NIX_AF_INVAL_TXSCHQ_CFG
	.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	_RVU_PFVF_FUNC_MASK,8,3         ; @RVU_PFVF_FUNC_MASK
	.comm	_NIX_TXSCH_LVL_TL1,8,3          ; @NIX_TXSCH_LVL_TL1
	.comm	_TXSCHQ_IDX_SHIFT,4,2           ; @TXSCHQ_IDX_SHIFT
	.comm	_NIX_TXSCHQ_TL1_CFG_DONE,8,3    ; @NIX_TXSCHQ_TL1_CFG_DONE
	.comm	_NIX_AF_SMQ_FLUSH_FAILED,4,2    ; @NIX_AF_SMQ_FLUSH_FAILED
.subsections_via_symbols
