	.file	"643256.c"
	.intel_syntax noprefix
	.text
	.globl	NUM_FMT
	.section	.rodata
.LC0:
	.string	"%llu"
	.section	.data.rel.local,"aw"
	.align 8
	.type	NUM_FMT, @object
	.size	NUM_FMT, 8
NUM_FMT:
	.quad	.LC0
	.globl	help
	.section	.rodata
	.align 8
.LC1:
	.string	"\ntestnum [bit|pow|max] num1 num2\n\n"
	.section	.data.rel.local
	.align 8
	.type	help, @object
	.size	help, 8
help:
	.quad	.LC1
	.section	.rodata
.LC2:
	.string	"\r"
	.text
	.globl	say
	.type	say, @function
say:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR NUM_FMT[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	say, .-say
	.globl	tonum
	.type	tonum, @function
tonum:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L4
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L4
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	add	rax, rdx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -8[rbp]
.L5:
	mov	QWORD PTR -8[rbp], rax
	add	QWORD PTR -24[rbp], 1
.L3:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	tonum, .-tonum
	.globl	isnum
	.type	isnum, @function
isnum:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L9
.L13:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L10
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	DWORD PTR -4[rbp], eax
	add	QWORD PTR -24[rbp], 1
.L9:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	cmp	DWORD PTR -4[rbp], 0
	jne	.L13
.L12:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isnum, .-isnum
	.globl	power2min1
	.type	power2min1, @function
power2min1:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -16[rbp], 1
	mov	QWORD PTR -8[rbp], 1
	jmp	.L16
.L18:
	sal	QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], 1
.L16:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	ja	.L17
	cmp	QWORD PTR -24[rbp], 64
	jbe	.L18
.L17:
	sub	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	power2min1, .-power2min1
	.globl	power2
	.type	power2, @function
power2:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -16[rbp], 1
	mov	QWORD PTR -8[rbp], 1
	jmp	.L21
.L23:
	sal	QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], 1
.L21:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	ja	.L22
	cmp	QWORD PTR -24[rbp], 64
	jbe	.L23
.L22:
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	power2, .-power2
	.globl	maxval
	.type	maxval, @function
maxval:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], -1
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	maxval, .-maxval
	.section	.rodata
.LC3:
	.string	"?"
.LC4:
	.string	"bit"
.LC5:
	.string	"pow"
.LC6:
	.string	"max"
	.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -309[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	cmp	DWORD PTR -324[rbp], 1
	jg	.L28
	mov	DWORD PTR -308[rbp], 9
.L28:
	mov	BYTE PTR -309[rbp], 1
	jmp	.L29
.L36:
	movzx	eax, BYTE PTR -309[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	isnum
	test	eax, eax
	je	.L30
	cmp	QWORD PTR -296[rbp], 0
	jne	.L31
	movzx	eax, BYTE PTR -309[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	tonum
	mov	QWORD PTR -296[rbp], rax
	jmp	.L32
.L31:
	cmp	QWORD PTR -288[rbp], 0
	jne	.L32
	movzx	eax, BYTE PTR -309[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	tonum
	mov	QWORD PTR -288[rbp], rax
	jmp	.L32
.L30:
	movzx	eax, BYTE PTR -309[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	DWORD PTR -308[rbp], 9
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strcmpi@PLT
	test	eax, eax
	jne	.L34
	mov	DWORD PTR -308[rbp], 6
	jmp	.L32
.L34:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strcmpi@PLT
	test	eax, eax
	jne	.L35
	mov	DWORD PTR -308[rbp], 5
	jmp	.L32
.L35:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	strcmpi@PLT
	test	eax, eax
	jne	.L32
	mov	DWORD PTR -308[rbp], 4
.L32:
	movzx	eax, BYTE PTR -309[rbp]
	add	eax, 1
	mov	BYTE PTR -309[rbp], al
.L29:
	movzx	eax, BYTE PTR -309[rbp]
	cmp	DWORD PTR -324[rbp], eax
	jg	.L36
	cmp	DWORD PTR -308[rbp], 9
	jne	.L37
	mov	rax, QWORD PTR help[rip]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L50
.L37:
	cmp	DWORD PTR -308[rbp], 6
	jne	.L39
	mov	rax, QWORD PTR -288[rbp]
	cmp	rax, QWORD PTR -296[rbp]
	jnb	.L40
	mov	QWORD PTR -288[rbp], 64
.L40:
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -304[rbp], rax
	jmp	.L41
.L43:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	power2min1
	mov	rdi, rax
	call	say
	add	QWORD PTR -304[rbp], 1
.L41:
	mov	rax, QWORD PTR -304[rbp]
	cmp	rax, QWORD PTR -288[rbp]
	ja	.L42
	cmp	QWORD PTR -304[rbp], 64
	jbe	.L43
.L42:
	mov	eax, 0
	jmp	.L50
.L39:
	cmp	DWORD PTR -308[rbp], 5
	jne	.L44
	mov	rax, QWORD PTR -288[rbp]
	cmp	rax, QWORD PTR -296[rbp]
	jnb	.L45
	mov	QWORD PTR -288[rbp], 64
.L45:
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -304[rbp], rax
	jmp	.L46
.L48:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	power2
	mov	rdi, rax
	call	say
	add	QWORD PTR -304[rbp], 1
.L46:
	mov	rax, QWORD PTR -304[rbp]
	cmp	rax, QWORD PTR -288[rbp]
	ja	.L47
	cmp	QWORD PTR -304[rbp], 64
	jbe	.L48
.L47:
	mov	eax, 0
	jmp	.L50
.L44:
	cmp	DWORD PTR -308[rbp], 4
	jne	.L49
	mov	eax, 0
	call	maxval
	mov	rdi, rax
	call	say
	mov	eax, 0
	jmp	.L50
.L49:
	mov	eax, 0
.L50:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	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	"643256.c"
	.text
	.global	NUM_FMT
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu\000"
	.data
	.align	2
	.type	NUM_FMT, %object
	.size	NUM_FMT, 4
NUM_FMT:
	.word	.LC0
	.global	help
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012testnum [bit|pow|max] num1 num2\012\012\000"
	.data
	.align	2
	.type	help, %object
	.size	help, 4
help:
	.word	.LC1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\015\000"
	.text
	.align	2
	.global	say
	.syntax unified
	.arm
	.fpu softvfp
	.type	say, %function
say:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, .L2
	ldr	r1, [r3]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r1
	bl	printf
	ldr	r0, .L2+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	NUM_FMT
	.word	.LC2
	.size	say, .-say
	.align	2
	.global	tonum
	.syntax unified
	.arm
	.fpu softvfp
	.type	tonum, %function
tonum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #20
	str	r0, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L5
.L8:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L6
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L6
	sub	r7, fp, #36
	ldmia	r7, {r6-r7}
	mov	r2, r6
	mov	r3, r7
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r6
	adc	r3, r3, r7
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r2, r3
	asr	r3, r2, #31
	adds	r4, r0, r2
	adc	r5, r1, r3
	b	.L7
.L6:
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
.L7:
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L5:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	tonum, .-tonum
	.align	2
	.global	isnum
	.syntax unified
	.arm
	.fpu softvfp
	.type	isnum, %function
isnum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L11
.L15:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L12
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L12
	mov	r3, #1
	b	.L13
.L12:
	mov	r3, #0
.L13:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
.L14:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	isnum, .-isnum
	.align	2
	.global	power2min1
	.syntax unified
	.arm
	.fpu softvfp
	.type	power2min1, %function
power2min1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L18
.L20:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r2, r2
	adc	r7, r3, r3
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
.L18:
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L19
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #64
	bls	.L20
.L19:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	power2min1, .-power2min1
	.align	2
	.global	power2
	.syntax unified
	.arm
	.fpu softvfp
	.type	power2, %function
power2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, fp}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L23
.L25:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r2, r2
	adc	r5, r3, r3
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-28]
	str	r7, [fp, #-24]
.L23:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L24
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #64
	bls	.L25
.L24:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, fp}
	bx	lr
	.size	power2, .-power2
	.align	2
	.global	maxval
	.syntax unified
	.arm
	.fpu softvfp
	.type	maxval, %function
maxval:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	maxval, .-maxval
	.section	.rodata
	.align	2
.LC3:
	.ascii	"?\000"
	.align	2
.LC4:
	.ascii	"bit\000"
	.align	2
.LC5:
	.ascii	"pow\000"
	.align	2
.LC6:
	.ascii	"max\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #312
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-317]
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-300]
	str	r3, [fp, #-296]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-328]
	cmp	r3, #1
	bgt	.L30
	mov	r3, #9
	str	r3, [fp, #-316]
.L30:
	mov	r3, #1
	strb	r3, [fp, #-317]
	b	.L31
.L38:
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-332]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	isnum
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L33
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-332]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	tonum
	str	r0, [fp, #-300]
	str	r1, [fp, #-296]
	b	.L34
.L33:
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L34
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-332]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	tonum
	str	r0, [fp, #-292]
	str	r1, [fp, #-288]
	b	.L34
.L32:
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-332]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-312]
	ldr	r1, .L54+4
	ldr	r0, [fp, #-312]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r3, #9
	str	r3, [fp, #-316]
	b	.L34
.L35:
	ldr	r1, .L54+8
	ldr	r0, [fp, #-312]
	bl	strcmpi
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	mov	r3, #6
	str	r3, [fp, #-316]
	b	.L34
.L36:
	ldr	r1, .L54+12
	ldr	r0, [fp, #-312]
	bl	strcmpi
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	mov	r3, #5
	str	r3, [fp, #-316]
	b	.L34
.L37:
	ldr	r1, .L54+16
	ldr	r0, [fp, #-312]
	bl	strcmpi
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	mov	r3, #4
	str	r3, [fp, #-316]
.L34:
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-317]
.L31:
	ldrb	r3, [fp, #-317]	@ zero_extendqisi2
	ldr	r2, [fp, #-328]
	cmp	r2, r3
	bgt	.L38
	ldr	r3, [fp, #-316]
	cmp	r3, #9
	bne	.L39
	ldr	r3, .L54+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	printf
	mov	r3, #1
	b	.L52
.L39:
	ldr	r3, [fp, #-316]
	cmp	r3, #6
	bne	.L41
	sub	r1, fp, #292
	ldmia	r1, {r0-r1}
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L42
	mov	r2, #64
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
.L42:
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	b	.L43
.L45:
	sub	r1, fp, #308
	ldmia	r1, {r0-r1}
	bl	power2min1
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	say
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-308]
	str	r7, [fp, #-304]
.L43:
	sub	r1, fp, #308
	ldmia	r1, {r0-r1}
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L44
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #64
	bls	.L45
.L44:
	mov	r3, #0
	b	.L52
.L41:
	ldr	r3, [fp, #-316]
	cmp	r3, #5
	bne	.L46
	sub	r1, fp, #292
	ldmia	r1, {r0-r1}
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L47
	mov	r2, #64
	mov	r3, #0
	str	r2, [fp, #-292]
	str	r3, [fp, #-288]
.L47:
	sub	r3, fp, #300
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-308]
	str	r3, [fp, #-304]
	b	.L48
.L50:
	sub	r1, fp, #308
	ldmia	r1, {r0-r1}
	bl	power2
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	say
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-308]
	str	r5, [fp, #-304]
.L48:
	sub	r1, fp, #308
	ldmia	r1, {r0-r1}
	sub	r3, fp, #292
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L49
	sub	r3, fp, #308
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #64
	bls	.L50
.L49:
	mov	r3, #0
	b	.L52
.L46:
	ldr	r3, [fp, #-316]
	cmp	r3, #4
	bne	.L51
	bl	maxval
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	say
	mov	r3, #0
	b	.L52
.L51:
	mov	r3, #0
.L52:
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	help
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
