	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_get_wav_header              ## -- Begin function ff_get_wav_header
	.p2align	4, 0x90
_ff_get_wav_header:                     ## @ff_get_wav_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$13, %ecx
	jg	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_request_sample
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
LBB0_4:
	movl	%esi, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdx)
	testl	%r8d, %r8d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_avio_rb16
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_avio_rb16
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	callq	_avio_rb32
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_avio_rb32
	shlq	$3, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb16
	movq	%rax, 48(%r15)
	movl	$8, %eax
	cmpl	$14, %ebx
	je	LBB0_13
## %bb.7:
	movq	%r12, %rdi
	callq	_avio_rb16
	jmp	LBB0_13
LBB0_8:
	callq	_avio_rl16
	movq	%rax, %r13
	cmpl	$357, %r13d                     ## imm = 0x165
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_avio_rl16
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	callq	_avio_rl32
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_avio_rl32
	shlq	$3, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_avio_rl16
	movq	%rax, 48(%r15)
LBB0_11:
	movl	$8, %eax
	cmpl	$14, %ebx
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_avio_rl16
LBB0_13:
	movl	%eax, 8(%r15)
	cmpl	$65534, %r13d                   ## imm = 0xFFFE
	jne	LBB0_15
## %bb.14:
	movl	$0, 12(%r15)
	cmpl	$18, %ebx
	jae	LBB0_16
	jmp	LBB0_19
LBB0_15:
	movl	%r13d, 12(%r15)
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ff_wav_codec_get_id
	movl	%eax, 24(%r15)
	cmpl	$18, %ebx
	jb	LBB0_19
LBB0_16:
	cmpl	$357, %r13d                     ## imm = 0x165
	je	LBB0_19
## %bb.17:
	movq	%r12, %rdi
	callq	_avio_rl16
	testl	%r14d, %r14d
	je	LBB0_26
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	cmpl	$32, %ebx
	jb	LBB0_33
## %bb.20:
	cmpl	$357, %r13d                     ## imm = 0x165
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_45
## %bb.21:
	addl	$-4, %ebx
	leaq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_av_freep
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_ff_get_extradata
	testq	%rax, %rax
	js	LBB0_32
## %bb.22:
	movq	40(%r15), %rdi
	addq	$32, %rdi
	callq	_AV_RL16
	movl	%eax, %r12d
	movq	40(%r15), %rdi
	addq	$96, %rdi
	callq	_AV_RL32
	movq	%rax, (%r15)
	movq	$0, 32(%r15)
	leal	(%r12,%r12,4), %eax
	leal	8(,%rax,4), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.23:
	testl	%r12d, %r12d
	jle	LBB0_44
## %bb.24:
	movq	(%r14), %rax
	movl	%r12d, %edi
	leaq	-1(%rdi), %rdx
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_38
## %bb.25:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_40
LBB0_26:
	leal	-18(%rbx), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %r14d
	cmpl	$22, %eax
	jl	LBB0_34
## %bb.27:
	cmpl	$65534, %r13d                   ## imm = 0xFFFE
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_29
## %bb.28:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_parse_waveformatex
	addl	$-22, %r14d
	addl	$-40, %ebx
	movl	%ebx, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_29:
	testl	%r14d, %r14d
	jle	LBB0_35
LBB0_30:
	leaq	40(%r15), %rdi
	callq	_av_freep
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_ff_get_extradata
	testq	%rax, %rax
	js	LBB0_32
## %bb.31:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%r14d, %esi
	jmp	LBB0_36
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_33:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_34:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_30
LBB0_35:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_36:
	testl	%esi, %esi
	jle	LBB0_45
## %bb.37:
	movq	%r12, %rdi
	callq	_avio_skip
	jmp	LBB0_45
LBB0_38:
	andl	$-4, %edi
	leaq	680(%rax), %rbx
	xorl	%esi, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	addq	-480(%rbx), %rdx
	addq	-320(%rbx), %rdx
	addq	-160(%rbx), %rdx
	addq	(%rbx), %rdx
	addq	$4, %rsi
	addq	$640, %rbx                      ## imm = 0x280
	cmpq	%rsi, %rdi
	jne	LBB0_39
LBB0_40:
	testq	%rcx, %rcx
	je	LBB0_43
## %bb.41:
	leaq	(%rsi,%rsi,4), %rsi
	shlq	$5, %rsi
	addq	%rsi, %rax
	addq	$200, %rax
	shlq	$5, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rax,%rsi), %rdx
	addq	$160, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_42
LBB0_43:
	movq	%rdx, 32(%r15)
LBB0_44:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_45:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	jle	LBB0_48
## %bb.46:
	movl	24(%r15), %edi
	movq	_AV_CODEC_ID_AAC_LATM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jne	LBB0_49
## %bb.47:
	movq	$0, 32(%r15)
	movq	$0, (%r15)
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_48:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	jmp	LBB0_2
LBB0_49:
	movq	_AV_CODEC_ID_ADPCM_G726@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %edi
	jne	LBB0_4
## %bb.50:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_52
## %bb.51:
	cqto
	idivq	%rcx
	jmp	LBB0_53
LBB0_52:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_53:
	movl	%eax, 8(%r15)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wav header size < 14"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
L_.str.1:                               ## @.str.1
	.asciz	"WAVEFORMATEX support for RIFX files"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Invalid sample rate: %d\n"

	.comm	_AV_CODEC_ID_AAC_LATM,4,2       ## @AV_CODEC_ID_AAC_LATM
	.comm	_AV_CODEC_ID_ADPCM_G726,4,2     ## @AV_CODEC_ID_ADPCM_G726
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_get_wav_header              ; -- Begin function ff_get_wav_header
	.p2align	2
_ff_get_wav_header:                     ; @ff_get_wav_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w3, #13
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_avpriv_request_sample
LBB0_2:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
Lloh4:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x2, #56]
	mov	x0, x1
	cbz	w4, LBB0_8
; %bb.6:
	bl	_avio_rb16
	mov	x24, x0
	mov	x0, x21
	bl	_avio_rb16
	str	x0, [x19, #32]
	mov	x0, x21
	bl	_avio_rb32
	str	x0, [x19]
	mov	x0, x21
	bl	_avio_rb32
	lsl	x26, x0, #3
	mov	x0, x21
	bl	_avio_rb16
	str	x0, [x19, #48]
	cmp	w22, #14
	b.eq	LBB0_12
; %bb.7:
	mov	x0, x21
	bl	_avio_rb16
	mov	x1, x0
	b	LBB0_13
LBB0_8:
	bl	_avio_rl16
	mov	x24, x0
	cmp	w24, #357
	b.ne	LBB0_11
; %bb.9:
	mov	x26, #0
	cmp	w22, #14
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_avio_rl16
	mov	x1, x0
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	bl	_avio_rl16
	str	x0, [x19, #32]
	mov	x0, x21
	bl	_avio_rl32
	str	x0, [x19]
	mov	x0, x21
	bl	_avio_rl32
	lsl	x26, x0, #3
	mov	x0, x21
	bl	_avio_rl16
	str	x0, [x19, #48]
	cmp	w22, #14
	b.ne	LBB0_10
LBB0_12:
	mov	w1, #8
LBB0_13:
	str	w1, [x19, #8]
	mov	w8, #65534
	cmp	w24, w8
	b.ne	LBB0_15
; %bb.14:
	str	wzr, [x19, #12]
	subs	w25, w22, #18
	b.hs	LBB0_16
	b	LBB0_19
LBB0_15:
	str	w24, [x19, #12]
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ff_wav_codec_get_id
	str	w0, [x19, #24]
	subs	w25, w22, #18
	b.lo	LBB0_19
LBB0_16:
	cmp	w24, #357
	b.eq	LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_avio_rl16
	cbz	w23, LBB0_27
; %bb.18:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_avpriv_report_missing_feature
Lloh9:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_3
LBB0_19:
	cmp	w22, #32
	b.lo	LBB0_37
; %bb.20:
	cmp	w24, #357
	b.ne	LBB0_37
; %bb.21:
	sub	w23, w22, #4
	add	x22, x19, #40
	mov	x0, x22
	bl	_av_freep
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_ff_get_extradata
	tbnz	x0, #63, LBB0_35
; %bb.22:
	ldr	x8, [x19, #40]
	add	x0, x8, #32
	bl	_AV_RL16
	mov	x21, x0
	ldr	x8, [x19, #40]
	add	x0, x8, #96
	bl	_AV_RL32
	str	x0, [x19]
	str	xzr, [x19, #32]
	mov	w8, #20
	orr	w9, wzr, #0x8
	madd	w8, w21, w8, w9
	cmp	w23, w8
	b.lt	LBB0_2
; %bb.23:
	cmp	w21, #1
	b.lt	LBB0_36
; %bb.24:
	mov	x8, #0
	ldr	x10, [x22]
	mov	w9, w21
	add	x10, x10, #200
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #160
	add	x8, x8, x11
	subs	x9, x9, #1
	b.ne	LBB0_25
; %bb.26:
	mov	x26, #0
	str	x8, [x19, #32]
	b	LBB0_37
LBB0_27:
	mov	x1, x0
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mov	x23, x0
	subs	w27, w0, #22
	b.lt	LBB0_30
; %bb.28:
	mov	w8, #65534
	cmp	w24, w8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_parse_waveformatex
	sub	w25, w22, #40
	mov	x23, x27
LBB0_30:
	cmp	w23, #1
	b.lt	LBB0_33
; %bb.31:
	add	x0, x19, #40
	bl	_av_freep
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_ff_get_extradata
	tbnz	x0, #63, LBB0_35
; %bb.32:
	sub	w25, w25, w23
LBB0_33:
	cmp	w25, #1
	b.lt	LBB0_37
; %bb.34:
	mov	x0, x21
	mov	x1, x25
	bl	_avio_skip
	b	LBB0_37
LBB0_35:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_36:
	mov	x26, #0
LBB0_37:
	str	x26, [x19, #16]
	ldr	x3, [x19]
	cmp	x3, #0
	b.le	LBB0_40
; %bb.38:
	ldr	w8, [x19, #24]
Lloh14:
	adrp	x9, _AV_CODEC_ID_AAC_LATM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_CODEC_ID_AAC_LATM@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_41
; %bb.39:
	mov	w0, #0
	str	xzr, [x19, #32]
	str	xzr, [x19]
	b	LBB0_4
LBB0_40:
Lloh17:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_2
LBB0_41:
Lloh22:
	adrp	x9, _AV_CODEC_ID_ADPCM_G726@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_CODEC_ID_ADPCM_G726@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_43
; %bb.42:
	mov	w0, #0
	sdiv	x8, x26, x3
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_43:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wav header size < 14"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
l_.str.1:                               ; @.str.1
	.asciz	"WAVEFORMATEX support for RIFX files"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Invalid sample rate: %d\n"

	.comm	_AV_CODEC_ID_AAC_LATM,4,2       ; @AV_CODEC_ID_AAC_LATM
	.comm	_AV_CODEC_ID_ADPCM_G726,4,2     ; @AV_CODEC_ID_ADPCM_G726
.subsections_via_symbols
