	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codec2_read_header_common
_codec2_read_header_common:             ## @codec2_read_header_common
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	36(%rax), %edi
	callq	_avpriv_codec2_mode_from_extradata
	movl	%eax, %r15d
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 32(%rcx)
	movq	_AV_CODEC_ID_CODEC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movabsq	$4294975296, %rax               ## imm = 0x100001F40
	movq	%rax, (%rcx)
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avpriv_codec2_mode_bit_rate
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avpriv_codec2_mode_frame_size
	movq	(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avpriv_codec2_mode_block_align
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	cmpl	$0, 16(%rcx)
	jle	LBB0_3
## %bb.1:
	cmpl	$0, 12(%rcx)
	jle	LBB0_3
## %bb.2:
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_CODEC2,4,2         ## @AV_CODEC_ID_CODEC2
	.comm	_AV_SAMPLE_FMT_S16,4,2          ## @AV_SAMPLE_FMT_S16
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_codec2_read_header_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function codec2_read_header_common
lCPI0_0:
	.long	8000                            ; 0x1f40
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_codec2_read_header_common:             ; @codec2_read_header_common
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	ldr	w0, [x8, #36]
	bl	_avpriv_codec2_mode_from_extradata
	mov	x21, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _AV_CODEC_ID_CODEC2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_CODEC2@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #28]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9]
Lloh8:
	adrp	x8, _AV_SAMPLE_FMT_S16@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_SAMPLE_FMT_S16@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #20]
	mov	x0, x20
	mov	x1, x21
	bl	_avpriv_codec2_mode_bit_rate
	ldr	x8, [x19]
	str	w0, [x8, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_avpriv_codec2_mode_frame_size
	ldr	x8, [x19]
	str	w0, [x8, #12]
	mov	x0, x20
	mov	x1, x21
	bl	_avpriv_codec2_mode_block_align
	ldr	x8, [x19]
	str	w0, [x8, #8]
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w9, [x8, #12]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	cmp	w0, #0
	b.le	LBB0_4
; %bb.3:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
LBB0_5:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_CODEC2,4,2         ; @AV_CODEC_ID_CODEC2
	.comm	_AV_SAMPLE_FMT_S16,4,2          ; @AV_SAMPLE_FMT_S16
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_codec2_read_header_common
.subsections_via_symbols
