	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_select_user_engine        ## -- Begin function sdma_select_user_engine
	.p2align	4, 0x90
_sdma_select_user_engine:               ## @sdma_select_user_engine
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r12), %edi
	movq	_sdma_rht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_rhashtable_lookup_fast
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%rax), %rcx
	movq	(%rax), %rax
	andq	%r14, %rax
	movq	(%rcx,%rax,8), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sdma_select_engine_vl
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_sdma_rht_params,4,2            ## @sdma_rht_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_select_user_engine        ; -- Begin function sdma_select_user_engine
	.p2align	2
_sdma_select_user_engine:               ; @sdma_select_user_engine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
	bl	_smp_processor_id
	str	x0, [sp, #8]
	bl	_rcu_read_lock
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _sdma_rht_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sdma_rht_params@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_rhashtable_lookup_fast
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x8, x9, [x8]
	and	x8, x8, x20
	ldr	x22, [x9, x8, lsl #3]
	bl	_rcu_read_unlock
	cbnz	x22, LBB0_6
	b	LBB0_5
LBB0_4:
	bl	_rcu_read_unlock
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sdma_select_engine_vl
	mov	x22, x0
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_sdma_rht_params,4,2            ; @sdma_rht_params
.subsections_via_symbols
