	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rbx
	movl	$32, %r14d
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	subl	(%rax), %r14d
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_ff_get_audio_buffer
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rax, %rbx
	callq	_av_frame_copy_props
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r13d
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_34
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_33
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax), %r13
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	ja	LBB0_26
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.7:
	movl	8(%r15), %edx
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	movslq	%ecx, %rsi
	cmpq	%rsi, %rax
	jge	LBB0_26
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testl	%edx, %edx
	jle	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r15), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rdi,8), %rcx
	movl	(%rcx,%rax,4), %ebx
	movl	%r14d, %ecx
	sarl	%cl, %ebx
	imull	%eax, %edx
	movslq	%edx, %rcx
	addq	%rdi, %rcx
	movl	%ebx, (%r13,%rcx,4)
	incq	%rdi
	movslq	8(%r15), %rdx
	cmpq	%rdx, %rdi
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_8
LBB0_13:
	movl	8(%r15), %eax
	imull	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.14:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%r14d, %ecx
	sarl	%cl, %esi
	movl	%esi, (%r13,%rdx,4)
	incq	%rdx
	movslq	(%r15), %rcx
	movslq	8(%r15), %rsi
	imulq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_15
	jmp	LBB0_26
LBB0_16:
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_26
## %bb.17:
	movl	8(%r15), %ecx
	xorl	%eax, %eax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rax
	movslq	%edx, %rsi
	cmpq	%rsi, %rax
	jge	LBB0_26
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	24(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rsi,8), %rdi
	movl	(%rdi,%rax,4), %edi
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	addq	%rsi, %rcx
	movl	%edi, (%r13,%rcx,4)
	incq	%rsi
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rsi
	jl	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	(%r15), %edx
	jmp	LBB0_18
LBB0_23:
	movl	8(%r15), %eax
	imull	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%r13,%rcx,4)
	incq	%rcx
	movslq	(%r15), %rdx
	movslq	8(%r15), %rsi
	imulq	%rdx, %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_25
LBB0_26:
	movq	24(%r12), %rbx
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_hdcd_detect_start
	testq	%rbx, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_28
## %bb.27:
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_hdcd_process_stereo
	movq	16(%r12), %rdi
	movq	%r14, %rsi
	callq	_hdcd_detect_onech
	movq	16(%r12), %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	callq	_hdcd_detect_onech
	movl	$2, %r8d
LBB0_31:
	movq	%r12, %r14
	jmp	LBB0_32
LBB0_28:
	movl	8(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_31
## %bb.29:
	xorl	%ebx, %ebx
	movq	%r12, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rsi
	addq	%rbx, %rsi
	leaq	(%rbx,%r13), %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_hdcd_process
	movq	16(%r14), %rdi
	addq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_hdcd_detect_onech
	incq	%r12
	movslq	8(%r15), %r8
	addq	$4, %rbx
	cmpq	%r8, %r12
	jl	LBB0_30
LBB0_32:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r8d, %esi
	callq	_hdcd_detect_end
	movl	8(%r15), %eax
	imull	(%r15), %eax
	addl	%eax, 4(%r14)
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
LBB0_33:
	movl	%eax, %r13d
LBB0_34:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x24, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x8, x21, [x8]
	ldr	x19, [x8]
	ldr	w25, [x21]
	ldr	w1, [x1]
	mov	x0, x19
	bl	_ff_get_audio_buffer
	str	x0, [sp]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	mov	x0, sp
	bl	_av_frame_free
	add	x0, sp, #8
	bl	_av_frame_free
	b	LBB0_33
LBB0_3:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_32
LBB0_4:
	ldr	w8, [x19]
	str	w8, [x22, #4]
	ldr	x8, [x22, #16]
	ldr	x23, [x8]
	ldr	w8, [x24]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_26
; %bb.5:
	mov	w8, #32
	sub	w8, w8, w25
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
	ldr	w11, [x20]
	cmp	w11, #1
	b.lt	LBB0_26
; %bb.7:
	mov	x9, #0
	ldr	w10, [x20, #8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_26
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x11, #0
	ldr	x12, [x20, #24]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x12, x11, lsl #3]
	ldr	w13, [x13, x9, lsl #2]
	asr	w13, w13, w8
	mul	w10, w9, w10
	add	x10, x11, w10, sxtw
	str	w13, [x23, x10, lsl #2]
	add	x11, x11, #1
	ldrsw	x10, [x20, #8]
	cmp	x11, x10
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x20]
	b	LBB0_8
LBB0_13:
	ldr	w9, [x20]
	ldr	w10, [x20, #8]
	mul	w9, w10, w9
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.14:
	mov	x9, #0
	ldr	x10, [x20, #16]
	ldr	x10, [x10]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	asr	w12, w12, w8
	str	w12, [x23, x11]
	add	x9, x9, #1
	ldrsw	x11, [x20]
	ldrsw	x12, [x20, #8]
	mul	x11, x12, x11
	cmp	x9, x11
	b.lt	LBB0_15
	b	LBB0_26
LBB0_16:
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_26
; %bb.17:
	mov	x8, #0
	ldr	w9, [x20, #8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, #1
	cmp	x8, w10, sxtw
	b.ge	LBB0_26
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x10, #0
	ldr	x11, [x20, #24]
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11, x10, lsl #3]
	ldr	w12, [x12, x8, lsl #2]
	mul	w9, w8, w9
	add	x9, x10, w9, sxtw
	str	w12, [x23, x9, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x20, #8]
	cmp	x10, x9
	b.lt	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w10, [x20]
	b	LBB0_18
LBB0_23:
	ldr	w8, [x20]
	ldr	w9, [x20, #8]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.24:
	mov	x8, #0
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x23, x10]
	add	x8, x8, #1
	ldrsw	x10, [x20]
	ldrsw	x11, [x20, #8]
	mul	x10, x11, x10
	cmp	x8, x10
	b.lt	LBB0_25
LBB0_26:
	ldr	x25, [x21, #24]
	add	x24, x21, #8
	mov	x0, x24
	bl	_hdcd_detect_start
	cbz	x25, LBB0_28
; %bb.27:
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x23
	bl	_hdcd_process_stereo
	ldr	x0, [x21, #16]
	mov	x1, x24
	bl	_hdcd_detect_onech
	ldr	x8, [x21, #16]
	add	x0, x8, #4
	mov	x1, x24
	bl	_hdcd_detect_onech
	mov	w4, #2
	b	LBB0_31
LBB0_28:
	ldr	w4, [x20, #8]
	cmp	w4, #1
	b.lt	LBB0_31
; %bb.29:
	mov	x25, #0
	mov	x26, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x1, x8, x25
	add	x2, x23, x25
	ldr	w3, [x20]
	mov	x0, x21
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_hdcd_process
	ldr	x8, [x21, #16]
	add	x0, x8, x25
	mov	x1, x24
	bl	_hdcd_detect_onech
	add	x26, x26, #1
	ldrsw	x4, [x20, #8]
	add	x25, x25, #4
	cmp	x26, x4
	b.lt	LBB0_30
LBB0_31:
	mov	x0, x24
	mov	x1, x4
	bl	_hdcd_detect_end
	ldr	w8, [x20]
	ldr	w9, [x20, #8]
	ldr	w10, [x21, #4]
	madd	w8, w9, w8, w10
	str	w8, [x21, #4]
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x22
	bl	_ff_filter_frame
LBB0_32:
	mov	x23, x0
LBB0_33:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
	.byte	(LBB0_23-LBB0_6)>>2
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
