	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edma_assign_channel_eventq
_edma_assign_channel_eventq:            ## @edma_assign_channel_eventq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_EDMA_CHAN_SLOT
                                        ## kill: def $eax killed $eax def $rax
	movq	_EVENTQ_DEFAULT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %ebx
LBB0_2:
	cmpl	4(%r14), %ebx
	jae	LBB0_3
## %bb.4:
	leal	(,%rax,4), %ecx
	andl	$28, %ecx
	andl	$7, %ebx
	movq	_EDMA_DMAQNUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	sarl	$3, %eax
	movl	$7, %r8d
	shll	%cl, %r8d
	notl	%r8d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%r8d, %ecx
	movl	%ebx, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_edma_modify_array              ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENTQ_DEFAULT,4,2             ## @EVENTQ_DEFAULT
	.comm	_EDMA_DMAQNUM,4,2               ## @EDMA_DMAQNUM
	.no_dead_strip	_edma_assign_channel_eventq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edma_assign_channel_eventq
_edma_assign_channel_eventq:            ; @edma_assign_channel_eventq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
	bl	_EDMA_CHAN_SLOT
Lloh0:
	adrp	x8, _EVENTQ_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENTQ_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x19]
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.hs	LBB0_4
; %bb.3:
	ubfiz	w8, w0, #2, #3
Lloh3:
	adrp	x9, _EDMA_DMAQNUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDMA_DMAQNUM@GOTPAGEOFF]
	and	w10, w20, #0x7
Lloh5:
	ldr	w1, [x9]
	asr	w2, w0, #3
	mov	w9, #7
	lsl	w9, w9, w8
	mvn	w3, w9
	lsl	w4, w10, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_edma_modify_array
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENTQ_DEFAULT,4,2             ; @EVENTQ_DEFAULT
	.comm	_EDMA_DMAQNUM,4,2               ; @EDMA_DMAQNUM
	.no_dead_strip	_edma_assign_channel_eventq
.subsections_via_symbols
