	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edma_link
_edma_link:                             ## @edma_link
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_EDMA_CTLR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_EDMA_CTLR
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_2:
	movl	%r12d, %edi
	callq	_EDMA_CHAN_SLOT
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_EDMA_CHAN_SLOT
	movl	(%r14), %ecx
	cmpl	%ecx, %ebx
	jae	LBB0_4
## %bb.3:
	cmpl	%ecx, %eax
	jae	LBB0_4
## %bb.5:
	movq	_PARM_LINK_BCNTRLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %edi
	callq	_PARM_OFFSET
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	$-65536, %ecx                   ## imm = 0xFFFF0000
	movl	%eax, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edma_param_modify              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ignoring eDMA instance for linking\n"

	.comm	_PARM_LINK_BCNTRLD,4,2          ## @PARM_LINK_BCNTRLD
	.no_dead_strip	_edma_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edma_link
_edma_link:                             ; @edma_link
	.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
	mov	x0, x1
	bl	_EDMA_CTLR
	mov	x22, x0
	mov	x0, x20
	bl	_EDMA_CTLR
	cmp	x22, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	mov	x0, x21
	bl	_EDMA_CHAN_SLOT
	mov	x21, x0
	mov	x0, x20
	bl	_EDMA_CHAN_SLOT
	ldr	w8, [x19]
	cmp	w21, w8
	b.hs	LBB0_5
; %bb.3:
	cmp	w0, w8
	b.hs	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _PARM_LINK_BCNTRLD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PARM_LINK_BCNTRLD@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_PARM_OFFSET
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #-65536
	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
	b	_edma_param_modify
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ignoring eDMA instance for linking\n"

	.comm	_PARM_LINK_BCNTRLD,4,2          ; @PARM_LINK_BCNTRLD
	.no_dead_strip	_edma_link
.subsections_via_symbols
