	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function I_SetChannels
LCPI0_0:
	.quad	0x3f90000000000000              ## double 0.015625
LCPI0_1:
	.quad	0x4000000000000000              ## double 2
LCPI0_2:
	.quad	0x40f0000000000000              ## double 65536
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_3:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_4:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_5:
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
LCPI0_6:
	.long	2164392969                      ## 0x81020409
	.long	2164392969                      ## 0x81020409
	.long	2164392969                      ## 0x81020409
	.long	2164392969                      ## 0x81020409
LCPI0_7:
	.long	4294967172                      ## 0xffffff84
	.long	4294967172                      ## 0xffffff84
	.long	4294967172                      ## 0xffffff84
	.long	4294967172                      ## 0xffffff84
LCPI0_8:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_I_SetChannels
	.p2align	4, 0x90
_I_SetChannels:                         ## @I_SetChannels
	.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
	movq	_steptable@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	$4, %r14
	movq	$-128, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_pow
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%ebx, %ecx
	orl	$1, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movl	%eax, -4(%r14)
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_pow
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%r14)
	addq	$2, %rbx
	addq	$8, %r14
	cmpq	$128, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_vol_lookup@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rax
	xorl	%ecx, %ecx
	movaps	LCPI0_3(%rip), %xmm8            ## xmm8 = [2,3]
	movaps	LCPI0_4(%rip), %xmm9            ## xmm9 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	movdqa	LCPI0_5(%rip), %xmm10           ## xmm10 = [4294967168,4294967168,4294967168,4294967168]
	movdqa	LCPI0_6(%rip), %xmm3            ## xmm3 = [2164392969,2164392969,2164392969,2164392969]
	movdqa	LCPI0_7(%rip), %xmm11           ## xmm11 = [4294967172,4294967172,4294967172,4294967172]
	movdqa	LCPI0_8(%rip), %xmm12           ## xmm12 = [8,8]
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, %xmm0
	pshufd	$68, %xmm0, %xmm13              ## xmm13 = xmm0[0,1,0,1]
	psllq	$8, %xmm13
	xorl	%edx, %edx
	movaps	%xmm9, %xmm4
	movaps	%xmm8, %xmm0
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	%xmm4, %xmm2
	shufps	$136, %xmm0, %xmm2              ## xmm2 = xmm2[0,2],xmm0[0,2]
	movaps	%xmm2, %xmm1
	paddd	%xmm10, %xmm1
	movdqa	%xmm13, %xmm6
	shufps	$136, %xmm13, %xmm6             ## xmm6 = xmm6[0,2],xmm13[0,2]
	pmulld	%xmm6, %xmm1
	pshufd	$245, %xmm1, %xmm5              ## xmm5 = xmm1[1,1,3,3]
	pmuldq	%xmm3, %xmm5
	movdqa	%xmm1, %xmm7
	pmuldq	%xmm3, %xmm7
	pshufd	$245, %xmm7, %xmm7              ## xmm7 = xmm7[1,1,3,3]
	pblendw	$204, %xmm5, %xmm7              ## xmm7 = xmm7[0,1],xmm5[2,3],xmm7[4,5],xmm5[6,7]
	paddd	%xmm1, %xmm7
	movdqa	%xmm7, %xmm1
	psrld	$31, %xmm1
	psrad	$6, %xmm7
	paddd	%xmm1, %xmm7
	movdqu	%xmm7, -16(%rax,%rdx,4)
	paddd	%xmm11, %xmm2
	pmulld	%xmm6, %xmm2
	pshufd	$245, %xmm2, %xmm1              ## xmm1 = xmm2[1,1,3,3]
	pmuldq	%xmm3, %xmm1
	movdqa	%xmm2, %xmm5
	pmuldq	%xmm3, %xmm5
	pshufd	$245, %xmm5, %xmm5              ## xmm5 = xmm5[1,1,3,3]
	pblendw	$204, %xmm1, %xmm5              ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5],xmm1[6,7]
	paddd	%xmm2, %xmm5
	movdqa	%xmm5, %xmm1
	psrld	$31, %xmm1
	psrad	$6, %xmm5
	paddd	%xmm1, %xmm5
	movdqu	%xmm5, (%rax,%rdx,4)
	addq	$8, %rdx
	paddq	%xmm12, %xmm4
	paddq	%xmm12, %xmm0
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	addq	$1024, %rax                     ## imm = 0x400
	cmpq	$128, %rcx
	jne	LBB0_3
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_steptable,8,3                  ## @steptable
	.comm	_vol_lookup,8,3                 ## @vol_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_I_SetChannels                  ; -- Begin function I_SetChannels
	.p2align	2
_I_SetChannels:                         ; @I_SetChannels
	.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	x19, #0
Lloh0:
	adrp	x8, _steptable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _steptable@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	x21, #4580160821035794432
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, #128
	scvtf	d0, w8
	fmov	d1, x21
	fmul	d0, d0, d1
	fcvtzs	w0, d0
	fmov	d0, #2.00000000
	bl	_pow
	fcvtzs	w8, d0, #16
	str	w8, [x20, x19, lsl #2]
	add	x19, x19, #1
	cmp	x19, #256
	b.ne	LBB0_1
; %bb.2:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
	mov	w11, #0
	mov	w12, #0
	mov	x13, #0
Lloh3:
	adrp	x14, _vol_lookup@GOTPAGE
Lloh4:
	ldr	x14, [x14, _vol_lookup@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	mov	w15, #1033
	movk	w15, #33026, lsl #16
	mov	w16, #-32000
	mov	w17, #-32256
	mov	w0, #-32512
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x1, #0
	mov	w2, #0
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w3, w8, w2
	smull	x4, w3, w15
	lsr	x4, x4, #32
	add	w3, w4, w3
	asr	w4, w3, #6
	add	w3, w4, w3, lsr #31
	add	w4, w9, w2
	smull	x5, w4, w15
	lsr	x5, x5, #32
	add	w4, w5, w4
	asr	w5, w4, #6
	add	w4, w5, w4, lsr #31
	add	w5, w10, w2
	smull	x6, w5, w15
	lsr	x6, x6, #32
	add	w5, w6, w5
	asr	w6, w5, #6
	add	w5, w6, w5, lsr #31
	add	w6, w12, w2
	smull	x7, w6, w15
	lsr	x7, x7, #32
	add	w6, w7, w6
	asr	w7, w6, #6
	add	w6, w7, w6, lsr #31
	add	x7, x14, x1
	stp	w3, w4, [x7]
	stp	w5, w6, [x7, #8]
	add	w2, w2, w11
	add	x1, x1, #16
	cmp	x1, #1024
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	add	w12, w12, w16
	add	w11, w11, #1024
	add	w10, w10, w17
	add	w9, w9, w0
	add	x14, x14, #1024
	sub	w8, w8, #8, lsl #12             ; =32768
	cmp	x13, #128
	b.ne	LBB0_3
; %bb.6:
	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	_steptable,8,3                  ; @steptable
	.comm	_vol_lookup,8,3                 ; @vol_lookup
.subsections_via_symbols
