	.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_aiff_header
LCPI0_0:
	.long	0x42a40000                      ## float 82
LCPI0_1:
	.long	0x428c0000                      ## float 70
LCPI0_2:
	.long	0x429a0000                      ## float 77
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_aiff_header:                    ## @decode_aiff_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, %r12
	movq	8(%rdi), %r13
	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	$70, %edi
	movl	$79, %esi
	movl	$77, %edx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.4:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %r14
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$65, %edi
	movl	$73, %esi
	movl	$70, %edx
	callq	_MKTAG
	cmpq	%rax, %r14
	je	LBB0_7
## %bb.5:
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$65, %edi
	movl	$73, %esi
	movl	$67, %edx
	callq	_MKTAG
	cmpq	%rax, %r14
	jne	LBB0_6
LBB0_7:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %rbx
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$67, %edi
	movl	$79, %esi
	movl	$77, %edx
	callq	_MKTAG
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.8:
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	movl	%ebx, %ecx
	movl	%ebx, %esi
	andl	$1, %esi
	addq	%rsi, %rcx
	addq	$18, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	%ebx, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rax, %rbx
	movl	$67, %edi
	movl	$79, %esi
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$77, %edx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_9
LBB0_13:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_be32
	cmpl	$17, %eax
	jg	LBB0_15
## %bb.14:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %r15d
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %ebx
	movl	%eax, (%r12)
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$65, %edi
	movl	$73, %esi
	movl	$67, %edx
	callq	_MKTAG
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	sete	%cl
	movl	%ecx, (%r13)
	cmpl	$8, %ebx
	je	LBB0_18
## %bb.16:
	cmpl	$16, %ebx
	jne	LBB0_17
LBB0_18:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %ebx
	leal	-16446(%rbx), %r14d
	movq	%r13, %rdi
	callq	_bytestream2_get_be64
                                        ## kill: def $eax killed $eax def $rax
	leal	-16510(%rbx), %ecx
	cmpl	$-128, %ecx
	ja	LBB0_20
## %bb.19:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_3
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_20:
	cmpl	$16446, %ebx                    ## imm = 0x403E
	jb	LBB0_22
## %bb.21:
	movl	%r14d, %ecx
	shll	%cl, %eax
	jmp	LBB0_23
LBB0_22:
	movslq	%eax, %rdx
	movb	$61, %cl
	subb	%bl, %cl
	movl	$1, %eax
	shlq	%cl, %rax
	addq	%rdx, %rax
	movb	$62, %cl
	subb	%bl, %cl
	shrq	%cl, %rax
LBB0_23:
	movl	%eax, 4(%r12)
	xorl	%ebx, %ebx
	cmpl	$19, %r15d
	jb	LBB0_25
## %bb.24:
	addl	$-18, %r15d
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing FORM tag\n"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"unsupported number of bits per sample: %d\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.5:                               ## @.str.5
	.asciz	"exp %d is out of range\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_aiff_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_aiff_header
_decode_aiff_header:                    ; @decode_aiff_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
	ldr	x23, [x0, #8]
	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, #70
	mov	w1, #79
	mov	w2, #77
	bl	_MKTAG
	cmp	x20, x0
	b.ne	LBB0_10
; %bb.1:
	add	x0, sp, #12
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #65
	mov	w1, #73
	mov	w2, #70
	bl	_MKTAG
	cmp	x20, x0
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #65
	mov	w1, #73
	mov	w2, #67
	bl	_MKTAG
	cmp	x20, x0
	b.ne	LBB0_12
LBB0_3:
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x21, x0
	mov	w8, #1117388800
	fmov	s0, w8
	mov	w0, #67
	mov	w1, #79
	mov	w2, #77
	bl	_MKTAG
	cmp	x21, x0
	b.eq	LBB0_8
; %bb.4:
	mov	w22, #1117388800
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_be32
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	and	w8, w21, #0x1
	add	x9, x8, w21, uxtw
	add	x9, x9, #18
	cmp	x0, x9
	b.lt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w1, w8, w21
	add	x0, sp, #12
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x21, x0
	fmov	s0, w22
	mov	w0, #67
	mov	w1, #79
	mov	w2, #77
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_5
LBB0_8:
	add	x0, sp, #12
	bl	_bytestream2_get_be32
	cmp	w0, #17
	b.gt	LBB0_13
; %bb.9:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.3@PAGE
Lloh4:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_10:
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
	b	LBB0_17
LBB0_11:
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_17
LBB0_12:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_13:
	mov	x21, x0
	add	x0, sp, #12
	mov	w1, #6
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_be16
	mov	x22, x0
	str	w0, [x19]
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w0, #65
	mov	w1, #73
	mov	w2, #67
	bl	_MKTAG
	cmp	x20, x0
	cset	w8, eq
	str	w8, [x23]
	cmp	w22, #8
	b.eq	LBB0_15
; %bb.14:
	cmp	w22, #16
	b.ne	LBB0_19
LBB0_15:
	add	x0, sp, #12
	bl	_bytestream2_get_be16
	mov	x20, x0
	mov	w8, #-16446
	add	w22, w0, w8
	add	x0, sp, #12
	bl	_bytestream2_get_be64
	mov	w8, #-16510
	add	w8, w20, w8
	cmn	w8, #128
	b.hi	LBB0_20
; %bb.16:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_av_log
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
LBB0_18:
	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_19:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh33:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_18
LBB0_20:
	mov	w8, #16446
	cmp	w20, w8
	b.lo	LBB0_22
; %bb.21:
	lsl	w8, w0, w22
	b	LBB0_23
LBB0_22:
	sub	w8, w8, w20
	mov	w9, #16445
	sub	w9, w9, w20
	mov	w10, #1
	lsl	x9, x10, x9
	add	x9, x9, w0, sxtw
	lsr	x8, x9, x8
LBB0_23:
	str	w8, [x19, #4]
	cmp	w21, #19
	b.lo	LBB0_25
; %bb.24:
	sub	w8, w21, #18
Lloh36:
	adrp	x9, _AV_LOG_INFO@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AV_LOG_INFO@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh39:
	adrp	x2, l_.str.6@PAGE
Lloh40:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_25:
	mov	w0, #0
	b	LBB0_18
	.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 AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing FORM tag\n"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"unsupported number of bits per sample: %d\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.5:                               ; @.str.5
	.asciz	"exp %d is out of range\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_aiff_header
.subsections_via_symbols
