	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siff_read_header
_siff_read_header:                      ## @siff_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	_TAG_SIFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_avio_skip
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movq	_TAG_VBV1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_TAG_SOUN@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rcx, %rbx
	je	LBB0_6
## %bb.3:
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	cmpq	%rcx, %rbx
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_siff_parse_vbv1
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	movq	(%r13), %rax
LBB0_9:
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_siff_parse_soun
	testl	%eax, %eax
	js	LBB0_14
LBB0_11:
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movl	$66, %edi
	movl	$79, %esi
	movl	$68, %edx
	movl	$89, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_avio_skip
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	movq	%r14, %rdi
	callq	_av_log
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_SIFF,8,3                   ## @TAG_SIFF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_TAG_VBV1,8,3                   ## @TAG_VBV1
	.comm	_TAG_SOUN,8,3                   ## @TAG_SOUN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a VBV file\n"

L_.str.1:                               ## @.str.1
	.asciz	"'BODY' chunk is missing\n"

	.no_dead_strip	_siff_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siff_read_header
_siff_read_header:                      ; @siff_read_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	x21, x20, [x0]
	mov	x0, x20
	bl	_avio_rl32
Lloh0:
	adrp	x8, _TAG_SIFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAG_SIFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.1:
	mov	x0, x20
	mov	w1, #4
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl32
Lloh3:
	adrp	x8, _TAG_VBV1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TAG_VBV1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x23, _TAG_SOUN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TAG_SOUN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x9
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_9
; %bb.2:
	mov	x22, x0
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_siff_parse_vbv1
	tbnz	w0, #31, LBB0_13
; %bb.4:
	ldr	x8, [x23]
LBB0_5:
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_siff_parse_soun
	tbnz	w0, #31, LBB0_13
LBB0_7:
	mov	x0, x20
	bl	_avio_rl32
	mov	x21, x0
	mov	w0, #66
	mov	w1, #79
	mov	w2, #68
	mov	w3, #89
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x20
	mov	w1, #4
	bl	_avio_skip
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_av_log
LBB0_12:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_SIFF,8,3                   ; @TAG_SIFF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_TAG_VBV1,8,3                   ; @TAG_VBV1
	.comm	_TAG_SOUN,8,3                   ; @TAG_SOUN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a VBV file\n"

l_.str.1:                               ; @.str.1
	.asciz	"'BODY' chunk is missing\n"

	.no_dead_strip	_siff_read_header
.subsections_via_symbols
