	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxv_decompress_dxt5
_dxv_decompress_dxt5:                   ## @dxv_decompress_dxt5
	.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
	movq	(%rdi), %r12
	leaq	16(%r12), %r15
	movq	8(%r12), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	8(%r12), %rbx
	addq	$4, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	8(%r12), %rbx
	addq	$8, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	8(%r12), %rbx
	addq	$12, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	xorl	%eax, %eax
	cmpl	$24, (%r12)
	jl	LBB0_39
## %bb.1:
	leaq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$4, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$6, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %edi
	callq	_CHECKPOINT
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leal	(,%r13,4), %ecx
	movslq	%ecx, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movl	$4, %edi
	callq	_CHECKPOINT
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %esi
	leal	4(,%r13,4), %eax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdi
	addq	8(%r12), %rdi
	callq	_AV_WL32
	addl	$6, %ebx
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ebx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %ebx
	jg	LBB0_38
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_23 Depth 3
                                        ##     Child Loop BB0_34 Depth 2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(,%r14,4), %r13d
	leal	-16(,%r14,4), %eax
	movslq	%eax, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	callq	_AV_RL32
	movslq	%r13d, %rdi
	addq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	-12(,%r14,4), %eax
	movslq	%eax, %rdi
	addq	(%rbx), %rdi
	callq	_AV_RL32
	movl	%eax, %esi
	leal	4(,%r14,4), %eax
	movl	%r14d, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rdi
	addq	8(%r12), %rdi
	callq	_AV_WL32
	movl	$4, %edi
	callq	_CHECKPOINT
	leal	4(%rbx), %r14d
	movl	(%r12), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	cmpl	%eax, %r14d
	jg	LBB0_37
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	subl	-88(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jl	LBB0_37
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	2(%rcx), %edx
	cmpl	%eax, %edx
	ja	LBB0_37
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	shll	$2, %ecx
	movslq	%ecx, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	callq	_AV_RL32
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	shll	$2, %ecx
	movslq	%ecx, %rdi
	addq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$3, %eax
	subl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$2, %eax
	movslq	%eax, %rdi
	addq	(%rbx), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_AV_RL32
	movl	%eax, %esi
	leal	12(,%rbx,4), %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %ebx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	leal	2(%rbx), %edx
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %edx
	jg	LBB0_38
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
                                        ##       Child Loop BB0_23 Depth 3
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	jle	LBB0_37
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r14d
	movl	$16, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	%r14d, %eax
	sarl	$2, %r14d
	decl	%r13d
	andl	$3, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	incl	%ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$256, %ebx                      ## imm = 0x100
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	addl	%eax, %ebx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	%eax, %rdx
	leal	(%rax,%rbx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	12(,%rax,4), %r13d
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rdx
	jg	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	movq	%r12, %r15
	leal	-12(%r13), %r12d
	leal	-28(%r13), %eax
	movslq	%eax, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rdi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	callq	_AV_RL32
	movslq	%r12d, %rdi
	movq	%r15, %r12
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	-24(%r13), %eax
	movslq	%eax, %rdi
	addq	(%r14), %rdi
	callq	_AV_RL32
	leal	-8(%r13), %ecx
	movslq	%ecx, %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	-20(%r13), %eax
	movslq	%eax, %rdi
	addq	(%r14), %rdi
	callq	_AV_RL32
	leal	-4(%r13), %ecx
	movslq	%ecx, %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	-16(%r13), %eax
	movslq	%eax, %rdi
	addq	(%r14), %rdi
	callq	_AV_RL32
	movslq	%r13d, %r13
	movq	(%r14), %rdi
	addq	%r13, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addl	$16, %r13d
	addq	$4, %rdx
	decl	%ebx
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %eax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %eax
	jne	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_bytestream2_get_le16
	addl	$8, %eax
	movl	%ebx, %edi
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	subl	%eax, %edi
	jl	LBB0_37
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	2(%rdi), %ecx
	movl	(%r12), %edx
	leal	3(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$2, %esi
	cmpl	%esi, %ecx
	ja	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	shll	$2, %edi
	movslq	%edi, %rdi
	movq	%rbx, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	callq	_AV_RL32
	leal	(,%r14,4), %ecx
	movslq	%ecx, %rdi
	addq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	1(%r14), %eax
	subl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$2, %eax
	movslq	%eax, %rdi
	addq	(%rbx), %rdi
	movq	%r14, %rbx
	callq	_AV_RL32
	movl	%eax, %esi
	leal	4(,%r14,4), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	cmpl	$255, %eax
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$255, %ebx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	addl	%eax, %ebx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leal	(,%r13,4), %r14d
	leal	-16(,%r13,4), %eax
	movslq	%eax, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	(%rbx), %rdi
	callq	_AV_RL32
	movslq	%r14d, %rdi
	addq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	leal	-12(,%r13,4), %eax
	movslq	%eax, %rdi
	addq	(%rbx), %rdi
	movq	%r13, %rbx
	callq	_AV_RL32
	movl	%eax, %esi
	leal	4(,%r13,4), %eax
	movl	$1, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_bytestream2_get_le32
	leal	(,%rbx,4), %ecx
	movslq	%ecx, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %esi
	leal	4(,%rbx,4), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$3, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_37:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_39
LBB0_38:
	xorl	%eax, %eax
LBB0_39:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_dxv_decompress_dxt5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxv_decompress_dxt5
_dxv_decompress_dxt5:                   ; @dxv_decompress_dxt5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x22, [x0]
	add	x19, x22, #16
	mov	x23, x22
	ldr	x20, [x23, #8]!
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	x8, [x23]
	add	x20, x8, #4
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	x8, [x23]
	add	x20, x8, #8
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	x8, [x23]
	add	x20, x8, #12
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL32
	ldr	w8, [x22]
	cmp	w8, #24
	b.ge	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_36
LBB0_2:
	mov	w21, #0
	mov	w24, #0
	mov	w25, #4
	mov	w28, #6
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
                                        ; implicit-def: $w20
	mov	w26, #65535
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #4
	bl	_CHECKPOINT
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	ldr	x8, [x23]
	lsl	w24, w28, #2
	add	x0, x8, w24, sxtw
	bl	_AV_WL32
	mov	w0, #4
	bl	_CHECKPOINT
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	add	w8, w24, #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #8]
	add	x0, x9, w8, sxtw
	bl	_AV_WL32
	add	w28, w25, #6
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w28, w8, asr #2
	mov	x25, x27
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	b.gt	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
                                        ;     Child Loop BB0_26 Depth 2
	cbz	w21, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	sub	w21, w21, #1
	ldr	x8, [x23]
	lsl	w27, w25, #2
	sub	w9, w27, #16
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, w27, sxtw
	bl	_AV_WL32
	ldr	x8, [x23]
	sub	w9, w27, #12
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	add	w8, w27, #4
	b	LBB0_30
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w28, w25, #2
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w28, w8, asr #2
	b.gt	LBB0_1
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	mov	x0, x19
	bl	_bytestream2_get_bytes_left
	cmp	w0, #0
	b.le	LBB0_35
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cbnz	w24, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	w24, #16
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	sub	w24, w24, #1
	and	w8, w20, #0x3
	asr	w20, w20, #2
	cbnz	w8, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	bl	_bytestream2_get_byte
	add	w21, w0, #1
	cmp	w21, #256
	b.ne	LBB0_15
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x19
	bl	_bytestream2_get_le16
	add	w21, w0, w21
	cmp	w0, w26
	b.eq	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=2
	cbz	w21, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x8, w25
	add	w9, w25, w21, lsl #2
	stp	w9, w24, [sp, #8]               ; 8-byte Folded Spill
	lsl	w9, w25, #2
	add	w28, w9, #12
	add	x27, x8, #4
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x27, w8, sxtw
	b.gt	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	ldr	x8, [x23]
	sub	w24, w28, #12
	sub	w9, w28, #28
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, w24, sxtw
	bl	_AV_WL32
	ldr	x8, [x23]
	sub	w9, w28, #24
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	sub	w9, w28, #8
	add	x0, x8, w9, sxtw
	bl	_AV_WL32
	ldr	x8, [x23]
	sub	w9, w28, #20
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	sub	w9, w28, #4
	add	x0, x8, w9, sxtw
	bl	_AV_WL32
	ldr	x8, [x23]
	sub	w9, w28, #16
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, w28, sxtw
	bl	_AV_WL32
	add	w25, w25, #4
	add	w28, w28, #16
	add	x27, x27, #4
	subs	w21, w21, #1
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #1
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x19
	b.eq	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #2
	b.ne	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_le16
	add	w8, w0, #8
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	subs	w8, w25, w8
	b.lt	LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w8, #2
	ldr	w10, [x22]
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	cmp	w9, w10, asr #2
	b.hi	LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	lsl	w8, w8, #2
	add	x0, x9, w8, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	lsl	w9, w25, #2
	add	x0, x8, w9, sxtw
	bl	_AV_WL32
	add	w24, w25, #1
	ldr	x8, [x23]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	sub	w9, w24, w9
	lsl	w9, w9, #2
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	mov	w21, #0
	lsl	w8, w24, #2
	mov	w9, #2
	b	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_byte
	mov	x21, x0
	cmp	w0, #255
	b.ne	LBB0_27
LBB0_26:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_bytestream2_get_le16
	add	w21, w0, w21
	cmp	w0, w26
	b.eq	LBB0_26
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	lsl	w24, w25, #2
	sub	w9, w24, #16
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	add	x0, x8, w24, sxtw
	bl	_AV_WL32
	ldr	x8, [x23]
	sub	w9, w24, #12
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	add	w8, w24, #4
	mov	w9, #1
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_bytestream2_get_le32
	mov	x1, x0
	ldr	x8, [x23]
	lsl	w24, w25, #2
	add	x0, x8, w24, sxtw
	bl	_AV_WL32
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	w21, #0
	add	w8, w24, #4
	mov	w9, #3
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22, #8]
	add	x0, x9, w8, sxtw
	bl	_AV_WL32
	mov	w0, #4
	bl	_CHECKPOINT
	add	w27, w25, #4
	ldr	w8, [x22]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	w27, w8
	b.gt	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w9, LBB0_3
; %bb.32:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	subs	w9, w28, w9
	b.lt	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w9, #2
	cmp	w10, w8
	b.hi	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	lsl	w9, w9, #2
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	ldr	x8, [x23]
	lsl	w9, w28, #2
	add	x0, x8, w9, sxtw
	bl	_AV_WL32
	add	w24, w25, #3
	ldr	x8, [x23]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	sub	w9, w24, w9
	lsl	w9, w9, #2
	add	x0, x8, w9, sxtw
	bl	_AV_RL32
	mov	x1, x0
	lsl	w8, w24, #2
	b	LBB0_4
LBB0_35:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_36:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_dxv_decompress_dxt5
.subsections_via_symbols
