	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_tak_decode_frame_header     ## -- Begin function ff_tak_decode_frame_header
	.p2align	4, 0x90
_ff_tak_decode_frame_header:            ## @ff_tak_decode_frame_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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_TAK_FRAME_HEADER_SYNC_ID_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	_TAK_FRAME_HEADER_SYNC_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_TAK_FRAME_HEADER_FLAGS_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movl	%eax, (%r14)
	movq	_TAK_FRAME_HEADER_NO_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	%rax, 16(%r14)
	movl	(%r14), %eax
	movq	_TAK_FRAME_FLAG_IS_LAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_TAK_FRAME_HEADER_SAMPLE_COUNT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	incq	%rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movslq	%r12d, %rsi
	addq	(%rax), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	jmp	LBB0_10
LBB0_4:
	movq	$0, 8(%r14)
LBB0_5:
	movq	_TAK_FRAME_FLAG_HAS_INFO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ff_tak_parse_streaminfo
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_get_bits
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_skip_bits
LBB0_8:
	movq	%rbx, %rdi
	callq	_align_get_bits
	movl	(%r14), %eax
LBB0_9:
	movq	_TAK_FRAME_FLAG_HAS_METADATA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_skip_bits
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAK_FRAME_HEADER_SYNC_ID_BITS,4,2 ## @TAK_FRAME_HEADER_SYNC_ID_BITS
	.comm	_TAK_FRAME_HEADER_SYNC_ID,8,3   ## @TAK_FRAME_HEADER_SYNC_ID
	.comm	_AV_LOG_ERROR,8,3               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing sync id\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_TAK_FRAME_HEADER_FLAGS_BITS,4,2 ## @TAK_FRAME_HEADER_FLAGS_BITS
	.comm	_TAK_FRAME_HEADER_NO_BITS,4,2   ## @TAK_FRAME_HEADER_NO_BITS
	.comm	_TAK_FRAME_FLAG_IS_LAST,4,2     ## @TAK_FRAME_FLAG_IS_LAST
	.comm	_TAK_FRAME_HEADER_SAMPLE_COUNT_BITS,4,2 ## @TAK_FRAME_HEADER_SAMPLE_COUNT_BITS
	.comm	_TAK_FRAME_FLAG_HAS_INFO,4,2    ## @TAK_FRAME_FLAG_HAS_INFO
	.comm	_TAK_FRAME_FLAG_HAS_METADATA,4,2 ## @TAK_FRAME_FLAG_HAS_METADATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_tak_decode_frame_header     ; -- Begin function ff_tak_decode_frame_header
	.p2align	2
_ff_tak_decode_frame_header:            ; @ff_tak_decode_frame_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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _TAK_FRAME_HEADER_SYNC_ID_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAK_FRAME_HEADER_SYNC_ID_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_get_bits
Lloh3:
	adrp	x8, _TAK_FRAME_HEADER_SYNC_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TAK_FRAME_HEADER_SYNC_ID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _TAK_FRAME_HEADER_FLAGS_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TAK_FRAME_HEADER_FLAGS_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_get_bits
	str	w0, [x20]
Lloh9:
	adrp	x8, _TAK_FRAME_HEADER_NO_BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TAK_FRAME_HEADER_NO_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_get_bits
	str	x0, [x20, #16]
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _TAK_FRAME_FLAG_IS_LAST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TAK_FRAME_FLAG_IS_LAST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh15:
	adrp	x8, _TAK_FRAME_HEADER_SAMPLE_COUNT_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TAK_FRAME_HEADER_SAMPLE_COUNT_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_get_bits
	add	x8, x0, #1
	str	x8, [x20, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	ldr	w8, [x20]
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x1, x8, w22, sxtw
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
	b	LBB0_10
LBB0_4:
	str	xzr, [x20, #8]
LBB0_5:
Lloh23:
	adrp	x9, _TAK_FRAME_FLAG_HAS_INFO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TAK_FRAME_FLAG_HAS_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_ff_tak_parse_streaminfo
	mov	x0, x19
	mov	w1, #6
	bl	_get_bits
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #25
	bl	_skip_bits
LBB0_8:
	mov	x0, x19
	bl	_align_get_bits
	ldr	w8, [x20]
LBB0_9:
Lloh26:
	adrp	x9, _TAK_FRAME_FLAG_HAS_METADATA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TAK_FRAME_FLAG_HAS_METADATA@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	w1, #24
	bl	_skip_bits
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_TAK_FRAME_HEADER_SYNC_ID_BITS,4,2 ; @TAK_FRAME_HEADER_SYNC_ID_BITS
	.comm	_TAK_FRAME_HEADER_SYNC_ID,8,3   ; @TAK_FRAME_HEADER_SYNC_ID
	.comm	_AV_LOG_ERROR,8,3               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing sync id\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_TAK_FRAME_HEADER_FLAGS_BITS,4,2 ; @TAK_FRAME_HEADER_FLAGS_BITS
	.comm	_TAK_FRAME_HEADER_NO_BITS,4,2   ; @TAK_FRAME_HEADER_NO_BITS
	.comm	_TAK_FRAME_FLAG_IS_LAST,4,2     ; @TAK_FRAME_FLAG_IS_LAST
	.comm	_TAK_FRAME_HEADER_SAMPLE_COUNT_BITS,4,2 ; @TAK_FRAME_HEADER_SAMPLE_COUNT_BITS
	.comm	_TAK_FRAME_FLAG_HAS_INFO,4,2    ; @TAK_FRAME_FLAG_HAS_INFO
	.comm	_TAK_FRAME_FLAG_HAS_METADATA,4,2 ; @TAK_FRAME_FLAG_HAS_METADATA
.subsections_via_symbols
