	.file	"744715.c"
	.intel_syntax noprefix
	.text
	.globl	flg
	.bss
	.align 8
	.type	flg, @object
	.size	flg, 8
flg:
	.zero	8
	.text
	.globl	sub
	.type	sub, @function
sub:
.LFB0:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	cmp	DWORD PTR -36[rbp], 1
	jle	.L2
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	call	sub
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	mov	edi, eax
	call	sub
	add	rax, rax
	lea	rdx, [rbx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	imul	rax, rdx
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	mov	edi, eax
	call	sub
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	call	sub
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax
	add	eax, edx
	cdqe
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
.L4:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	sub, .-sub
	.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
	mov	edi, 30
	call	sub
	cmp	rax, 832040
	je	.L6
	mov	rax, QWORD PTR flg[rip]
	or	ah, 1
	mov	QWORD PTR flg[rip], rax
.L6:
	mov	rax, QWORD PTR flg[rip]
	test	rax, rax
	je	.L7
	call	abort@PLT
.L7:
	mov	edi, 0
	call	exit@PLT
	.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	"744715.c"
	.text
	.global	flg
	.bss
	.align	2
	.type	flg, %object
	.size	flg, 4
flg:
	.space	4
	.text
	.align	2
	.global	sub
	.syntax unified
	.arm
	.fpu softvfp
	.type	sub, %function
sub:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	sub
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	mov	r0, r3
	bl	sub
	mov	r3, r0
	lsl	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	bl	sub
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	sub
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	mul	r2, r3, r3
	ldr	r3, [fp, #-8]
	mov	r1, r3
	mul	r1, r3, r1
	mov	r3, r1
	add	r3, r2, r3
	b	.L4
.L2:
	ldr	r3, [fp, #-16]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sub, .-sub
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #30
	bl	sub
	mov	r3, r0
	ldr	r2, .L8
	cmp	r3, r2
	beq	.L6
	ldr	r3, .L8+4
	ldr	r3, [r3]
	orr	r3, r3, #256
	ldr	r2, .L8+4
	str	r3, [r2]
.L6:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	bl	abort
.L7:
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	832040
	.word	flg
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
