	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxtory_decode_v2
_dxtory_decode_v2:                      ## @dxtory_decode_v2
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -216(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, %ebx
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-160(%rbp), %rcx
	leaq	-152(%rbp), %r8
	leaq	-148(%rbp), %r9
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%rdx, %rsi
	movl	%ebx, -156(%rbp)                ## 4-byte Spill
	movl	%ebx, %edx
	callq	_load_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	-148(%rbp), %r12d
	movl	-160(%rbp), %eax
	movl	%eax, -172(%rbp)
	cmpl	$0, -152(%rbp)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-172(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ecx
	movl	4(%r14), %eax
	imull	(%r14), %eax
	movl	-152(%rbp), %esi
	leal	(,%rsi,8), %edi
	cltd
	idivl	%edi
	addl	$16, %eax
	cmpl	%eax, %ecx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %r12d
	incl	%ebx
	cmpl	%esi, %ebx
	jl	LBB0_3
LBB0_5:
	movl	8(%r14), %eax
	imull	%r12d, %eax
	cltq
	imulq	$-1374389535, %rax, %rax        ## imm = 0xAE147AE1
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	addl	%r12d, %eax
	cmpl	-156(%rbp), %eax                ## 4-byte Folded Reload
	jle	LBB0_10
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_8
LBB0_10:
	movl	16(%rbp), %eax
	movl	%eax, 12(%r14)
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movq	%r13, -208(%rbp)                ## 8-byte Spill
	cmpl	$0, -152(%rbp)
	jle	LBB0_16
## %bb.12:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	addq	$64, %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	leaq	-144(%rbp), %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -164(%rbp)                ## 4-byte Spill
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	leaq	-160(%rbp), %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r13d
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	*-216(%rbp)                     ## 8-byte Folded Reload
	movl	-148(%rbp), %r8d
	movq	%r14, %rdi
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	movl	-156(%rbp), %edx                ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_check_slice_size
	testl	%eax, %eax
	js	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	-148(%rbp), %rax
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	leal	-16(%r13), %edx
	leaq	-220(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r14), %ecx
	movl	-168(%rbp), %r15d               ## 4-byte Reload
	subl	%r15d, %ecx
	movq	%rbx, %rdi
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	movq	%r12, %rbx
	movq	%r12, %r8
	callq	*-208(%rbp)                     ## 8-byte Folded Reload
	movq	%rax, %r12
	addl	%r13d, -148(%rbp)
	addl	%r15d, %r12d
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	incl	%ecx
	movl	%r12d, %eax
	cmpl	-152(%rbp), %ecx
	jl	LBB0_13
LBB0_16:
	xorl	%r15d, %r15d
	cmpl	%r12d, (%r14)
	je	LBB0_8
## %bb.17:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_avpriv_request_sample
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r15d
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.9:
	movl	%r15d, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough slice data available"

	.no_dead_strip	_dxtory_decode_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxtory_decode_v2
_dxtory_decode_v2:                      ; @dxtory_decode_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x25, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x3, sp, #20
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x1, x2
	mov	x2, x22
	bl	_load_buffer
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	w8, [sp, #20]
	str	w8, [sp, #16]
	ldp	w26, w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w27, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	bl	_bytestream2_get_le32
	ldp	w8, w9, [x19]
	mul	w9, w9, w8
	ldr	w8, [sp, #8]
	lsl	w10, w8, #3
	sdiv	w9, w9, w10
	add	w9, w9, #16
	cmp	w0, w9
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w0, w26
	add	w27, w27, #1
	cmp	w27, w8
	b.lt	LBB0_3
LBB0_5:
	ldr	w8, [x19, #8]
	mul	w8, w8, w26
	mov	w9, #31457
	movk	w9, #44564, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	add	w8, w8, w26
	cmp	w8, w22
	b.le	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_9:
	str	w25, [x19, #12]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_7
; %bb.10:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w25, #0
	mov	w27, #0
	add	x28, x23, #64
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #20
	bl	_bytestream2_get_le32
	mov	x26, x0
	add	x0, sp, #24
	blr	x20
	ldr	w4, [sp, #4]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x26
	bl	_check_slice_size
	tbnz	w0, #31, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [sp, #4]
	add	x1, x28, x8, lsl #2
	sub	w2, w26, #16
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19]
	sub	w3, w8, w25
	add	x0, sp, #12
	add	x4, sp, #24
	mov	x1, x24
	mov	x2, x25
	blr	x21
	add	w25, w25, w0
	ldr	w8, [sp, #4]
	add	w8, w8, w26
	str	w8, [sp, #4]
	add	w27, w27, #1
	ldr	w8, [sp, #8]
	cmp	w27, w8
	b.lt	LBB0_12
	b	LBB0_16
LBB0_15:
	mov	w25, #0
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, w25
	b.eq	LBB0_18
; %bb.17:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_avpriv_request_sample
LBB0_18:
	mov	w0, #0
	b	LBB0_7
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough slice data available"

	.no_dead_strip	_dxtory_decode_v2
.subsections_via_symbols
