	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_select_engine_vl          ## -- Begin function sdma_select_engine_vl
	.p2align	4, 0x90
_sdma_select_engine_vl:                 ## @sdma_select_engine_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_num_vls@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%r12), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	(%r12), %rbx
	jmp	LBB0_6
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rbx), %rcx
	andq	%r14, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rcx
	movq	(%rax), %rax
	andq	%r15, %rax
	movq	(%rcx,%rax,8), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_4:
	movq	(%r12), %rbx
LBB0_5:
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_trace_hfi1_sdma_engine_select
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_vls,8,3                    ## @num_vls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_select_engine_vl          ; -- Begin function sdma_select_engine_vl
	.p2align	2
_sdma_select_engine_vl:                 ; @sdma_select_engine_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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _num_vls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_vls@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ls	LBB0_4
; %bb.1:
	bl	_rcu_read_lock
	ldr	w0, [x19, #8]
	bl	_rcu_dereference
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	bl	_rcu_read_unlock
	ldr	x22, [x19]
	b	LBB0_6
LBB0_3:
	ldp	x9, x8, [x22]
	and	x9, x9, x20
	ldr	x8, [x8, x9, lsl #3]
	ldp	x8, x9, [x8]
	and	x8, x8, x21
	ldr	x22, [x9, x8, lsl #3]
	bl	_rcu_read_unlock
	cbnz	x22, LBB0_5
LBB0_4:
	ldr	x22, [x19]
LBB0_5:
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_trace_hfi1_sdma_engine_select
LBB0_6:
	mov	x0, x22
	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	_num_vls,8,3                    ; @num_vls
.subsections_via_symbols
