// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/fight.c
// Function: attack
int attack(struct thing *mp)
{
	char *mname;

	if (pl_on(ISETHER))		/* ethereal players cant be hit */
		return(0);
	if (mp->t_flags & ISPARA)	/* paralyzed monsters */
		return(0);
	running = FALSE;
	quiet = 0;
	isfight = TRUE;
	if (mp->t_type == 'M' && pl_off(ISBLIND))
		mp->t_disguise = 'M';
	if (pl_on(ISBLIND))
		mname = "it";
	else
		mname = monsters[mp->t_indx].m_name;
	if (roll_em(&mp->t_stats, him, NULL, FALSE)) {
		if (pl_on(ISINVINC)) {
			msg("%s does not harm you.",prname(mname,TRUE));
		}
		else {
			nochange = FALSE;
			if (mp->t_type != 'E')
				hit(mname);
			if (him->s_hpt <= 0)
				death(mp->t_indx);
			if (off(*mp, ISCANC))
				switch (mp->t_type) {
				case 'R':
					if (hurt_armor(cur_armor)) {
						msg("Your armor weakens.");
						cur_armor->o_ac++;
					}
				when 'E':
				/*
				 * The gaze of the floating eye hypnotizes you
				 */
					if (pl_off(ISBLIND) && player.t_nocmd <= 0) {
						player.t_nocmd = rnd(16) + 25;
						msg("You are transfixed.");
					}
				when 'Q':
					if (!save(VS_POISON) && !iswearing(R_SUSAB)) {
						if (him->s_ef.a_dex > MINABIL) {
							chg_abil(DEX, -1, TRUE);
							msg("You feel less agile.");
						}
					}
				when 'A':
					if (!save(VS_POISON) && herostr() > MINABIL) {
						if (!iswearing(R_SUSTSTR) && !iswearing(R_SUSAB)) {
							if (levcount > 0) {
								chg_abil(STR, -1, TRUE);
								msg("A sting has weakened you");
							}
						}
						else
							msg("Sting has no effect.");
					}
				when 'W':
					if (rnd(100) < 15 && !iswearing(R_SUSAB)) {
						if (him->s_exp <= 0)
							death(mp->t_indx);
						msg("You suddenly feel weaker.");
						if (--him->s_lvl == 0) {
							him->s_exp = 0;
							him->s_lvl = 1;
						}
						else
							him->s_exp = e_levels[him->s_lvl - 1] + 1;
						chg_hpt(-roll(1,10),TRUE,mp->t_indx);
					}
				when 'F':
					player.t_flags |= ISHELD;
					sprintf(monsters[midx('F')].m_stats.s_dmg,"%dd1",++fung_hit);
				when 'L': {
					long lastpurse;
					struct linked_list *lep;

					lastpurse = purse;
					purse -= GOLDCALC;
					if (!save(VS_MAGIC))
						purse -= GOLDCALC + GOLDCALC + GOLDCALC + GOLDCALC;
					if (purse < 0)
						purse = 0;
					if (purse != lastpurse)
						msg("Your purse feels lighter.");
					lep = find_mons(mp->t_pos.y,mp->t_pos.x);
					if (lep != NULL)
					{
						remove_monster(&mp->t_pos, lep);
						mp = NULL;
					}
				}
				when 'N': {
					struct linked_list *steal, *list;
					struct object *sobj;
					int stworth = 0, wo;

					/*
					 * Nymph's steal a magic item, look through the pack
					 * and pick out one we like, namely the object worth
					 * the most bucks.
					 */
					steal = NULL;
					for (list = pack; list != NULL; list = next(list)) {
						wo = get_worth(OBJPTR(list));
						if (wo > stworth) {
							stworth = wo;
							steal = list;
						}
					}
					if (steal != NULL) {
						sobj = OBJPTR(steal);
						if (o_off(sobj, ISPROT)) {
							struct linked_list *nym;

							nym = find_mons(mp->t_pos.y, mp->t_pos.x);
							if (nym != NULL)
							{
								remove_monster(&mp->t_pos, nym);
								mp = NULL;
							}
							msg("She stole %s!", inv_name(sobj, TRUE));
							detach(pack, steal);
							discard(steal);
							cur_null(sobj);
							updpack();
						}
					}
				}
				when 'c':
					if (!save(VS_PETRIFICATION)) {
						msg("Your body begins to solidify.");
						msg("You are turned to stone !!! --More--");
						wait_for(cw, ' ');
						death(mp->t_indx);
					}
				when 'd':
					if (rnd(100) < 50 && !(mp->t_flags & ISHUH))
						player.t_flags |= ISHELD;
					if (!save(VS_POISON)) {
						if (iswearing(R_SUSAB) || iswearing(R_SUSTSTR))
							msg("Sting has no effect.");
						else {
							int fewer, ostr;

							fewer = roll(1,4);
							ostr = herostr();
							chg_abil(STR,-fewer,TRUE);
							if (herostr() < ostr) {
								fewer = ostr - herostr();
								fuse(rchg_str, fewer - 1, 10);
							}
							msg("You feel weaker now.");
						}
					}
				when 'g':
					if (!save(VS_BREATH) && !iswearing(R_BREATH)) {
						msg("You feel singed.");
						chg_hpt(-roll(1,8),FALSE,mp->t_indx);
					}
				when 'h':
					if (!save(VS_BREATH) && !iswearing(R_BREATH)) {
						msg("You are seared.");
						chg_hpt(-roll(1,4),FALSE,mp->t_indx);
					}
				when 'p':
					if (!save(VS_POISON) && herostr() > MINABIL) {
						if (!iswearing(R_SUSTSTR) && !iswearing(R_SUSAB)) {
							msg("You are gnawed.");
							chg_abil(STR,-1,TRUE);
						}
					}
				when 'u':
					if (!save(VS_POISON) && herostr() > MINABIL) {
						if (!iswearing(R_SUSTSTR) && !iswearing(R_SUSAB)) {
							msg("You are bitten.");
							chg_abil(STR, -1, TRUE);
							fuse(rchg_str, 1, roll(5,10));
				 		}
					}
				when 'w':
					if (!save(VS_POISON) && !iswearing(R_SUSAB)) {
						msg("You feel devitalized.");
						chg_hpt(-1,TRUE,mp->t_indx);
					}
				when 'i':
					if (!save(VS_PARALYZATION) && !iswearing(R_SUSAB)) {
						if (pl_on(ISSLOW))
							lengthen(notslow,roll(3,10));
						else {
							msg("You feel impaired.");
							player.t_flags |= ISSLOW;
							fuse(notslow,TRUE,roll(5,10));
						}
					}
				otherwise:
					break;
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl $0x10000, %edi          # imm = 0x10000
callq 0xaa60
testb $0x1, %al
jne 0xbf8c
jmp 0xbf98
movl $0x0, -0x4(%rbp)
jmp 0xca8c
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
andq $0x2, %rax
cmpq $0x0, %rax
je 0xbfb6
movl $0x0, -0x4(%rbp)
jmp 0xca8c
leaq 0x2ad4f(%rip), %rax     # 0x36d0c
movb $0x0, (%rax)
leaq 0x2ad35(%rip), %rax     # 0x36cfc
movl $0x0, (%rax)
leaq 0x2ad34(%rip), %rax     # 0x36d08
movb $0x1, (%rax)
movq -0x10(%rbp), %rax
movsbl 0x8d(%rax), %eax
cmpl $0x4d, %eax
jne 0xc002
movl $0x1, %edi
callq 0xaa90
testb $0x1, %al
jne 0xbff7
jmp 0xc002
movq -0x10(%rbp), %rax
movb $0x4d, 0x8e(%rax)
movl $0x1, %edi
callq 0xaa60
testb $0x1, %al
jne 0xc012
jmp 0xc01f
leaq 0x1f0e0(%rip), %rax     # 0x2b0f9
movq %rax, -0x18(%rbp)
jmp 0xc03f
movq -0x10(%rbp), %rax
movslq 0x80(%rax), %rcx
leaq 0x2738f(%rip), %rax     # 0x333c0
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x2b186(%rip), %rax     # 0x371d0
movq (%rax), %rsi
xorl %eax, %eax
movl %eax, %edx
xorl %ecx, %ecx
callq 0xb600
testb $0x1, %al
jne 0xc061
jmp 0xc9f9
movl $0x8, %edi
callq 0xaa60
testb $0x1, %al
jne 0xc071
jmp 0xc095
movq -0x18(%rbp), %rdi
movl $0x1, %esi
callq 0xbe10
movq %rax, %rsi
leaq 0x1dc5b(%rip), %rdi     # 0x29ce4
movb $0x0, %al
callq 0xd8f0
jmp 0xc9f7
leaq 0x2ac77(%rip), %rax     # 0x36d13
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movsbl 0x8d(%rax), %eax
cmpl $0x45, %eax
je 0xc0b8
movq -0x18(%rbp), %rdi
callq 0xbab0
leaq 0x2b111(%rip), %rax     # 0x371d0
movq (%rax), %rax
cmpl $0x0, 0x30(%rax)
jg 0xc0da
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movsbl %al, %edi
callq 0x18260
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
andq $0x2000, %rax           # imm = 0x2000
cmpq $0x0, %rax
jne 0xc9f5
movq -0x10(%rbp), %rax
movsbl 0x8d(%rax), %eax
addl $-0x41, %eax
movl %eax, %ecx
movq %rcx, -0x60(%rbp)
subl $0x36, %eax
ja 0xc9f1
movq -0x60(%rbp), %rax
leaq 0x1da6a(%rip), %rcx     # 0x29b84
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2ab9e(%rip), %rax     # 0x36cc8
movq (%rax), %rdi
callq 0x6900
testb $0x1, %al
jne 0xc138
jmp 0xc159
leaq 0x1dbbb(%rip), %rdi     # 0x29cfa
movb $0x0, %al
callq 0xd8f0
leaq 0x2ab7b(%rip), %rax     # 0x36cc8
movq (%rax), %rax
movl 0x34(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x34(%rax)
jmp 0xc9f3
movl $0x1, %edi
callq 0xaa90
testb $0x1, %al
jne 0xc16e
jmp 0xc1aa
leaq 0x2af5b(%rip), %rax     # 0x370d0
cmpl $0x0, 0x88(%rax)
jg 0xc1aa
movl $0x10, %edi
movb $0x0, %al
callq 0xef20
movl %eax, %ecx
addl $0x19, %ecx
leaq 0x2af3a(%rip), %rax     # 0x370d0
movl %ecx, 0x88(%rax)
leaq 0x1db6b(%rip), %rdi     # 0x29d0e
movb $0x0, %al
callq 0xd8f0
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc1fd
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc1fd
leaq 0x2b000(%rip), %rax     # 0x371d0
movq (%rax), %rax
cmpl $0x3, 0x14(%rax)
jle 0xc1fb
movl $0x2, %edi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0x16910
leaq 0x1db2e(%rip), %rdi     # 0x29d22
movb $0x0, %al
callq 0xd8f0
jmp 0xc1fd
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc274
leaq 0x2aebb(%rip), %rax     # 0x370d0
cmpl $0x3, 0x10(%rax)
jle 0xc274
movl $0x2, %edi
callq 0x18220
testb $0x1, %al
jne 0xc264
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc264
leaq 0x2aa92(%rip), %rax     # 0x36cd0
cmpl $0x0, (%rax)
jle 0xc262
movl $0x1, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %edx, %edi
callq 0x16910
leaq 0x1dadc(%rip), %rdi     # 0x29d37
movb $0x0, %al
callq 0xd8f0
jmp 0xc272
leaq 0x1dae5(%rip), %rdi     # 0x29d50
movb $0x0, %al
callq 0xd8f0
jmp 0xc274
jmp 0xc9f3
movl $0x64, %edi
movb $0x0, %al
callq 0xef20
cmpl $0xf, %eax
jge 0xc368
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc368
leaq 0x2af29(%rip), %rax     # 0x371d0
movq (%rax), %rax
cmpq $0x0, 0x20(%rax)
jg 0xc2c3
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movsbl %al, %edi
callq 0x18260
leaq 0x1da9b(%rip), %rdi     # 0x29d65
movb $0x0, %al
callq 0xd8f0
leaq 0x2aef8(%rip), %rax     # 0x371d0
movq (%rax), %rcx
movl 0x28(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x28(%rcx)
cmpl $0x0, %eax
jne 0xc30e
leaq 0x2aee0(%rip), %rax     # 0x371d0
movq (%rax), %rax
movq $0x0, 0x20(%rax)
leaq 0x2aece(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl $0x1, 0x28(%rax)
jmp 0xc33e
leaq 0x2aebb(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x28(%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0x29708(%rip), %rax     # 0x35a30
movq (%rax,%rcx,8), %rcx
addq $0x1, %rcx
leaq 0x2ae99(%rip), %rax     # 0x371d0
movq (%rax), %rax
movq %rcx, 0x20(%rax)
movl $0x1, %edi
movl $0xa, %esi
callq 0xef70
xorl %edi, %edi
subl %eax, %edi
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movl $0x1, %esi
movsbl %al, %edx
callq 0x16860
jmp 0xc9f3
leaq 0x2ad5c(%rip), %rax     # 0x370d0
movq 0x78(%rax), %rcx
orq $0x100, %rcx            # imm = 0x100
leaq 0x2ad4a(%rip), %rax     # 0x370d0
movq %rcx, 0x78(%rax)
movl $0x46, %edi
callq 0x10400
cltq
leaq 0x27023(%rip), %rdi     # 0x333c0
imulq $0x70, %rax, %rax
addq %rax, %rdi
addq $0x20, %rdi
addq $0x40, %rdi
leaq 0x2a945(%rip), %rax     # 0x36cf8
movl (%rax), %edx
addl $0x1, %edx
leaq 0x2a939(%rip), %rax     # 0x36cf8
movl %edx, (%rax)
leaq 0x1d9b7(%rip), %rsi     # 0x29d7f
movb $0x0, %al
callq 0x64f0
jmp 0xc9f3
leaq 0x2a901(%rip), %rax     # 0x36cdc
movslq (%rax), %rax
movq %rax, -0x20(%rbp)
leaq 0x26f07(%rip), %rax     # 0x332f0
imull $0xa, (%rax), %edi
addl $0x32, %edi
movb $0x0, %al
callq 0xef20
addl $0x2, %eax
leaq 0x2a8dc(%rip), %rcx     # 0x36cdc
movl (%rcx), %ecx
subl %eax, %ecx
leaq 0x2a8d1(%rip), %rax     # 0x36cdc
movl %ecx, (%rax)
movl $0x3, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc4ae
leaq 0x26ec9(%rip), %rax     # 0x332f0
imull $0xa, (%rax), %edi
addl $0x32, %edi
movb $0x0, %al
callq 0xef20
addl $0x2, %eax
movl %eax, -0x6c(%rbp)
leaq 0x26eaf(%rip), %rax     # 0x332f0
imull $0xa, (%rax), %edi
addl $0x32, %edi
movb $0x0, %al
callq 0xef20
movl %eax, %ecx
movl -0x6c(%rbp), %eax
addl $0x2, %ecx
addl %ecx, %eax
movl %eax, -0x68(%rbp)
leaq 0x26e8e(%rip), %rax     # 0x332f0
imull $0xa, (%rax), %edi
addl $0x32, %edi
movb $0x0, %al
callq 0xef20
movl %eax, %ecx
movl -0x68(%rbp), %eax
addl $0x2, %ecx
addl %ecx, %eax
movl %eax, -0x64(%rbp)
leaq 0x26e6d(%rip), %rax     # 0x332f0
imull $0xa, (%rax), %edi
addl $0x32, %edi
movb $0x0, %al
callq 0xef20
movl %eax, %ecx
movl -0x64(%rbp), %eax
addl $0x2, %ecx
addl %ecx, %eax
leaq 0x2a83b(%rip), %rcx     # 0x36cdc
movl (%rcx), %ecx
subl %eax, %ecx
leaq 0x2a830(%rip), %rax     # 0x36cdc
movl %ecx, (%rax)
leaq 0x2a827(%rip), %rax     # 0x36cdc
cmpl $0x0, (%rax)
jge 0xc4c7
leaq 0x2a81b(%rip), %rax     # 0x36cdc
movl $0x0, (%rax)
leaq 0x2a80e(%rip), %rax     # 0x36cdc
movslq (%rax), %rax
cmpq -0x20(%rbp), %rax
je 0xc4e5
leaq 0x1d8a6(%rip), %rdi     # 0x29d84
movb $0x0, %al
callq 0xd8f0
movq -0x10(%rbp), %rax
movl 0x54(%rax), %edi
movq -0x10(%rbp), %rax
movl 0x50(%rax), %esi
callq 0x7c90
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xc51c
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
movq -0x28(%rbp), %rsi
callq 0xcac0
movq $0x0, -0x10(%rbp)
jmp 0xc9f3
movl $0x0, -0x44(%rbp)
movq $0x0, -0x30(%rbp)
leaq 0x2ab99(%rip), %rax     # 0x370d0
movq 0x68(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0xc57b
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x248b0
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x44(%rbp), %eax
jle 0xc56c
movl -0x48(%rbp), %eax
movl %eax, -0x44(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc56e
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0xc53f
cmpq $0x0, -0x30(%rbp)
je 0xc62e
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movl $0x10, %esi
callq 0xab00
testb $0x1, %al
jne 0xc5a9
jmp 0xc62c
movq -0x10(%rbp), %rax
movl 0x54(%rax), %edi
movq -0x10(%rbp), %rax
movl 0x50(%rax), %esi
callq 0x7c90
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xc5e0
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
movq -0x50(%rbp), %rsi
callq 0xcac0
movq $0x0, -0x10(%rbp)
movq -0x40(%rbp), %rdi
movl $0x1, %esi
callq 0x23060
movq %rax, %rsi
leaq 0x1d7a6(%rip), %rdi     # 0x29d9e
movb $0x0, %al
callq 0xd8f0
movq -0x30(%rbp), %rsi
leaq 0x2aac6(%rip), %rdi     # 0x370d0
addq $0x68, %rdi
callq 0xe360
movq -0x30(%rbp), %rdi
callq 0xe490
movq -0x40(%rbp), %rdi
callq 0x15160
movb $0x0, %al
callq 0xaba0
jmp 0xc62e
jmp 0xc9f3
movl $0x1, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc684
leaq 0x1d763(%rip), %rdi     # 0x29dac
movb $0x0, %al
callq 0xd8f0
leaq 0x1d773(%rip), %rdi     # 0x29dca
movb $0x0, %al
callq 0xd8f0
leaq 0x2d7eb(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movl $0x20, %esi
callq 0xdbc0
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movsbl %al, %edi
callq 0x18260
jmp 0xc9f3
movl $0x64, %edi
movb $0x0, %al
callq 0xef20
cmpl $0x32, %eax
jge 0xc6cb
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rax
andq $0x200, %rax            # imm = 0x200
cmpq $0x0, %rax
jne 0xc6cb
leaq 0x2aa1b(%rip), %rax     # 0x370d0
movq 0x78(%rax), %rcx
orq $0x100, %rcx            # imm = 0x100
leaq 0x2aa09(%rip), %rax     # 0x370d0
movq %rcx, 0x78(%rax)
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc77f
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc6f9
movl $0x2, %edi
callq 0x18220
testb $0x1, %al
jne 0xc6f9
jmp 0xc709
leaq 0x1d650(%rip), %rdi     # 0x29d50
movb $0x0, %al
callq 0xd8f0
jmp 0xc77d
movl $0x1, %edi
movl $0x4, %esi
callq 0xef70
movl %eax, -0x54(%rbp)
leaq 0x2a9ae(%rip), %rax     # 0x370d0
movl 0x10(%rax), %eax
movl %eax, -0x58(%rbp)
xorl %esi, %esi
subl -0x54(%rbp), %esi
movl $0x1, %edx
movl %edx, %edi
callq 0x16910
leaq 0x2a990(%rip), %rax     # 0x370d0
movl 0x10(%rax), %eax
cmpl -0x58(%rbp), %eax
jge 0xc76f
movl -0x58(%rbp), %eax
leaq 0x2a97e(%rip), %rcx     # 0x370d0
subl 0x10(%rcx), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %esi
subl $0x1, %esi
leaq 0xa17b(%rip), %rdi      # 0x168e0
movl $0xa, %edx
callq 0x9c30
leaq 0x1d679(%rip), %rdi     # 0x29def
movb $0x0, %al
callq 0xd8f0
jmp 0xc77f
jmp 0xc9f3
movl $0x2, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc7d6
movl $0x17, %edi
callq 0x18220
testb $0x1, %al
jne 0xc7d6
leaq 0x1d65c(%rip), %rdi     # 0x29e04
movb $0x0, %al
callq 0xd8f0
movl $0x1, %edi
movl $0x8, %esi
callq 0xef70
xorl %edi, %edi
subl %eax, %edi
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
xorl %esi, %esi
movsbl %al, %edx
callq 0x16860
jmp 0xc9f3
movl $0x2, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc82d
movl $0x17, %edi
callq 0x18220
testb $0x1, %al
jne 0xc82d
leaq 0x1d616(%rip), %rdi     # 0x29e15
movb $0x0, %al
callq 0xd8f0
movl $0x1, %edi
movl $0x4, %esi
callq 0xef70
xorl %edi, %edi
subl %eax, %edi
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
xorl %esi, %esi
movsbl %al, %edx
callq 0x16860
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc888
leaq 0x2a88b(%rip), %rax     # 0x370d0
cmpl $0x3, 0x10(%rax)
jle 0xc888
movl $0x2, %edi
callq 0x18220
testb $0x1, %al
jne 0xc886
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc886
leaq 0x1d5b7(%rip), %rdi     # 0x29e25
movb $0x0, %al
callq 0xd8f0
movl $0x1, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %edx, %edi
callq 0x16910
jmp 0xc888
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc905
leaq 0x2a830(%rip), %rax     # 0x370d0
cmpl $0x3, 0x10(%rax)
jle 0xc905
movl $0x2, %edi
callq 0x18220
testb $0x1, %al
jne 0xc903
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc903
leaq 0x1d56c(%rip), %rdi     # 0x29e35
movb $0x0, %al
callq 0xd8f0
movl $0x1, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %edx, %edi
callq 0x16910
movl $0x5, %edi
movl $0xa, %esi
callq 0xef70
movl %eax, %edx
leaq 0x9fe7(%rip), %rdi      # 0x168e0
movl $0x1, %esi
callq 0x9c30
jmp 0xc905
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc94e
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc94e
leaq 0x1d51a(%rip), %rdi     # 0x29e45
movb $0x0, %al
callq 0xd8f0
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x1, %esi
movsbl %al, %edx
callq 0x16860
jmp 0xc9f3
xorl %edi, %edi
callq 0xcaa0
cmpl $0x0, %eax
jne 0xc9ef
movl $0x10, %edi
callq 0x18220
testb $0x1, %al
jne 0xc9ef
movl $0x4000, %edi           # imm = 0x4000
callq 0xaa60
testb $0x1, %al
jne 0xc981
jmp 0xc9a0
movl $0x3, %edi
movl $0xa, %esi
callq 0xef70
movl %eax, %esi
leaq -0x2509(%rip), %rdi     # 0xa490
callq 0x9c60
jmp 0xc9ed
leaq 0x1d4b4(%rip), %rdi     # 0x29e5b
movb $0x0, %al
callq 0xd8f0
leaq 0x2a71b(%rip), %rax     # 0x370d0
movq 0x78(%rax), %rcx
orq $0x4000, %rcx           # imm = 0x4000
leaq 0x2a709(%rip), %rax     # 0x370d0
movq %rcx, 0x78(%rax)
movl $0x5, %edi
movl $0xa, %esi
callq 0xef70
movl %eax, %edx
leaq -0x2553(%rip), %rdi     # 0xa490
movl $0x1, %esi
callq 0x9c30
jmp 0xc9ef
jmp 0xc9f3
jmp 0xc9f3
jmp 0xc9f5
jmp 0xc9f7
jmp 0xca63
movq -0x10(%rbp), %rax
movsbl 0x8d(%rax), %eax
cmpl $0x45, %eax
je 0xca61
movq -0x10(%rbp), %rax
movsbl 0x8d(%rax), %eax
cmpl $0x46, %eax
jne 0xca58
leaq 0x2a2d8(%rip), %rax     # 0x36cf8
movl (%rax), %edx
leaq 0x2a7a7(%rip), %rax     # 0x371d0
movq (%rax), %rax
movl 0x30(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x30(%rax)
leaq 0x2a795(%rip), %rax     # 0x371d0
movq (%rax), %rax
cmpl $0x0, 0x30(%rax)
jg 0xca56
movq -0x10(%rbp), %rax
movl 0x80(%rax), %eax
movsbl %al, %edi
callq 0x18260
jmp 0xca58
movq -0x18(%rbp), %rdi
callq 0xbf20
jmp 0xca63
callq 0x6060
leaq 0x2a285(%rip), %rax     # 0x36cf4
movl $0x0, (%rax)
cmpq $0x0, -0x10(%rbp)
jne 0xca85
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xca8c
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)