	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function matroska_parse_flac
_matroska_parse_flac:                   ## @matroska_parse_flac
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %r15d
	movq	_FLAC_STREAMINFO_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	$8, %eax
	cmpl	%eax, %r15d
	jl	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	testb	$127, 16(%rax)
	je	LBB0_3
LBB0_2:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movl	$0, 8(%rbx)
LBB0_13:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%rbx), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	$8, (%rdx)
	movslq	(%rcx), %rcx
	addq	$8, %rcx
	movl	%ecx, 8(%rbx)
	subl	%ecx, %r15d
	cmpl	$4, %r15d
	jl	LBB0_13
## %bb.4:
	leaq	(%rax,%rcx,4), %rbx
	leaq	-60(%rbp), %r12
	leaq	-44(%rbp), %r13
	jmp	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_av_dict_free
	movl	-44(%rbp), %ecx
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rbx
	subl	%eax, %r15d
	cmpl	$3, %r15d
	jle	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-76(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_flac_parse_block_header
	addl	$-4, %r15d
	movl	-44(%rbp), %ecx
	cmpl	%r15d, %ecx
	jg	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rbx
	movl	-60(%rbp), %eax
	movq	_FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, -56(%rbp)
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_ff_vorbis_comment
	movq	-56(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	cmpl	$262143, %ecx                   ## imm = 0x3FFFF
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_STREAMINFO_SIZE,4,2       ## @FLAC_STREAMINFO_SIZE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid FLAC private data\n"

	.comm	_FLAC_METADATA_TYPE_VORBIS_COMMENT,4,2 ## @FLAC_METADATA_TYPE_VORBIS_COMMENT
L_.str.1:                               ## @.str.1
	.asciz	"WAVEFORMATEXTENSIBLE_CHANNEL_MASK"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid value of WAVEFORMATEXTENSIBLE_CHANNEL_MASK\n"

	.no_dead_strip	_matroska_parse_flac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function matroska_parse_flac
_matroska_parse_flac:                   ; @matroska_parse_flac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w9, [x1, #8]
Lloh0:
	adrp	x10, _FLAC_STREAMINFO_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAC_STREAMINFO_SIZE@GOTPAGEOFF]
	ldr	w8, [x10]
	add	w8, w8, #8
	cmp	w9, w8
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldrb	w11, [x8, #16]
	tst	w11, #0x7f
	b.eq	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x20, #8]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	x23, [x20, #16]
	mov	w11, #8
	str	w11, [x2]
	ldrsw	x10, [x10]
	add	x10, x10, #8
	str	w10, [x20, #8]
	sub	w27, w9, w10
	cmp	w27, #4
	b.lt	LBB0_3
; %bb.5:
Lloh7:
	adrp	x24, _FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPAGEOFF]
Lloh9:
	adrp	x20, l_.str.1@PAGE
Lloh10:
	add	x20, x20, l_.str.1@PAGEOFF
	add	x22, x8, x10, lsl #2
	mov	w25, #262143
Lloh11:
	adrp	x26, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x26, [x26, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x23]
	str	w0, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_av_dict_free
	ldr	w3, [sp, #20]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, w3, sxtw #2
	sub	w27, w27, w3
	cmp	w27, #3
	b.le	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x22
	bl	_flac_parse_block_header
	sub	w27, w27, #4
	ldr	w3, [sp, #20]
	cmp	w3, w27
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #16
	ldr	w8, [sp, #24]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	mov	w4, #0
	bl	_ff_vorbis_comment
	ldr	x0, [sp, #8]
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	bl	_av_dict_get
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	sub	w8, w0, #1
	cmp	w8, w25
	b.lo	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x21
	bl	_av_log
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_STREAMINFO_SIZE,4,2       ; @FLAC_STREAMINFO_SIZE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid FLAC private data\n"

	.comm	_FLAC_METADATA_TYPE_VORBIS_COMMENT,4,2 ; @FLAC_METADATA_TYPE_VORBIS_COMMENT
l_.str.1:                               ; @.str.1
	.asciz	"WAVEFORMATEXTENSIBLE_CHANNEL_MASK"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid value of WAVEFORMATEXTENSIBLE_CHANNEL_MASK\n"

	.no_dead_strip	_matroska_parse_flac
.subsections_via_symbols
