	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bitstream_filter_filter     ## -- Begin function av_bitstream_filter_filter
	.p2align	4, 0x90
_av_bitstream_filter_filter:            ## @av_bitstream_filter_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	leaq	8(%rax), %r13
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
LBB0_1:
	movl	16(%rbp), %eax
	movq	%r14, -88(%rbp)
	movl	%eax, -96(%rbp)
	leaq	-96(%rbp), %rsi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	js	LBB0_32
## %bb.2:
	movq	%rbx, %r12
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	$0, (%rax)
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	$0, (%r14)
	movq	(%r13), %rdi
	leaq	-96(%rbp), %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	je	LBB0_33
## %bb.3:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_33
## %bb.4:
	testl	%ebx, %ebx
	js	LBB0_28
## %bb.5:
	movslq	-96(%rbp), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_malloc
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_29
## %bb.6:
	movl	-96(%rbp), %edx
	movl	%edx, (%r14)
	movq	-88(%rbp), %rsi
	movq	%rax, %rdi
	callq	_memcpy
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_av_packet_unref
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_av_bsf_receive_packet
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_av_packet_unref
	testl	%ebx, %ebx
	jns	LBB0_7
## %bb.8:
	movl	$1, %r15d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	cmpl	$0, (%rbx)
	jne	LBB0_33
## %bb.9:
	movq	(%r13), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_14
## %bb.10:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	testl	%eax, %eax
	jne	LBB0_14
LBB0_12:
	leaq	8(%r12), %rdi
	callq	_av_freep
	movl	$0, (%r12)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_mallocz
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_30
## %bb.13:
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rsi
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_14:
	movl	$1, (%rbx)
	jmp	LBB0_33
LBB0_15:
	movq	8(%r12), %rdi
	movq	%r13, %rsi
	callq	_av_bsf_alloc
	testl	%eax, %eax
	js	LBB0_32
## %bb.16:
	movq	(%r13), %rax
	movl	16(%rax), %edi
	movq	%rbx, %rsi
	callq	_avcodec_parameters_from_context
	testl	%eax, %eax
	js	LBB0_32
## %bb.17:
	movl	16(%rbx), %eax
	movq	(%r13), %rdi
	movl	%eax, 12(%rdi)
	cmpl	$0, (%r12)
	je	LBB0_23
## %bb.18:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.19:
	movl	8(%rdi), %edi
	xorl	%esi, %esi
	callq	_av_opt_next
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
LBB0_21:
	movq	(%r13), %rax
	movl	8(%rax), %edi
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-64(%rbp), %rdx
	callq	_av_opt_set_from_string
	testl	%eax, %eax
	js	LBB0_32
## %bb.22:
	movq	(%r13), %rdi
LBB0_23:
	callq	_av_bsf_init
	testl	%eax, %eax
	js	LBB0_32
## %bb.24:
	movq	(%r13), %rdi
	jmp	LBB0_1
LBB0_28:
	movl	%ebx, %r15d
	jmp	LBB0_33
LBB0_29:
	leaq	-96(%rbp), %rdi
	callq	_av_packet_unref
LBB0_30:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_32:
	movl	%eax, %r15d
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"="

L_.str.1:                               ## @.str.1
	.asciz	":"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"private_spspps_buf"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_bitstream_filter_filter     ; -- Begin function av_bitstream_filter_filter
	.p2align	2
_av_bitstream_filter_filter:            ; @av_bitstream_filter_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x24, x6
	mov	x25, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x27, [x0, #16]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp]
	mov	x20, x27
	ldr	x0, [x20, #8]!
	cbz	x0, LBB0_9
LBB0_1:
	str	x25, [sp, #8]
	str	w24, [sp]
	mov	x1, sp
	bl	_av_bsf_send_packet
	tbnz	w0, #31, LBB0_27
; %bb.2:
	str	xzr, [x23]
	str	wzr, [x22]
	ldr	x0, [x20]
	mov	x1, sp
	bl	_av_bsf_receive_packet
	mov	x24, x0
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _AVERROR_EOF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVERROR_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.eq	LBB0_27
; %bb.3:
	mov	x0, x24
	tbnz	w24, #31, LBB0_27
; %bb.4:
	ldrsw	x8, [sp]
Lloh9:
	adrp	x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_av_malloc
	str	x0, [x23]
	cbz	x0, LBB0_19
; %bb.5:
	ldr	w2, [sp]
	str	w2, [x22]
	ldr	x1, [sp, #8]
	bl	_memcpy
	mov	x0, sp
	bl	_av_packet_unref
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, sp
	bl	_av_bsf_receive_packet
	mov	x22, x0
	mov	x0, sp
	bl	_av_packet_unref
	tbz	w22, #31, LBB0_6
; %bb.7:
	ldr	w8, [x27]
	cbz	w8, LBB0_21
; %bb.8:
	mov	w0, #1
	b	LBB0_27
LBB0_9:
	ldr	x0, [x26, #8]
	mov	x1, x20
	bl	_av_bsf_alloc
	tbnz	w0, #31, LBB0_27
; %bb.10:
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	mov	x1, x19
	bl	_avcodec_parameters_from_context
	tbnz	w0, #31, LBB0_27
; %bb.11:
	ldr	w8, [x19, #16]
	ldr	x0, [x20]
	str	w8, [x0, #12]
	ldr	w8, [x26]
	cbz	w8, LBB0_17
; %bb.12:
	ldr	x8, [x26, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.13:
	ldr	w0, [x0, #8]
	mov	x1, #0
	bl	_av_opt_next
	stp	xzr, xzr, [sp, #24]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x0]
	str	x8, [sp, #24]
LBB0_15:
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	ldr	w1, [x26]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x2, sp, #24
	bl	_av_opt_set_from_string
	tbnz	w0, #31, LBB0_27
; %bb.16:
	ldr	x0, [x20]
LBB0_17:
	bl	_av_bsf_init
	tbnz	w0, #31, LBB0_27
; %bb.18:
	ldr	x0, [x20]
	b	LBB0_1
LBB0_19:
	mov	x0, sp
	bl	_av_packet_unref
LBB0_20:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_27
LBB0_21:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_26
; %bb.22:
	cbz	x21, LBB0_24
; %bb.23:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbnz	w0, LBB0_26
LBB0_24:
	add	x0, x19, #8
	bl	_av_freep
	str	wzr, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_av_mallocz
	str	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.25:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x1, [x8, #8]
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_26:
	mov	w0, #1
	str	w0, [x27]
LBB0_27:
	ldr	x8, [sp, #40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"="

l_.str.1:                               ; @.str.1
	.asciz	":"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"private_spspps_buf"

.subsections_via_symbols
