	.file	"437820.c"
	.intel_syntax noprefix
	.text
	.globl	array_offset
	.type	array_offset, @function
array_offset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, eax
	mov	DWORD PTR -260[rbp], eax
	mov	DWORD PTR -256[rbp], 0
	mov	DWORD PTR -252[rbp], 0
	mov	DWORD PTR -248[rbp], 8
	mov	DWORD PTR -244[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -240[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -232[rbp], rax
	jmp	.L3
.L6:
	mov	edx, DWORD PTR -252[rbp]
	lea	eax, 1[rdx]
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -248[rbp]
	cmp	eax, 47
	ja	.L4
	mov	rax, QWORD PTR -232[rbp]
	mov	ecx, DWORD PTR -248[rbp]
	mov	ecx, ecx
	add	rax, rcx
	mov	ecx, DWORD PTR -248[rbp]
	add	ecx, 8
	mov	DWORD PTR -248[rbp], ecx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -240[rbp]
	lea	rcx, 8[rax]
	mov	QWORD PTR -240[rbp], rcx
.L5:
	mov	ecx, DWORD PTR [rax]
	movsx	rax, edx
	mov	DWORD PTR -224[rbp+rax*4], ecx
.L3:
	mov	rax, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -252[rbp], eax
	jl	.L6
	jmp	.L7
.L10:
	sub	DWORD PTR -252[rbp], 1
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	edx, DWORD PTR -224[rbp+rax*4]
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, -4[rax]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jl	.L8
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	edx, DWORD PTR -224[rbp+rax*4]
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jg	.L8
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -260[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	lea	rcx, -4[rdx]
	mov	rdx, QWORD PTR -280[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, edx
	mov	DWORD PTR -256[rbp], eax
	mov	eax, DWORD PTR -252[rbp]
	cdqe
	mov	eax, DWORD PTR -224[rbp+rax*4]
	mov	edx, DWORD PTR -260[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	lea	rcx, -4[rdx]
	mov	rdx, QWORD PTR -280[rbp]
	add	rdx, rcx
	mov	edx, DWORD PTR [rdx]
	sub	eax, edx
	add	DWORD PTR -256[rbp], eax
	sub	DWORD PTR -260[rbp], 2
	jmp	.L7
.L8:
	mov	eax, -1
	jmp	.L11
.L7:
	cmp	DWORD PTR -260[rbp], 0
	jg	.L10
	mov	eax, DWORD PTR -256[rbp]
.L11:
	mov	rsi, QWORD PTR -184[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	array_offset, .-array_offset
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 3
	mov	DWORD PTR -44[rbp], 4
	mov	DWORD PTR -40[rbp], 6
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 5
	mov	DWORD PTR -28[rbp], -3
	mov	DWORD PTR -24[rbp], 3
	lea	rax, -48[rbp]
	mov	ecx, -1
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	mov	eax, 0
	call	array_offset
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"437820.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	array_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	array_offset, %function
array_offset:
	@ args = 4, pretend = 16, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, [fp, #4]
	str	r3, [fp, #-72]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	lsl	r3, r3, #1
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	add	r3, fp, #8
	str	r3, [fp, #-64]
	b	.L2
.L3:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	str	r2, [fp, #-52]
	ldr	r2, [fp, #-64]
	add	r1, r2, #4
	str	r1, [fp, #-64]
	ldr	r2, [r2]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-44]
.L2:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L3
	b	.L4
.L7:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-56]
	mul	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #-72]
	add	r3, r1, r3
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #2
	str	r3, [fp, #-60]
	b	.L4
.L5:
	mvn	r3, #0
	b	.L8
.L4:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, [fp, #-56]
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L11:
	.align	2
.L10:
	.word	.LC1
	.size	array_offset, .-array_offset
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC0:
	.word	3
	.word	4
	.word	6
	.word	1
	.word	5
	.word	-3
	.word	3
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L15+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	sub	r0, fp, #36
	mvn	r3, #0
	mov	r2, #1
	mov	r1, #4
	bl	array_offset
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
