	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epaf_read_header
_epaf_read_header:                      ## @epaf_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
	movl	(%rdi), %edi
	movl	$4, %esi
	callq	_avio_skip
	movl	(%rbx), %edi
	callq	_avio_rl32
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movl	(%rbx), %edi
	callq	_avio_rl32
	cmpl	$2, %eax
	jae	LBB0_17
## %bb.2:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	callq	_avio_rl32
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_avio_rl32
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_avio_rl32
	jmp	LBB0_5
LBB0_4:
	callq	_avio_rb32
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_avio_rb32
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_avio_rb32
LBB0_5:
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_17
## %bb.6:
	movq	_FF_SANE_NB_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_17
## %bb.7:
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rdx
	movl	%ecx, 20(%rdx)
	movl	%r13d, (%rdx)
	movl	%r15d, 4(%rdx)
	cmpl	$2, %r12d
	je	LBB0_15
## %bb.10:
	cmpl	$1, %r12d
	je	LBB0_16
## %bb.11:
	testl	%r12d, %r12d
	jne	LBB0_17
## %bb.12:
	testl	%r14d, %r14d
	jne	LBB0_19
## %bb.13:
	movq	_AV_CODEC_ID_PCM_S16BE@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_14:
	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_15:
	movq	%rax, %r14
	movq	_AV_CODEC_ID_PCM_S8@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_avpriv_request_sample
LBB0_17:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rcx
LBB0_20:
	movq	%rax, %r14
LBB0_21:
	movl	(%rcx), %edi
	movl	%edi, 16(%rdx)
	callq	_av_get_bits_per_sample
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	imull	(%rcx), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movl	%edx, 12(%rcx)
	movl	4(%rcx), %ecx
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	(%rbx), %edi
	movl	$2024, %esi                     ## imm = 0x7E8
	callq	_avio_skip
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rcx
	sarq	$63, %rax
	andl	(%rcx), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_FF_SANE_NB_CHANNELS,4,2        ## @FF_SANE_NB_CHANNELS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ## @AV_CODEC_ID_PCM_S16BE
	.comm	_AV_CODEC_ID_PCM_S8,4,2         ## @AV_CODEC_ID_PCM_S8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"24-bit Paris PCM format"

	.no_dead_strip	_epaf_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epaf_read_header
_epaf_read_header:                      ; @epaf_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	x19, x0
	ldr	w0, [x0]
	mov	w1, #4
	bl	_avio_skip
	ldr	w0, [x19]
	bl	_avio_rl32
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	bl	_avio_rl32
	cmp	w0, #2
	b.hs	LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19]
	cbz	w20, LBB0_4
; %bb.3:
	bl	_avio_rl32
	mov	x21, x0
	ldr	w0, [x19]
	bl	_avio_rl32
	mov	x22, x0
	ldr	w0, [x19]
	bl	_avio_rl32
	b	LBB0_5
LBB0_4:
	bl	_avio_rb32
	mov	x21, x0
	ldr	w0, [x19]
	bl	_avio_rb32
	mov	x22, x0
	ldr	w0, [x19]
	bl	_avio_rb32
LBB0_5:
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _FF_SANE_NB_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_SANE_NB_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	ccmp	w21, #0, #4, le
	b.gt	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	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
LBB0_9:
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_14
; %bb.10:
	mov	x23, x0
Lloh6:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x0]
	str	w9, [x8, #20]
	stp	w24, w21, [x8]
	cmp	w22, #2
	b.eq	LBB0_15
; %bb.11:
	cmp	w22, #1
	b.eq	LBB0_17
; %bb.12:
	cbnz	w22, LBB0_7
; %bb.13:
Lloh9:
	adrp	x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh11:
	adrp	x10, _AV_CODEC_ID_PCM_S16BE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_S16BE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x9, x10, x9, eq
	b	LBB0_16
LBB0_14:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	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_15:
Lloh16:
	adrp	x9, _AV_CODEC_ID_PCM_S8@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AV_CODEC_ID_PCM_S8@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x9]
	str	w0, [x8, #16]
	bl	_av_get_bits_per_sample
	ldr	x8, [x23]
	ldp	w9, w3, [x8]
	mul	w9, w9, w0
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w0, w9, [x8, #8]
	mov	x0, x23
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	w0, [x19]
	mov	w1, #2024
	bl	_avio_skip
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	asr	x9, x0, #63
	and	w0, w9, w8
	b	LBB0_8
LBB0_17:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_FF_SANE_NB_CHANNELS,4,2        ; @FF_SANE_NB_CHANNELS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S16BE,4,2      ; @AV_CODEC_ID_PCM_S16BE
	.comm	_AV_CODEC_ID_PCM_S8,4,2         ; @AV_CODEC_ID_PCM_S8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"24-bit Paris PCM format"

	.no_dead_strip	_epaf_read_header
.subsections_via_symbols
