	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dds_decode
_dds_decode:                            ## @dds_decode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	40(%rdi), %r15
	leaq	44(%r15), %r14
	leaq	40(%r15), %rdi
	callq	_ff_texturedsp_init
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$127, %eax
	jg	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movl	$68, %edi
	movl	$68, %esi
	movl	$83, %edx
	movl	$32, %ecx
	callq	_MKTAG
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.3:
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	cmpl	$124, %eax
	jne	LBB0_12
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_16
## %bb.5:
	movl	(%r13), %edi
	movq	_TEXTURE_BLOCK_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFALIGN
	movl	%eax, 8(%r13)
	movl	4(%r13), %edi
	movq	_TEXTURE_BLOCK_H@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_FFALIGN
	movl	%eax, 12(%r13)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_7:
	movq	%r13, %rdi
	callq	_parse_pixel_format
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	cmpq	$0, 32(%r15)
	je	LBB0_19
## %bb.10:
	movl	8(%r13), %ecx
	movl	12(%r13), %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %ebx
	movl	%ecx, %eax
	cltd
	movq	_TEXTURE_BLOCK_W@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%eax, %r12d
	imull	%ebx, %r12d
	imull	(%r15), %r12d
	movl	32(%r13), %edi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_av_clip
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	%r12d, %eax
	jge	LBB0_34
## %bb.11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	jmp	LBB0_33
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_13:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_16:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_19:
	cmpq	$0, 16(%r15)
	jne	LBB0_26
## %bb.20:
	cmpl	$4, 4(%r15)
	jne	LBB0_26
## %bb.21:
	movq	16(%r13), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_bytestream2_get_buffer
	xorl	%ebx, %ebx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%rax), %rax
	leaq	(%rax,%rbx), %rdi
	movl	(%rax,%rbx), %ecx
	movl	4(%rax,%rbx), %edx
	shll	$8, %edx
	addl	8(%rax,%rbx), %edx
	shll	$16, %ecx
	addl	%edx, %ecx
	movl	12(%rax,%rbx), %esi
	shll	$24, %esi
	addl	%ecx, %esi
	callq	_AV_WN32
	addq	$16, %rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_23
## %bb.24:
	movq	%r12, %rbx
	movl	$1, 8(%r12)
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	movl	12(%r12), %edx
	movl	16(%r12), %ecx
	movl	%ecx, %esi
	imull	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	cmpl	%edi, %eax
	jge	LBB0_39
## %bb.25:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	movl	16(%r12), %ecx
	imull	12(%r12), %ecx
	movl	%ecx, %r8d
	shrl	$31, %r8d
	addl	%ecx, %r8d
	sarl	%r8d
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	jmp	LBB0_32
LBB0_26:
	movq	16(%r13), %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %esi
	xorl	%edx, %edx
	callq	_av_image_get_linesize
	movl	%eax, %ebx
	cmpq	$0, 16(%r15)
	je	LBB0_30
## %bb.27:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_bytestream2_get_buffer
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%rax), %rax
	leaq	(%rax,%rbx), %rdi
	movl	(%rax,%rbx), %ecx
	movl	4(%rax,%rbx), %edx
	shll	$8, %edx
	addl	8(%rax,%rbx), %edx
	shll	$16, %ecx
	addl	%edx, %ecx
	movl	12(%rax,%rbx), %esi
	shll	$24, %esi
	addl	%ecx, %esi
	callq	_AV_WN32
	addq	$16, %rbx
	cmpq	$4096, %rbx                     ## imm = 0x1000
	jne	LBB0_28
## %bb.29:
	movl	$1, 8(%r12)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_30:
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	movl	12(%r12), %r9d
	movl	%ebx, %ecx
	imull	%r9d, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_35
## %bb.31:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	movl	12(%r12), %r8d
	imull	%ebx, %r8d
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
LBB0_32:
	movl	%eax, %ecx
LBB0_33:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_13
LBB0_34:
	movl	24(%r15), %r8d
	movl	44(%r15), %eax
	movl	%eax, 28(%r15)
	movq	_decompress_texture_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	*24(%r13)
	jmp	LBB0_36
LBB0_35:
	movq	(%r12), %rax
	movq	32(%r12), %rcx
	movq	(%rax), %rdi
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	callq	_av_image_copy_plane
LBB0_36:
	movq	8(%r15), %rax
	movq	_DDS_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_38
## %bb.37:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_run_postproc
LBB0_38:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, 20(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_39:
	testl	%edx, %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_36
## %bb.40:
	xorl	%edi, %edi
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	incl	%edi
	cmpl	%edx, %edi
	jge	LBB0_36
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_41
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %ecx
	andl	$15, %ecx
	movl	%ecx, (%r12,%rbx,4)
	sarl	$4, %eax
	movl	%eax, 4(%r12,%rbx,4)
	addq	$2, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ecx
	cmpl	%ebx, %ecx
	jg	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frame is too small (%d).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid DDS header.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid image size %dx%d.\n"

	.comm	_TEXTURE_BLOCK_W,4,2            ## @TEXTURE_BLOCK_W
	.comm	_TEXTURE_BLOCK_H,4,2            ## @TEXTURE_BLOCK_H
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.3:                               ## @.str.3
	.asciz	"Found %d mipmaps (ignored).\n"

L_.str.4:                               ## @.str.4
	.asciz	"Compressed Buffer is too small (%d < %d).\n"

	.comm	_decompress_texture_thread,4,2  ## @decompress_texture_thread
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
L_.str.5:                               ## @.str.5
	.asciz	"Buffer is too small (%d < %d).\n"

	.comm	_DDS_NONE,8,3                   ## @DDS_NONE
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.no_dead_strip	_dds_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dds_decode
_dds_decode:                            ; @dds_decode
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x25, [x0, #40]
	add	x23, x25, #44
	add	x0, x25, #40
	bl	_ff_texturedsp_init
	ldp	w2, w1, [x21]
	mov	x0, x23
	bl	_bytestream2_init
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, #127
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_14
LBB0_3:
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x24, x0
	mov	w0, #68
	mov	w1, #68
	mov	w2, #83
	mov	w3, #32
	bl	_MKTAG
	cmp	w24, w0
	b.ne	LBB0_13
; %bb.4:
	mov	x0, x23
	bl	_bytestream2_get_le32
	cmp	w0, #124
	b.ne	LBB0_13
; %bb.5:
	mov	x0, x23
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x24, x0
	mov	x0, x23
	bl	_bytestream2_get_le32
	mov	x1, x0
	mov	x0, x19
	mov	x2, x24
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_17
; %bb.6:
	ldr	w0, [x19]
Lloh5:
	adrp	x26, _TEXTURE_BLOCK_W@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TEXTURE_BLOCK_W@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_FFALIGN
	str	w0, [x19, #8]
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x27, _TEXTURE_BLOCK_H@GOTPAGE
Lloh8:
	ldr	x27, [x27, _TEXTURE_BLOCK_H@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_FFALIGN
	str	w0, [x19, #12]
	mov	x0, x23
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x23
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x23
	bl	_bytestream2_get_le32
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_8:
	mov	x0, x19
	bl	_parse_pixel_format
	tbnz	w0, #31, LBB0_16
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_16
; %bb.10:
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_18
; %bb.11:
	ldr	w8, [x27]
	ldp	w10, w9, [x19, #8]
	sdiv	w2, w9, w8
	ldr	w8, [x26]
	sdiv	w8, w10, w8
	mul	w8, w8, w2
	ldr	w9, [x25]
	mul	w24, w8, w9
	ldr	w0, [x19, #32]
	mov	w1, #1
	bl	_av_clip
	str	w0, [x25, #24]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	cmp	w0, w24
	b.ge	LBB0_32
; %bb.12:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x24, [sp]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_13:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_14:
	bl	_av_log
Lloh24:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
LBB0_15:
	mov	x0, x24
	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
LBB0_16:
	mov	x24, x0
	b	LBB0_15
LBB0_17:
	mov	x24, x0
Lloh27:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_15
LBB0_18:
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_25
; %bb.19:
	ldr	w8, [x25, #4]
	cmp	w8, #4
	b.ne	LBB0_25
; %bb.20:
	ldr	x8, [x19, #16]
Lloh32:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.21:
	ldr	x8, [x20]
	ldp	x24, x1, [x8]
	mov	x0, x23
	mov	w2, #64
	bl	_bytestream2_get_buffer
	mov	x26, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x0, x8, x26
	ldp	w9, w8, [x0]
	ldp	w10, w11, [x0, #8]
	add	w8, w10, w8, lsl #8
	add	w8, w8, w9, lsl #16
	add	w1, w8, w11, lsl #24
	bl	_AV_WN32
	add	x26, x26, #16
	cmp	x26, #256
	b.ne	LBB0_22
; %bb.23:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	ldp	w9, w8, [x20, #12]
	mul	w10, w8, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	cmp	w0, w10, asr #1
	b.ge	LBB0_37
; %bb.24:
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w8, w9, [x20, #12]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_31
LBB0_25:
	ldr	x0, [x19, #16]
	ldr	w1, [x20, #16]
	mov	w2, #0
	bl	_av_image_get_linesize
	mov	x24, x0
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_29
; %bb.26:
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	mov	x0, x23
	mov	w2, #1024
	bl	_bytestream2_get_buffer
	mov	x26, #0
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x0, x8, x26
	ldp	w9, w8, [x0]
	ldp	w10, w11, [x0, #8]
	add	w8, w10, w8, lsl #8
	add	w8, w8, w9, lsl #16
	add	w1, w8, w11, lsl #24
	bl	_AV_WN32
	add	x26, x26, #16
	cmp	x26, #1, lsl #12                ; =4096
	b.ne	LBB0_27
; %bb.28:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_29:
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
	ldr	w5, [x20, #12]
	mul	w8, w5, w24
	cmp	w0, w8
	b.ge	LBB0_33
; %bb.30:
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_bytestream2_get_bytes_left
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20, #12]
	mul	w8, w8, w24
LBB0_31:
	stp	x0, x8, [sp]
Lloh41:
	adrp	x2, l_.str.5@PAGE
Lloh42:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	b	LBB0_14
LBB0_32:
	ldr	w8, [x25, #44]
	str	w8, [x25, #28]
	ldr	x8, [x19, #24]
Lloh43:
	adrp	x9, _decompress_texture_thread@GOTPAGE
Lloh44:
	ldr	x9, [x9, _decompress_texture_thread@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x9]
	ldr	w4, [x25, #24]
	mov	x0, x19
	mov	x2, x20
	mov	x3, #0
	blr	x8
	b	LBB0_34
LBB0_33:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	x8, [x20, #32]
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x3, x24
	mov	x4, x24
	bl	_av_image_copy_plane
LBB0_34:
	ldr	x8, [x25, #8]
Lloh46:
	adrp	x9, _DDS_NONE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DDS_NONE@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_36
; %bb.35:
	mov	x0, x19
	mov	x1, x20
	bl	_run_postproc
LBB0_36:
Lloh49:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x20, #20]
	str	w9, [x22]
	ldr	w24, [x21]
	b	LBB0_15
LBB0_37:
	cmp	w9, #1
	b.lt	LBB0_34
; %bb.38:
	mov	w26, #0
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	ldr	x10, [x20, #32]
	ldrsw	x10, [x10]
	add	x24, x24, x10, lsl #2
	add	w26, w26, #1
	cmp	w26, w9
	b.ge	LBB0_34
LBB0_40:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_42 Depth 2
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x27, #0
LBB0_42:                                ;   Parent Loop BB0_40 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_bytestream2_get_byte
	and	w8, w0, #0xf
	add	x9, x24, x27, lsl #2
	asr	w10, w0, #4
	stp	w8, w10, [x9]
	add	x27, x27, #2
	ldr	w8, [x20, #16]
	cmp	w8, w27
	b.gt	LBB0_42
; %bb.43:                               ;   in Loop: Header=BB0_40 Depth=1
	ldr	w9, [x20, #12]
	b	LBB0_39
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame is too small (%d).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid DDS header.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid image size %dx%d.\n"

	.comm	_TEXTURE_BLOCK_W,4,2            ; @TEXTURE_BLOCK_W
	.comm	_TEXTURE_BLOCK_H,4,2            ; @TEXTURE_BLOCK_H
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.3:                               ; @.str.3
	.asciz	"Found %d mipmaps (ignored).\n"

l_.str.4:                               ; @.str.4
	.asciz	"Compressed Buffer is too small (%d < %d).\n"

	.comm	_decompress_texture_thread,4,2  ; @decompress_texture_thread
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
l_.str.5:                               ; @.str.5
	.asciz	"Buffer is too small (%d < %d).\n"

	.comm	_DDS_NONE,8,3                   ; @DDS_NONE
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_dds_decode
.subsections_via_symbols
