	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txd_decode_frame
_txd_decode_frame:                      ## @txd_decode_frame
	.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	%rcx, %rbx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-128(%rbp), %rdi
	callq	_ff_texturedsp_init
	movl	(%rbx), %edx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	4(%rbx), %esi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream2_init
	movq	%r13, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$72, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_le32
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r13d
	leal	-10(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
LBB0_47:
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
LBB0_48:
	movl	(%rax), %eax
LBB0_49:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$8, %r15d
	jne	LBB0_12
## %bb.3:
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	_AV_PIX_FMT_RGBA@GOTPCREL(%rip), %rax
	cmpl	$16, %r15d
	je	LBB0_4
## %bb.13:
	cmpl	$32, %r15d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_5
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	jmp	LBB0_47
LBB0_4:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_49
## %bb.6:
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_FFALIGN
	movq	%rax, 16(%r12)
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_FFALIGN
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_49
## %bb.7:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	movl	(%rcx), %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$8, %r15d
	jne	LBB0_18
## %bb.8:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	roll	$24, %eax
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_9
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	imull	%r14d, %ecx
	cmpl	%ecx, %eax
	jae	LBB0_15
LBB0_11:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_18:
	cmpl	$32, %r15d
	je	LBB0_40
## %bb.19:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	cmpl	$16, %r15d
	jne	LBB0_45
## %bb.20:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$129, %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_24
## %bb.21:
	cmpl	$128, %edx
	je	LBB0_32
## %bb.22:
	testl	%edx, %edx
	jne	LBB0_46
## %bb.23:
	testb	$1, -60(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_46
LBB0_24:
	leaq	-48(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, %r15d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	$2, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_AV_CEIL_RSHIFT
	imull	%ebx, %eax
	shll	$3, %eax
	cmpl	%eax, %r15d
	jb	LBB0_11
## %bb.25:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_45
## %bb.26:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	leal	(,%r14,4), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	leaq	-48(%rbp), %r13
	xorl	%edi, %edi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$4, %rdi
	addl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	%edi, %ecx
	jle	LBB0_45
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	testl	%eax, %eax
	jle	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	leaq	(%rsi,%rax,4), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*-128(%rbp)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bytestream2_skip
	movl	4(%r12), %eax
	addq	$64, %rbx
	addl	$4, %r15d
	cmpl	%r15d, %eax
	jg	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r12), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_15:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	testl	%r14d, %r14d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_45
## %bb.16:
	shlq	$2, %r13
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_bytestream2_get_buffer
	addq	%r13, %rbx
	decl	%r14d
	jne	LBB0_17
LBB0_45:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_48
LBB0_40:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	-21(%rdx), %eax
	cmpl	$1, %eax
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	ja	LBB0_46
## %bb.41:
	leaq	-48(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movl	%r14d, %ecx
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	imull	%r13d, %ecx
	shll	$2, %ecx
	cmpl	%ecx, %eax
	jb	LBB0_11
## %bb.42:
	testl	%r14d, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_45
## %bb.43:
	shll	$2, %r13d
	shlq	$2, %r15
	leaq	-48(%rbp), %r12
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_bytestream2_get_buffer
	addq	%r15, %rbx
	decl	%r14d
	jne	LBB0_44
	jmp	LBB0_45
LBB0_46:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_47
LBB0_32:
	leaq	-48(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movl	%eax, %r15d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	$2, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_AV_CEIL_RSHIFT
	imull	%ebx, %eax
	shll	$4, %eax
	cmpl	%eax, %r15d
	jb	LBB0_11
## %bb.33:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_45
## %bb.34:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	leal	(,%r14,4), %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	leaq	-48(%rbp), %r12
	xorl	%edi, %edi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_39:                                ##   in Loop: Header=BB0_35 Depth=1
	addq	$4, %rdi
	addl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	%edi, %ecx
	jle	LBB0_45
LBB0_35:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	testl	%eax, %eax
	jle	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	leaq	(%rsi,%rax,4), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_35 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*-120(%rbp)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bytestream2_skip
	movl	4(%r13), %eax
	addq	$64, %rbx
	addl	$4, %r15d
	cmpl	%r15d, %eax
	jg	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	(%r13), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Texture data version %u"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_PIX_FMT_PAL8,4,2            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGBA,4,2            ## @AV_PIX_FMT_RGBA
L_.str.1:                               ## @.str.1
	.asciz	"Color depth of %u"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"d3d format (%08x)"

	.no_dead_strip	_txd_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txd_decode_frame
_txd_decode_frame:                      ; @txd_decode_frame
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	x0, sp, #8
	bl	_ff_texturedsp_init
	ldp	w2, w1, [x19]
	add	x0, sp, #24
	bl	_bytestream2_init
	add	x0, sp, #24
	bl	_bytestream2_get_le32
	mov	x23, x0
	add	x0, sp, #24
	mov	w1, #72
	bl	_bytestream2_skip
	add	x0, sp, #24
	bl	_bytestream2_get_le32
	mov	x26, x0
	add	x0, sp, #24
	bl	_bytestream2_get_le16
	mov	x25, x0
	add	x0, sp, #24
	bl	_bytestream2_get_le16
	mov	x24, x0
	add	x0, sp, #24
	bl	_bytestream2_get_byte
	mov	x28, x0
	add	x0, sp, #24
	mov	w1, #2
	bl	_bytestream2_skip
	add	x0, sp, #24
	bl	_bytestream2_get_byte
	sub	w8, w23, #10
	cmn	w8, #3
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
LBB0_2:
	bl	_avpriv_report_missing_feature
Lloh2:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	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_5:
	mov	x27, x0
	cmp	w28, #8
	b.ne	LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _AV_PIX_FMT_RGBA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PIX_FMT_RGBA@GOTPAGEOFF]
	cmp	w28, #16
	b.eq	LBB0_9
; %bb.8:
	cmp	w28, #32
	b.ne	LBB0_16
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_4
; %bb.10:
	mov	x0, x25
	mov	w1, #4
	bl	_FFALIGN
	str	x0, [x21, #16]
	mov	x0, x24
	mov	w1, #4
	bl	_FFALIGN
	str	x0, [x21, #8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_4
; %bb.11:
Lloh8:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldp	x9, x8, [x22]
	ldr	x22, [x8]
	ldr	w23, [x9]
	cmp	w28, #8
	b.ne	LBB0_17
; %bb.12:
	mov	x21, #0
	ldr	x26, [x8, #8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_bytestream2_get_be32
	ror	w8, w0, #8
	str	w8, [x26, x21]
	add	x21, x21, #4
	cmp	x21, #1024
	b.ne	LBB0_13
; %bb.14:
	add	x0, sp, #24
	bl	_bytestream2_get_bytes_left
	mul	w8, w24, w25
	cmp	w0, w8
	b.hs	LBB0_31
LBB0_15:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_3
LBB0_16:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x28
	b	LBB0_2
LBB0_17:
	cmp	w28, #32
	b.eq	LBB0_35
; %bb.18:
	cmp	w28, #16
	b.ne	LBB0_34
; %bb.19:
	add	x0, sp, #24
	mov	w1, #4
	bl	_bytestream2_skip
	cmp	w26, #129
	b.eq	LBB0_23
; %bb.20:
	cmp	w26, #128
	b.eq	LBB0_41
; %bb.21:
	cbnz	w26, LBB0_40
; %bb.22:
	tbz	w27, #0, LBB0_40
LBB0_23:
	add	x0, sp, #24
	bl	_bytestream2_get_bytes_left
	mov	x26, x0
	mov	x0, x25
	mov	w1, #2
	bl	_AV_CEIL_RSHIFT
	mov	x25, x0
	mov	x0, x24
	mov	w1, #2
	bl	_AV_CEIL_RSHIFT
	mul	w8, w25, w0
	cmp	w26, w8, lsl #3
	b.lo	LBB0_15
; %bb.24:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_34
; %bb.25:
	mov	w25, #0
	mov	x26, #0
	ldr	w8, [x21, #4]
	lsl	w27, w23, #2
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x26, x26, #4
	add	w25, w25, w27
	cmp	w9, w26
	b.le	LBB0_34
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w28, #0
	add	x24, x22, w25, uxtw #2
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #8]
	ldr	w2, [sp, #24]
	mov	x0, x24
	mov	x1, x23
	blr	x8
	mov	x1, x0
	add	x0, sp, #24
	bl	_bytestream2_skip
	ldr	w8, [x21, #4]
	add	x24, x24, #64
	add	w28, w28, #4
	cmp	w8, w28
	b.gt	LBB0_29
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w9, [x21]
	b	LBB0_26
LBB0_31:
	add	x0, sp, #24
	mov	w1, #4
	bl	_bytestream2_skip
	cbz	w24, LBB0_34
; %bb.32:
	lsl	x21, x23, #2
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x25
	bl	_bytestream2_get_buffer
	add	x22, x22, x21
	subs	w24, w24, #1
	b.ne	LBB0_33
LBB0_34:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
	b	LBB0_4
LBB0_35:
	sub	w8, w26, #21
	cmp	w8, #1
	b.hi	LBB0_40
; %bb.36:
	add	x0, sp, #24
	bl	_bytestream2_get_bytes_left
	mul	w8, w24, w25
	cmp	w0, w8, lsl #2
	b.lo	LBB0_15
; %bb.37:
	cbz	w24, LBB0_34
; %bb.38:
	lsl	w21, w25, #2
	lsl	x23, x23, #2
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x21
	bl	_bytestream2_get_buffer
	add	x22, x22, x23
	subs	w24, w24, #1
	b.ne	LBB0_39
	b	LBB0_34
LBB0_40:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x26
	b	LBB0_2
LBB0_41:
	add	x0, sp, #24
	bl	_bytestream2_get_bytes_left
	mov	x26, x0
	mov	x0, x25
	mov	w1, #2
	bl	_AV_CEIL_RSHIFT
	mov	x25, x0
	mov	x0, x24
	mov	w1, #2
	bl	_AV_CEIL_RSHIFT
	mul	w8, w25, w0
	cmp	w26, w8, lsl #4
	b.lo	LBB0_15
; %bb.42:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_34
; %bb.43:
	mov	w25, #0
	mov	x26, #0
	ldr	w8, [x21, #4]
	lsl	w27, w23, #2
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	add	x26, x26, #4
	add	w25, w25, w27
	cmp	w9, w26
	b.le	LBB0_34
LBB0_45:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_47 Depth 2
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	mov	w28, #0
	add	x24, x22, w25, uxtw #2
LBB0_47:                                ;   Parent Loop BB0_45 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #16]
	ldr	w2, [sp, #24]
	mov	x0, x24
	mov	x1, x23
	blr	x8
	mov	x1, x0
	add	x0, sp, #24
	bl	_bytestream2_skip
	ldr	w8, [x21, #4]
	add	x24, x24, #64
	add	w28, w28, #4
	cmp	w8, w28
	b.gt	LBB0_47
; %bb.48:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	w9, [x21]
	b	LBB0_44
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Texture data version %u"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_PIX_FMT_PAL8,4,2            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_RGBA,4,2            ; @AV_PIX_FMT_RGBA
l_.str.1:                               ; @.str.1
	.asciz	"Color depth of %u"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"d3d format (%08x)"

	.no_dead_strip	_txd_decode_frame
.subsections_via_symbols
