	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acm_read_header
_acm_read_header:                       ## @acm_read_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rsi
	movl	%eax, 28(%rsi)
	movq	_AV_CODEC_ID_INTERPLAY_ACM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movl	$14, %ecx
	callq	_ff_get_extradata
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	8(%r14), %rax
	movq	16(%rax), %rdi
	addq	$8, %rdi
	callq	_AV_RL16
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	16(%rcx), %rdi
	addq	$10, %rdi
	callq	_AV_RL16
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	cmpl	$0, (%rcx)
	jle	LBB0_4
## %bb.3:
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:
	movq	$0, 24(%r14)
	movq	16(%rcx), %rdi
	addq	$4, %rdi
	callq	_AV_RL32
	movq	8(%r14), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, (%r14)
	movq	_AVSTREAM_PARSE_FULL_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	8(%rcx), %rcx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_INTERPLAY_ACM,4,2  ## @AV_CODEC_ID_INTERPLAY_ACM
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVSTREAM_PARSE_FULL_RAW,4,2    ## @AVSTREAM_PARSE_FULL_RAW
	.no_dead_strip	_acm_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acm_read_header
_acm_read_header:                       ; @acm_read_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x0, #8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_INTERPLAY_ACM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_INTERPLAY_ACM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	ldr	w2, [x20]
	mov	x0, x20
	mov	w3, #14
	bl	_ff_get_extradata
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	add	x0, x8, #8
	bl	_AV_RL16
	ldr	x8, [x19, #8]
	str	w0, [x8]
	ldr	x8, [x8, #16]
	add	x0, x8, #10
	bl	_AV_RL16
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	ccmp	x0, #0, #4, ge
	b.gt	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_5:
	str	xzr, [x19, #24]
	ldr	x8, [x8, #16]
	add	x0, x8, #4
	bl	_AV_RL32
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	sdiv	w9, w0, w9
	str	w9, [x19]
Lloh12:
	adrp	x9, _AVSTREAM_PARSE_FULL_RAW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVSTREAM_PARSE_FULL_RAW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	ldr	x3, [x8, #8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_INTERPLAY_ACM,4,2  ; @AV_CODEC_ID_INTERPLAY_ACM
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVSTREAM_PARSE_FULL_RAW,4,2    ; @AVSTREAM_PARSE_FULL_RAW
	.no_dead_strip	_acm_read_header
.subsections_via_symbols
