	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function celt_header
_celt_header:                           ## @celt_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	$40, %rsp
	.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), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rbx
	movq	8(%r12,%rbx,8), %r15
	movslq	(%r12,%rbx,8), %r13
	shlq	$2, %r13
	addq	16(%r12,%rbx,8), %r13
	cmpl	$60, 4(%r12,%rbx,8)
	jne	LBB0_11
## %bb.1:
	movq	_ff_celt_codec@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_15
## %bb.12:
	cmpq	$0, (%r15)
	je	LBB0_15
## %bb.13:
	leaq	(%r12,%rbx,8), %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_ff_vorbis_stream_comment
	decq	(%r15)
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$8, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	movl	$16, %esi
	callq	_ff_alloc_extradata
	testq	%rax, %rax
	js	LBB0_4
## %bb.6:
	leaq	(%r12,%rbx,8), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	112(%r13), %rdi
	callq	_AV_RL32
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	144(%r13), %rdi
	callq	_AV_RL32
	movq	%rax, %r12
	leaq	160(%r13), %rdi
	callq	_AV_RL32
	movq	%rax, %rbx
	leaq	192(%r13), %rdi
	callq	_AV_RL32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$224, %r13
	movq	%r13, %rdi
	callq	_AV_RL32
	movq	%rax, %r13
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 28(%rcx)
	movq	_AV_CODEC_ID_CELT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	%r12, 16(%rcx)
	movq	%rbx, 8(%rcx)
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_avpriv_set_pts_info
LBB0_8:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_av_free
	movq	(%rbx), %r14
LBB0_10:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, (%rbx)
	incq	%r13
	movq	%r13, (%r14)
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_AV_WL32
	movq	(%r15), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	_AV_WL32
	jmp	LBB0_14
LBB0_4:
	movq	%r14, %rdi
	callq	_av_free
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_celt_codec,8,2              ## @ff_celt_codec
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_CELT,4,2           ## @AV_CODEC_ID_CELT
	.no_dead_strip	_celt_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function celt_header
_celt_header:                           ; @celt_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldp	x9, x8, [x0]
	ldr	x19, [x9, w1, sxtw #3]
	ldr	x8, [x8]
	mov	w9, #24
	smaddl	x23, w1, w9, x8
	mov	x26, x23
	ldr	x21, [x26, #8]!
	ldr	x8, [x23, #16]
	ldrsw	x9, [x23]
	add	x22, x8, x9, lsl #2
	ldr	w8, [x23, #4]!
	cmp	w8, #60
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ff_celt_codec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_celt_codec@GOTPAGEOFF]
	ldp	w2, w1, [x8]
	mov	x0, x22
	bl	_memcmp
	cbz	w0, LBB0_8
LBB0_2:
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_ff_vorbis_stream_comment
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #8
	bl	_av_malloc
	cbz	x0, LBB0_16
; %bb.9:
	mov	x20, x0
	ldr	x0, [x19]
	mov	w1, #16
	bl	_ff_alloc_extradata
	tbnz	x0, #63, LBB0_15
; %bb.10:
	add	x0, x22, #112
	bl	_AV_RL32
	mov	x21, x0
	add	x0, x22, #144
	bl	_AV_RL32
	mov	x24, x0
	add	x0, x22, #160
	bl	_AV_RL32
	mov	x25, x0
	add	x0, x22, #192
	bl	_AV_RL32
	mov	x23, x0
	add	x0, x22, #224
	bl	_AV_RL32
	mov	x22, x0
Lloh2:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AV_CODEC_ID_CELT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CODEC_ID_CELT@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #24]
	stp	x25, x24, [x10, #8]
	cbz	x24, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	x3, x24
	bl	_avpriv_set_pts_info
LBB0_12:
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_av_free
	ldr	x20, [x26]
LBB0_14:
	str	x20, [x26]
	add	x8, x22, #1
	str	x8, [x20]
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_AV_WL32
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x0, x8, #4
	mov	x1, x21
	bl	_AV_WL32
	b	LBB0_5
LBB0_15:
	mov	x0, x20
	bl	_av_free
LBB0_16:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_celt_codec,8,2              ; @ff_celt_codec
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_CELT,4,2           ; @AV_CODEC_ID_CELT
	.no_dead_strip	_celt_header
.subsections_via_symbols
