	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r13
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_avio_skip
	movq	%r14, %rdi
	callq	_avio_rl32
	movq	(%r12), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_ff_get_wav_header
	movq	(%r12), %rax
	movl	(%rax), %ecx
	cmpl	$8000, %ecx                     ## imm = 0x1F40
	jne	LBB0_2
## %bb.3:
	movabsq	$4294967376, %rcx               ## imm = 0x100000050
	movq	%rcx, 4(%rax)
	movq	%r12, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$100, %ecx
	callq	_avpriv_set_pts_info
	movq	_AV_CODEC_ID_G729@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, 12(%rcx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$257, %esi                      ## imm = 0x101
	callq	_avio_seek
	movq	%r14, %rdi
	callq	_avio_rl16
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_avio_r8
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_avio_rl32
	imull	$60, %eax, %eax
	addl	%ebx, %eax
	imull	$1000, %eax, %edi               ## imm = 0x3E8
	addl	%r13d, %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	imull	$1000, 4(%rax), %edx            ## imm = 0x3E8
	callq	_av_rescale
	movl	%eax, 8(%r12)
	movq	_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_avio_seek
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sample rate %d is not supported.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_G729,4,2           ## @AV_CODEC_ID_G729
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_CHUNK_SIZE,4,2                 ## @CHUNK_SIZE
	.no_dead_strip	_read_header
.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 read_header
lCPI0_0:
	.long	80                              ; 0x50
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_read_header:                           ; @read_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	ldp	x19, x23, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #16
	bl	_avio_skip
	mov	x0, x19
	bl	_avio_rl32
	mov	x3, x0
	ldr	x2, [x20]
	mov	x0, x21
	mov	x1, x19
	mov	w4, #0
	bl	_ff_get_wav_header
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	w9, #8000
	cmp	w3, w9
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #4]
	mov	x0, x20
	mov	w1, #64
	mov	w2, #1
	mov	w3, #100
	bl	_avpriv_set_pts_info
Lloh2:
	adrp	x8, _AV_CODEC_ID_G729@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_CODEC_ID_G729@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #12]
Lloh5:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #257
	bl	_avio_seek
	mov	x0, x19
	bl	_avio_rl16
	mov	x21, x0
	mov	x0, x19
	bl	_avio_r8
	mov	x22, x0
	mov	x0, x19
	bl	_avio_rl32
	mov	w8, #60
	madd	w8, w0, w8, w22
	mov	w9, #1000
	madd	w0, w8, w9, w21
	ldr	x8, [x20]
	ldp	w1, w8, [x8]
	mul	w2, w8, w9
	bl	_av_rescale
	str	w0, [x20, #8]
Lloh7:
	adrp	x8, _CHUNK_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CHUNK_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #512
	bl	_avio_seek
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_4:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sample rate %d is not supported.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_CODEC_ID_G729,4,2           ; @AV_CODEC_ID_G729
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_CHUNK_SIZE,4,2                 ; @CHUNK_SIZE
	.no_dead_strip	_read_header
.subsections_via_symbols
