	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function video_audio_display
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_video_audio_display:                   ## @video_audio_display
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %eax
	addl	%eax, %eax
	movl	$1, %ecx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	incl	%ecx
	decl	%r13d
	cmpl	%eax, %edx
	jl	LBB0_1
## %bb.2:
	movl	%r13d, %ecx
	notb	%cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	80(%rbx), %ecx
	cmpl	$0, 60(%rbx)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.14:
	movl	32(%rbx), %r9d
	movq	8(%rbx), %rcx
	movq	_SHOW_MODE_WAVES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_15
LBB0_3:
	movq	8(%rbx), %rax
	movq	_SHOW_MODE_WAVES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	jne	LBB0_5
## %bb.4:
	movl	16(%rbx), %r12d
	jmp	LBB0_6
LBB0_5:
	leal	(%r14,%r14), %r12d
LBB0_6:
	leal	(%rcx,%rcx), %esi
	movl	20(%rbx), %eax
	cltd
	idivl	%esi
	movl	%eax, %r15d
	movq	_audio_callback_time@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subl	(%r14), %eax
	imull	84(%rbx), %eax
	cltq
	imulq	$-1125899907, %rax, %rax        ## imm = 0xBCE4217D
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$50, %rax
	addl	%edx, %eax
	addl	%r15d, %eax
	movl	%eax, %r15d
LBB0_8:
	leal	(%r15,%r12,2), %eax
	cmpl	%r12d, %eax
	cmovgl	%eax, %r12d
	movq	72(%rbx), %rdi
	imull	%ecx, %r12d
	movslq	%r12d, %rax
	subq	%rax, %rdi
	movq	_SAMPLE_ARRAY_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rcx, %rbx
	callq	_compute_mod
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r9d
	movq	8(%rcx), %rax
	movq	_SHOW_MODE_WAVES@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	cmpq	%rdx, %rax
	jne	LBB0_13
## %bb.9:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	(%r14), %edi
	movq	24(%rcx), %r11
	leal	(%rbx,%rbx,8), %r15d
	leal	(%rbx,%rbx,4), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(,%rbx,4), %r12d
	movl	%r9d, %ecx
	addl	%edi, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %r8d
	subl	%eax, %ecx
	cmpl	$1000, %r8d                     ## imm = 0x3E8
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%edx, %esi
	movslq	%edx, %rax
	movl	(%r11,%rax,4), %ebx
	addl	%r15d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	subl	(%r11,%rax,4), %ebx
	cmpl	%ebx, %r10d
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%esi, %eax
	cltd
	idivl	%edi
	movq	%r9, %r14
	movslq	%edx, %r9
	leal	(%rsi,%r12), %eax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	movl	(%r11,%rax,4), %eax
	xorl	(%r11,%r9,4), %eax
	movq	%r14, %r9
	cmovsl	%ebx, %r10d
	cmovsl	%esi, %r9d
	jmp	LBB0_12
LBB0_13:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%r9d, 32(%rbx)
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
LBB0_15:
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	jne	LBB0_27
## %bb.16:
	movq	_renderer@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$255, %esi
	movl	$255, %edx
	movl	$255, %ecx
	movl	$255, %r8d
	callq	_SDL_SetRenderDrawColor
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movl	(%r9), %eax
	cltd
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.19:
	leal	(%rax,%rax,8), %edx
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %r13         ## imm = 0x66666667
	movq	%r13, %rdx
	shrq	$63, %rdx
	sarq	$35, %r13
	addl	%edx, %r13d
	movl	%eax, %edx
	shrl	$31, %edx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, -128(%rbp)                ## 4-byte Spill
	movl	16(%r9), %eax
	movq	_SAMPLE_ARRAY_SIZE@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %edx
	je	LBB0_24
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	testl	%eax, %eax
	jle	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r14d
	imull	-104(%rbp), %r14d               ## 4-byte Folded Reload
	addl	-128(%rbp), %r14d               ## 4-byte Folded Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(%rcx,%rax), %ebx
	addl	36(%r9), %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r9), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %eax
	imull	%r13d, %eax
	movl	%eax, %edx
	sarl	$15, %edx
	movl	%edx, %ecx
	negl	%ecx
	movl	%eax, %esi
	sarl	$31, %esi
	andl	%edx, %esi
	addl	%r14d, %esi
	testl	%eax, %eax
	cmovnsl	%edx, %ecx
	movl	40(%r9), %edi
	addl	%r12d, %edi
	movl	$1, %edx
	callq	_fill_rectangle
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	addl	%ecx, %ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	cmovll	%edx, %eax
	subl	%eax, %ebx
	incl	%r12d
	movl	16(%r9), %eax
	cmpl	%eax, %r12d
	jl	LBB0_22
	jmp	LBB0_23
LBB0_27:
	leaq	64(%rbx), %r15
	movq	_SDL_PIXELFORMAT_ARGB8888@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	16(%rbx), %edx
	movq	_SDL_BLENDMODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$1, %r9d
	callq	_realloc_texture
	testq	%rax, %rax
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_52
## %bb.28:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$2, %esi
	callq	_FFMIN
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	44(%rbx), %eax
	addl	%r13d, %eax
	je	LBB0_30
## %bb.29:
	movl	%r13d, %r12d
	negl	%r12d
	movl	68(%rbx), %edi
	callq	_av_rdft_end
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	48(%rax), %rdi
	callq	_av_free
	movq	_DFT_R2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_av_rdft_init
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 68(%rcx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, 44(%rax)
	movl	%r14d, %edi
	movl	$32, %esi
	callq	_av_malloc_array
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
LBB0_30:
	cmpl	$0, 68(%rbx)
	je	LBB0_32
## %bb.31:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movl	56(%rbx), %ecx
	movl	%ecx, -160(%rbp)
	movl	$1, -156(%rbp)
	movl	(%rbx), %ecx
	movl	%ecx, -152(%rbp)
	movl	$0, -148(%rbp)
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_40
## %bb.34:
	movq	-120(%rbp), %r15                ## 8-byte Reload
	leal	(%r15,%r15), %ecx
	cvtsi2sd	%r15d, %xmm0
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm4
	cmpl	$2, %ecx
	movl	$1, %r12d
	cmovgel	%ecx, %r12d
	divsd	%xmm0, %xmm4
	movslq	%ecx, %rdx
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	negl	%r15d
	xorl	%r11d, %r11d
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, %r9
	movsd	%xmm4, -128(%rbp)               ## 8-byte Spill
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_35:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	movq	%r14, %rcx
	imulq	%rdx, %rcx
	leaq	(%rax,%rcx,8), %rsi
	movq	%rsi, -64(%rbp,%r14,8)
	cmpl	$-32, %r13d
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	24(%r9), %r8
	movq	_SAMPLE_ARRAY_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	(%rcx,%r14), %edi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_35 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%rbx), %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movslq	%edi, %rdi
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%r8,%rdi,4), %xmm1
	mulsd	%xmm4, %xmm0
	mulsd	%xmm0, %xmm0
	movapd	%xmm3, %xmm2
	subsd	%xmm0, %xmm2
	mulsd	%xmm1, %xmm2
	addl	%r10d, %edi
	cmpl	%edx, %edi
	movl	%edx, %ecx
	cmovll	%r11d, %ecx
	movsd	%xmm2, (%rax,%rbx,8)
	subl	%ecx, %edi
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_37
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=1
	movl	68(%r9), %edi
	movq	%r9, %rbx
	callq	_av_rdft_calc
	incq	%r14
	cmpq	-104(%rbp), %r14                ## 8-byte Folded Reload
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	48(%rbx), %rax
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	addq	%rdx, -80(%rbp)                 ## 8-byte Folded Spill
	movq	%rbx, %r9
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	-128(%rbp), %xmm4               ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	xorl	%r11d, %r11d
	jmp	LBB0_35
LBB0_24:
	movq	_renderer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	movl	$255, %r8d
	movq	%r9, %r14
	callq	_SDL_SetRenderDrawColor
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jl	LBB0_52
## %bb.25:
	decl	%eax
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	36(%r14), %esi
	addl	%ebx, %esi
	movl	16(%r14), %edx
	movl	40(%r14), %edi
	movl	$1, %ecx
	movq	%rax, %r15
	callq	_fill_rectangle
	movq	%r15, %rax
	addl	%r12d, %ebx
	decl	%eax
	jne	LBB0_26
	jmp	LBB0_52
LBB0_32:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	_SHOW_MODE_WAVES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rcx)
	jmp	LBB0_48
LBB0_17:
	movl	(%rbx), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_54
## %bb.18:
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	movl	$255, %r8d
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SDL_SetRenderDrawColor         ## TAILCALL
LBB0_40:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	leaq	-160(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	callq	_SDL_LockTexture
	testl	%eax, %eax
	jne	LBB0_47
## %bb.41:
	movl	-96(%rbp), %eax
	sarl	$2, %eax
	movl	%eax, -96(%rbp)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	addq	%rax, -136(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_46
## %bb.42:
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-120(%rbp), %xmm0       ## 4-byte Folded Reload
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rbx
	movq	-56(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$8, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=1
	movl	%r14d, %edi
	movl	$255, %esi
	callq	_FFMIN
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	$255, %esi
	callq	_FFMIN
	movslq	-96(%rbp), %rcx
	movq	-136(%rbp), %rdx
	shlq	$2, %rcx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	negq	%rcx
	movq	%rsi, -136(%rbp)
	movl	%r14d, %esi
	shll	$16, %esi
	movl	%eax, %edi
	shll	$8, %edi
	addl	%esi, %edi
	addl	%r14d, %eax
	sarl	%eax
	addl	%edi, %eax
	movl	%eax, (%rdx,%rcx)
	incq	%r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$16, %r13
	cmpq	%rax, %r12
	jge	LBB0_46
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sqrt
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	movl	$0, %ecx
	cmovael	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movsd	-8(%rbx,%r13), %xmm0            ## xmm0 = mem[0],zero
	movsd	(%rbx,%r13), %xmm1              ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	callq	_sqrt
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_sqrt
	movl	%eax, %r14d
	movl	%eax, %r15d
	cmpl	$2, -92(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movsd	-8(%rax,%r13), %xmm0            ## xmm0 = mem[0],zero
	movsd	(%rax,%r13), %xmm1              ## xmm1 = mem[0],zero
	callq	_hypot
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_sqrt
	movl	%eax, %r15d
	jmp	LBB0_45
LBB0_46:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_SDL_UnlockTexture
LBB0_47:
	movq	_renderer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SDL_RenderCopy
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_48:
	cmpl	$0, 60(%rcx)
	movl	56(%rcx), %eax
	jne	LBB0_50
## %bb.49:
	incl	%eax
	movl	%eax, 56(%rcx)
LBB0_50:
	cmpl	16(%rcx), %eax
	jl	LBB0_52
## %bb.51:
	movl	40(%rcx), %eax
	movl	%eax, 56(%rcx)
LBB0_52:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_54
## %bb.53:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_54:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHOW_MODE_WAVES,8,3            ## @SHOW_MODE_WAVES
	.comm	_audio_callback_time,4,2        ## @audio_callback_time
	.comm	_SAMPLE_ARRAY_SIZE,4,2          ## @SAMPLE_ARRAY_SIZE
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_renderer,4,2                   ## @renderer
	.comm	_SDL_PIXELFORMAT_ARGB8888,4,2   ## @SDL_PIXELFORMAT_ARGB8888
	.comm	_SDL_BLENDMODE_NONE,4,2         ## @SDL_BLENDMODE_NONE
	.comm	_DFT_R2C,4,2                    ## @DFT_R2C
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate buffers for RDFT, switching to waves display\n"

	.no_dead_strip	_video_audio_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function video_audio_display
_video_audio_display:                   ; @video_audio_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	w8, [x0]
	lsl	w8, w8, #1
	mov	w9, #1
	mov	w26, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w10, w9, w26
	add	w26, w26, #1
	cmp	w10, w8
	b.lt	LBB0_1
; %bb.2:
	sub	w8, w26, #2
	mov	w9, #1
	lsl	w24, w9, w8
	ldr	w20, [x19, #80]
	ldr	w8, [x19, #60]
Lloh3:
	adrp	x27, _SHOW_MODE_WAVES@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SHOW_MODE_WAVES@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w21, [x19, #32]
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_15
	b	LBB0_32
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w21, [x19, #16]
	b	LBB0_7
LBB0_6:
	lsl	w21, w24, #1
LBB0_7:
	lsl	w8, w20, #1
	ldr	w9, [x19, #20]
Lloh5:
	adrp	x23, _audio_callback_time@GOTPAGE
Lloh6:
	ldr	x23, [x23, _audio_callback_time@GOTPAGEOFF]
	ldr	w10, [x23]
	sdiv	w22, w9, w8
	cbz	w10, LBB0_9
; %bb.8:
	bl	_av_gettime_relative
	ldr	w8, [x23]
	sub	w8, w0, w8
	ldr	w9, [x19, #84]
	mul	w8, w8, w9
	mov	w9, #8573
	movk	w9, #48356, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	add	w22, w8, w22
LBB0_9:
	add	w8, w22, w21, lsl #1
	cmp	w8, w21
	csel	w8, w8, w21, gt
	ldr	x9, [x19, #72]
	mul	w8, w8, w20
	sub	x0, x9, w8, sxtw
Lloh7:
	adrp	x21, _SAMPLE_ARRAY_SIZE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SAMPLE_ARRAY_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_compute_mod
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.10:
	mov	w10, #0
Lloh9:
	adrp	x11, _INT_MIN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _INT_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	ldr	w12, [x21]
	ldr	x13, [x19, #24]
	add	w14, w20, w20, lsl #3
	lsl	w15, w20, #2
	add	w16, w15, w20
	add	w17, w0, w12
	mov	x21, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w10, w10, w20
	sub	w17, w17, w20
	cmp	w10, #1000
	b.ge	LBB0_31
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sdiv	w0, w17, w12
	msub	w0, w0, w12, w17
	ldr	w1, [x13, w0, sxtw #2]
	add	w2, w0, w14
	sdiv	w3, w2, w12
	msub	w2, w3, w12, w2
	ldr	w2, [x13, w2, sxtw #2]
	sub	w1, w1, w2
	cmp	w11, w1
	b.ge	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w2, w0, w16
	sdiv	w3, w2, w12
	msub	w2, w3, w12, w2
	ldr	w2, [x13, w2, sxtw #2]
	add	w3, w0, w15
	sdiv	w4, w3, w12
	msub	w3, w4, w12, w3
	ldr	w3, [x13, w3, sxtw #2]
	eor	w2, w3, w2
	cmp	w2, #0
	csel	w11, w1, w11, lt
	csel	w21, w0, w21, lt
	b	LBB0_11
LBB0_14:
	mov	x21, x0
	str	w0, [x19, #32]
	cmp	x8, x9
	b.eq	LBB0_32
LBB0_15:
	add	x22, x19, #64
Lloh12:
	adrp	x8, _SDL_PIXELFORMAT_ARGB8888@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDL_PIXELFORMAT_ARGB8888@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	ldr	w3, [x19]
Lloh15:
	adrp	x8, _SDL_BLENDMODE_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDL_BLENDMODE_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x22
	mov	w5, #1
	bl	_realloc_texture
	tbnz	x0, #63, LBB0_42
; %bb.16:
	mov	x0, x20
	mov	w1, #2
	bl	_FFMIN
	mov	x23, x0
	ldr	w8, [x19, #44]
	sub	w8, w26, w8
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.17:
	sub	w25, w26, #1
	ldr	w0, [x19, #68]
	bl	_av_rdft_end
	ldr	x0, [x19, #48]
	bl	_av_free
Lloh18:
	adrp	x8, _DFT_R2C@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DFT_R2C@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_av_rdft_init
	str	w0, [x19, #68]
	str	w25, [x19, #44]
	mov	x0, x24
	mov	w1, #32
	bl	_av_malloc_array
	str	x0, [x19, #48]
LBB0_18:
	ldr	w8, [x19, #68]
	cbz	w8, LBB0_27
; %bb.19:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_27
; %bb.20:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	stp	w24, w23, [sp]                  ; 8-byte Folded Spill
	ldr	w9, [x19, #56]
	mov	w10, #1
	stp	w9, w10, [sp, #40]
	ldr	w9, [x19]
	stp	w9, wzr, [sp, #48]
	cmp	w23, #1
	b.lt	LBB0_46
; %bb.21:
	mov	x25, #0
	mov	x27, #0
	ldr	w10, [sp]                       ; 4-byte Folded Reload
	lsl	w9, w10, #1
	scvtf	d0, w10
	fmov	d8, #1.00000000
	fdiv	d9, d8, d0
	cmp	w9, #1
	csinc	w11, w9, wzr, gt
	str	x11, [sp, #16]                  ; 8-byte Folded Spill
	sxtw	x23, w9
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	mov	w22, w9
	neg	w24, w10
	add	x28, sp, #56
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	mul	x9, x27, x23
	add	x1, x8, x9, lsl #3
	str	x1, [x28, x27, lsl #3]
	cmp	w26, #33
	b.eq	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x19, #24]
Lloh21:
	adrp	x10, _SAMPLE_ARRAY_SIZE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SAMPLE_ARRAY_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	add	w12, w21, w27
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	mov	x13, x24
	add	x8, x8, x25, lsl #3
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	scvtf	d0, w13
	fmul	d0, d9, d0
	ldr	s1, [x9, w12, sxtw #2]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fmsub	d0, d0, d0, d8
	fmul	d0, d0, d1
	str	d0, [x8], #8
	add	w12, w12, w20
	cmp	w12, w10
	csel	w14, wzr, w10, lt
	sub	w12, w12, w14
	add	w13, w13, #1
	subs	x11, x11, #1
	b.ne	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x19, #68]
	bl	_av_rdft_calc
	add	x27, x27, #1
	cmp	x27, x22
	b.eq	LBB0_46
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #48]
	add	x25, x25, x23
	b	LBB0_22
LBB0_27:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	x8, [x27]
	str	x8, [x19, #8]
	ldp	w8, w9, [x19, #56]
	cbnz	w9, LBB0_29
LBB0_28:
	add	w8, w8, #1
	str	w8, [x19, #56]
LBB0_29:
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.lt	LBB0_42
; %bb.30:
	ldr	w8, [x19, #40]
	str	w8, [x19, #56]
	b	LBB0_42
LBB0_31:
	str	w21, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_32:
Lloh29:
	adrp	x22, _renderer@GOTPAGE
Lloh30:
	ldr	x22, [x22, _renderer@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #255
	mov	w2, #255
	mov	w3, #255
	mov	w4, #255
	bl	_SDL_SetRenderDrawColor
	cmp	w20, #0
	b.le	LBB0_44
; %bb.33:
	mov	w24, #0
	ldr	w8, [x19]
	sdiv	w22, w8, w20
	add	w8, w22, w22, lsl #3
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w25, w8, w9
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w8, w8, #1
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w8, [x19, #16]
Lloh31:
	adrp	x27, _SAMPLE_ARRAY_SIZE@GOTPAGE
Lloh32:
	ldr	x27, [x27, _SAMPLE_ARRAY_SIZE@GOTPAGEOFF]
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	w24, w24, #1
	cmp	w24, w20
	b.eq	LBB0_39
LBB0_35:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	w28, #0
	ldr	w8, [x19, #36]
	mov	x26, x21
	add	w21, w24, w21
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	madd	w9, w24, w22, w9
	add	w23, w9, w8
LBB0_37:                                ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	w8, [x8, w21, sxtw #2]
	mul	w8, w8, w25
	asr	w9, w8, #15
	and	w10, w9, w8, asr #31
	add	w1, w23, w10
	cmp	w8, #0
	cneg	w3, w9, lt
	ldr	w8, [x19, #40]
	add	w0, w28, w8
	mov	w2, #1
	bl	_fill_rectangle
	ldr	w8, [x27]
	add	w9, w21, w20
	cmp	w9, w8
	csel	w8, wzr, w8, lt
	sub	w21, w9, w8
	add	w28, w28, #1
	ldr	w8, [x19, #16]
	cmp	w28, w8
	b.lt	LBB0_37
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x21, x26
	b	LBB0_34
LBB0_39:
Lloh33:
	adrp	x8, _renderer@GOTPAGE
Lloh34:
	ldr	x8, [x8, _renderer@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #255
	mov	w4, #255
	bl	_SDL_SetRenderDrawColor
	cmp	w20, #2
	b.lt	LBB0_42
; %bb.40:
	sub	w20, w20, #1
	mov	x21, x22
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w0, [x19, #36]
	add	w1, w21, w8
	ldr	w2, [x19, #16]
	mov	w3, #1
	bl	_fill_rectangle
	add	w21, w21, w22
	subs	w20, w20, #1
	b.ne	LBB0_41
LBB0_42:
	ldr	x8, [sp, #72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.43:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_44:
	ldr	w0, [x22]
	ldr	x8, [sp, #72]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.45:
	mov	w1, #0
	mov	w2, #0
	mov	w3, #255
	mov	w4, #255
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_SDL_SetRenderDrawColor
LBB0_46:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w0, [x23]
	add	x1, sp, #40
	add	x2, sp, #32
	add	x3, sp, #28
	bl	_SDL_LockTexture
	cbnz	w0, LBB0_53
; %bb.47:
	ldr	w8, [sp, #28]
	asr	w8, w8, #2
	str	w8, [sp, #28]
	ldr	w9, [x19]
	mul	w8, w9, w8
	ldr	x10, [sp, #32]
	add	x8, x10, w8, sxtw #2
	str	x8, [sp, #32]
	cmp	w9, #1
	ldr	w24, [sp, #4]                   ; 4-byte Folded Reload
	b.lt	LBB0_52
; %bb.48:
	mov	x25, #0
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	scvtf	d8, w8
	ldp	x8, x9, [sp, #56]
	add	x22, x9, #8
	add	x26, x8, #8
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	mov	x0, x20
	mov	w1, #255
	bl	_FFMIN
	mov	x20, x0
	mov	x0, x21
	mov	w1, #255
	bl	_FFMIN
	ldrsw	x8, [sp, #28]
	ldr	x9, [sp, #32]
	sub	x8, x9, x8, lsl #2
	str	x8, [sp, #32]
	lsl	w9, w0, #8
	add	w9, w9, w20, lsl #16
	add	w10, w0, w20
	add	w9, w9, w10, asr #1
	str	w9, [x8]
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	add	x26, x26, #16
	cmp	x25, x8
	b.ge	LBB0_52
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	fmov	d0, d8
	bl	_sqrt
	add	w8, w0, #1
	cmp	w8, #3
	csel	w8, w0, wzr, lo
	scvtf	d9, w8
	ldp	d0, d1, [x26, #-8]
	fmul	d1, d1, d1
	fmadd	d0, d0, d0, d1
	bl	_sqrt
	scvtf	d0, w0
	fmul	d0, d9, d0
	bl	_sqrt
	mov	x20, x0
	mov	x21, x0
	cmp	w24, #2
	b.ne	LBB0_49
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldp	d0, d1, [x22, #-8]
	bl	_hypot
	fmul	d0, d0, d9
	bl	_sqrt
	mov	x21, x0
	b	LBB0_49
LBB0_52:
	ldr	w0, [x23]
	bl	_SDL_UnlockTexture
LBB0_53:
Lloh42:
	adrp	x8, _renderer@GOTPAGE
Lloh43:
	ldr	x8, [x8, _renderer@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w1, [x23]
	mov	x2, #0
	mov	x3, #0
	bl	_SDL_RenderCopy
	ldp	w8, w9, [x19, #56]
	cbnz	w9, LBB0_29
	b	LBB0_28
LBB0_54:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_SHOW_MODE_WAVES,8,3            ; @SHOW_MODE_WAVES
	.comm	_audio_callback_time,4,2        ; @audio_callback_time
	.comm	_SAMPLE_ARRAY_SIZE,4,2          ; @SAMPLE_ARRAY_SIZE
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_renderer,4,2                   ; @renderer
	.comm	_SDL_PIXELFORMAT_ARGB8888,4,2   ; @SDL_PIXELFORMAT_ARGB8888
	.comm	_SDL_BLENDMODE_NONE,4,2         ; @SDL_BLENDMODE_NONE
	.comm	_DFT_R2C,4,2                    ; @DFT_R2C
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate buffers for RDFT, switching to waves display\n"

	.no_dead_strip	_video_audio_display
.subsections_via_symbols
