	.file	"extr_heap.c_test_heap_checks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"testing heap flags %08x\n"
.LC1:
	.string	"HeapAlloc failed\n"
.LC2:
	.string	"HeapValidate failed\n"
.LC3:
	.string	"Wrong size %lu\n"
.LC4:
	.string	"wrong data %x\n"
.LC5:
	.string	"wrong padding %x\n"
.LC6:
	.string	"realloc in place failed\n"
.LC7:
	.string	"HeapFree failed\n"
.LC8:
	.string	"HeapValidate succeeded\n"
.LC9:
	.string	"HeapReAlloc succeeded\n"
.LC10:
	.string	"HeapFree succeeded\n"
.LC11:
	.string	"HeapReAlloc failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC12:
	.string	"only %lu tail bytes for size %lu\n"
	.text
	.p2align 4
	.type	test_heap_checks, @function
test_heap_checks:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	and	ebx, DWORD PTR HEAP_PAGE_ALLOCS[rip]
	je	.L57
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L57:
	.cfi_restore_state
	mov	esi, edi
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	call	trace@PLT
	mov	r12d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 17
	mov	esi, r12d
	mov	edi, eax
	call	HeapAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapValidate@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapSize@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	cmp	eax, 17
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 56[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	edx, edx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 60[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	edx, edx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 64[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	edx, edx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_TAIL_CHECKING_ENABLED[rip], ebp
	jne	.L58
.L3:
	mov	r13d, DWORD PTR HEAP_REALLOC_IN_PLACE_ONLY[rip]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	ecx, 14
	mov	rdx, r12
	mov	edi, eax
	mov	esi, r13d
	call	HeapReAlloc@PLT
	cmp	r12, rax
	je	.L59
	lea	rdi, .LC6[rip]
	call	skip@PLT
.L6:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	lea	rsi, .LC7[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	r12d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 17
	mov	esi, r12d
	mov	edi, eax
	call	HeapAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	r13d, DWORD PTR 68[r12]
	mov	DWORD PTR 68[r12], 204
	test	DWORD PTR HEAP_TAIL_CHECKING_ENABLED[rip], ebp
	jne	.L60
.L7:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	lea	rsi, .LC7[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 37
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, 37
	mov	esi, 204
	mov	rdi, r12
	call	memset@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapFree@PLT
	lea	rsi, .LC7[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_FREE_CHECKING_ENABLED[rip], ebp
	jne	.L61
.L11:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, 3072037
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapValidate@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapSize@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	cmp	eax, 3072037
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 12288140[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	edx, edx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 12288144[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	test	edx, edx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_TAIL_CHECKING_ENABLED[rip], ebp
	je	.L13
	mov	r13d, DWORD PTR 12288148[r12]
	mov	edi, 1
	cmp	r13d, 171
	jne	.L62
.L14:
	mov	edx, r13d
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	ok@PLT
	mov	r13d, DWORD PTR 12288152[r12]
	mov	edi, 1
	cmp	r13d, 171
	jne	.L63
.L15:
	mov	edx, r13d
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	ok@PLT
	mov	r13d, DWORD PTR 12288156[r12]
	mov	edi, 1
	cmp	r13d, 171
	jne	.L64
.L16:
	xor	eax, eax
	mov	edx, r13d
	lea	rsi, .LC4[rip]
	call	ok@PLT
	cmp	DWORD PTR 12288148[r12], 171
	je	.L65
.L13:
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapFree@PLT
	lea	rsi, .LC7[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_TAIL_CHECKING_ENABLED[rip], ebp
	je	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, ebx
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	r12, rax
	xor	eax, eax
	lea	rcx, [r12+rbp]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L67:
	add	rax, 1
	cmp	rax, 32
	je	.L66
.L21:
	cmp	DWORD PTR [rcx+rax*4], 171
	mov	edx, eax
	je	.L67
	xor	edi, edi
	cmp	eax, 7
	setg	dil
.L22:
	mov	ecx, ebx
	lea	rsi, .LC12[rip]
	xor	eax, eax
	add	ebx, 1
	call	ok@PLT
	xor	eax, eax
	add	rbp, 4
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	cmp	ebx, 64
	jne	.L23
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L66:
	.cfi_restore_state
	mov	edi, 1
	mov	edx, 32
	jmp	.L22
.L59:
	mov	edx, DWORD PTR 56[r12]
	test	DWORD PTR HEAP_TAIL_CHECKING_ENABLED[rip], ebp
	jne	.L68
	xor	edi, edi
	test	edx, edx
	lea	rsi, .LC5[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 60[r12]
	test	edx, edx
.L55:
	sete	dil
	lea	rsi, .LC5[rip]
	xor	eax, eax
	movzx	edi, dil
	call	ok@PLT
	jmp	.L6
.L68:
	xor	edi, edi
	cmp	edx, 171
	lea	rsi, .LC5[rip]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 60[r12]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	edx, 171
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 64[r12]
	cmp	edx, 171
	jmp	.L55
.L64:
	xor	edi, edi
	test	r13d, r13d
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L16
.L63:
	xor	edi, edi
	test	r13d, r13d
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L15
.L62:
	xor	edi, edi
	test	r13d, r13d
	sete	dil
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L14
.L61:
	mov	edx, DWORD PTR 64[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	edx, 238
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 68[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	edx, 254
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 72[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	edx, 238
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 76[r12]
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	edx, 254
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	edx, edx
	xor	esi, esi
	mov	edi, eax
	call	HeapValidate@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	r13d, DWORD PTR 64[r12]
	xor	eax, eax
	mov	DWORD PTR 64[r12], 204
	call	GetProcessHeap@PLT
	xor	edx, edx
	xor	esi, esi
	mov	edi, eax
	call	HeapValidate@PLT
	xor	edi, edi
	lea	rsi, .LC8[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	DWORD PTR 64[r12], r13d
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	xor	edx, edx
	mov	edi, eax
	call	HeapValidate@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	jmp	.L11
.L60:
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapValidate@PLT
	xor	edi, edi
	lea	rsi, .LC8[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_VALIDATE[rip], ebp
	jne	.L69
.L8:
	mov	DWORD PTR 68[r12], r13d
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapSize@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	cmp	eax, 17
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	ecx, 14
	mov	edi, eax
	call	HeapReAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC11[rip]
	test	rax, rax
	mov	r12, rax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L7
.L58:
	mov	edx, DWORD PTR 68[r12]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	edx, 171
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 72[r12]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	edx, 171
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR 76[r12]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	edx, 171
	sete	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L3
.L69:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapSize@PLT
	mov	edi, 1
	mov	r14d, eax
	cmp	eax, -1
	jne	.L70
.L9:
	mov	edx, r14d
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	ecx, 14
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapReAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC9[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	edi, 1
	test	eax, eax
	jne	.L71
.L10:
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	ok@PLT
	jmp	.L8
.L65:
	mov	DWORD PTR 12288148[r12], 204
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapValidate@PLT
	xor	edi, edi
	lea	rsi, .LC8[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	test	DWORD PTR HEAP_VALIDATE[rip], ebp
	jne	.L72
.L18:
	mov	DWORD PTR 12288148[r12], 171
	jmp	.L13
.L71:
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L10
.L70:
	xor	edi, edi
	call	broken@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	jmp	.L9
.L72:
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapSize@PLT
	xor	edi, edi
	lea	rsi, .LC3[rip]
	cmp	eax, -1
	mov	edx, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	ecx, 3072034
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	HeapReAlloc@PLT
	xor	edi, edi
	lea	rsi, .LC9[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	rdx, r12
	mov	edi, eax
	call	HeapFree@PLT
	xor	edi, edi
	lea	rsi, .LC10[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	test_heap_checks, .-test_heap_checks
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	HEAP_VALIDATE,4,4
	.comm	HEAP_TAIL_CHECKING_ENABLED,4,4
	.comm	HEAP_REALLOC_IN_PLACE_ONLY,4,4
	.comm	HEAP_PAGE_ALLOCS,4,4
	.comm	HEAP_FREE_CHECKING_ENABLED,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_heap.c_test_heap_checks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"testing heap flags %08x\012\000"
	.align	2
.LC1:
	.ascii	"HeapAlloc failed\012\000"
	.align	2
.LC2:
	.ascii	"HeapValidate failed\012\000"
	.align	2
.LC3:
	.ascii	"Wrong size %lu\012\000"
	.align	2
.LC4:
	.ascii	"wrong data %x\012\000"
	.align	2
.LC5:
	.ascii	"wrong padding %x\012\000"
	.align	2
.LC6:
	.ascii	"realloc in place failed\012\000"
	.align	2
.LC7:
	.ascii	"HeapFree failed\012\000"
	.align	2
.LC8:
	.ascii	"HeapValidate succeeded\012\000"
	.align	2
.LC9:
	.ascii	"HeapReAlloc succeeded\012\000"
	.align	2
.LC10:
	.ascii	"HeapFree succeeded\012\000"
	.align	2
.LC11:
	.ascii	"HeapReAlloc failed\012\000"
	.align	2
.LC12:
	.ascii	"only %lu tail bytes for size %lu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_heap_checks, %function
test_heap_checks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L65
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ands	r6, r0, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L65+4
	mov	r1, r0
	mov	r4, r0
	ldr	r0, .L65+8
	bl	trace
	bl	GetProcessHeap
	mov	r2, #17
	ldr	r1, [r7]
	bl	HeapAlloc
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L65+12
	bl	ok
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, r6
	bl	HeapValidate
	ldr	r1, .L65+16
	bl	ok
	bl	GetProcessHeap
	mov	r1, r6
	mov	r2, r5
	bl	HeapSize
	mov	r2, r0
	sub	r0, r0, #17
	clz	r0, r0
	ldr	r1, .L65+20
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #56]
	ldr	r1, .L65+24
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #60]
	ldr	r1, .L65+24
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #64]
	ldr	r6, .L65+28
	clz	r0, r2
	ldr	r1, .L65+24
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [r6]
	tst	r4, r3
	bne	.L51
.L3:
	bl	GetProcessHeap
	ldr	r2, .L65+32
	mov	r3, #14
	ldr	r1, [r2]
	mov	r2, r5
	bl	HeapReAlloc
	cmp	r5, r0
	beq	.L52
	ldr	r0, .L65+36
	bl	skip
.L6:
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	ldr	r1, .L65+40
	bl	ok
	bl	GetProcessHeap
	mov	r2, #17
	ldr	r1, [r7]
	bl	HeapAlloc
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L65+12
	bl	ok
	mov	r3, #204
	ldr	r2, [r6]
	ldr	r7, [r5, #68]
	tst	r4, r2
	str	r3, [r5, #68]
	bne	.L53
.L7:
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	ldr	r1, .L65+40
	bl	ok
	bl	GetProcessHeap
	mov	r2, #37
	mov	r1, #0
	bl	HeapAlloc
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L65+12
	bl	ok
	mov	r2, #37
	mov	r1, #204
	mov	r0, r5
	bl	memset
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	ldr	r1, .L65+40
	bl	ok
	ldr	r3, .L65+44
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L54
.L11:
	ldr	r5, .L65+48
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapAlloc
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L65+12
	bl	ok
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapValidate
	ldr	r1, .L65+16
	bl	ok
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapSize
	mov	r2, r0
	sub	r0, r0, r5
	clz	r0, r0
	add	r8, r7, #12255232
	ldr	r1, .L65+20
	add	r8, r8, #32768
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r8, #140]
	ldr	r1, .L65+24
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r8, #144]
	ldr	r1, .L65+24
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [r6]
	tst	r4, r3
	beq	.L13
	ldr	r2, [r8, #148]
	cmp	r2, #171
	moveq	r0, #1
	bne	.L55
.L14:
	ldr	r1, .L65+24
	bl	ok
	ldr	r2, [r8, #152]
	cmp	r2, #171
	moveq	r0, #1
	bne	.L56
.L15:
	ldr	r1, .L65+24
	bl	ok
	ldr	r2, [r8, #156]
	cmp	r2, #171
	moveq	r0, #1
	bne	.L57
.L16:
	ldr	r1, .L65+24
	bl	ok
	ldr	r3, [r8, #148]
	cmp	r3, #171
	beq	.L58
.L13:
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapFree
	ldr	r1, .L65+40
	bl	ok
	ldr	r3, [r6]
	tst	r4, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	mvn	r6, #3
	ldr	r7, .L65+52
.L23:
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapAlloc
	mov	r2, #0
	mov	r5, r0
	add	r3, r0, r6
	b	.L21
.L60:
	add	r2, r2, #1
	cmp	r2, #32
	beq	.L59
.L21:
	ldr	r1, [r3, #4]!
	cmp	r1, #171
	beq	.L60
	cmp	r2, #7
	movle	r0, #0
	movgt	r0, #1
.L22:
	mov	r3, r4
	mov	r1, r7
	bl	ok
	add	r4, r4, #1
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	cmp	r4, #64
	add	r6, r6, #4
	bne	.L23
	pop	{r4, r5, r6, r7, r8, pc}
.L59:
	mov	r0, #1
	b	.L22
.L52:
	ldr	r3, [r6]
	ldr	r2, [r5, #56]
	tst	r4, r3
	beq	.L5
	sub	r0, r2, #171
	clz	r0, r0
	ldr	r1, .L65+56
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #60]
	ldr	r1, .L65+56
	sub	r0, r2, #171
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #64]
	ldr	r1, .L65+56
	sub	r0, r2, #171
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	b	.L6
.L5:
	clz	r0, r2
	ldr	r1, .L65+56
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #60]
	ldr	r1, .L65+56
	clz	r0, r2
	lsr	r0, r0, #5
	bl	ok
	b	.L6
.L57:
	clz	r0, r2
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r2, [r8, #156]
	b	.L16
.L56:
	clz	r0, r2
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r2, [r8, #152]
	b	.L15
.L55:
	clz	r0, r2
	lsr	r0, r0, #5
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r2, [r8, #148]
	b	.L14
.L54:
	ldr	r2, [r5, #64]
	ldr	r1, .L65+24
	sub	r0, r2, #238
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #68]
	ldr	r1, .L65+24
	sub	r0, r2, #254
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #72]
	ldr	r1, .L65+24
	sub	r0, r2, #238
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #76]
	ldr	r1, .L65+24
	sub	r0, r2, #254
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	bl	GetProcessHeap
	mov	r2, #0
	mov	r1, r2
	bl	HeapValidate
	ldr	r1, .L65+16
	bl	ok
	mov	r3, #204
	ldr	r7, [r5, #64]
	str	r3, [r5, #64]
	bl	GetProcessHeap
	mov	r2, #0
	mov	r1, r2
	bl	HeapValidate
	clz	r0, r0
	ldr	r1, .L65+60
	lsr	r0, r0, #5
	bl	ok
	str	r7, [r5, #64]
	bl	GetProcessHeap
	mov	r2, #0
	mov	r1, r2
	bl	HeapValidate
	ldr	r1, .L65+16
	bl	ok
	b	.L11
.L53:
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapValidate
	clz	r0, r0
	ldr	r1, .L65+60
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L65+64
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L61
.L8:
	str	r7, [r5, #68]
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapSize
	mov	r2, r0
	sub	r0, r0, #17
	clz	r0, r0
	ldr	r1, .L65+20
	lsr	r0, r0, #5
	bl	ok
	bl	GetProcessHeap
	mov	r2, r5
	mov	r3, #14
	mov	r1, #0
	bl	HeapReAlloc
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L65+68
	bl	ok
	b	.L7
.L51:
	ldr	r2, [r5, #68]
	ldr	r1, .L65+56
	sub	r0, r2, #171
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #72]
	ldr	r1, .L65+56
	sub	r0, r2, #171
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r5, #76]
	ldr	r1, .L65+56
	sub	r0, r2, #171
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	b	.L3
.L61:
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapSize
	cmn	r0, #1
	mov	r8, r0
	moveq	r0, #1
	bne	.L62
.L9:
	mov	r2, r8
	ldr	r1, .L65+20
	bl	ok
	bl	GetProcessHeap
	mov	r3, #14
	mov	r2, r5
	mov	r1, #0
	bl	HeapReAlloc
	clz	r0, r0
	ldr	r1, .L65+72
	lsr	r0, r0, #5
	bl	ok
	bl	GetProcessHeap
	mov	r2, r5
	mov	r1, #0
	bl	HeapFree
	cmp	r0, #0
	moveq	r0, #1
	bne	.L63
.L10:
	ldr	r1, .L65+76
	bl	ok
	b	.L8
.L58:
	mov	r3, #204
	str	r3, [r8, #148]
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapValidate
	clz	r0, r0
	ldr	r1, .L65+60
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L65+64
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L64
.L18:
	mov	r3, #171
	str	r3, [r8, #148]
	b	.L13
.L63:
	mov	r0, #0
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	b	.L10
.L62:
	mov	r0, #0
	bl	broken
	subs	r0, r0, #0
	movne	r0, #1
	b	.L9
.L64:
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapSize
	cmn	r0, #1
	mov	r2, r0
	ldr	r1, .L65+20
	movne	r0, #0
	moveq	r0, #1
	bl	ok
	bl	GetProcessHeap
	mov	r2, r7
	ldr	r3, .L65+80
	mov	r1, #0
	bl	HeapReAlloc
	clz	r0, r0
	ldr	r1, .L65+72
	lsr	r0, r0, #5
	bl	ok
	bl	GetProcessHeap
	mov	r2, r7
	mov	r1, #0
	bl	HeapFree
	clz	r0, r0
	ldr	r1, .L65+76
	lsr	r0, r0, #5
	bl	ok
	b	.L18
.L66:
	.align	2
.L65:
	.word	HEAP_PAGE_ALLOCS
	.word	HEAP_ZERO_MEMORY
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	HEAP_TAIL_CHECKING_ENABLED
	.word	HEAP_REALLOC_IN_PLACE_ONLY
	.word	.LC6
	.word	.LC7
	.word	HEAP_FREE_CHECKING_ENABLED
	.word	3072037
	.word	.LC12
	.word	.LC5
	.word	.LC8
	.word	HEAP_VALIDATE
	.word	.LC11
	.word	.LC9
	.word	.LC10
	.word	3072034
	.size	test_heap_checks, .-test_heap_checks
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	HEAP_VALIDATE,4,4
	.comm	HEAP_TAIL_CHECKING_ENABLED,4,4
	.comm	HEAP_REALLOC_IN_PLACE_ONLY,4,4
	.comm	HEAP_PAGE_ALLOCS,4,4
	.comm	HEAP_FREE_CHECKING_ENABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
