	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_read_header
_pcm_read_header:                       ## @pcm_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	movq	$0, -80(%rbp)
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 20(%rcx)
	movq	(%r12), %rax
	movl	8(%rax), %eax
	movl	%eax, 16(%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movl	4(%rbx), %eax
	movl	%eax, 4(%rcx)
	movl	8(%r12), %edi
	movq	_AV_OPT_SEARCH_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rcx
	callq	_av_opt_get
	movq	-80(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_24
## %bb.4:
	movq	(%r12), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.5:
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_av_strncasecmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_24:
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	movq	(%r14), %rax
	movl	16(%rax), %edi
	callq	_av_get_bits_per_sample
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_av_assert0
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	imull	8(%rax), %edx
	leal	7(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$3, %esi
	movl	%esi, 12(%rax)
	movq	%r14, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	xorl	%eax, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.26:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.2:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	-80(%rbp), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r15
	jge	LBB0_27
## %bb.7:
	leaq	(,%r15,4), %rdi
	addq	%r13, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addq	$4, %rbx
	cmpl	$0, -72(%rbp)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -68(%rbp)
	je	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%r15d, %r15d
	movl	$1, %r15d
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-62(%rbp), %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-62(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	cmpq	%rbx, %rax
	jbe	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-72(%rbp), %rdx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$0, -68(%rbp)
	jne	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-68(%rbp), %rdx
	xorl	%eax, %eax
	callq	_sscanf
	jmp	LBB0_15
LBB0_8:
	xorl	%r15d, %r15d
LBB0_19:
	movl	-72(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.20:
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movl	-68(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.21:
	movl	%ecx, 4(%rax)
LBB0_22:
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.23:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	jmp	LBB0_24
LBB0_27:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	_av_log
	leaq	-80(%rbp), %rdi
	callq	_av_freep
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mime_type"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ## @AV_OPT_SEARCH_CHILDREN
L_.str.2:                               ## @.str.2
	.asciz	" rate=%d"

L_.str.3:                               ## @.str.3
	.asciz	" channels=%d"

L_.str.4:                               ## @.str.4
	.asciz	" endianness=%13s"

L_.str.5:                               ## @.str.5
	.asciz	"little-endian"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"Invalid sample_rate found in mime_type \"%s\"\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.no_dead_strip	_pcm_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_read_header
_pcm_read_header:                       ; @pcm_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0, #16]
	str	xzr, [sp, #16]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9, #20]
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	str	w8, [x9, #16]
	ldr	d0, [x21]
	str	d0, [x9]
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #16
	bl	_av_opt_get
	ldr	x21, [sp, #16]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x23, [x8]
	cbz	x23, LBB0_4
; %bb.3:
	str	xzr, [sp, #8]
	mov	x0, x23
	bl	_strlen
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_av_strncasecmp
	cbz	w0, LBB0_9
LBB0_4:
	add	x0, sp, #16
	bl	_av_freep
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_av_get_bits_per_sample
	ldr	x8, [x19]
	str	w0, [x8, #8]
	cmp	w0, #0
	cset	w0, gt
	bl	_av_assert0
	ldr	x8, [x19]
	ldp	w10, w9, [x8, #4]
	ldr	w3, [x8]
	mul	w9, w10, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	str	w9, [x8, #12]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w0, #0
LBB0_5:
	ldr	x8, [sp, #40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
LBB0_9:
	ldr	x27, [sp, #16]
	mov	x0, x27
	bl	_strlen
	cmp	x22, x0
	b.ge	LBB0_28
; %bb.10:
	mov	x21, x0
	add	x0, x27, x22, lsl #2
	mov	w1, #59
	bl	_strchr
	mov	w28, #0
	cbz	x0, LBB0_23
; %bb.11:
Lloh20:
	adrp	x23, l_.str.3@PAGE
Lloh21:
	add	x23, x23, l_.str.3@PAGEOFF
	add	x25, sp, #8
	add	x22, sp, #26
Lloh22:
	adrp	x24, l_.str.4@PAGE
Lloh23:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x26, x0, #4
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w28, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w28, #1
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, sp, #12
	str	x8, [sp]
	mov	x0, x26
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sscanf
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x25, [sp]
	mov	x0, x26
	mov	x1, x23
	bl	_sscanf
	cbnz	w28, LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x22, [sp]
	mov	x0, x26
	mov	x1, x24
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, sp, #26
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w28, eq
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w28, #0
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x27, [sp, #16]
	add	x8, x27, x21, lsl #2
	cmp	x8, x26
	b.ls	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
	mov	w1, #59
	bl	_strchr
	cbnz	x0, LBB0_12
LBB0_23:
	ldr	w9, [sp, #12]
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.24:
	ldr	x8, [x19]
	str	w9, [x8]
	ldr	w9, [sp, #8]
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.25:
	str	w9, [x8, #4]
LBB0_26:
	cbz	w28, LBB0_4
; %bb.27:
Lloh28:
	adrp	x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	b	LBB0_4
LBB0_28:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.6@PAGE
Lloh35:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x3, x27
	bl	_av_log
	add	x0, sp, #16
	bl	_av_freep
Lloh36:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mime_type"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ; @AV_OPT_SEARCH_CHILDREN
l_.str.2:                               ; @.str.2
	.asciz	" rate=%d"

l_.str.3:                               ; @.str.3
	.asciz	" channels=%d"

l_.str.4:                               ; @.str.4
	.asciz	" endianness=%13s"

l_.str.5:                               ; @.str.5
	.asciz	"little-endian"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"Invalid sample_rate found in mime_type \"%s\"\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.no_dead_strip	_pcm_read_header
.subsections_via_symbols
