	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_configure
_channel_configure:                     ## @channel_configure
	.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	(%rdi), %edi
	cmpl	$1, %esi
	jne	LBB0_2
## %bb.1:
	testl	%edi, %edi
	je	LBB0_4
LBB0_2:
	testl	%esi, %esi
	jne	LBB0_5
## %bb.3:
	cmpl	$1, %edi
	jne	LBB0_5
LBB0_4:
	movq	_NCHAN_PER_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%edi, %edi
	incl	%edi
	movl	%ecx, %r14d
	jmp	LBB0_6
LBB0_5:
	addl	%edi, %edi
	movq	_NCHAN_PER_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
LBB0_6:
	movl	$-1, %eax
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.7:
	addl	%r14d, %ecx
	movq	_edma_map@GOTPCREL(%rip), %r9
	movslq	%r14d, %r10
	movslq	%ecx, %r8
	movq	%r10, %rsi
	shlq	$4, %rsi
	addq	(%r9), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rsi)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rsi
	leaq	(%r10,%rcx), %rbx
	incq	%rbx
	incq	%rcx
	cmpq	%r8, %rbx
	jl	LBB0_8
	jmp	LBB0_11
LBB0_10:
	addl	%ecx, %r14d
	movl	$1, (%rsi)
	movl	%edi, 4(%rsi)
	movl	%edx, 8(%rsi)
	movl	%ecx, 12(%rsi)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	$1, %ecx
	callq	_dmamux_configure
	movl	%r14d, %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCHAN_PER_MUX,4,2              ## @NCHAN_PER_MUX
	.comm	_edma_map,8,3                   ## @edma_map
	.no_dead_strip	_channel_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_configure
_channel_configure:                     ; @channel_configure
	.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
	ldr	w8, [x0]
	cmp	w1, #1
	b.ne	LBB0_2
; %bb.1:
	cbz	w8, LBB0_4
LBB0_2:
	cbnz	w1, LBB0_5
; %bb.3:
	cmp	w8, #1
	b.ne	LBB0_5
LBB0_4:
Lloh0:
	adrp	x9, _NCHAN_PER_MUX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NCHAN_PER_MUX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	mov	x9, x10
	cmp	w10, #1
	b.ge	LBB0_6
	b	LBB0_9
LBB0_5:
	mov	w9, #0
	lsl	w0, w8, #1
Lloh3:
	adrp	x8, _NCHAN_PER_MUX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCHAN_PER_MUX@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_9
LBB0_6:
	mov	x8, #0
	add	w10, w10, w9
Lloh6:
	adrp	x11, _edma_map@GOTPAGE
Lloh7:
	ldr	x11, [x11, _edma_map@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x11]
	sxtw	x11, w9
	sxtw	x12, w10
	add	x10, x13, w9, sxtw #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10]
	cbz	w13, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	add	x13, x11, x8
	cmp	x13, x12
	b.lt	LBB0_7
LBB0_9:
	mov	w19, #-1
	b	LBB0_11
LBB0_10:
	add	w19, w9, w8
	mov	w9, #1
	stp	w9, w0, [x10]
	stp	w2, w8, [x10, #8]
	mov	x1, x2
	mov	x2, x8
	mov	w3, #1
	bl	_dmamux_configure
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NCHAN_PER_MUX,4,2              ; @NCHAN_PER_MUX
	.comm	_edma_map,8,3                   ; @edma_map
	.no_dead_strip	_channel_configure
.subsections_via_symbols
