	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_process                ## -- Begin function channel_process
	.p2align	4, 0x90
_channel_process:                       ## @channel_process
	.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
	movq	_g_num_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	_g_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%r12,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$48, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_in_uint32_le
	movq	%r15, %rdi
	callq	_in_uint32_le
	movq	24(%r15), %rdi
	subq	16(%r15), %rdi
	movl	16(%r12,%rbx), %esi
	shlq	$2, %rsi
	addq	24(%r12,%rbx), %rsi
	sarq	$2, %rdi
	subq	32(%r12,%rbx), %rsi
	shrq	$2, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MIN
	movl	%eax, %r14d
	movq	32(%r12,%rbx), %rdi
	movq	16(%r15), %rsi
	movl	%eax, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	shlq	$2, %rax
	addq	%rax, 32(%r12,%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_num_channels,4,2             ## @g_num_channels
	.comm	_g_channels,8,3                 ## @g_channels
	.comm	_CHANNEL_FLAG_FIRST,4,2         ## @CHANNEL_FLAG_FIRST
	.comm	_CHANNEL_FLAG_LAST,4,2          ## @CHANNEL_FLAG_LAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_process                ; -- Begin function channel_process
	.p2align	2
_channel_process:                       ; @channel_process
	.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
Lloh0:
	adrp	x8, _g_num_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_num_channels@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _g_channels@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g_channels@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x21, x9, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x21, #-32]
	cmp	x9, x1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #48
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_in_uint32_le
	mov	x0, x19
	bl	_in_uint32_le
	ldp	x9, x8, [x19, #16]
	sub	x8, x8, x9
	asr	x0, x8, #2
	ldur	x8, [x21, #-8]
	ldur	w9, [x21, #-16]
	add	x8, x8, x9, lsl #2
	ldr	x9, [x21]
	sub	x8, x8, x9
	lsr	x1, x8, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MIN
	mov	x20, x0
	ldr	x0, [x21]
	ldr	x1, [x19, #16]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #2
	str	x8, [x21]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_num_channels,4,2             ; @g_num_channels
	.comm	_g_channels,8,3                 ; @g_channels
	.comm	_CHANNEL_FLAG_FIRST,4,2         ; @CHANNEL_FLAG_FIRST
	.comm	_CHANNEL_FLAG_LAST,4,2          ; @CHANNEL_FLAG_LAST
.subsections_via_symbols
