	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_aiff_header
_get_aiff_header:                       ## @get_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r12, %rdi
	callq	_avio_rb16
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_avio_rb32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_avio_rb16
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_avio_rb16
	movl	%eax, %r13d
	leal	-16446(%r13), %r15d
	movq	%r12, %rdi
	callq	_avio_rb64
                                        ## kill: def $eax killed $eax def $rax
	leal	-16510(%r13), %ecx
	cmpl	$-128, %ecx
	ja	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r14d
	andl	$1, %r14d
	addl	%ecx, %r14d
	cmpl	$16446, %r13d                   ## imm = 0x403E
	jb	LBB0_4
## %bb.3:
	movl	%r15d, %ecx
	shll	%cl, %eax
	jmp	LBB0_5
LBB0_4:
	movslq	%eax, %rdx
	movb	$61, %cl
	subb	%r13b, %cl
	movl	$1, %eax
	shlq	%cl, %rax
	addq	%rdx, %rax
	movb	$62, %cl
	subb	%r13b, %cl
	shrq	%cl, %rax
LBB0_5:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%eax, 8(%rbx)
	leal	-18(%r14), %r12d
	cmpl	$21, %r14d
	jg	LBB0_7
## %bb.6:
	movq	_AIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_11
LBB0_7:
	movq	_AIFF_C_VERSION1@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_rl32
	movl	%eax, 24(%rbx)
	movq	_ff_codec_aiff_tags@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_ff_codec_get_id
	movl	%eax, 12(%rbx)
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	24(%rbx), %edi
	callq	_av_fourcc2str
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_avpriv_request_sample
LBB0_10:
	addl	$-22, %r14d
	movl	%r14d, %r12d
LBB0_11:
	movq	_AIFF_C_VERSION1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:
	movl	12(%rbx), %eax
	movq	_AV_CODEC_ID_PCM_S16BE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
LBB0_13:
	movl	4(%rbx), %edi
	callq	_aiff_codec_get_id
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_av_get_bits_per_sample
	movl	%eax, 4(%rbx)
	movl	$1, %eax
LBB0_14:
	movl	%eax, (%r15)
LBB0_15:
	movl	16(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movl	12(%rbx), %edi
	callq	_av_get_bits_per_sample
	imull	(%rbx), %eax
	sarl	$3, %eax
	movl	%eax, 16(%rbx)
LBB0_17:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:
	imull	8(%rbx), %eax
	shll	$3, %eax
	cltd
	idivl	%ecx
	movl	%eax, 20(%rbx)
LBB0_19:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_avio_skip
LBB0_21:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_25
## %bb.24:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movl	$1, (%r15)
	jmp	LBB0_32
LBB0_26:
	movl	(%rbx), %eax
	addl	%eax, %eax
	jmp	LBB0_31
LBB0_27:
	movl	$33, 16(%rbx)
	jmp	LBB0_32
LBB0_28:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	leal	(%rcx,%rax,2), %eax
	jmp	LBB0_31
LBB0_29:
	movl	$5, 4(%rbx)
LBB0_30:
	movl	(%rbx), %eax
LBB0_31:
	movl	%eax, 16(%rbx)
LBB0_32:
	movl	16(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_15
## %bb.33:
	movq	%rbx, %rdi
	callq	_av_get_audio_frame_duration2
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_30
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_30
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exp %d is out of range\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AIFF,4,2                       ## @AIFF
	.comm	_AIFF_C_VERSION1,4,2            ## @AIFF_C_VERSION1
	.comm	_ff_codec_aiff_tags,4,2         ## @ff_codec_aiff_tags
	.comm	_AV_CODEC_ID_NONE,4,2           ## @AV_CODEC_ID_NONE
L_.str.1:                               ## @.str.1
	.asciz	"unknown or unsupported codec tag: %s"

	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ## @AV_CODEC_ID_PCM_S16BE
	.no_dead_strip	_get_aiff_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_aiff_header
_get_aiff_header:                       ; @get_aiff_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	x23, x2
	mov	x22, x1
	mov	x24, x0
	ldp	x8, x19, [x0, #8]
	ldr	x27, [x0]
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #28]
	mov	x0, x19
	bl	_avio_rb16
	str	w0, [x21]
	mov	x0, x19
	bl	_avio_rb32
	mov	x20, x0
	mov	x0, x19
	bl	_avio_rb16
	str	w0, [x21, #4]
	mov	x0, x19
	bl	_avio_rb16
	mov	x26, x0
	mov	w8, #-16446
	add	w25, w0, w8
	mov	x0, x19
	bl	_avio_rb64
	mov	w8, #-16510
	add	w8, w26, w8
	cmn	w8, #128
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x3, x25
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_2:
	and	w8, w22, #0x1
	add	w28, w8, w22
	mov	w8, #16446
	sub	w9, w8, w26
	mov	w10, #16445
	sub	w10, w10, w26
	mov	w11, #1
	lsl	x10, x11, x10
	add	x10, x10, w0, sxtw
	lsr	x9, x10, x9
	lsl	w10, w0, w25
	cmp	w26, w8
	csel	w8, w9, w10, lo
	str	w8, [x21, #8]
	sub	w22, w28, #18
Lloh11:
	adrp	x25, _AIFF_C_VERSION1@GOTPAGE
Lloh12:
	ldr	x25, [x25, _AIFF_C_VERSION1@GOTPAGEOFF]
	cmp	w28, #21
	b.gt	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _AIFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AIFF@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	b	LBB0_8
LBB0_4:
	ldr	w8, [x25]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_avio_rl32
	mov	x1, x0
	str	w0, [x21, #24]
Lloh16:
	adrp	x8, _ff_codec_aiff_tags@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ff_codec_aiff_tags@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_ff_codec_get_id
	str	w0, [x21, #12]
Lloh19:
	adrp	x8, _AV_CODEC_ID_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x21, #24]
	bl	_av_fourcc2str
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_avpriv_request_sample
LBB0_7:
	sub	w22, w28, #22
LBB0_8:
	ldr	w8, [x25]
	cmp	w23, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x21, #12]
Lloh24:
	adrp	x9, _AV_CODEC_ID_PCM_S16BE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16BE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
LBB0_10:
	ldr	w0, [x21, #4]
	bl	_aiff_codec_get_id
	str	w0, [x21, #12]
	bl	_av_get_bits_per_sample
	str	w0, [x21, #4]
	mov	w0, #1
LBB0_11:
	str	w0, [x27]
LBB0_12:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_14
; %bb.13:
	ldr	w0, [x21, #12]
	bl	_av_get_bits_per_sample
	ldr	w8, [x21]
	mul	w8, w8, w0
	asr	w8, w8, #3
	str	w8, [x21, #16]
LBB0_14:
	ldr	w9, [x27]
	cbz	w9, LBB0_16
; %bb.15:
	ldr	w10, [x21, #8]
	mul	w8, w10, w8
	lsl	w8, w8, #3
	sdiv	w8, w8, w9
	str	w8, [x21, #20]
LBB0_16:
	cbz	w22, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x22
	bl	_avio_skip
LBB0_18:
	mov	x0, x20
	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_19:
	sub	w8, w8, #128
	cmp	w8, #12
	b.hi	LBB0_21
; %bb.20:
Lloh27:
	adrp	x9, lJTI0_0@PAGE
Lloh28:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	mov	w8, #1
	str	w8, [x27]
	b	LBB0_29
LBB0_22:
	ldr	w8, [x21]
	b	LBB0_25
LBB0_23:
	mov	w8, #33
	b	LBB0_28
LBB0_24:
	ldr	w8, [x21]
	add	w8, w8, w8, lsl #4
LBB0_25:
	lsl	w8, w8, #1
	b	LBB0_28
LBB0_26:
	mov	w8, #5
	str	w8, [x21, #4]
LBB0_27:
	ldr	w8, [x21]
LBB0_28:
	str	w8, [x21, #16]
LBB0_29:
	ldr	w1, [x21, #16]
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.30:
	mov	x0, x21
	bl	_av_get_audio_frame_duration2
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_27-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>2
	.byte	(LBB0_22-LBB0_21)>>2
	.byte	(LBB0_23-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>2
	.byte	(LBB0_24-LBB0_21)>>2
	.byte	(LBB0_26-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>2
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exp %d is out of range\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AIFF,4,2                       ; @AIFF
	.comm	_AIFF_C_VERSION1,4,2            ; @AIFF_C_VERSION1
	.comm	_ff_codec_aiff_tags,4,2         ; @ff_codec_aiff_tags
	.comm	_AV_CODEC_ID_NONE,4,2           ; @AV_CODEC_ID_NONE
l_.str.1:                               ; @.str.1
	.asciz	"unknown or unsupported codec tag: %s"

	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ; @AV_CODEC_ID_PCM_S16BE
	.no_dead_strip	_get_aiff_header
.subsections_via_symbols
