	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function spx_coordinates
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x40400000                      ## float 3
LCPI0_2:
	.long	0x34000000                      ## float 1.1920929E-7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_spx_coordinates:                       ## @spx_coordinates
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r13
	leaq	64(%rdi), %r12
	incq	-80(%rbp)                       ## 8-byte Folded Spill
	movl	$1, %edx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rax,%rdx,4)
	movaps	%xmm0, %xmm1
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	movaps	%xmm1, %xmm0
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%r13), %rax
	movq	56(%r13), %rcx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rax,%rdx,4)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_get_bits1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rax,%rdx,4)
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %edi
	callq	_AC3_SPX_BLEND
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$0, 20(%r13)
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %r14d
	leal	(%rax,%rax,2), %eax
	movl	$25, %ecx
	subl	%eax, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movl	(%rax,%r15,4), %r12d
	movl	%r12d, %eax
	sarl	%eax
	addl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	32(%r13), %xmm0
	subss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	xorps	%xmm0, %xmm0
	callq	_av_clipf
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sqrtf
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_sqrtf
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%r12d, %r14d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %ecx
	addl	$4, %eax
	cmpl	$15, %ebx
	cmovel	%ecx, %eax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	subl	%ebx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	xorps	%xmm3, %xmm3
	cvtsi2ssl	-68(%rbp), %xmm3        ## 4-byte Folded Reload
	mulss	%xmm2, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm3
	cvttss2si	%xmm3, %eax
	movq	40(%r13), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%r15,4)
	xorps	%xmm2, %xmm2
	cvtsi2ssl	-44(%rbp), %xmm2        ## 4-byte Folded Reload
	mulss	%xmm0, %xmm2
	cvttss2si	%xmm2, %eax
	movq	48(%r13), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	movslq	20(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_8
	jmp	LBB0_10
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spx_coordinates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spx_coordinates
_spx_coordinates:                       ; @spx_coordinates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x20, x0
	ldr	w8, [x20], #64
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	add	x8, x8, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	fmov	s8, #1.00000000
	fmov	s9, #3.00000000
	movi.2s	v10, #52, lsl #24
	mov	w26, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	str	w9, [x8, x26, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19, #56]
	ldr	x9, [x8, x26, lsl #3]
	ldr	x8, [x19, #8]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, x26, lsl #2]
	cbnz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x8, x26, lsl #2]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	bl	_AC3_SPX_BLEND
	mov	x21, x0
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	ldr	w28, [x19, #16]
	sub	w8, w0, w0, lsl #2
	scvtf	s11, w21
	add	w25, w8, #25
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	lsl	x24, x27, #2
	ldr	w23, [x8, x24]
	add	w8, w28, w23, asr #1
	scvtf	s0, w8
	ldr	s1, [x19, #32]
	fdiv	s0, s0, s1
	fsub	s0, s0, s11
	fcvtzs	w0, s0
	movi	d0, #0000000000000000
	fmov	s1, #1.00000000
	bl	_av_clipf
	scvtf	s12, w0
	fmul	s0, s12, s9
	bl	_sqrtf
	mov	x21, x0
	fsub	s0, s8, s12
	bl	_sqrtf
	mov	x22, x0
	add	w28, w23, w28
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	x23, x0
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	lsl	w8, w0, #1
	add	w9, w0, #4
	cmp	w23, #15
	csel	w8, w8, w9, eq
	sub	w9, w25, w23
	lsl	w8, w8, w9
	scvtf	s0, w8
	scvtf	s1, w21
	fmul	s0, s0, s10
	fmul	s1, s0, s1
	scvtf	s2, w22
	fmul	s0, s0, s2
	lsl	x8, x26, #3
	ldp	x9, x10, [x19, #40]
	ldr	x9, [x9, x8]
	fcvtzs	w11, s1
	fcvtzs	w12, s0
	ldr	x8, [x10, x8]
	str	w11, [x9, x24]
	str	w12, [x8, x24]
	add	x27, x27, #1
	ldrsw	x8, [x19, #20]
	cmp	x27, x8
	b.lt	LBB0_10
	b	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spx_coordinates
.subsections_via_symbols
