	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eac3_core_filter
_eac3_core_filter:                      ## @eac3_core_filter
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_ff_bsf_get_packet_ref
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	(%r14), %rsi
	movq	8(%r14), %rdx
	leaq	-36(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	leaq	-36(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_ff_ac3_parse_header
	testl	%eax, %eax
	js	LBB0_14
## %bb.3:
	movq	-56(%rbp), %rax
	movq	_EAC3_FRAME_TYPE_INDEPENDENT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.4:
	movq	_EAC3_FRAME_TYPE_AC3_CONVERT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_16
## %bb.5:
	movq	_EAC3_FRAME_TYPE_DEPENDENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movq	8(%r14), %rdx
	movq	-48(%rbp), %rsi
	subq	%rsi, %rdx
	jle	LBB0_11
## %bb.7:
	addq	(%r14), %rsi
	leaq	-36(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	leaq	-36(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_ff_ac3_parse_header
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	-72(%rbp), %rax
	cmpq	(%r15), %rax
	je	LBB0_20
## %bb.10:
	cmpq	(%r12), %rax
	je	LBB0_20
LBB0_11:
	movq	$0, 8(%r14)
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_av_packet_unref
	jmp	LBB0_18
LBB0_16:
	movq	-48(%rbp), %rdi
	movq	8(%r14), %rsi
	callq	_FFMIN
	movq	%rax, 8(%r14)
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	-48(%rbp), %rax
	subq	%rax, 8(%r14)
	addq	%rax, (%r14)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_EAC3_FRAME_TYPE_INDEPENDENT,8,3 ## @EAC3_FRAME_TYPE_INDEPENDENT
	.comm	_EAC3_FRAME_TYPE_AC3_CONVERT,8,3 ## @EAC3_FRAME_TYPE_AC3_CONVERT
	.comm	_EAC3_FRAME_TYPE_DEPENDENT,8,3  ## @EAC3_FRAME_TYPE_DEPENDENT
	.no_dead_strip	_eac3_core_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eac3_core_filter
_eac3_core_filter:                      ; @eac3_core_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	bl	_ff_bsf_get_packet_ref
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldp	x1, x2, [x19]
	add	x0, sp, #28
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_13
; %bb.2:
	add	x0, sp, #28
	add	x1, sp, #32
	bl	_ff_ac3_parse_header
	tbnz	w0, #31, LBB0_14
; %bb.3:
	ldr	x8, [sp, #32]
Lloh0:
	adrp	x22, _EAC3_FRAME_TYPE_INDEPENDENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EAC3_FRAME_TYPE_INDEPENDENT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x21, _EAC3_FRAME_TYPE_AC3_CONVERT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EAC3_FRAME_TYPE_AC3_CONVERT@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [sp, #40]
	ldr	x1, [x19, #8]
	bl	_FFMIN
	mov	w20, #0
	str	x0, [x19, #8]
	b	LBB0_16
LBB0_5:
	mov	x20, x0
	b	LBB0_16
LBB0_6:
Lloh4:
	adrp	x9, _EAC3_FRAME_TYPE_DEPENDENT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EAC3_FRAME_TYPE_DEPENDENT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.7:
	ldr	x9, [x19, #8]
	ldr	x8, [sp, #40]
	subs	x2, x9, x8
	b.le	LBB0_17
; %bb.8:
	ldr	x9, [x19]
	add	x1, x9, x8
	add	x0, sp, #28
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_13
; %bb.9:
	add	x0, sp, #28
	add	x1, sp, #8
	bl	_ff_ac3_parse_header
	tbnz	w0, #31, LBB0_14
; %bb.10:
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.11:
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.12:
	str	xzr, [x19, #8]
	mov	w20, #0
	b	LBB0_16
LBB0_13:
	mov	x20, x0
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x19
	bl	_av_packet_unref
LBB0_16:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_17:
	mov	w20, #0
	str	xzr, [x19, #8]
	b	LBB0_16
LBB0_18:
	ldr	x8, [sp, #40]
	ldp	x10, x9, [x19]
	sub	x9, x9, x8
	add	x8, x10, x8
	stp	x8, x9, [x19]
	mov	w20, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_EAC3_FRAME_TYPE_INDEPENDENT,8,3 ; @EAC3_FRAME_TYPE_INDEPENDENT
	.comm	_EAC3_FRAME_TYPE_AC3_CONVERT,8,3 ; @EAC3_FRAME_TYPE_AC3_CONVERT
	.comm	_EAC3_FRAME_TYPE_DEPENDENT,8,3  ; @EAC3_FRAME_TYPE_DEPENDENT
	.no_dead_strip	_eac3_core_filter
.subsections_via_symbols
