	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function engine_to_vl
_engine_to_vl:                          ## @engine_to_vl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testl	%esi, %esi
	js	LBB0_3
## %bb.1:
	movl	%esi, %ebx
	movq	_TXE_NUM_SDMA_ENGINES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r15), %edi
	callq	_rcu_dereference
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %r14d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXE_NUM_SDMA_ENGINES,4,2       ## @TXE_NUM_SDMA_ENGINES
	.no_dead_strip	_engine_to_vl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function engine_to_vl
_engine_to_vl:                          ; @engine_to_vl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	w20, #-1
	tbnz	w1, #31, LBB0_3
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _TXE_NUM_SDMA_ENGINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXE_NUM_SDMA_ENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.2:
	mov	x21, x0
	bl	_rcu_read_lock
	ldr	w0, [x21]
	bl	_rcu_dereference
	ldr	x8, [x0]
	ldr	w20, [x8, w19, uxtw #2]
	bl	_rcu_read_unlock
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TXE_NUM_SDMA_ENGINES,4,2       ; @TXE_NUM_SDMA_ENGINES
	.no_dead_strip	_engine_to_vl
.subsections_via_symbols
