	.file	"757938.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s SIZE_MIB\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"fatal: invalid SIZE_MIB: %s\n"
.LC2:
	.string	"fatal: integer overflow"
.LC3:
	.string	"testing %ld MiB\n"
.LC4:
	.string	"fatal: malloc failed"
	.align 8
.LC5:
	.string	"warning: could not lock memory"
.LC6:
	.string	"filling"
.LC7:
	.string	"verifying"
	.align 8
.LC8:
	.string	"fatal: mismatch at offset %ld: want=0x%08x have=0x%08x\n"
.LC9:
	.string	"ok"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	je	.L3
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L3:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jle	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L5
.L4:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L5:
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, 0
	mov	rdx, rax
	sal	rdx, 20
	shr	rax, 44
	test	rax, rax
	je	.L6
	mov	ecx, 1
.L6:
	mov	rax, rdx
	mov	QWORD PTR -72[rbp], rax
	mov	rax, rcx
	mov	BYTE PTR -81[rbp], al
	and	BYTE PTR -81[rbp], 1
	cmp	BYTE PTR -81[rbp], 0
	je	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	edi, 3
	call	mlockall@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	je	.L10
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L10:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	srand@PLT
	mov	rax, QWORD PTR -72[rbp]
	shr	rax, 2
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	call	rand@PLT
	mov	DWORD PTR [rbx], eax
	add	QWORD PTR -64[rbp], 1
.L11:
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L12
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	call	srand@PLT
	mov	QWORD PTR -56[rbp], 0
	jmp	.L13
.L15:
	call	rand@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -76[rbp], eax
	je	.L14
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 0[0+rax*4]
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 2
	call	exit@PLT
.L14:
	add	QWORD PTR -56[rbp], 1
.L13:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L15
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"757938.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s SIZE_MIB\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"fatal: invalid SIZE_MIB: %s\012\000"
	.align	2
.LC2:
	.ascii	"fatal: integer overflow\000"
	.align	2
.LC3:
	.ascii	"testing %ld MiB\012\000"
	.align	2
.LC4:
	.ascii	"fatal: malloc failed\000"
	.align	2
.LC5:
	.ascii	"warning: could not lock memory\000"
	.align	2
.LC6:
	.ascii	"filling\000"
	.align	2
.LC7:
	.ascii	"verifying\000"
	.align	2
.LC8:
	.ascii	"fatal: mismatch at offset %ld: want=0x%08x have=0x%"
	.ascii	"08x\012\000"
	.align	2
.LC9:
	.ascii	"ok\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L5
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L5:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
.L6:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+4
	bl	printf
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L7:
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-36]
	mov	r2, #0
	lsl	r1, r3, #20
	lsr	r3, r3, #12
	cmp	r3, #0
	beq	.L8
	mov	r2, #1
.L8:
	mov	r3, r1
	str	r3, [fp, #-48]
	mov	r3, r2
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-49]
	and	r3, r3, #1
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L19+8
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r1, [fp, #-36]
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L19+16
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	mov	r0, #3
	bl	mlockall
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L19+20
	bl	perror
.L12:
	ldr	r0, .L19+24
	bl	puts
	mov	r0, #1
	bl	srand
	ldr	r3, [fp, #-48]
	lsr	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L13
.L14:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	bl	rand
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L13:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L14
	ldr	r0, .L19+28
	bl	puts
	mov	r0, #1
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L17:
	bl	rand
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L16
	ldr	r3, [fp, #-40]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r0, .L19+32
	bl	printf
	mov	r0, #2
	bl	exit
.L16:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L17
	ldr	r0, .L19+36
	bl	puts
	mov	r0, #0
	bl	exit
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
