	.file	"extr_scrypt_platform.c_escrypt_alloc_region.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	escrypt_alloc_region
	.type	escrypt_alloc_region, @function
escrypt_alloc_region:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	rsi, -64
	ja	.L8
	lea	rdi, 63[rsi]
	mov	rbx, rsi
	call	malloc@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L4
	lea	rax, 63[rax]
	mov	QWORD PTR 16[rbp], rdx
	and	rax, -64
	mov	QWORD PTR 8[rbp], rax
.L3:
	mov	QWORD PTR 0[rbp], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	xor	ebx, ebx
	mov	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 8[rdi], 0
	mov	DWORD PTR errno[rip], eax
	xor	eax, eax
	mov	QWORD PTR 0[rbp], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	QWORD PTR 16[rbp], 0
	xor	eax, eax
	xor	ebx, ebx
	mov	QWORD PTR 8[rbp], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	escrypt_alloc_region, .-escrypt_alloc_region
	.comm	errno,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_POPULATE,4,4
	.comm	MAP_NOCORE,4,4
	.comm	MAP_FAILED,8,8
	.comm	MAP_ANON,4,4
	.comm	ENOMEM,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_scrypt_platform.c_escrypt_alloc_region.c"
	.text
	.align	2
	.global	escrypt_alloc_region
	.syntax unified
	.arm
	.fpu softvfp
	.type	escrypt_alloc_region, %function
escrypt_alloc_region:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmn	r1, #64
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bhi	.L8
	add	r0, r1, #63
	mov	r4, r1
	bl	malloc
	subs	r3, r0, #0
	beq	.L4
	add	r0, r3, #63
	bic	r0, r0, #63
	stmib	r5, {r0, r3}
.L3:
	str	r4, [r5]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r3, #0
	mov	r4, r3
	ldr	r1, .L9
	ldr	r2, .L9+4
	ldr	r1, [r1]
	mov	r0, r3
	str	r1, [r2]
	str	r3, [r5, #8]
	str	r3, [r5, #4]
	str	r4, [r5]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r3
	mov	r4, r3
	str	r3, [r5, #8]
	str	r3, [r5, #4]
	b	.L3
.L10:
	.align	2
.L9:
	.word	ENOMEM
	.word	errno
	.size	escrypt_alloc_region, .-escrypt_alloc_region
	.comm	errno,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_POPULATE,4,4
	.comm	MAP_NOCORE,4,4
	.comm	MAP_FAILED,4,4
	.comm	MAP_ANON,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
