	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flac_header
_flac_header:                           ## @flac_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	(%r13,%rbx,8), %rcx
	movq	8(%r13,%rbx,8), %rdx
	xorl	%r15d, %r15d
	cmpl	$255, (%rcx,%rdx,4)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rsi
	movq	(%rsi,%rax,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rbx,8), %r14
	addq	%r13, %r14
	leaq	(%rcx,%rdx,4), %rsi
	movl	16(%r13,%rbx,8), %edx
	shll	$3, %edx
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	callq	_init_get_bits
	movq	%r15, %rdi
	callq	_skip_bits1
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_get_bits
	movq	_OGG_FLAC_METADATA_TYPE_STREAMINFO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.2:
	movq	(%r14), %r12
	movq	8(%r14), %r13
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	$-1, %r15d
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.3:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_skip_bits_long
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_skip_bits_long
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movq	_FLAC_STREAMINFO_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movl	%ecx, 16(%rdi)
	movq	_AV_CODEC_ID_FLAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdi)
	movq	_AVSTREAM_PARSE_HEADERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	%rax, %rsi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	leaq	(%r12,%r13,4), %rsi
	addq	$68, %rsi
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movl	8(%rax), %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$10, %rdi
	callq	_AV_RB24
	cmpl	$15, %eax
	ja	LBB0_8
## %bb.7:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_9:
	movq	_FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	leaq	16(,%rbx,8), %rax
	addq	%r13, %rax
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	leaq	(%rcx,%rdx,4), %rdx
	addq	$16, %rdx
	movl	(%rax), %ecx
	addl	$-4, %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_vorbis_stream_comment
LBB0_11:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_8:
	sarl	$4, %eax
	movl	$1, %r15d
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_avpriv_set_pts_info
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_OGG_FLAC_METADATA_TYPE_STREAMINFO,4,2 ## @OGG_FLAC_METADATA_TYPE_STREAMINFO
	.comm	_FLAC_STREAMINFO_SIZE,8,3       ## @FLAC_STREAMINFO_SIZE
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_FLAC,4,2           ## @AV_CODEC_ID_FLAC
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ## @AVSTREAM_PARSE_HEADERS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_FLAC_METADATA_TYPE_VORBIS_COMMENT,4,2 ## @FLAC_METADATA_TYPE_VORBIS_COMMENT
	.no_dead_strip	_flac_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flac_header
_flac_header:                           ; @flac_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x8, x1
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	mov	w10, #24
	smaddl	x21, w1, w10, x9
	ldr	x10, [x21]
	mov	x22, x21
	ldr	x11, [x22, #8]!
	add	x1, x10, x11, lsl #2
	ldr	w10, [x1]
	cmp	w10, #255
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_12
LBB0_2:
	mov	x20, x0
	ldr	x10, [x0]
	ldr	x19, [x10, w8, sxtw #3]
	sxtw	x8, w8
	mov	w10, #24
	madd	x23, x8, x10, x9
	ldr	w8, [x23, #16]!
	lsl	w2, w8, #3
	add	x0, sp, #12
	bl	_init_get_bits
	add	x0, sp, #12
	bl	_skip_bits1
	add	x0, sp, #12
	mov	w1, #7
	bl	_get_bits
Lloh0:
	adrp	x8, _OGG_FLAC_METADATA_TYPE_STREAMINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OGG_FLAC_METADATA_TYPE_STREAMINFO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	x20, [x21]
	ldr	x21, [x22]
	add	x0, sp, #12
	mov	w1, #32
	bl	_skip_bits_long
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_bits
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.4:
	add	x0, sp, #12
	mov	w1, #24
	bl	_skip_bits_long
	add	x0, sp, #12
	mov	w1, #32
	bl	_skip_bits_long
	add	x0, sp, #12
	mov	w1, #32
	bl	_get_bits_long
Lloh3:
	adrp	x8, _FLAC_STREAMINFO_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC_STREAMINFO_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x1, x0
Lloh6:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x0, [x19]
Lloh9:
	adrp	x9, _AV_CODEC_ID_FLAC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_ID_FLAC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #12]
Lloh12:
	adrp	x8, _AVSTREAM_PARSE_HEADERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVSTREAM_PARSE_HEADERS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	bl	_ff_alloc_extradata
	tbnz	x0, #63, LBB0_13
; %bb.6:
	add	x8, x20, x21, lsl #2
	add	x1, x8, #68
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	w2, [x8, #8]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, #10
	bl	_AV_RB24
	cmp	w0, #15
	b.hi	LBB0_14
; %bb.7:
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x8, _FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FLAC_METADATA_TYPE_VORBIS_COMMENT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #2
	add	x2, x8, #16
	ldr	w8, [x23]
	sub	w3, w8, #4
	mov	x0, x20
	mov	x1, x19
	bl	_ff_vorbis_stream_comment
LBB0_10:
	mov	w20, #1
	b	LBB0_12
LBB0_11:
	mov	w20, #-1
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_13:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_12
LBB0_14:
	asr	w3, w0, #4
	mov	w20, #1
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OGG_FLAC_METADATA_TYPE_STREAMINFO,4,2 ; @OGG_FLAC_METADATA_TYPE_STREAMINFO
	.comm	_FLAC_STREAMINFO_SIZE,8,3       ; @FLAC_STREAMINFO_SIZE
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_FLAC,4,2           ; @AV_CODEC_ID_FLAC
	.comm	_AVSTREAM_PARSE_HEADERS,4,2     ; @AVSTREAM_PARSE_HEADERS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_FLAC_METADATA_TYPE_VORBIS_COMMENT,4,2 ; @FLAC_METADATA_TYPE_VORBIS_COMMENT
	.no_dead_strip	_flac_header
.subsections_via_symbols
