	.file	"153102.c"
	.intel_syntax noprefix
	.text
	.globl	nowplayer
	.bss
	.align 4
	.type	nowplayer, @object
	.size	nowplayer, 4
nowplayer:
	.zero	4
	.globl	player
	.align 32
	.type	player, @object
	.size	player, 128
player:
	.zero	128
	.text
	.globl	summon
	.type	summon, @function
summon:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -44[rbp], rsi
	mov	rax, QWORD PTR -44[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR nowplayer[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip]
	mov	rax, QWORD PTR 4[rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR nowplayer[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 0[0+rax*8]
	lea	rdx, player[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 4[rcx+rdx], rax
	add	DWORD PTR -36[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 5
	jle	.L3
	mov	eax, DWORD PTR nowplayer[rip]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 0[0+rax*8]
	lea	rdx, player[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 4[rcx+rdx], rax
	mov	eax, DWORD PTR nowplayer[rip]
	movsx	rdx, eax
	mov	rcx, rdx
	sal	rcx, 6
	lea	rdx, player[rip+60]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip+60]
	mov	DWORD PTR [rdx+rax], ecx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	summon, .-summon
	.globl	move
	.type	move, @function
move:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 0[0+rax*8]
	lea	rdx, player[rip]
	movsx	rsi, esi
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rsi
	lea	rsi, 0[0+rax*8]
	lea	rax, player[rip]
	mov	rax, QWORD PTR 4[rsi+rax]
	mov	QWORD PTR 4[rcx+rdx], rax
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip+60]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip+60]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip+60]
	mov	DWORD PTR [rdx+rax], ecx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	move, .-move
	.globl	attack
	.type	attack, @function
attack:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR nowplayer[rip]
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -4[rbp], 1
	jmp	.L9
.L8:
	mov	DWORD PTR -4[rbp], 0
.L9:
	cmp	DWORD PTR -24[rbp], -1
	jne	.L10
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR nowplayer[rip]
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rcx, ecx
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, player[rip+8]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	lea	rax, player[rip]
	mov	DWORD PTR [rdx+rax], ecx
	jmp	.L7
.L10:
	mov	eax, DWORD PTR nowplayer[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	lea	rax, player[rip+8]
	mov	esi, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR nowplayer[rip]
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR nowplayer[rip]
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rcx, ecx
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, player[rip+8]
	mov	edx, DWORD PTR [rcx+rdx]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR nowplayer[rip]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jg	.L12
	mov	edx, DWORD PTR nowplayer[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	move
.L12:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jg	.L7
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	move
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	attack, .-attack
	.globl	end
	.type	end, @function
end:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR nowplayer[rip]
	test	eax, eax
	jne	.L14
	mov	DWORD PTR nowplayer[rip], 1
	jmp	.L16
.L14:
	mov	DWORD PTR nowplayer[rip], 0
.L16:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	end, .-end
	.globl	func
	.type	func, @function
func:
.LFB4:
	.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	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rsi, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	strncat@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rsi, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rsi, rdx
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"summon"
.LC3:
	.string	"%d %d %d"
.LC4:
	.string	"attack"
.LC5:
	.string	"%d %d"
.LC6:
	.string	"end"
.LC7:
	.string	"%d\n"
.LC8:
	.string	"%d "
.LC9:
	.string	"\n%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR nowplayer[rip], 0
	mov	DWORD PTR player[rip], 30
	mov	DWORD PTR player[rip+64], 30
	mov	DWORD PTR player[rip+60], 0
	mov	DWORD PTR player[rip+124], 0
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L19
.L27:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -18[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	lea	rdx, -28[rbp]
	lea	rax, -28[rbp]
	lea	rsi, 4[rax]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -28[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	summon
	jmp	.L21
.L20:
	lea	rax, -18[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	lea	rdx, -28[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	attack
	mov	eax, DWORD PTR player[rip]
	test	eax, eax
	jg	.L23
	mov	DWORD PTR -44[rbp], 1
	jmp	.L26
.L23:
	mov	eax, DWORD PTR player[rip+64]
	test	eax, eax
	jg	.L21
	mov	DWORD PTR -44[rbp], -1
	jmp	.L26
.L22:
	lea	rax, -18[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	eax, 0
	call	end
.L21:
	add	DWORD PTR -40[rbp], 1
.L19:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jl	.L27
.L26:
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR player[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR player[rip+60]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L28:
	mov	eax, DWORD PTR player[rip+60]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L29
	mov	eax, DWORD PTR player[rip+64]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR player[rip+124]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, 8
	lea	rdx, 0[0+rax*8]
	lea	rax, player[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L30:
	mov	eax, DWORD PTR player[rip+124]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L31
	mov	eax, 0
	call	func
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"153102.c"
	.text
	.comm	nowplayer,4,4
	.comm	player,128,4
	.align	2
	.global	summon
	.syntax unified
	.arm
	.fpu softvfp
	.type	summon, %function
summon:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	sub	r3, fp, #40
	stm	r3, {r1, r2}
	sub	r3, fp, #20
	sub	r2, fp, #40
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L2
.L3:
	sub	r3, fp, #12
	sub	r2, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	sub	r2, fp, #20
	add	r3, r3, #4
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	sub	r2, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	ble	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r1, .L4+4
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	add	r3, r3, #4
	sub	r2, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r1, .L4+4
	lsl	r3, r2, #6
	add	r3, r1, r3
	ldr	r3, [r3, #60]
	add	r1, r3, #1
	ldr	r0, .L4+4
	lsl	r3, r2, #6
	add	r3, r0, r3
	str	r1, [r3, #60]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	nowplayer
	.word	player
	.size	summon, .-summon
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r0, .L9
	ldr	r2, [fp, #-20]
	lsl	r1, r2, #3
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	lsl	r2, r2, #3
	add	r2, r0, r2
	ldr	r0, .L9
	ldr	r1, [fp, #-20]
	lsl	r1, r1, #3
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r2, r2, #4
	add	r3, r3, #4
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, .L9
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #6
	add	r3, r2, r3
	ldr	r3, [r3, #60]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L8
	ldr	r2, .L9
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #6
	add	r3, r2, r3
	ldr	r3, [r3, #60]
	sub	r2, r3, #1
	ldr	r1, .L9
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #6
	add	r3, r1, r3
	str	r2, [r3, #60]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	player
	.size	move, .-move
	.align	2
	.global	attack
	.syntax unified
	.arm
	.fpu softvfp
	.type	attack, %function
attack:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L12:
	mov	r3, #0
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L14
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #6]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r0, .L17+4
	lsl	r1, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	sub	r2, r2, r3
	ldr	r1, .L17+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #6]
	b	.L11
.L14:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r1, .L17+4
	lsl	r2, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	ldr	r0, .L17+4
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r2, [r3, #8]
	ldr	r3, .L17
	ldr	r3, [r3]
	sub	r2, r1, r2
	ldr	r0, .L17+4
	lsl	r1, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r2, [r3, #4]
	ldr	r1, .L17+4
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r2, [r3, #4]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r0, .L17+4
	lsl	r1, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	sub	r2, r2, r3
	ldr	r0, .L17+4
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-20]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r0, r3
	str	r2, [r3, #4]
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r1, .L17+4
	lsl	r2, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L16
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	move
.L16:
	ldr	r1, .L17+4
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L11
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	move
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	nowplayer
	.word	player
	.size	attack, .-attack
	.align	2
	.global	end
	.syntax unified
	.arm
	.fpu softvfp
	.type	end, %function
end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L23
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L20:
	ldr	r3, .L23
	mov	r2, #0
	str	r2, [r3]
.L22:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	nowplayer
	.size	end, .-end
	.align	2
	.global	func
	.syntax unified
	.arm
	.fpu softvfp
	.type	func, %function
func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r0, r3
	bl	strncat
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	func, .-func
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"summon\000"
	.align	2
.LC3:
	.ascii	"%d %d %d\000"
	.align	2
.LC4:
	.ascii	"attack\000"
	.align	2
.LC5:
	.ascii	"%d %d\000"
	.align	2
.LC6:
	.ascii	"end\000"
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.align	2
.LC8:
	.ascii	"%d \000"
	.align	2
.LC9:
	.ascii	"\012%d\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, .L42+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L42+8
	mov	r2, #30
	str	r2, [r3]
	ldr	r3, .L42+8
	mov	r2, #30
	str	r2, [r3, #64]
	ldr	r3, .L42+8
	mov	r2, #0
	str	r2, [r3, #60]
	ldr	r3, .L42+8
	mov	r2, #0
	str	r2, [r3, #124]
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L42+12
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L27
.L35:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L42+16
	bl	__isoc99_scanf
	sub	r3, fp, #20
	ldr	r1, .L42+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	sub	r0, fp, #28
	sub	r3, fp, #28
	add	r2, r3, #4
	sub	r1, fp, #48
	mov	r3, r0
	ldr	r0, .L42+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	sub	r0, r3, #1
	sub	r3, fp, #28
	ldm	r3, {r1, r2}
	bl	summon
	b	.L29
.L28:
	sub	r3, fp, #20
	ldr	r1, .L42+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	sub	r2, fp, #28
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L42+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	attack
	ldr	r3, .L42+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L31
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L34
.L31:
	ldr	r3, .L42+8
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bgt	.L29
	mvn	r3, #0
	str	r3, [fp, #-44]
	b	.L34
.L30:
	sub	r3, fp, #20
	ldr	r1, .L42+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	bl	end
.L29:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L27:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L35
.L34:
	ldr	r1, [fp, #-44]
	ldr	r0, .L42+40
	bl	printf
	ldr	r3, .L42+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+40
	bl	printf
	ldr	r3, .L42+8
	ldr	r3, [r3, #60]
	mov	r1, r3
	ldr	r0, .L42+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L36
.L37:
	ldr	r2, .L42+8
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L42+44
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L36:
	ldr	r3, .L42+8
	ldr	r3, [r3, #60]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L42+8
	ldr	r3, [r3, #64]
	mov	r1, r3
	ldr	r0, .L42+48
	bl	printf
	ldr	r3, .L42+8
	ldr	r3, [r3, #124]
	mov	r1, r3
	ldr	r0, .L42+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L38
.L39:
	ldr	r2, .L42+8
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L42+44
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L38:
	ldr	r3, .L42+8
	ldr	r3, [r3, #124]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L39
	bl	func
	mov	r3, #0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC10
	.word	nowplayer
	.word	player
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
