	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkv_check_bitstream
_mkv_check_bitstream:                   ## @mkv_check_bitstream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_AAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$3, 8(%rsi)
	jl	LBB0_7
## %bb.2:
	movl	12(%rsi), %edi
	callq	_AV_RB16
	notl	%eax
	testl	$65520, %eax                    ## imm = 0xFFF0
	jne	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_AV_CODEC_ID_VP9@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ff_stream_add_bitstream_filter ## TAILCALL
LBB0_7:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_AAC,8,3            ## @AV_CODEC_ID_AAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aac_adtstoasc"

	.comm	_AV_CODEC_ID_VP9,8,3            ## @AV_CODEC_ID_VP9
L_.str.1:                               ## @.str.1
	.asciz	"vp9_superframe"

	.no_dead_strip	_mkv_check_bitstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkv_check_bitstream
_mkv_check_bitstream:                   ; @mkv_check_bitstream
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x9, [x1]
	ldr	x19, [x8, x9, lsl #3]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AV_CODEC_ID_AAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_AAC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x1, #8]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.2:
	ldr	w0, [x1, #12]
	bl	_AV_RB16
	mvn	w8, w0
	tst	w8, #0xfff0
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x9, _AV_CODEC_ID_VP9@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CODEC_ID_VP9@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ff_stream_add_bitstream_filter
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_AAC,8,3            ; @AV_CODEC_ID_AAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aac_adtstoasc"

	.comm	_AV_CODEC_ID_VP9,8,3            ; @AV_CODEC_ID_VP9
l_.str.1:                               ; @.str.1
	.asciz	"vp9_superframe"

	.no_dead_strip	_mkv_check_bitstream
.subsections_via_symbols
