	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_check_valid_reg            ## -- Begin function rvu_check_valid_reg
	.p2align	4, 0x90
_rvu_check_valid_reg:                   ## @rvu_check_valid_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testb	$7, %dl
	jne	LBB0_11
## %bb.1:
	movq	_TXSCHQ_HWREGMAP@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_11
## %bb.2:
	movq	_NIX_TXSCH_LVL_CNT@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jle	LBB0_11
## %bb.3:
	movq	_txsch_reg_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	cmpl	%ecx, (%rdi,%rsi,8)
	jne	LBB0_11
## %bb.4:
	movl	8(%rdi,%rsi,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.5:
	andl	4(%rdi,%rsi,8), %edx
	movq	16(%rdi,%rsi,8), %rax
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rax,%rsi,8), %edx
	jl	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	4(%rax,%rsi,8), %edx
	jge	LBB0_9
## %bb.8:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXSCHQ_HWREGMAP,4,2            ## @TXSCHQ_HWREGMAP
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ## @NIX_TXSCH_LVL_CNT
	.comm	_txsch_reg_map,8,3              ## @txsch_reg_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_check_valid_reg            ; -- Begin function rvu_check_valid_reg
	.p2align	2
_rvu_check_valid_reg:                   ; @rvu_check_valid_reg
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x8, x0
	mov	w0, #0
	tst	w2, #0x7
	b.ne	LBB0_10
; %bb.1:
Lloh0:
	adrp	x9, _TXSCHQ_HWREGMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXSCHQ_HWREGMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NIX_TXSCH_LVL_CNT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NIX_TXSCH_LVL_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w10, w1, #4, eq
	b.le	LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _txsch_reg_map@GOTPAGE
Lloh7:
	ldr	x8, [x8, _txsch_reg_map@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	mov	w8, #24
	smull	x8, w1, w8
	ldr	w8, [x10, x8]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.3:
	sxtw	x11, w1
	mov	w8, #24
	madd	x9, x11, x8, x10
	ldr	w8, [x9, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	ldr	w9, [x9, #4]
	and	w9, w9, w2
	mov	w12, #24
	madd	x10, x11, x12, x10
	ldr	x10, [x10, #16]
	add	x10, x10, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cmp	w9, w11
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x10]
	cmp	w9, w11
	b.ge	LBB0_5
; %bb.8:
	mov	w0, #1
	ret
LBB0_9:
	mov	w0, #0
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TXSCHQ_HWREGMAP,4,2            ; @TXSCHQ_HWREGMAP
	.comm	_NIX_TXSCH_LVL_CNT,4,2          ; @NIX_TXSCH_LVL_CNT
	.comm	_txsch_reg_map,8,3              ; @txsch_reg_map
.subsections_via_symbols
