	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_core_parse              ## -- Begin function ff_dca_core_parse
	.p2align	4, 0x90
_ff_dca_core_parse:                     ## @ff_dca_core_parse
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rdi)
	movups	%xmm0, 24(%rdi)
	movq	%r14, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	callq	_parse_frame_header
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	callq	_alloc_sample_buffer
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	_HEADER_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_parse_frame_data
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_parse_optional_info
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	(%rbx), %esi
	cmpl	%r15d, %esi
	jle	LBB0_7
## %bb.6:
	movl	%r15d, (%rbx)
	movl	%r15d, %esi
LBB0_7:
	shll	$3, %esi
	movq	%r14, %rdi
	callq	_ff_dca_seek_bits
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	8(%rbx), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	8(%rbx), %rcx
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	je	LBB0_11
## %bb.10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_CORE,4,2                ## @HEADER_CORE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read past end of core frame\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_dca_core_parse              ; -- Begin function ff_dca_core_parse
	.p2align	2
_ff_dca_core_parse:                     ; @ff_dca_core_parse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x0
	add	x20, x0, #16
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #40]
	stur	q0, [x0, #24]
	mov	x0, x20
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_parse_frame_header
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_alloc_sample_buffer
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _HEADER_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEADER_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_parse_frame_data
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_parse_optional_info
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_7
; %bb.6:
	str	w21, [x19]
	mov	x8, x21
LBB0_7:
	lsl	w1, w8, #3
	mov	x0, x20
	bl	_ff_dca_seek_bits
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, wzr, w10, eq
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_CORE,4,2                ; @HEADER_CORE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read past end of core frame\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
