	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function decode_wave_header
LCPI0_0:
	.long	0x42a40000                      ## float 82
LCPI0_1:
	.long	0x42ae0000                      ## float 87
LCPI0_2:
	.long	0x42cc0000                      ## float 102
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_wave_header:                    ## @decode_wave_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, %r14
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %rbx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$73, %edi
	movl	$70, %esi
	movl	$70, %edx
	callq	_MKTAG
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %rbx
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$65, %edi
	movl	$86, %esi
	movl	$69, %edx
	callq	_MKTAG
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %r13
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$109, %edi
	movl	$116, %esi
	movl	$32, %edx
	callq	_MKTAG
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %r12
	cmpq	%rbx, %r13
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bytestream2_skip
	testl	%r12d, %r12d
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$15, %eax
	jg	LBB0_5
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_9:
	cmpl	$15, %r12d
	jg	LBB0_11
## %bb.10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_le16
	movzwl	%ax, %eax
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.14:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, (%r14)
	cmpl	$8, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$16, %eax
	jne	LBB0_16
LBB0_17:
	xorl	%r15d, %r15d
	cmpl	$17, %r12d
	jb	LBB0_19
## %bb.18:
	addl	$-16, %r12d
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_19
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing RIFF tag\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"missing WAVE tag\n"

L_.str.2:                               ## @.str.2
	.asciz	"no fmt chunk found\n"

L_.str.3:                               ## @.str.3
	.asciz	"fmt chunk was too short\n"

L_.str.4:                               ## @.str.4
	.asciz	"unsupported wave format\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.5:                               ## @.str.5
	.asciz	"unsupported number of bits per sample: %d\n"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.6:                               ## @.str.6
	.asciz	"%d header bytes unparsed\n"

	.no_dead_strip	_decode_wave_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_wave_header
_decode_wave_header:                    ; @decode_wave_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	w8, #1118044160
	fmov	s0, w8
	mov	w0, #73
	mov	w1, #70
	mov	w2, #70
	bl	_MKTAG
	cmp	x20, x0
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
	add	x0, sp, #12
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	w8, #1118699520
	fmov	s0, w8
	mov	w0, #65
	mov	w1, #86
	mov	w2, #69
	bl	_MKTAG
	cmp	x20, x0
	b.eq	LBB0_4
; %bb.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.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_4:
	mov	w23, #1120665600
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x21, x0
	fmov	s0, w23
	mov	w0, #109
	mov	w1, #116
	mov	w2, #32
	bl	_MKTAG
	mov	x22, x0
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x20, x0
	cmp	x21, x22
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	mov	x1, x20
	bl	_bytestream2_skip
	tbnz	w20, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w0, #15
	b.gt	LBB0_5
LBB0_8:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	cmp	w20, #15
	b.gt	LBB0_13
; %bb.10:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_av_log
Lloh20:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	and	x8, x0, #0xffff
	cmp	x8, #128
	b.ne	LBB0_19
; %bb.14:
	add	x0, sp, #12
	mov	w1, #2
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	str	x0, [x19, #8]
	add	x0, sp, #12
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #12
	mov	w1, #2
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le16
	str	w0, [x19]
	cmp	w0, #8
	b.eq	LBB0_16
; %bb.15:
	cmp	w0, #16
	b.ne	LBB0_20
LBB0_16:
	cmp	w20, #17
	b.lo	LBB0_18
; %bb.17:
	sub	w8, w20, #16
Lloh23:
	adrp	x9, _AV_LOG_INFO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AV_LOG_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.6@PAGE
Lloh27:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_18:
	mov	w0, #0
	b	LBB0_12
LBB0_19:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh33:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_av_log
Lloh38:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing RIFF tag\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"missing WAVE tag\n"

l_.str.2:                               ; @.str.2
	.asciz	"no fmt chunk found\n"

l_.str.3:                               ; @.str.3
	.asciz	"fmt chunk was too short\n"

l_.str.4:                               ; @.str.4
	.asciz	"unsupported wave format\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.5:                               ; @.str.5
	.asciz	"unsupported number of bits per sample: %d\n"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.6:                               ; @.str.6
	.asciz	"%d header bytes unparsed\n"

	.no_dead_strip	_decode_wave_header
.subsections_via_symbols
