<?xml version="1.0" encoding="utf-8" ?>
<EternityPatchFile name="PreBakedPatches" enabled="new_chara" comment="This file enables patches on characters data that only exist in RAM and not in files" >	

	<Patch name="IsOzaruHook" type="hook" search_start="0x1B7970" comment="Fully impersonating this very simple boolean function to extend it." >
		<Instruction code="48 89 5C 24 08" comment="mov [rsp+8], rbx" />
		<Instruction code="48 89 74 24 10" comment="mov [rsp+10], rsi" />
		<Instruction code="57" comment="push rdi" />
		<Instruction code="48 83 EC 20" comment="sub rsp, 20h" />
		<Instruction code="48 8B F1" comment="mov rsi, rcx" />
		<Instruction code="48 8D 3D XX XX XX XX" comment="lea rdi, XXXXXXXX ; rdi = array of strings of ozarus" />
		<Instruction code="33 DB" comment="xor ebx, ebx" />
		<Instruction code="0F 1F 44 00 00" comment="nop dword ptr [rax+rax+00h]" />
		<Instruction code="48 8B 17" comment="mov rdx, [rdi]" />
		<Instruction code="41 B8 03 00 00 00" comment="mov r8d, 3" />
		
		<Hook value="IsOzaruReplacement" setup="PreBakeSetup" />
	</Patch>

</EternityPatchFile>