	.file	"extr_sodium_utils2.c_xmain.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"OK\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR SIZE_MAX[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	edi, -1[rax]
	call	sodium_malloc@PLT
	test	rax, rax
	je	.L2
.L4:
	mov	eax, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	xor	edi, edi
	call	sodium_malloc@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR SIZE_MAX[rip]
	shr	esi
	lea	edi, 1[rsi]
	call	sodium_allocarray@PLT
	test	rax, rax
	jne	.L4
	xor	esi, esi
	xor	edi, edi
	xor	ebx, ebx
	call	sodium_allocarray@PLT
	mov	rdi, rax
	call	sodium_free@PLT
	mov	esi, 1
	xor	edi, edi
	call	sodium_allocarray@PLT
	mov	rdi, rax
	call	sodium_free@PLT
	xor	esi, esi
	mov	edi, 1
	call	sodium_allocarray@PLT
	mov	rdi, rax
	call	sodium_free@PLT
	mov	esi, 50
	mov	edi, 1000
	call	sodium_allocarray@PLT
	mov	edx, 50000
	xor	esi, esi
	mov	rbp, rax
	mov	rdi, rax
	call	memset@PLT
	mov	rdi, rbp
	call	sodium_free@PLT
	xor	edi, edi
	call	sodium_malloc@PLT
	mov	rdi, rax
	call	sodium_free@PLT
	xor	edi, edi
	call	sodium_free@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 100000
	call	randombytes_uniform@PLT
	lea	r12d, 1[rax]
	mov	rdi, r12
	call	sodium_malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	setne	dil
	call	assert@PLT
	mov	esi, ebx
	mov	rdx, r12
	mov	rdi, rbp
	call	memset@PLT
	mov	rdi, rbp
	add	ebx, 1
	call	sodium_mprotect_noaccess@PLT
	mov	rdi, rbp
	call	sodium_free@PLT
	cmp	ebx, 10000
	jne	.L5
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	edi, 100000
	call	randombytes_uniform@PLT
	lea	edi, 1[rax]
	call	sodium_malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	setne	dil
	call	assert@PLT
	mov	rdi, rbp
	call	sodium_mprotect_readonly@PLT
	mov	rdi, rbp
	call	sodium_mprotect_readwrite@PLT
	xor	edi, edi
	call	segv_handler@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	SIZE_MAX,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGBUS,4,4
	.comm	SIGABRT,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_sodium_utils2.c_xmain.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OK\012\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L12
	ldr	r0, [r4]
	sub	r0, r0, #1
	bl	sodium_malloc
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	sodium_malloc
	cmp	r0, #0
	beq	.L4
	ldr	r1, [r4]
	lsr	r1, r1, #1
	add	r0, r1, #1
	bl	sodium_allocarray
	subs	r6, r0, #0
	bne	.L4
	mov	r1, r6
	bl	sodium_allocarray
	bl	sodium_free
	mov	r1, #1
	mov	r0, r6
	bl	sodium_allocarray
	bl	sodium_free
	mov	r1, r6
	mov	r0, #1
	bl	sodium_allocarray
	bl	sodium_free
	mov	r1, #50
	mov	r0, #1000
	bl	sodium_allocarray
	mov	r4, r0
	mov	r1, r6
	ldr	r2, .L12+4
	bl	memset
	mov	r0, r4
	bl	sodium_free
	mov	r0, r6
	bl	sodium_malloc
	bl	sodium_free
	mov	r0, r6
	bl	sodium_free
	ldr	r8, .L12+8
	ldr	r7, .L12+12
.L5:
	mov	r0, r8
	bl	randombytes_uniform
	add	r5, r0, #1
	mov	r0, r5
	bl	sodium_malloc
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r1, r6
	mov	r2, r5
	mov	r0, r4
	bl	memset
	mov	r0, r4
	bl	sodium_mprotect_noaccess
	add	r6, r6, #1
	mov	r0, r4
	bl	sodium_free
	cmp	r6, r7
	bne	.L5
	ldr	r0, .L12+16
	bl	printf
	ldr	r0, .L12+8
	bl	randombytes_uniform
	add	r0, r0, #1
	bl	sodium_malloc
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r0, r4
	bl	sodium_mprotect_readonly
	mov	r0, r4
	bl	sodium_mprotect_readwrite
	mov	r0, #0
	bl	segv_handler
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	SIZE_MAX
	.word	50000
	.word	100000
	.word	10000
	.word	.LC0
	.size	main, .-main
	.comm	SIZE_MAX,4,4
	.comm	SIGSEGV,4,4
	.comm	SIGBUS,4,4
	.comm	SIGABRT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
