	.file	"167329410.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"posix_memalign failed with err %d (EINVAL=%d,ENOMEM=%d)\n"
	.align 8
.LC1:
	.string	"Input params were align=%d, size=%d\n"
	.align 8
.LC2:
	.string	"posix_memalign failed to align to %zu: ptr=%p\n"
	.align 8
.LC3:
	.string	"posix_memaligned failed to return EINVAL for non-pow2!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -192[rbp], 4
	mov	QWORD PTR -184[rbp], 8
	mov	QWORD PTR -176[rbp], 16
	mov	QWORD PTR -168[rbp], 32
	mov	QWORD PTR -160[rbp], 64
	mov	QWORD PTR -152[rbp], 128
	mov	QWORD PTR -144[rbp], 256
	mov	QWORD PTR -136[rbp], 512
	mov	QWORD PTR -128[rbp], 1024
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 1
	mov	QWORD PTR -104[rbp], 2
	mov	QWORD PTR -96[rbp], 4
	mov	QWORD PTR -88[rbp], 8
	mov	QWORD PTR -80[rbp], 10
	mov	QWORD PTR -72[rbp], 16
	mov	QWORD PTR -64[rbp], 32
	mov	QWORD PTR -56[rbp], 64
	mov	QWORD PTR -48[rbp], 128
	mov	QWORD PTR -40[rbp], 256
	mov	QWORD PTR -32[rbp], 512
	mov	QWORD PTR -24[rbp], 1024
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -208[rbp], 0
	jmp	.L2
.L8:
	mov	DWORD PTR -208[rbp], 0
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	rdx, QWORD PTR -112[rbp+rax*8]
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rcx, QWORD PTR -192[rbp+rax*8]
	lea	rax, -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	posix_memalign@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -204[rbp]
	mov	r8d, 12
	mov	ecx, 22
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	rcx, QWORD PTR -112[rbp+rax*8]
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rdx, QWORD PTR -192[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L4:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rcx, QWORD PTR -192[rbp+rax*8]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	je	.L6
	mov	rcx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rdx, QWORD PTR -192[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L6:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -208[rbp], 1
.L3:
	mov	eax, DWORD PTR -208[rbp]
	cdqe
	mov	rax, QWORD PTR -112[rbp+rax*8]
	test	rax, rax
	jne	.L7
	add	DWORD PTR -212[rbp], 1
.L2:
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rax, QWORD PTR -192[rbp+rax*8]
	test	rax, rax
	jne	.L8
	lea	rax, -200[rbp]
	mov	edx, 20
	mov	esi, 7
	mov	rdi, rax
	call	posix_memalign@PLT
	cmp	eax, 22
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L11
.L9:
	lea	rax, -200[rbp]
	mov	edx, 20
	mov	esi, 7
	mov	rdi, rax
	call	posix_memalign@PLT
	cmp	eax, 22
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 55
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"167329410.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"posix_memalign failed with err %d (EINVAL=%d,ENOMEM"
	.ascii	"=%d)\012\000"
	.align	2
.LC3:
	.ascii	"Input params were align=%d, size=%d\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC4:
	.ascii	"posix_memalign failed to align to %zu: ptr=%p\012\000"
	.align	2
.LC5:
	.ascii	"posix_memaligned failed to return EINVAL for non-po"
	.ascii	"w2!\012\000"
	.align	2
.LC0:
	.word	4
	.word	8
	.word	16
	.word	32
	.word	64
	.word	128
	.word	256
	.word	512
	.word	1024
	.word	0
	.align	2
.LC1:
	.word	1
	.word	2
	.word	4
	.word	8
	.word	10
	.word	16
	.word	32
	.word	64
	.word	128
	.word	256
	.word	512
	.word	1024
	.word	0
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L13+4
	sub	ip, fp, #100
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L13+8
	sub	ip, fp, #60
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L2
.L8:
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L3
.L7:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-96]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-56]
	sub	r3, fp, #116
	mov	r0, r3
	bl	posix_memalign
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L13+12
	ldr	r0, [r3]
	mov	r3, #12
	str	r3, [sp]
	mov	r3, #22
	ldr	r2, [fp, #-104]
	ldr	r1, .L13+16
	bl	fprintf
	ldr	r3, .L13+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-96]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-56]
	ldr	r1, .L13+20
	bl	fprintf
	mov	r3, #1
	b	.L11
.L4:
	ldr	r3, [fp, #-116]
	mov	r2, r3
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-96]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L13+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-96]
	ldr	r3, [fp, #-116]
	ldr	r1, .L13+24
	bl	fprintf
	mov	r3, #1
	b	.L11
.L6:
	ldr	r3, [fp, #-116]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L3:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L2:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-96]
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #116
	mov	r2, #20
	mov	r1, #7
	mov	r0, r3
	bl	posix_memalign
	mov	r3, r0
	cmp	r3, #22
	beq	.L9
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L13+28
	bl	fwrite
	mov	r3, #1
	b	.L11
.L9:
	sub	r3, fp, #116
	mov	r2, #20
	mov	r1, #3
	mov	r0, r3
	bl	posix_memalign
	mov	r3, r0
	cmp	r3, #22
	beq	.L10
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #55
	mov	r1, #1
	ldr	r0, .L13+28
	bl	fwrite
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
