	.file	"extr_d3d10.c_d3d10_init_history.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	d3d10_init_history, @function
d3d10_init_history:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 24[rdi]
	call	assert@PLT
	mov	rax, QWORD PTR 24[r13]
	cmp	DWORD PTR [rax], -1
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r13]
	mov	esi, ebx
	mov	edi, DWORD PTR 16[r13]
	add	ebx, 1
	sal	rsi, 4
	add	rsi, rax
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rsi], ebp
	mov	DWORD PTR 4[rsi], r12d
	mov	DWORD PTR 12[rsi], edx
	mov	DWORD PTR 8[rsi], eax
	call	d3d10_init_texture@PLT
	mov	rax, QWORD PTR 24[r13]
	mov	rax, QWORD PTR [rax]
	add	eax, 1
	cmp	eax, ebx
	ja	.L3
.L2:
	mov	DWORD PTR 0[r13], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	d3d10_init_history, .-d3d10_init_history
	.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_d3d10.c_d3d10_init_history.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3d10_init_history, %function
d3d10_init_history:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #12]
	mov	r6, r1
	mov	r7, r2
	bl	assert
	ldr	r3, [r5, #12]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L2
	mov	r4, #0
.L3:
	ldr	r3, [r5, #4]
	ldr	r0, [r5, #8]
	ldr	ip, [r3, #12]
	ldr	r2, [r3, #8]
	add	r1, r3, r4, lsl #4
	str	r6, [r3, r4, lsl #4]
	str	ip, [r1, #12]
	str	r7, [r1, #4]
	str	r2, [r1, #8]
	bl	d3d10_init_texture
	ldr	r3, [r5, #12]
	add	r4, r4, #1
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, r4
	bhi	.L3
.L2:
	mov	r3, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	d3d10_init_history, .-d3d10_init_history
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
