	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxa_read_header
_dxa_read_header:                       ## @dxa_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	24(%rdi), %r13
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movl	$68, %edi
	movl	$69, %esi
	movl	$88, %edx
	movl	$65, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_avio_r8
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_avio_rb16
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.5:
	movl	$1000, -44(%rbp)                ## imm = 0x3E8
	movl	%ebx, -48(%rbp)
	movl	$1000, -52(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x3E8
	jmp	LBB0_9
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_31:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	js	LBB0_7
## %bb.8:
	movl	$10, -44(%rbp)
	movl	$1, -48(%rbp)
	movl	$10, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	$100000, -44(%rbp)              ## imm = 0x186A0
	negl	%ebx
	movl	%ebx, -48(%rbp)
	movl	$100000, -52(%rbp)              ## 4-byte Folded Spill
                                        ## imm = 0x186A0
LBB0_9:
	movq	%r13, %rdi
	callq	_avio_rb16
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rb16
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$0, 8(%r12)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_32
## %bb.10:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movl	$87, %edi
	movl	$65, %esi
	movl	$86, %edx
	movl	$69, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_28
## %bb.11:
	movl	$1, 8(%r12)
	movq	%r13, %rdi
	callq	_avio_rb32
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_avio_tell
	addq	%rbx, %rax
	movq	%rax, 16(%r12)
	movl	$16, %esi
	movq	%r13, %rdi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_32
## %bb.12:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movq	%rax, %rbx
	callq	_ff_get_wav_header
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jle	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_avpriv_set_pts_info
LBB0_16:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_avio_tell
	cmpq	16(%r12), %rax
	jge	LBB0_17
## %bb.18:
	movq	%r13, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_22
	jmp	LBB0_20
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	jne	LBB0_22
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_avio_rl32
	movq	%rax, %r15
	movl	$100, %edi
	movl	$97, %esi
	movl	$116, %edx
	movl	$97, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_avio_skip
	movq	%r13, %rdi
	callq	_avio_tell
	cmpq	16(%r12), %rax
	jl	LBB0_19
	jmp	LBB0_22
LBB0_13:
	movl	%eax, %r15d
	jmp	LBB0_31
LBB0_17:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	movq	(%r12), %rcx
	leaq	(%r15,%rcx), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_23
## %bb.24:
	cqto
	idivq	%rcx
	jmp	LBB0_25
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_25:
	movl	%eax, 24(%r12)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	8(%rcx), %esi
	testl	%esi, %esi
	je	LBB0_27
## %bb.26:
	leal	(%rax,%rsi), %ecx
	decl	%ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%edx, %ecx
	movl	%ecx, 24(%r12)
LBB0_27:
	movq	%r15, 40(%r12)
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, 32(%r12)
	movq	16(%r12), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_avio_seek
	movl	-56(%rbp), %r15d                ## 4-byte Reload
LBB0_28:
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movq	_AV_CODEC_ID_DXA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rcx)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movl	$2147483647, %r8d               ## imm = 0x7FFFFFFF
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_reduce
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	movl	$33, %esi
	callq	_avpriv_set_pts_info
	testb	$-64, %r15b
	je	LBB0_30
## %bb.29:
	movq	(%rbx), %rax
	sarl	16(%rax)
LBB0_30:
	xorl	%eax, %eax
	cmpl	$0, 8(%r12)
	sete	%al
	movl	%eax, 28(%r12)
	movq	%r13, %rdi
	callq	_avio_tell
	movq	%rax, 16(%r12)
	movq	$0, 8(%r14)
	movq	(%r12), %rcx
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ecx, %eax
	imull	-48(%rbp), %eax
	cltd
	idivl	-44(%rbp)
	movl	%eax, (%r14)
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File contains no frames ???\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_DXA,4,2            ## @AV_CODEC_ID_DXA
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"%d frame(s)\n"

	.no_dead_strip	_dxa_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxa_read_header
_dxa_read_header:                       ; @dxa_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldp	x26, x20, [x0, #16]
	mov	x0, x20
	bl	_avio_rl32
	mov	x21, x0
	mov	w0, #68
	mov	w1, #69
	mov	w2, #88
	mov	w3, #65
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_avio_r8
	mov	x21, x0
	mov	x0, x20
	bl	_avio_rb16
	str	x0, [x26]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_avio_rb32
	mov	x22, x0
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w23, #1000
	str	w23, [sp, #24]
	b	LBB0_10
LBB0_4:
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
	mov	x0, x19
	bl	_av_log
LBB0_5:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	tbnz	w22, #31, LBB0_9
; %bb.8:
	mov	w23, #10
	str	w23, [sp, #24]
	mov	w22, #1
	b	LBB0_10
LBB0_9:
	mov	w23, #34464
	movk	w23, #1, lsl #16
	str	w23, [sp, #24]
	neg	w22, w22
LBB0_10:
	str	w22, [sp, #28]
	mov	x0, x20
	bl	_avio_rb16
	mov	x25, x0
	mov	x0, x20
	bl	_avio_rb16
	mov	x28, x0
	str	wzr, [x26, #8]
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_21
; %bb.11:
	mov	x24, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x27, x0
	mov	w0, #87
	mov	w1, #65
	mov	w2, #86
	mov	w3, #69
	bl	_MKTAG
	cmp	x27, x0
	b.ne	LBB0_25
; %bb.12:
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	mov	w8, #1
	str	w8, [x26, #8]
	mov	x0, x20
	bl	_avio_rb32
	mov	x27, x0
	mov	x0, x20
	bl	_avio_tell
	add	x8, x0, x27
	str	x8, [x26, #16]
	mov	x0, x20
	mov	w1, #16
	bl	_avio_skip
	mov	x0, x20
	bl	_avio_rl32
	mov	x27, x0
	mov	x0, x19
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_21
; %bb.13:
	mov	x28, x0
	ldr	x2, [x0]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x27
	mov	w4, #0
	bl	_ff_get_wav_header
	tbnz	w0, #31, LBB0_6
; %bb.14:
	ldr	x8, [x28]
	ldr	x3, [x8]
	cmp	x3, #1
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x28
	mov	w1, #64
	mov	w2, #1
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_avpriv_set_pts_info
LBB0_16:
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_avio_tell
	ldr	x8, [x26, #16]
	cmp	x0, x8
	b.ge	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_avio_feof
	cbnz	w0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_avio_rl32
	mov	x25, x0
	mov	x0, x20
	bl	_avio_rl32
	mov	x27, x0
	mov	w0, #100
	mov	w1, #97
	mov	w2, #116
	mov	w3, #97
	bl	_MKTAG
	cmp	x25, x0
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x27
	bl	_avio_skip
	b	LBB0_17
LBB0_21:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_22:
	ldr	x8, [x26]
	add	x9, x27, x8
	sub	x9, x9, #1
	sdiv	x8, x9, x8
	str	w8, [x26, #24]
	ldr	x9, [x28]
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_24
; %bb.23:
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	mul	w8, w8, w9
	str	w8, [x26, #24]
LBB0_24:
	str	x27, [x26, #40]
	mov	x0, x20
	bl	_avio_tell
	str	x0, [x26, #32]
	ldr	x1, [x26, #16]
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
	ldp	x25, x28, [sp, #8]              ; 16-byte Folded Reload
LBB0_25:
Lloh14:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AV_CODEC_ID_DXA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_CODEC_ID_DXA@GOTPAGEOFF]
	ldr	x10, [x24]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #20]
	stp	w25, w28, [x10, #12]
	add	x0, sp, #24
	add	x1, sp, #28
	mov	x2, x23
	mov	x3, x22
	mov	w4, #2147483647
	bl	_av_reduce
	ldp	w3, w2, [sp, #24]
	mov	x0, x24
	mov	w1, #33
	bl	_avpriv_set_pts_info
	tst	w21, #0xc0
	b.eq	LBB0_27
; %bb.26:
	ldr	x8, [x24]
	ldr	w9, [x8, #16]
	asr	w9, w9, #1
	str	w9, [x8, #16]
LBB0_27:
	ldr	w8, [x26, #8]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x26, #28]
	mov	x0, x20
	bl	_avio_tell
	str	x0, [x26, #16]
	str	xzr, [x19, #8]
	ldr	x8, [x26]
Lloh20:
	adrp	x9, _AV_TIME_BASE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_TIME_BASE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	mul	w9, w9, w8
	ldr	w10, [sp, #28]
	mul	w9, w9, w10
	ldr	w10, [sp, #24]
	sdiv	w9, w9, w10
	str	w9, [x19]
Lloh23:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File contains no frames ???\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_DXA,4,2            ; @AV_CODEC_ID_DXA
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"%d frame(s)\n"

	.no_dead_strip	_dxa_read_header
.subsections_via_symbols
