	.file	"extr_..managerscheat_manager.c_cheat_manager_realloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cheat_manager_realloc
	.type	cheat_manager_realloc, @function
cheat_manager_realloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	mov	rdi, QWORD PTR cheat_manager_state[rip+8]
	test	rdi, rdi
	je	.L24
	mov	r14d, DWORD PTR cheat_manager_state[rip]
	cmp	r14d, ebx
	jbe	.L4
	lea	eax, -1[r14]
	mov	edx, ebx
	sub	eax, ebx
	lea	r12, 0[0+rdx*8]
	lea	rax, 1[rdx+rax]
	sub	r12, rdx
	lea	r13, 0[0+rax*8]
	sal	r12, 3
	sub	r13, rax
	sal	r13, 3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8, QWORD PTR 40[rax]
	test	r8, r8
	jne	.L25
.L6:
	add	r12, 56
	cmp	r13, r12
	je	.L4
.L7:
	lea	rax, [rdi+r12]
	mov	r8, QWORD PTR 48[rax]
	test	r8, r8
	je	.L5
	mov	rdi, r8
	call	free@PLT
	mov	rdi, QWORD PTR cheat_manager_state[rip+8]
	lea	rax, [rdi+r12]
	mov	r8, QWORD PTR 40[rax]
	test	r8, r8
	je	.L6
.L25:
	mov	rdi, r8
	add	r12, 56
	call	free@PLT
	mov	rdi, QWORD PTR cheat_manager_state[rip+8]
	cmp	r13, r12
	jne	.L7
.L4:
	imul	esi, ebx, 56
	call	realloc@PLT
	mov	QWORD PTR cheat_manager_state[rip+8], rax
.L3:
	test	rax, rax
	je	.L26
	mov	DWORD PTR cheat_manager_state[rip+4], ebx
	lea	r13, cheat_manager_state[rip]
	movabs	r12, 4294967297
	mov	DWORD PTR cheat_manager_state[rip], ebx
	cmp	r14d, ebx
	jnb	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	ecx, r14d
	xor	esi, esi
	lea	rdx, 0[0+rcx*8]
	sub	rdx, rcx
	lea	rbx, 0[0+rdx*8]
	mov	edx, 56
	lea	rdi, [rax+rbx]
	call	memset@PLT
	mov	rax, QWORD PTR cheat_manager_state[rip+8]
	mov	ecx, DWORD PTR CHEAT_TYPE_SET_TO_VALUE[rip]
	lea	rdx, [rax+rbx]
	mov	DWORD PTR 12[rdx], r14d
	add	r14d, 1
	mov	DWORD PTR [rdx], 0
	mov	DWORD PTR 4[rdx], ebp
	mov	DWORD PTR 32[rdx], ecx
	mov	DWORD PTR 8[rdx], 3
	mov	QWORD PTR 16[rdx], r12
	mov	QWORD PTR 24[rdx], 0
	cmp	DWORD PTR 0[r13], r14d
	ja	.L10
.L11:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	QWORD PTR cheat_manager_state[rip], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR cheat_manager_state[rip+8], 0
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	esi, 56
	mov	edi, ebx
	xor	r14d, r14d
	call	calloc@PLT
	mov	QWORD PTR cheat_manager_state[rip+8], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cheat_manager_realloc, .-cheat_manager_realloc
	.comm	cheat_manager_state,16,16
	.comm	CHEAT_TYPE_SET_TO_VALUE,4,4
	.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_..managerscheat_manager.c_cheat_manager_realloc.c"
	.text
	.align	2
	.global	cheat_manager_realloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	cheat_manager_realloc, %function
cheat_manager_realloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L26
	mov	r8, r1
	ldr	r10, [r6, #8]
	mov	r9, r0
	cmp	r10, #0
	beq	.L23
	ldr	r4, [r6]
	cmp	r4, r0
	bls	.L4
	mov	r5, r0
	b	.L7
.L5:
	ldr	r0, [r2, #32]
	cmp	r0, #0
	bne	.L24
.L6:
	cmp	r4, r5
	beq	.L4
.L7:
	add	r3, r5, r5, lsl #2
	add	r2, r10, r3, lsl #3
	ldr	r0, [r2, #36]
	add	r5, r5, #1
	cmp	r0, #0
	lsl	r7, r3, #3
	beq	.L5
	bl	free
	ldr	r10, [r6, #8]
	add	r2, r10, r7
	ldr	r0, [r2, #32]
	cmp	r0, #0
	beq	.L6
.L24:
	bl	free
	cmp	r4, r5
	ldr	r10, [r6, #8]
	bne	.L7
.L4:
	add	r1, r9, r9, lsl #2
	mov	r0, r10
	lsl	r1, r1, #3
	bl	realloc
	str	r0, [r6, #8]
.L3:
	cmp	r0, #0
	beq	.L25
	cmp	r4, r9
	str	r9, [r6, #4]
	str	r9, [r6]
	bcs	.L11
	mov	r7, #0
	mov	r9, #3
	ldr	r10, .L26+4
.L10:
	add	r5, r4, r4, lsl #2
	mov	r2, #40
	mov	r1, #0
	add	r0, r0, r5, lsl #3
	bl	memset
	mov	r2, #1
	ldr	r0, [r6, #8]
	lsl	r3, r5, #3
	add	r3, r0, r3
	ldr	ip, [r6]
	ldr	r1, [r10]
	str	r7, [r0, r5, lsl #3]
	str	r4, [r3, #12]
	add	r4, r4, r2
	cmp	ip, r4
	stmib	r3, {r8, r9}
	str	r7, [r3, #24]
	str	r1, [r3, #28]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	bhi	.L10
.L11:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	str	r0, [r6]
	str	r0, [r6, #4]
	str	r0, [r6, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r1, #40
	bl	calloc
	mov	r4, r10
	str	r0, [r6, #8]
	b	.L3
.L27:
	.align	2
.L26:
	.word	cheat_manager_state
	.word	CHEAT_TYPE_SET_TO_VALUE
	.size	cheat_manager_realloc, .-cheat_manager_realloc
	.comm	cheat_manager_state,12,4
	.comm	CHEAT_TYPE_SET_TO_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
