	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq1_decode_frame_header
_svq1_decode_frame_header:              ## @svq1_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	leaq	16(%r14), %rbx
	movl	(%r14), %eax
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	movl	4(%r14), %r15d
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_skip_bits
	movl	$0, 8(%r14)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$1, %rax
	je	LBB0_4
## %bb.2:
	cmpq	$2, %rax
	jne	LBB0_23
## %bb.3:
	movl	$1, 8(%r14)
LBB0_4:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	(%rdx), %rax
	movq	%rax, (%r13)
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:
	movl	12(%r14), %eax
	cmpl	$96, %eax
	je	LBB0_8
## %bb.7:
	cmpl	$80, %eax
	jne	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	sarl	$3, %esi
	movl	%eax, %edx
	callq	_ff_svq1_packet_checksum
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rcx, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_ff_dlog
	movl	12(%r14), %eax
LBB0_9:
	xorl	$16, %eax
	cmpl	$80, %eax
	jl	LBB0_11
## %bb.10:
	leaq	-1088(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_svq1_parse_string
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1087(%rbp), %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_11:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	cmpl	$7, %eax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_get_bits
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_get_bits
	movq	%r12, -1096(%rbp)               ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.13:
	movq	%rax, %r15
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_14
LBB0_23:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_14
LBB0_15:
	movq	_ff_svq1_frame_size_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movq	%rcx, -1096(%rbp)               ## 8-byte Spill
	movl	4(%rax), %r15d
LBB0_16:
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	testq	%rax, %rax
	jne	LBB0_14
LBB0_18:
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_skip_bits1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	callq	_skip_1stop_8data_bits
	testq	%rax, %rax
	js	LBB0_14
LBB0_20:
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movl	%eax, (%r14)
	movl	%r15d, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.22:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,8,3          ## @AV_PICTURE_TYPE_P
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid frame type.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"%s checksum (%02x) for packet data\n"

L_.str.2:                               ## @.str.2
	.asciz	"correct"

L_.str.3:                               ## @.str.3
	.asciz	"incorrect"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"embedded message:\n%s\n"

	.comm	_ff_svq1_frame_size_table,8,3   ## @ff_svq1_frame_size_table
	.no_dead_strip	_svq1_decode_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq1_decode_frame_header
_svq1_decode_frame_header:              ; @svq1_decode_frame_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1056
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x24, [x0]
	add	x19, x24, #16
	ldp	w20, w21, [x24]
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
	str	wzr, [x24, #8]
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
Lloh3:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	cmp	x0, #1
	b.eq	LBB0_4
; %bb.2:
	cmp	x0, #2
	b.ne	LBB0_15
; %bb.3:
	mov	w9, #1
	str	w9, [x24, #8]
LBB0_4:
Lloh5:
	adrp	x9, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x9, x8
LBB0_6:
	ldr	x9, [x9]
	str	x9, [x23]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.7:
	ldr	w8, [x24, #12]
	cmp	w8, #96
	b.eq	LBB0_9
; %bb.8:
	cmp	w8, #80
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #16
	bl	_get_bits
	mov	x2, x0
	ldp	w8, w0, [x24, #16]
	asr	w1, w8, #3
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ff_svq1_packet_checksum
	mov	x3, x0
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x2, x9, x8, eq
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_ff_dlog
	ldr	w8, [x24, #12]
LBB0_10:
	eor	w8, w8, #0x10
	cmp	w8, #80
	b.lt	LBB0_12
; %bb.11:
	add	x20, sp, #20
	add	x1, sp, #20
	mov	x0, x19
	bl	_svq1_parse_string
Lloh13:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	orr	x8, x20, #0x1
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_av_log
LBB0_12:
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	cmp	w0, #7
	b.ne	LBB0_16
; %bb.13:
	mov	x0, x19
	mov	w1, #12
	bl	_get_bits
	mov	x20, x0
	mov	x0, x19
	mov	w1, #12
	bl	_get_bits
	cbz	w20, LBB0_22
; %bb.14:
	mov	x21, x0
	cbnz	w21, LBB0_17
	b	LBB0_22
LBB0_15:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
	b	LBB0_22
LBB0_16:
Lloh23:
	adrp	x8, _ff_svq1_frame_size_table@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ff_svq1_frame_size_table@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x8, [x8, x9]
	ldp	w20, w21, [x8]
LBB0_17:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	cbnz	x0, LBB0_22
LBB0_19:
	mov	x0, x19
	bl	_get_bits1
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x19
	bl	_skip_bits1
	mov	x0, x19
	mov	w1, #2
	bl	_skip_bits
	mov	x0, x19
	bl	_skip_1stop_8data_bits
	tbnz	x0, #63, LBB0_22
LBB0_21:
	mov	w0, #0
	stp	w20, w21, [x24]
	b	LBB0_23
LBB0_22:
Lloh26:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_23:
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,8,3          ; @AV_PICTURE_TYPE_P
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid frame type.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"%s checksum (%02x) for packet data\n"

l_.str.2:                               ; @.str.2
	.asciz	"correct"

l_.str.3:                               ; @.str.3
	.asciz	"incorrect"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"embedded message:\n%s\n"

	.comm	_ff_svq1_frame_size_table,8,3   ; @ff_svq1_frame_size_table
	.no_dead_strip	_svq1_decode_frame_header
.subsections_via_symbols
