	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxtory_decode_v1_410
_dxtory_decode_v1_410:                  ## @dxtory_decode_v1_410
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movslq	%ecx, %r14
	movl	(%rdi), %edi
	movl	$4, %esi
	callq	_FFALIGN
	movq	%rax, %r15
	movl	4(%r12), %edi
	movl	$4, %esi
	callq	_FFALIGN
	imulq	%r15, %rax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rax,%rax,8), %rax
	addq	$7, %rax
	testq	%rcx, %rcx
	cmovnsq	%rcx, %rax
	sarq	$3, %rax
	cmpq	%r14, %rax
	jle	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_2:
	movq	_AV_PIX_FMT_YUV410P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.5:
	movq	%r12, %r10
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r11
	movq	8(%rax), %rax
	movq	16(%rax), %rsi
	movq	(%rax), %r12
	movq	8(%rax), %rcx
	movslq	(%r11), %r9
	leaq	(%r9,%r9,2), %rax
	leaq	(%r12,%rax,8), %r14
	leaq	(%r12,%r9,8), %rbx
	movq	%r9, %r15
	shlq	$4, %r15
	addq	%r12, %r15
	movl	(%r10), %eax
	xorl	%edx, %edx
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	(,%r9,4), %edi
	movslq	%edi, %rdi
	leaq	(%r12,%rdi,8), %r12
	leaq	(%rbx,%rdi,8), %rbx
	leaq	(%r15,%rdi,8), %r15
	leaq	(%r14,%rdi,8), %r14
	movslq	4(%r11), %rdi
	leaq	(%rcx,%rdi,8), %rcx
	movslq	8(%r11), %rdi
	leaq	(%rsi,%rdi,8), %rsi
	addl	$4, %edx
	cmpl	%r8d, %edx
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_AV_COPY32U
	leaq	32(%r13), %rsi
	movq	%rbx, %rdi
	callq	_AV_COPY32U
	leaq	64(%r13), %rsi
	movq	%r15, %rdi
	callq	_AV_COPY32U
	leaq	96(%r13), %rsi
	movq	%r14, %rdi
	callq	_AV_COPY32U
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	128(%r13), %rax
	subq	$-128, %rax
	movq	%rax, (%rcx,%r12,2)
	movq	136(%r13), %rax
	subq	$-128, %rax
	movq	%rax, (%rsi,%r12,2)
	addq	$144, %r13
	addq	$4, %r12
	movl	(%r10), %eax
	addq	$32, %r14
	addq	$32, %r15
	addq	$32, %rbx
	addq	$32, %rdx
	cmpl	%r12d, %eax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %r11
	movl	(%r11), %r9d
	movl	4(%r10), %r8d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PIX_FMT_YUV410P,4,2         ## @AV_PIX_FMT_YUV410P
	.no_dead_strip	_dxtory_decode_v1_410
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxtory_decode_v1_410
_dxtory_decode_v1_410:                  ; @dxtory_decode_v1_410
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	sxtw	x21, w3
	ldr	w0, [x0]
	mov	w1, #4
	bl	_FFALIGN
	mov	x22, x0
	ldr	w0, [x19, #4]
	mov	w1, #4
	bl	_FFALIGN
	mul	x8, x22, x0
	add	x8, x8, x8, lsl #3
	add	x9, x8, #7
	cmp	x8, #0
	csel	x8, x9, x8, lt
	cmp	x21, x8, asr #3
	b.ge	LBB0_2
; %bb.1:
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
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
Lloh8:
	adrp	x8, _AV_PIX_FMT_YUV410P@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PIX_FMT_YUV410P@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w14, #0
	ldp	x10, x8, [x23]
	ldp	x27, x26, [x8, #8]
	ldr	x22, [x8]
	ldrsw	x11, [x10]
	add	w8, w11, w11, lsl #1
	add	x25, x22, w8, sxtw #3
	add	x24, x22, x11, lsl #4
	add	x28, x22, x11, lsl #3
	ldr	w8, [x19]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsl	w12, w11, #2
	sbfiz	x12, x12, #3, #32
	add	x22, x22, x12
	add	x28, x28, x12
	add	x24, x24, x12
	add	x25, x25, x12
	ldpsw	x12, x13, [x10, #4]
	add	x27, x27, x12, lsl #3
	add	x26, x26, x13, lsl #3
	add	w14, w14, #4
	cmp	w14, w9
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w14, [sp, #60]                  ; 4-byte Folded Spill
	mov	w21, #0
	stp	x27, x26, [sp, #40]             ; 16-byte Folded Spill
	stp	x25, x22, [sp, #24]             ; 16-byte Folded Spill
	mov	x23, x28
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x20
	bl	_AV_COPY32U
	add	x1, x20, #32
	mov	x0, x23
	bl	_AV_COPY32U
	add	x1, x20, #64
	mov	x0, x24
	bl	_AV_COPY32U
	add	x1, x20, #96
	mov	x0, x25
	bl	_AV_COPY32U
	ldr	x8, [x20, #128]
	add	x8, x8, #128
	str	x8, [x27], #8
	ldr	x8, [x20, #136]
	add	x8, x8, #128
	str	x8, [x26], #8
	add	x20, x20, #144
	ldr	w8, [x19]
	add	x25, x25, #32
	add	x24, x24, #32
	add	x23, x23, #32
	add	x22, x22, #32
	add	w21, w21, #4
	cmp	w8, w21
	b.gt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x23, x24, [sp, #8]              ; 16-byte Folded Reload
	ldr	x10, [x23]
	ldr	w11, [x10]
	ldr	w9, [x19, #4]
	ldr	w14, [sp, #60]                  ; 4-byte Folded Reload
	ldp	x27, x26, [sp, #40]             ; 16-byte Folded Reload
	ldp	x25, x22, [sp, #24]             ; 16-byte Folded Reload
	b	LBB0_5
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PIX_FMT_YUV410P,4,2         ; @AV_PIX_FMT_YUV410P
	.no_dead_strip	_dxtory_decode_v1_410
.subsections_via_symbols
