	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcstr_read_header
_dcstr_read_header:                     ## @dcstr_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_avio_skip
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	%rax, 8(%r14)
	movl	(%rbx), %edi
	callq	_avio_rl32
	movq	%rax, %r8
	movq	(%r14), %rsi
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.2:
	testl	%r8d, %r8d
	jle	LBB0_4
## %bb.3:
	movq	_INT_MAX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	cltd
	idivl	%ecx
	cmpl	%r8d, %eax
	jge	LBB0_9
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_av_log
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	imull	%r8d, %ecx
	movl	%ecx, (%rsi)
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.10:
	movl	(%rdi), %eax
	cltd
	idivl	%ecx
	cmpl	%r12d, %eax
	jb	LBB0_5
## %bb.11:
	imull	%r12d, %ecx
	movl	%ecx, 4(%rsi)
	cmpl	$4, %r15d
	je	LBB0_14
## %bb.12:
	cmpl	$16, %r15d
	jne	LBB0_16
## %bb.13:
	movq	_AV_CODEC_ID_PCM_S16LE_PLANAR@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_AV_CODEC_ID_ADPCM_AICA@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_avio_tell
	movl	$2048, %esi                     ## imm = 0x800
	subl	%eax, %esi
	movl	%ebx, %edi
	callq	_avio_skip
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid number of channels %d x %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_ADPCM_AICA,4,2     ## @AV_CODEC_ID_ADPCM_AICA
	.comm	_AV_CODEC_ID_PCM_S16LE_PLANAR,4,2 ## @AV_CODEC_ID_PCM_S16LE_PLANAR
L_.str.1:                               ## @.str.1
	.asciz	"codec %X"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_dcstr_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcstr_read_header
_dcstr_read_header:                     ; @dcstr_read_header
	.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	x20, x0
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_7
; %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	x9, [x0]
	str	w8, [x9, #20]
	ldr	w0, [x20]
	bl	_avio_rl32
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	w0, [x20]
	bl	_avio_rl32
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x21, x0
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x22, x0
	ldr	w0, [x20]
	mov	w1, #4
	bl	_avio_skip
	ldr	w0, [x20]
	bl	_avio_rl32
	str	x0, [x19, #8]
	ldr	w0, [x20]
	bl	_avio_rl32
	mov	x4, x0
	ldr	x8, [x19]
	ldr	w3, [x8]
	cmp	w3, #1
	ccmp	w4, #1, #8, ge
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
	ldr	w10, [x9]
	sdiv	w10, w10, w3
	cmp	w10, w4
	b.ge	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_av_log
LBB0_4:
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
LBB0_7:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_8:
	mul	w10, w3, w4
	str	w10, [x8]
	cbz	w22, LBB0_4
; %bb.9:
	ldr	w9, [x9]
	sdiv	w9, w9, w10
	cmp	w9, w22
	b.lo	LBB0_4
; %bb.10:
	mul	w9, w10, w22
	str	w9, [x8, #4]
	cmp	w21, #4
	b.eq	LBB0_13
; %bb.11:
	cmp	w21, #16
	b.ne	LBB0_15
; %bb.12:
Lloh15:
	adrp	x9, _AV_CODEC_ID_PCM_S16LE_PLANAR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16LE_PLANAR@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x9, _AV_CODEC_ID_ADPCM_AICA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_AICA@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ldr	w20, [x20]
	mov	x0, x20
	bl	_avio_tell
	mov	w8, #2048
	sub	w1, w8, w0
	mov	x0, x20
	bl	_avio_skip
	ldr	x8, [x19]
	ldr	x3, [x8, #8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
	b	LBB0_6
LBB0_15:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_avpriv_request_sample
Lloh21:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid number of channels %d x %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_ADPCM_AICA,4,2     ; @AV_CODEC_ID_ADPCM_AICA
	.comm	_AV_CODEC_ID_PCM_S16LE_PLANAR,4,2 ; @AV_CODEC_ID_PCM_S16LE_PLANAR
l_.str.1:                               ; @.str.1
	.asciz	"codec %X"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_dcstr_read_header
.subsections_via_symbols
