	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_sdma_eng_name
_is_sdma_eng_name:                      ## @is_sdma_eng_name
	.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
	movl	%edx, %r13d
	movq	_TXE_NUM_SDMA_ENGINES@GOTPCREL(%rip), %rcx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpl	$3, %eax
	setb	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_sdma_int_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXE_NUM_SDMA_ENGINES,4,2       ## @TXE_NUM_SDMA_ENGINES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%u"

	.comm	_sdma_int_names,8,3             ## @sdma_int_names
L_.str.1:                               ## @.str.1
	.asciz	"Invalid SDMA interrupt %u"

	.no_dead_strip	_is_sdma_eng_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_sdma_eng_name
_is_sdma_eng_name:                      ; @is_sdma_eng_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TXE_NUM_SDMA_ENGINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXE_NUM_SDMA_ENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	udiv	w22, w2, w23
	cmp	w22, #3
	cset	w0, lo
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	msub	w8, w22, w23, w21
Lloh3:
	adrp	x9, _sdma_int_names@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sdma_int_names@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9, w22, uxtw #3]
	stp	x9, x8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	str	x21, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TXE_NUM_SDMA_ENGINES,4,2       ; @TXE_NUM_SDMA_ENGINES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%u"

	.comm	_sdma_int_names,8,3             ; @sdma_int_names
l_.str.1:                               ; @.str.1
	.asciz	"Invalid SDMA interrupt %u"

	.no_dead_strip	_is_sdma_eng_name
.subsections_via_symbols
