	.file	"962673.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Battle Start!\n"
.LC1:
	.string	"Your HP: %d Enemy HP: %d\n"
.LC2:
	.string	"1 - Attack\n2 - Magic"
.LC3:
	.string	"\n\nSelect your move: "
.LC4:
	.string	"%d"
.LC6:
	.string	"\nYou attacked the enemy!"
.LC7:
	.string	"\nYou shocked the enemy!"
.LC8:
	.string	"You won!\n"
.LC9:
	.string	"The enemy attacked you!"
.LC10:
	.string	"You died!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 10
	mov	DWORD PTR -28[rbp], 20
	mov	DWORD PTR -24[rbp], 40
	mov	DWORD PTR -40[rbp], 10
	mov	DWORD PTR -20[rbp], 30
	mov	DWORD PTR -16[rbp], 40
	mov	DWORD PTR -12[rbp], 25
	mov	DWORD PTR -36[rbp], 10
	mov	DWORD PTR -44[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L8:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L3
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -36[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -32[rbp]
	pxor	xmm3, xmm3
	cvtsi2ss	xmm3, DWORD PTR -16[rbp]
	movaps	xmm2, xmm1
	divss	xmm2, xmm3
	movss	xmm1, DWORD PTR .LC5[rip]
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 2
	jne	.L4
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -36[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -24[rbp]
	pxor	xmm3, xmm3
	cvtsi2ss	xmm3, DWORD PTR -12[rbp]
	movaps	xmm2, xmm1
	divss	xmm2, xmm3
	movss	xmm1, DWORD PTR .LC5[rip]
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L4:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L5
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -40[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -20[rbp]
	pxor	xmm3, xmm3
	cvtsi2ss	xmm3, DWORD PTR -28[rbp]
	movaps	xmm2, xmm1
	divss	xmm2, xmm3
	movss	xmm1, DWORD PTR .LC5[rip]
	mulss	xmm1, xmm2
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR -40[rbp], eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L6:
	cmp	DWORD PTR -40[rbp], 0
	jg	.L2
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L2:
	cmp	DWORD PTR -40[rbp], 0
	jle	.L7
	cmp	DWORD PTR -36[rbp], 0
	jg	.L8
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC5:
	.long	1084227584
	.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	"962673.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Battle Start!\012\000"
	.align	2
.LC1:
	.ascii	"Your HP: %d Enemy HP: %d\012\000"
	.align	2
.LC2:
	.ascii	"1 - Attack\0122 - Magic\000"
	.align	2
.LC3:
	.ascii	"\012\012Select your move: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_f2iz
	.align	2
.LC5:
	.ascii	"\012You attacked the enemy!\000"
	.align	2
.LC6:
	.ascii	"\012You shocked the enemy!\000"
	.align	2
.LC7:
	.ascii	"You won!\012\000"
	.align	2
.LC8:
	.ascii	"The enemy attacked you!\000"
	.align	2
.LC9:
	.ascii	"You died!\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #10
	str	r3, [fp, #-40]
	mov	r3, #20
	str	r3, [fp, #-36]
	mov	r3, #40
	str	r3, [fp, #-32]
	mov	r3, #10
	str	r3, [fp, #-48]
	mov	r3, #30
	str	r3, [fp, #-28]
	mov	r3, #40
	str	r3, [fp, #-24]
	mov	r3, #25
	str	r3, [fp, #-20]
	mov	r3, #10
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, .L11+4
	bl	puts
	b	.L2
.L8:
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, .L11+8
	bl	printf
	ldr	r0, .L11+12
	bl	printf
	ldr	r0, .L11+16
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L11+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L3
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L11+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, .L11+28
	bl	puts
	b	.L4
.L3:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	bne	.L4
	ldr	r0, [fp, #-44]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L11+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, .L11+32
	bl	puts
.L4:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L5
	ldr	r0, .L11+36
	bl	puts
	b	.L6
.L5:
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r5, r0
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L11+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r0, .L11+40
	bl	puts
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L2
	ldr	r0, .L11+44
	bl	puts
.L2:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L8
.L7:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1084227584
	.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
