	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_parse_streaminfo       ## -- Begin function ff_flac_parse_streaminfo
	.p2align	4, 0x90
_ff_flac_parse_streaminfo:              ## @ff_flac_parse_streaminfo
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_FLAC_STREAMINFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_init_get_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_skip_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	movq	_FLAC_MIN_BLOCKSIZE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jle	LBB0_3
## %bb.1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movl	$16, (%r12)
	jmp	LBB0_2
LBB0_3:
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_skip_bits
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_get_bits_long
	movq	%rax, 32(%r12)
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_get_bits_long
	movq	%rax, 24(%r12)
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	incq	%rax
	movq	%rax, 8(%r12)
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_get_bits
	incl	%eax
	movl	%eax, 16(%r12)
	cmpl	$3, %eax
	jg	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movl	$16, 16(%r12)
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_5:
	movq	8(%r12), %rcx
	movq	%rcx, (%r14)
	movq	24(%r12), %rcx
	movq	%rcx, 16(%r14)
	movl	%eax, 8(%r14)
	movl	12(%r14), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.6:
	callq	_av_get_channel_layout_nb_channels
	cmpq	(%r14), %rax
	je	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_ff_flac_set_channel_layout
LBB0_8:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$36, %esi
	callq	_get_bits64
	movl	%eax, 20(%r12)
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_skip_bits_long
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_skip_bits_long
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_STREAMINFO_SIZE,4,2       ## @FLAC_STREAMINFO_SIZE
	.comm	_FLAC_MIN_BLOCKSIZE,4,2         ## @FLAC_MIN_BLOCKSIZE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid max blocksize: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid bps: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_parse_streaminfo       ; -- Begin function ff_flac_parse_streaminfo
	.p2align	2
_ff_flac_parse_streaminfo:              ; @ff_flac_parse_streaminfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _FLAC_STREAMINFO_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAC_STREAMINFO_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w2, w9, #3
	add	x0, sp, #12
	mov	x1, x8
	bl	_init_get_bits
	mov	w21, #16
	add	x0, sp, #12
	mov	w1, #16
	bl	_skip_bits
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_bits
	mov	x3, x0
	str	w3, [x19]
Lloh3:
	adrp	x8, _FLAC_MIN_BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC_MIN_BLOCKSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w3
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
	str	w21, [x19]
	b	LBB0_4
LBB0_2:
	add	x0, sp, #12
	mov	w1, #24
	bl	_skip_bits
	add	x0, sp, #12
	mov	w1, #24
	bl	_get_bits_long
	str	x0, [x19, #32]
	add	x0, sp, #12
	mov	w1, #20
	bl	_get_bits_long
	str	x0, [x19, #24]
	add	x0, sp, #12
	mov	w1, #3
	bl	_get_bits
	add	x8, x0, #1
	str	x8, [x19, #8]
	add	x0, sp, #12
	mov	w1, #5
	bl	_get_bits
	add	w3, w0, #1
	str	w3, [x19, #16]
	cmp	w3, #3
	b.gt	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w8, #16
	str	w8, [x19, #16]
LBB0_4:
Lloh16:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
	str	x8, [x20]
	ldr	x8, [x19, #24]
	str	x8, [x20, #16]
	str	w3, [x20, #8]
	ldr	w0, [x20, #12]
	cbz	w0, LBB0_7
; %bb.6:
	bl	_av_get_channel_layout_nb_channels
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_ff_flac_set_channel_layout
LBB0_8:
	add	x0, sp, #12
	mov	w1, #36
	bl	_get_bits64
	str	w0, [x19, #20]
	add	x0, sp, #12
	mov	w1, #64
	bl	_skip_bits_long
	add	x0, sp, #12
	mov	w1, #64
	bl	_skip_bits_long
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_STREAMINFO_SIZE,4,2       ; @FLAC_STREAMINFO_SIZE
	.comm	_FLAC_MIN_BLOCKSIZE,4,2         ; @FLAC_MIN_BLOCKSIZE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid max blocksize: %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid bps: %d\n"

.subsections_via_symbols
