	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_stream_specific
_detect_stream_specific:                ## @detect_stream_specific
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.1:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movslq	%esi, %r12
	movq	(%rax,%r12,8), %r15
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.2:
	movl	8(%rax), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.3:
	movq	%rdi, %r14
	movq	16(%r13), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$3, %ecx
	jl	LBB0_7
## %bb.4:
	movl	12(%rax), %edi
	callq	_AV_RB24
	cmpl	$1, %eax
	je	LBB0_13
## %bb.5:
	movq	(%r15), %rax
	cmpl	$4, 8(%rax)
	jl	LBB0_7
## %bb.6:
	movl	12(%rax), %edi
	callq	_AV_RB32
	cmpl	$1, %eax
	je	LBB0_13
LBB0_7:
	movq	(%r13), %rdi
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	leaq	L_.str.1(%rip), %rdi
	callq	_av_bsf_get_by_name
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_av_bsf_alloc
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	movq	(%r15), %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	-48(%rbp), %rdi
	callq	_av_bsf_init
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	(%r15), %rdi
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_15
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_BSF_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auto-inserting h264_mp4toannexb bitstream filter\n"

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

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"h264_mp4toannexb bitstream filter required for H.264 streams\n"

	.comm	_AVERROR_BSF_NOT_FOUND,4,2      ## @AVERROR_BSF_NOT_FOUND
	.no_dead_strip	_detect_stream_specific
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_stream_specific
_detect_stream_specific:                ; @detect_stream_specific
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0, #8]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x1
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x21, [x8, w1, sxtw #3]
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.2:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_12
; %bb.3:
	mov	x20, x0
	ldr	x10, [x23, #16]
	ldr	x22, [x10]
	cmp	w9, #3
	b.lt	LBB0_7
; %bb.4:
	ldr	w0, [x8, #12]
	bl	_AV_RB24
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.5:
	ldr	x8, [x21]
	ldr	w9, [x8, #8]
	cmp	w9, #4
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x8, #12]
	bl	_AV_RB32
	cmp	w0, #1
	b.eq	LBB0_12
LBB0_7:
	ldr	x0, [x23]
Lloh3:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_av_bsf_get_by_name
	cbz	x0, LBB0_14
; %bb.8:
	add	x1, sp, #8
	bl	_av_bsf_alloc
	tbnz	w0, #31, LBB0_13
; %bb.9:
	sxtw	x8, w19
	ldr	x9, [sp, #8]
	str	x9, [x22, x8, lsl #3]
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	ldr	x1, [x21]
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_13
; %bb.10:
	ldr	x0, [sp, #8]
	bl	_av_bsf_init
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	x0, [x21]
	ldr	x8, [sp, #8]
	ldr	x1, [x8]
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_BSF_NOT_FOUND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_BSF_NOT_FOUND@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auto-inserting h264_mp4toannexb bitstream filter\n"

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

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"h264_mp4toannexb bitstream filter required for H.264 streams\n"

	.comm	_AVERROR_BSF_NOT_FOUND,4,2      ; @AVERROR_BSF_NOT_FOUND
	.no_dead_strip	_detect_stream_specific
.subsections_via_symbols
