	.file	"extr_NtAllocateVirtualMemory.c_CheckSize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"NtAllocateVirtualMemory failed!\n"
	.align 8
.LC1:
	.string	"Got back wrong base address: %p\n"
	.align 8
.LC2:
	.string	"Alloc of 0x%Ix: got back wrong size: 0x%Ix, expected 0x%Ix\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"NtFreeVirtualMemory failed!\n"
	.text
	.p2align 4
	.globl	CheckSize
	.type	CheckSize, @function
CheckSize:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	xor	bx, bx
	movsx	rbx, ebx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR PAGE_NOACCESS[rip]
	mov	r15d, DWORD PTR MEM_RESERVE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movsx	rax, edi
	mov	QWORD PTR 32[rsp], rsi
	lea	r14, 32[rsp]
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 24[rsp]
	mov	DWORD PTR 12[rsp], r9d
	call	NtCurrentProcess@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r8d, r15d
	mov	rcx, r14
	xor	edx, edx
	mov	rsi, r13
	mov	edi, eax
	call	NtAllocateVirtualMemory@PLT
	mov	edi, eax
	call	NT_SUCCESS@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	rdx, QWORD PTR 24[rsp]
	xor	edi, edi
	lea	rsi, .LC1[rip]
	cmp	rbx, rdx
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	rcx, QWORD PTR 32[rsp]
	xor	edi, edi
	mov	r8, rbp
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	cmp	rcx, rbp
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	r12d, DWORD PTR MEM_RELEASE[rip]
	xor	eax, eax
	call	NtCurrentProcess@PLT
	mov	rdx, r14
	mov	rsi, r13
	mov	ecx, r12d
	mov	edi, eax
	call	NtFreeVirtualMemory@PLT
	mov	edi, eax
	call	NT_SUCCESS@PLT
	lea	rsi, .LC3[rip]
	mov	edi, eax
	xor	eax, eax
	call	ok@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CheckSize, .-CheckSize
	.comm	PAGE_NOACCESS,4,4
	.comm	MEM_RESERVE,4,4
	.comm	MEM_RELEASE,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_NtAllocateVirtualMemory.c_CheckSize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NtAllocateVirtualMemory failed!\012\000"
	.align	2
.LC1:
	.ascii	"Got back wrong base address: %p\012\000"
	.align	2
.LC2:
	.ascii	"Alloc of 0x%Ix: got back wrong size: 0x%Ix, expecte"
	.ascii	"d 0x%Ix\012\000"
	.align	2
.LC3:
	.ascii	"NtFreeVirtualMemory failed!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CheckSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckSize, %function
CheckSize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #24
	ldr	r3, .L6
	str	r1, [sp, #16]
	str	r0, [sp, #12]
	mov	r5, r2
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	NtCurrentProcess
	ldr	r2, .L6+4
	ldr	r3, .L6+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r1, sp, #12
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #0
	add	r3, sp, #16
	bl	NtAllocateVirtualMemory
	bl	NT_SUCCESS
	ldr	r1, .L6+12
	bl	ok
	ldr	r2, [sp, #12]
	lsr	r0, r4, #16
	lsl	r0, r0, #16
	sub	r0, r0, r2
	clz	r0, r0
	ldr	r1, .L6+16
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, [sp, #16]
	mov	r2, r6
	sub	r0, r3, r5
	clz	r0, r0
	ldr	r1, .L6+20
	str	r5, [sp]
	lsr	r0, r0, #5
	bl	ok
	bl	NtCurrentProcess
	ldr	r3, .L6+24
	add	r2, sp, #16
	ldr	r3, [r3]
	add	r1, sp, #12
	bl	NtFreeVirtualMemory
	bl	NT_SUCCESS
	ldr	r1, .L6+28
	bl	ok
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	PAGE_NOACCESS
	.word	MEM_RESERVE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	MEM_RELEASE
	.word	.LC3
	.size	CheckSize, .-CheckSize
	.comm	PAGE_NOACCESS,4,4
	.comm	MEM_RESERVE,4,4
	.comm	MEM_RELEASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
