	.file	"extr_qtrle.c_qtrle_decode_32bpp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qtrle_decode_32bpp, @function
qtrle_decode_32bpp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 16[rdi]
	mov	DWORD PTR 20[rsp], esi
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR 28[rsp], edx
	mov	r14, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rcx]
	lea	rax, 32[r14]
	mov	DWORD PTR 24[rsp], ecx
	mov	QWORD PTR 8[rsp], rax
	test	edx, edx
	je	.L1
	mov	rbp, rdi
.L12:
	mov	rdi, rbp
	call	bytestream2_get_byte@PLT
	mov	edx, DWORD PTR 20[rsp]
	xor	edi, edi
	lea	r13d, -4[rdx+rax*4]
	call	CHECK_PIXEL_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	bytestream2_get_byte@PLT
	mov	ebx, eax
	cmp	eax, -1
	je	.L25
.L11:
	mov	rdi, rbp
	call	bytestream2_get_bytes_left@PLT
	test	eax, eax
	jle	.L1
	test	ebx, ebx
	je	.L26
	js	.L27
	lea	edi, 0[0+rbx*4]
	call	CHECK_PIXEL_PTR@PLT
	mov	eax, ebx
	sar	eax
	lea	edx, -1[rax]
	mov	DWORD PTR 16[rsp], edx
	je	.L9
	movsx	rax, r13d
	mov	ecx, edx
	lea	r15, [r14+rax*4]
	lea	rax, [rax+rcx*8]
	mov	rcx, QWORD PTR 8[rsp]
	lea	r12, [rcx+rax*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	bytestream2_get_ne64@PLT
	mov	rdi, r15
	add	r15, 32
	mov	esi, eax
	call	AV_WN64@PLT
	cmp	r15, r12
	jne	.L10
	mov	eax, DWORD PTR 16[rsp]
	lea	r13d, 8[r13+rax*8]
.L9:
	and	ebx, 1
	je	.L3
	mov	rdi, rbp
	call	bytestream2_get_ne32@PLT
	mov	esi, eax
	movsx	rax, r13d
	add	r13d, 4
	lea	rdi, [r14+rax*4]
	call	AV_WN32A@PLT
	mov	rdi, rbp
	call	bytestream2_get_byte@PLT
	mov	ebx, eax
	cmp	eax, -1
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR 24[rsp]
	add	DWORD PTR 20[rsp], edx
	sub	DWORD PTR 28[rsp], 1
	jne	.L12
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, rbp
	call	bytestream2_get_byte@PLT
	xor	edi, edi
	lea	r13d, -4[r13+rax*4]
	call	CHECK_PIXEL_PTR@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	bytestream2_get_ne32@PLT
	mov	edi, ebx
	not	ebx
	neg	edi
	mov	r12d, eax
	sal	edi, 2
	call	CHECK_PIXEL_PTR@PLT
	movsx	rcx, ebx
	movsx	rax, r13d
	mov	DWORD PTR 16[rsp], ecx
	lea	rbx, [r14+rax*4]
	lea	rax, [rax+rcx*4]
	lea	r15, 16[r14+rax*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbx
	mov	esi, r12d
	add	rbx, 16
	call	AV_WN32A@PLT
	cmp	rbx, r15
	jne	.L8
	mov	eax, DWORD PTR 16[rsp]
	lea	r13d, 4[r13+rax*4]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qtrle_decode_32bpp, .-qtrle_decode_32bpp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_qtrle.c_qtrle_decode_32bpp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qtrle_decode_32bpp, %function
qtrle_decode_32bpp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	sub	sp, sp, #20
	mov	r5, r0
	ldm	r3, {r0, r3}
	str	r1, [sp, #4]
	ldr	r1, [r0]
	cmp	r2, #0
	ldr	r8, [r3]
	str	r1, [sp, #12]
	beq	.L1
	str	r2, [sp, #8]
	add	r10, r8, #16
.L12:
	mov	r0, r5
	bl	bytestream2_get_byte
	mov	r7, r0
	ldr	r3, [sp, #4]
	sub	r7, r7, #1
	mov	r0, #0
	add	r7, r3, r7, lsl #2
	bl	CHECK_PIXEL_PTR
.L3:
	mov	r0, r5
	bl	bytestream2_get_byte
	cmn	r0, #1
	mov	r6, r0
	beq	.L24
	mov	r0, r5
	bl	bytestream2_get_bytes_left
	cmp	r0, #0
	ble	.L1
	cmp	r6, #0
	beq	.L25
	blt	.L26
	asr	r9, r6, #1
	lsl	r0, r6, #2
	bl	CHECK_PIXEL_PTR
	cmp	r9, #0
	sub	fp, r9, #1
	beq	.L9
	add	r9, r7, r9, lsl #3
	add	r9, r8, r9, lsl #2
	add	r4, r8, r7, lsl #2
.L10:
	mov	r0, r5
	bl	bytestream2_get_ne64
	mov	r1, r0
	mov	r0, r4
	add	r4, r4, #32
	bl	AV_WN64
	cmp	r4, r9
	bne	.L10
	add	r7, r7, #8
	add	r7, r7, fp, lsl #3
.L9:
	tst	r6, #1
	beq	.L3
	mov	r0, r5
	bl	bytestream2_get_ne32
	add	r4, r8, r7, lsl #2
	mov	r1, r0
	mov	r0, r4
	bl	AV_WN32A
	add	r7, r7, #4
	b	.L3
.L25:
	mov	r0, r5
	bl	bytestream2_get_byte
	mov	r3, r0
	mov	r0, r6
	sub	r3, r3, #1
	add	r7, r7, r3, lsl #2
	bl	CHECK_PIXEL_PTR
	b	.L3
.L26:
	mov	r0, r5
	bl	bytestream2_get_ne32
	mov	fp, r0
	rsb	r0, r6, r6, lsl #30
	mvn	r6, r6
	lsl	r0, r0, #2
	bl	CHECK_PIXEL_PTR
	add	r9, r7, r6, lsl #2
	add	r9, r10, r9, lsl #2
	lsl	r6, r6, #2
	add	r4, r8, r7, lsl #2
.L8:
	mov	r0, r4
	mov	r1, fp
	add	r4, r4, #16
	bl	AV_WN32A
	cmp	r4, r9
	bne	.L8
	add	r7, r7, #4
	add	r7, r6, r7
	b	.L3
.L24:
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #12]
	subs	r3, r3, #1
	str	r3, [sp, #8]
	ldr	r3, [sp, #4]
	add	r3, r3, r2
	str	r3, [sp, #4]
	bne	.L12
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	qtrle_decode_32bpp, .-qtrle_decode_32bpp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
