	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_valid_txschq
_is_valid_txschq:                       ## @is_valid_txschq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_get_nix_hw
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movslq	%r13d, %r15
	shlq	$4, %r15
	cmpq	%r12, 8(%r14,%r15)
	jbe	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r14,%r15), %rax
	movl	(%rax,%r12,4), %edi
	callq	_TXSCH_MAP_FUNC
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_NIX_TXSCH_LVL_TL1@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	%r13d, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_rvu_get_pf
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rvu_get_pf
	cmpq	%rax, %r14
	movl	$0, %ecx
	jne	LBB0_6
## %bb.4:
	movl	(%r15), %eax
LBB0_5:
	cmpl	%r13d, %eax
	sete	%al
	cmpq	%rbx, %r12
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIX_TXSCH_LVL_TL1,4,2          ## @NIX_TXSCH_LVL_TL1
	.no_dead_strip	_is_valid_txschq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_valid_txschq
_is_valid_txschq:                       ; @is_valid_txschq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_get_nix_hw
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x23, [x0]
	add	x8, x23, w20, sxtw #4
	ldr	x8, [x8, #8]
	cmp	x8, x22
	b.ls	LBB0_6
; %bb.2:
	sxtw	x24, w20
	mov	x0, x21
	bl	_mutex_lock
	lsl	x8, x24, #4
	ldr	x8, [x23, x8]
	ldr	w0, [x8, x22, lsl #2]
	bl	_TXSCH_MAP_FUNC
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
Lloh0:
	adrp	x23, _NIX_TXSCH_LVL_TL1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NIX_TXSCH_LVL_TL1@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_rvu_get_pf
	mov	x21, x0
	mov	x0, x19
	bl	_rvu_get_pf
	cmp	x21, x0
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x23]
LBB0_5:
	cmp	w8, w20
	ccmp	x22, x19, #4, ne
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NIX_TXSCH_LVL_TL1,4,2          ; @NIX_TXSCH_LVL_TL1
	.no_dead_strip	_is_valid_txschq
.subsections_via_symbols
