	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_tdecode_header              ## -- Begin function ff_tdecode_header
	.p2align	4, 0x90
_ff_tdecode_header:                     ## @ff_tdecode_header
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_bytestream2_get_bytes_left
	cmpl	$7, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movl	%eax, %ebx
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rdi
	callq	_AV_RB16
	movl	$1, %esi
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	movl	(%r15), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_AV_RB16
	xorl	%esi, %esi
	cmpl	%eax, %ebx
	jne	LBB0_1
LBB0_4:
	movl	%esi, (%r15)
	movq	%r12, %rdi
	callq	_ff_tget_short
	cmpl	$42, %eax
	jne	LBB0_1
## %bb.5:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_ff_tget_long
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"II"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_tdecode_header              ; -- Begin function ff_tdecode_header
	.p2align	2
_ff_tdecode_header:                     ; @ff_tdecode_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_bytestream2_get_bytes_left
	cmp	w0, #7
	b.le	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_bytestream2_get_le16u
	mov	x22, x0
	str	w0, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AV_RB16
	cmp	w22, w0
	b.ne	LBB0_3
; %bb.2:
	mov	w1, #1
	b	LBB0_5
LBB0_3:
	ldr	w22, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AV_RB16
	cmp	w22, w0
	b.ne	LBB0_7
; %bb.4:
	mov	w1, #0
LBB0_5:
	str	w1, [x21]
	mov	x0, x20
	bl	_ff_tget_short
	cmp	w0, #42
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ff_tget_long
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"II"

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

.subsections_via_symbols
