<?xml version='1.0' encoding='utf-8'?>
<CheatTable CheatEngineTableVersion="45">
  <CheatEntries>
    <CheatEntry>
      <ID>1</ID>
      <Description>"【アタッチ／一括解除】ゲームを選択・確認"</Description>
      <Color>00A5FF</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>

{ Game    : Aska.exe
  Author  : Black_wolf
  CheatVer:1.48-001-262

  Memo: ゲームバージョン 1.48.0910261842（PC Release）
        Aska.exe の FileVersion は 6000.3.12.16556090
        ゲームエンジンは Unity 6000.3.12f1 / IL2CPP
        GameAssembly.dll : 0x6AC911E6（SizeOfImage: 0x06832000）
        Steam BuildID: 25834809（AppID: 1898300）

	なんかつぎはぎのコードだなー
	整理されていなというか、難読化より解析しづらいというか
	ゲームもクソゲーの匂いしかしない
}
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec, function() ASKA.attachGame() end)
{$asm}
[DISABLE]
</AssemblerScript>
    </CheatEntry>
    <CheatEntry>
      <ID>2</ID>
      <Description>"0. 設定"</Description>
      <Options moManualExpandCollapse="1" />
      <Color>FFFF00</Color>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>3</ID>
          <Description>"言語設定 / Language"</Description>
          <Options moManualExpandCollapse="1" />
          <Color>FFFF00</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>4</ID>
              <Description>"English（初期表示・既定）"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.setLang('en') end)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>5</ID>
              <Description>"日本語（切替）"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.setLang('ja') end)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>12</ID>
          <Description>"診断"</Description>
          <Options moManualExpandCollapse="1" />
          <Color>FFFF00</Color>
          <GroupHeader>1</GroupHeader>
          <CheatEntries>
            <CheatEntry>
              <ID>13</ID>
              <Description>"Lua Engine（ONで開く／OFFで閉じる）"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.userRun(function() ASKA.luaEngine(true) end)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.userRun(function() ASKA.luaEngine(false) end) end
{$asm}
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>14</ID>
              <Description>"解決器を確認（読み取り）"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.scanSelfTest() end)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>15</ID>
              <Description>"環境・接続情報"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.envReport() end)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
            <CheatEntry>
              <ID>16</ID>
              <Description>"機能・解決状態"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.statusReport() end)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>602</ID>
          <Description>"一括解除"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.disableAll() end)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>603</ID>
          <Description>"解除して切断"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.shutdown() end)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>100</ID>
      <Description>"01. Gameplay"</Description>
      <Color>FFFF00</Color>
      <Options moManualExpandCollapse="1" />
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>113</ID>
          <Description>"Invulnerability"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'enemyInvulnerability',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'enemyInvulnerability',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>101</ID>
          <Description>"Infinite health"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'infiniteHealth',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'infiniteHealth',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>102</ID>
          <Description>"Infinite stamina"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'infiniteStamina',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'infiniteStamina',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>103</ID>
          <Description>"No hunger"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'noHunger',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'noHunger',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>104</ID>
          <Description>"No thirst"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'noThirst',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'noThirst',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>105</ID>
          <Description>"Normal body temperature"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'normalWarmth',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'normalWarmth',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>115</ID>
          <Description>"Stealth mode"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'stealthMode',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'stealthMode',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>114</ID>
          <Description>"One-hit kill"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'oneHitKill',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'oneHitKill',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>116</ID>
          <Description>"Unlimited ammo and bow durability"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle116',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle116',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>117</ID>
          <Description>"XP multiplier"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle117',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle117',false) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>118</ID>
          <Description>"Maximum member happiness and comfort"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle118',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle118',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>107</ID>
          <Description>"Apply enabled cheats to members"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'applyNeedsToMembers',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'applyNeedsToMembers',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>250</ID>
      <Description>"02. Player and members"</Description>
      <Color>FFFF00</Color>
      <Options moManualExpandCollapse="1" />
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>258</ID>
          <Description>"Movement and jump multipliers"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle258',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle258',false) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>255</ID>
          <Description>"Hold Space to ascend"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'holdSpaceToAscend',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'holdSpaceToAscend',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>256</ID>
          <Description>"Player editor"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.openEditor(memrec,'playerEditor')
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.defer(function() ASKA.closeEditor(memrec) end) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>257</ID>
          <Description>"Member editor"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.openEditor(memrec,'memberEditor')
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.defer(function() ASKA.closeEditor(memrec) end) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>259</ID>
          <Description>"Member list"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,ASKA.showMemberList)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>300</ID>
      <Description>"03. Items"</Description>
      <Color>FFFF00</Color>
      <Options moManualExpandCollapse="1" />
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>306</ID>
          <Description>"No item consumption"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'preserveUsedItems',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'preserveUsedItems',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>307</ID>
          <Description>"No settlement item consumption"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'preserveSettlementItems',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'preserveSettlementItems',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>308</ID>
          <Description>"Prevent wear and freshness loss"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle308',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle308',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>304</ID>
          <Description>"Edit item quantity"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.openItemQuantities(memrec)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.closeEditor(memrec) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>305</ID>
          <Description>"Add items by category"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,ASKA.addInventoryItems)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>309</ID>
          <Description>"Add all blueprints"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,ASKA.addAllBlueprints)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>400</ID>
      <Description>"04. Craft and build"</Description>
      <Color>FFFF00</Color>
      <Options moManualExpandCollapse="1" />
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>410</ID>
          <Description>"Material-free crafting"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle410',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle410',false) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" moManualExpandCollapse="1" />
          <CheatEntries>
            <CheatEntry>
              <ID>409</ID>
              <Description>"Choose a manual cooking / forging recipe"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,ASKA.manualCrafting)
{$asm}
[DISABLE]
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>404</ID>
          <Description>"No fuel required"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'noFireFuel',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'noFireFuel',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>411</ID>
          <Description>"Instant craft and build"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'bundle411',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle411',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>416</ID>
          <Description>"Ignore construction prerequisites"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'ignoreConstructionPrerequisites',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'ignoreConstructionPrerequisites',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>405</ID>
          <Description>"Gods' Favors without requirements"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'unconditionalFavors',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'unconditionalFavors',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>412</ID>
          <Description>"Gods' Favors editor"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.openFavorsEditor(memrec)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.defer(function() ASKA.closeEditor(memrec) end) end
{$asm}
</AssemblerScript>
          <Options moHideChildren="1" />
        </CheatEntry>
        <CheatEntry>
          <ID>408</ID>
          <Description>"Automatically work designated terraforming areas"</Description>
          <Color>00A5FF</Color>
          <Options moHideChildren="1" moManualExpandCollapse="1" />
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'autoTerraform',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'autoTerraform',false) end
{$asm}
</AssemblerScript>
          <CheatEntries>
            <CheatEntry>
              <ID>417</ID>
              <Description>"Clear natural obstacles and resources while terraforming"</Description>
              <Color>00A5FF</Color>
              <VariableType>Auto Assembler Script</VariableType>
              <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'autoTerraformClear',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'autoTerraformClear',false) end
{$asm}
</AssemblerScript>
            </CheatEntry>
          </CheatEntries>
        </CheatEntry>
        <CheatEntry>
          <ID>413</ID>
          <Description>"Instant Viking summoning (THE EYES OF ODIN)"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'instantVikingSummon',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'instantVikingSummon',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>414</ID>
          <Description>"House housing points table"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.showHousingTable('houses') end)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>415</ID>
          <Description>"Furniture housing points table"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,function() ASKA.showHousingTable('furniture') end)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>500</ID>
      <Description>"05. World"</Description>
      <Color>FFFF00</Color>
      <Options moManualExpandCollapse="1" />
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>511</ID>
          <Description>"Suppress Blood Moon"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'preventBloodMoon',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'preventBloodMoon',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>512</ID>
          <Description>"Always daytime (12:00)"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'alwaysDay',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'alwaysDay',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>515</ID>
          <Description>"Choose and lock weather"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.configureWeatherAndToggleRecord(memrec,'bundle515',ASKA.chooseWeather)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'bundle515',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>510</ID>
          <Description>"Freeze time"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'freezeClock',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'freezeClock',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
        <CheatEntry>
          <ID>516</ID>
          <Description>"Reveal world map"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.toggleRecord(memrec,'revealWorldMap',true)
{$asm}
[DISABLE]
{$lua}
if syntaxcheck then return end
if ASKA then ASKA.toggleRecord(memrec,'revealWorldMap',false) end
{$asm}
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>600</ID>
      <Description>"07. その他"</Description>
      <Options moManualExpandCollapse="1" />
      <Color>FFFF00</Color>
      <GroupHeader>1</GroupHeader>
      <CheatEntries>
        <CheatEntry>
          <ID>601</ID>
          <Description>"Unlock all Steam achievements"</Description>
          <Color>00A5FF</Color>
          <VariableType>Auto Assembler Script</VariableType>
          <AssemblerScript>
[ENABLE]
{$lua}
if syntaxcheck then return end
ASKA.oneShot(memrec,ASKA.unlockSteamAchievements)
{$asm}
[DISABLE]
</AssemblerScript>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
  <LuaScript>----------------------------------------------------------------- reload cleanup
-- Standalone runtime only. No installation paths, disk dumps, or analysis log writers.
local previousTable=ASKA or rawget(_G,'ASKACT')
if previousTable then
  if type(previousTable.shutdown)~='function' then
    print('[ASKA] An older ASKA table is still loaded. Restore and close it before loading this table. / 旧テーブルを解除して閉じてから読み込んでください。')
    return
  end
  local restored,err=pcall(previousTable.shutdown)
  if not restored then
    print('[ASKA] '..tostring(err))
    return -- retain the old state if restoration fails
  end
end
rawset(_G,'ASKACT',nil) -- migration after verified restoration
ASKA = {}
local ASKA = ASKA
ASKA.VERSION, ASKA.CHEATVER, ASKA.TAG = '1.48.0910261842', '1.48-001-262', 'ASKA'
----------------------------------------------------------------- basic settings
ASKA.TITLE = 'ASKA'
ASKA.EXE, ASKA.MODULE, ASKA.GAMEVER = nil, nil, nil
ASKA.BUILD = {}
ASKA.RVA = {}

----------------------------------------------------------------- common constants (do not change)
ASKA.C_GROUP, ASKA.C_SCRIPT = 0xFFFF00, 0x00A5FF

----------------------------------------------------------------- common runtime state
ASKA.lang = 'en'
ASKA.serial, ASKA.epoch = 0, 0
ASKA.A, ASKA.status, ASKA.hooks, ASKA.active = {}, {}, {}, {}
ASKA.sessions, ASKA.dynamic, ASKA.queue, ASKA.deferred = {}, {}, {}, {}
ASKA.history = {}

----------------------------------------------------------------- process and build identification
ASKA.CONFIG = {title=ASKA.TITLE, candidates=nil, identify=nil,
  boundary=nil, tick=250, retry=5000, maxCandidates=64, editorAutoRefresh=false, editorUndo=false,
  scanChunkBytes=262144, resolveBudgetMs=1500, retryBatch=1,
  modules={code={main=true}}}

----------------------------------------------------------------- AOB signatures
ASKA.SIGS = {}

----------------------------------------------------------------- hooks
ASKA.HOOKS = {}

----------------------------------------------------------------- features and editors
ASKA.F, ASKA.EDITORS, ASKA.ACTIONS = {}, {}, {}

----------------------------------------------------------------- helpers
local function need(v,en,ja) if not v then error(ASKA.T(en,ja),0) end return v end
local function hex(v) return string.format('%X',v) end
local function keyOK(v) return type(v)=='string' and v:match('^[%a_][%w_]*$') end
local function equal(a,b)
  if type(a)~='table' or type(b)~='table' or #a~=#b then return false end
  for i=1,#a do if a[i]~=b[i] then return false end end return true
end
local function bytes(a,n)
  local ok,b=pcall(readBytes,a,n,true)
  if ok and type(b)=='table' and #b==n then return b end
end
local function db(b) local t={} for i,v in ipairs(b) do t[i]=('%02X'):format(v) end return table.concat(t,' ') end
local function checkedCall(fn,...)
  local r=fn(...); need(r~=false,'Operation rejected.','処理が拒否されました。'); return r
end
ASKA.sameBytes, ASKA.readExact = equal, bytes

function ASKA.msg(en,ja)

  local message=tostring(ASKA.T(en,ja))

  message=message:gsub('%[string ".-"%]:%d+:%s*','')

  print('['..ASKA.TAG..'] '..message)

end



----------------------------------------------------------------- one-shot / user action






----------------------------------------------------------------- attach / init
-- PE header offsets below are FORMAT constants, never game addresses/layout assumptions.
local function u32(a) local v=readInteger(a); if v and v&lt;0 then v=v+0x100000000 end return v end
local function s32(a) local v=u32(a); if v and v&gt;=0x80000000 then v=v-0x100000000 end return v end
local function u16(a) local b=bytes(a,2); return b and b[1]+b[2]*256 end
function ASKA.pe(m)
  local b=m.Address
  need(bytes(b,2) and u16(b)==0x5A4D,'Invalid MZ header.','MZヘッダが不正です。')
  local off=u32(b+0x3C)
  need(off and off&gt;=64 and off&lt;0x100000,'Invalid PE header.','PEヘッダが不正です。')
  local p=b+off
  need(u32(p)==0x4550,'Invalid PE signature.','PEシグネチャが不正です。')
  local n,optional=u16(p+6),u16(p+20); local magic=u16(p+24)
  need(n and n&gt;0 and n&lt;=96 and optional and optional&gt;=96 and
    (magic==0x10B or magic==0x20B),'Unsupported PE layout.','未対応のPE形式です。')
  local size=u32(p+24+56)
  need(size and size&gt;0 and (not m.Size or size&lt;=m.Size),
    'Invalid image bounds.','イメージの範囲が不正です。')
  local info={base=b,size=size,ts=u32(p+8),machine=u16(p+4),sections={}}
  for i=0,n-1 do
    local a=p+24+optional+i*40
    local va,vs,raw,ch=u32(a+12),u32(a+8),u32(a+16),u32(a+36)
    need(va and vs and raw and ch,'Unreadable section table.','セクション表を読み取れません。')
    local len=vs&gt;0 and vs or raw
    if len&gt;0 then
      need(va&lt;size and va+len&lt;=size,'Section outside image.','セクションがイメージ範囲外です。')
      info.sections[#info.sections+1]={first=b+va,last=b+va+len,execute=(ch &amp; 0x20000000)~=0}
    end
  end
  return info
end
function ASKA.module(alias)
  alias=alias or 'code'
  local spec=need(ASKA.CONFIG.modules[alias],'Unknown module alias.','未定義のモジュールです。')
  local result
  for i,m in ipairs(ASKA.modules or {}) do
    local match=spec.main and i==1 or false
    for _,name in ipairs(spec.names or {}) do if m.Name:lower()==name:lower() then match=true end end
    if spec.match and spec.match(m)==true then match=true end
    if match then need(not result,'Ambiguous module.','モジュール候補が複数あります。'); result=m end
  end
  return need(result,'Required module is not loaded.','必要なモジュールがロードされていません。')
end

function ASKA.require()
  need(ASKA.alive(),'Connection changed. Run ATTACH / ALL OFF.','接続が変わりました。アタッチ／一括解除を実行してください。')
end
function ASKA.captureBoundary()
  ASKA.require()
  need(type(ASKA.CONFIG.boundary)=='function','Game adapter is not configured.','ゲーム用の解析結果が設定されていません。')
  local token=ASKA.CONFIG.boundary()
  need(token~=nil and token~=false,'Game data is not ready.','ゲームデータの準備ができていません。')
  need(type(token)=='string' or (type(token)=='number' and token==token and math.abs(token)&lt;math.huge),'Boundary must be a stable scalar token.','境界識別子は安定した文字列か数値にしてください。')
  return token
end
-- Scope dependencies to the feature that needs them. Process identity is always required.
function ASKA.featureBoundary(f)
  ASKA.require()
  if f.boundary==false then return ASKA.epoch end
  if f.boundary==nil then return ASKA.captureBoundary() end
  need(type(f.boundary)=='function','Invalid feature boundary contract.','機能の境界定義が不正です。')
  local token=f.boundary()
  need(type(token)=='string' or (type(token)=='number' and token==token and math.abs(token)&lt;math.huge),
    'Feature data is not ready.','この機能に必要なデータの準備ができていません。')
  return token
end
function ASKA.attachGame()
  need(type(ASKA.CONFIG.identify)=='function','Configure the locally analysed game adapter first.','先にローカル解析済みのゲーム設定を実装してください。')
  if ASKA.pid then
    if ASKA.alive() then ASKA.disableAll(); return end
    -- A signalled lifetime handle proves the old process exited; never infer from PID alone.
    local exited=false
    if ASKA.lifeHandle then
      local ok,result=pcall(executeCodeLocalEx,'kernel32.WaitForSingleObject',ASKA.lifeHandle,0)
      exited=ok and result==0
    end
    need(exited or (not ASKA.lifeHandle and not getProcesslist()[ASKA.pid]),
      'Select the original process and restore it before changing targets.',
      '対象を変更する前に元のプロセスを選択し、一括解除してください。')
    ASKA.forgetProcess()
  end
  local rows={}
  for pid,name in pairs(getProcesslist()) do
    if not ASKA.CONFIG.candidates or ASKA.CONFIG.candidates(name,pid)==true then
      rows[#rows+1]={id=pid,en=name..' (PID '..pid..')',ja=name..' (PID '..pid..')',process=name}
    end
  end
  table.sort(rows,function(a,b) return a.id&lt;b.id end)
  need(#rows&gt;0,'No candidate processes.','対象候補のプロセスがありません。')
  local row=rows[1]
  if #rows&gt;1 then
    row=nil
    for _, candidate in ipairs(rows) do
      if candidate.id==getOpenedProcessID() then row=candidate;break end
    end
    need(row,'Select a candidate process in the CE process list first.',
      '候補が複数あります。CEのプロセス一覧から対象を選択してください。')
  end
  if getOpenedProcessID()~=row.id then openProcess(row.id) end
  need(getOpenedProcessID()==row.id,'Cannot open process.','プロセスを開けません。')
  local modules=enumModules(row.id)
  need(modules and modules[1],'No modules found.','モジュールが見つかりません。')
  need(ASKA.CONFIG.identify(modules,row.id,row.process)==true,
    'The selected binary is not the supported game.','選択されたバイナリは対象ゲームと確認できません。')
  local main=ASKA.pe(modules[1])
  -- A Windows SYNCHRONIZE handle tracks a process instance even when its PID is reused.
  local handle=executeCodeLocalEx('kernel32.OpenProcess',0x100000,0,row.id)
  need(handle and handle~=0,'Cannot track process lifetime.','プロセスの生存期間を確認できません。')
  ASKA.pid,ASKA.processName,ASKA.modules=row.id,row.process,modules
  ASKA.mainBase,ASKA.mainName,ASKA.mainPE=modules[1].Address,modules[1].Name,main
  ASKA.lifeHandle=handle; ASKA.epoch=ASKA.epoch+1
  ASKA.A,ASKA.status={},{}
  ASKA.recoverNativeSites()
  ASKA.msg('Attached. All features are OFF.','アタッチしました。全機能は無効です。')
end

-- Runtime lookup only: no offline disassembler/dumper/probe or output path is embedded.

----------------------------------------------------------------- signature resolver
function ASKA.scanPattern(pat,first,last,cap,deadline)
  need(type(pat)=='string' and pat~='','Empty pattern.','パターンが空です。')
  local fixed,patternBytes=0,0
  for token in pat:gmatch('%S+') do
    patternBytes=patternBytes+1
    need(token:match('^%x%x$') or token=='??','Use byte tokens or ??.','バイト値または??を指定してください。')
    if token~='??' then fixed=fixed+1 end
  end
  need(fixed&gt;=4,'Pattern is too broad.','パターンの識別力が不足しています。')
  need(type(first)=='number' and type(last)=='number' and first&lt;last and type(cap)=='number' and cap&gt;=1,
    'Invalid scan range or candidate limit.','探索範囲または候補上限が不正です。')
  local chunk=ASKA.CONFIG.scanChunkBytes
  need(type(chunk)=='number' and chunk%1==0 and chunk&gt;=patternBytes and chunk&lt;=1048576,
    'Invalid scan chunk size.','探索チャンクサイズが不正です。')
  local result,pos={},first
  ASKA.serial=ASKA.serial+1; local symbol='aska_scan_'..ASKA.serial
  local function cleanup() pcall(unregisterSymbol,symbol) end
  local ok,err=pcall(function()
    while pos&lt;last do
      need(not deadline or getTickCount()&lt;deadline,'Resolver search budget reached.','解決器の探索時間上限に達しました。')
      cleanup()
      local finish=math.min(last,pos+chunk)
      if finish-pos&lt;patternBytes then break end
      local assembled=autoAssemble(('aobscanregion(%s,%X,%X,%s)\nregistersymbol(%s)'):format(symbol,pos,finish-1,pat,symbol))
      if not assembled then
        if finish==last then break end
        pos=finish-patternBytes+1 -- overlap catches matches crossing chunk boundaries
      else
        local a=getAddressSafe(symbol); cleanup()
        need(a and a&gt;=pos and a+patternBytes&lt;=finish,'Invalid scanner result.','スキャン結果が範囲外です。')
        result[#result+1]=a
        need(#result&lt;=cap,'Too many pattern candidates.','パターン候補が多すぎます。')
        pos=a+1
      end
    end
  end)
  cleanup(); if not ok then error(err,0) end
  return result
end
function ASKA.resolveSig(name,fresh)
  ASKA.require()
  local sg=need(ASKA.SIGS[name],'Unknown resolver: '..tostring(name),'未定義の解決器です: '..tostring(name))
  need(keyOK(name),'Invalid resolver name.','解決器名が不正です。')
  need(type(sg.validate)=='function','Semantic validation is required.','対象の意味的な検証が必要です。')
  local module,pe
  local available,why=pcall(function()
    ASKA.modules=enumModules(ASKA.pid) -- DLLs may load after attachment
    module=ASKA.module(sg.module); pe=ASKA.pe(module)
  end)
  if not available then ASKA.A[name]=nil; ASKA.status[name]=tostring(why); return nil,tostring(why) end
  local fingerprint=table.concat({ASKA.pid,module.Address,pe.ts,pe.size,pe.machine},':')
  local cached=ASKA.A[name]
  if cached and not fresh and cached.fingerprint==fingerprint then
    local okay,valid=pcall(function()
      for _,r in ipairs(cached.entries) do
        if sg.validate(r.target,r.site,module)~=true or (r.anchor and not equal(bytes(r.anchorAt,#r.anchor),r.anchor)) then return false end
      end
      return true
    end)
    if okay and valid then return cached.value end
  end
  ASKA.A[name]=nil
  local budget=sg.budgetMs or ASKA.CONFIG.resolveBudgetMs
  need(type(budget)=='number' and budget&gt;0 and budget&lt;math.huge,'Invalid resolver time budget.','探索時間上限が不正です。')
  local deadline=getTickCount()+budget
  local entries,seen={},{}
  local function accept(target,site,anchor)
    if type(target)=='number' and target&gt;0 and sg.validate(target,site,module)==true and not seen[target] then
      entries[#entries+1]={target=target,site=site,anchor=anchor}; seen[target]=true
    end
  end
  local ok,e=pcall(function()
    if sg.resolve then
      -- Semantic adapters must cooperate with this deadline; Lua cannot interrupt native calls.
      local list=sg.resolve(ASKA.modules,deadline) or {}
      need(getTickCount()&lt;deadline,'Resolver search budget reached.','解決器の探索時間上限に達しました。')
      need(type(list)=='table','Resolver must return a candidate list.','解決器は候補一覧を返してください。')
      need(#list&lt;=ASKA.CONFIG.maxCandidates,'Too many candidates.','候補が多すぎます。')
      for _,a in ipairs(list) do accept(a,a,nil) end
    else
      local patterns=sg.patterns or {sg}
      for _,p in ipairs(patterns) do
        for _,section in ipairs(pe.sections) do
          if section.execute~=(sg.executable==false) then
            for _,a in ipairs(ASKA.scanPattern(p.p,section.first,section.last,ASKA.CONFIG.maxCandidates,deadline)) do
              local site=a+(p.off or sg.off or 0); local target=site
              local kind=sg.kind or 'site'
              if kind=='call' then
                need(bytes(site,1) and readBytes(site,1)==0xE8,'Expected direct call.','直接call命令ではありません。')
                local d=need(s32(site+1),'Unreadable displacement.','変位を読み取れません。'); target=site+5+d
              elseif kind=='rip' then
                local disp,len=p.disp or sg.disp,p.length or sg.length
                need(disp and len and disp&gt;=0 and disp+4&lt;=len,'Invalid RIP contract.','RIP相対命令の定義が不正です。')
                target=site+len+need(s32(site+disp),'Unreadable displacement.','変位を読み取れません。')
              else need(kind=='site' or kind=='multi','Unknown resolver kind.','未対応の解決方式です。') end
              -- Anchor length is the full source pattern, starting at the actual match.
              local count=0 for _ in p.p:gmatch('%S+') do count=count+1 end
              local anchor=need(bytes(a,count),'Cannot read anchor.','照合元を読み取れません。')
              accept(target,site,nil)
              -- Retain full anchor separately (site may be offset from pattern start).
              local r=entries[#entries]
              if r and r.target==target and not r.anchor then r.anchor=anchor; r.anchorAt=a end
            end
          end
        end
      end
    end
    local expected=(sg.kind=='multi') and sg.count or 1
    need(type(expected)=='number' and expected&gt;=1 and #entries==expected,
      'Resolver missing or ambiguous: '..name,'未検出または複数候補です: '..name)
  end)
  if not ok then ASKA.status[name]=tostring(e); return nil,tostring(e) end
  local values={} for i,r in ipairs(entries) do values[i]=r.target end
  local value=sg.kind=='multi' and values or values[1]
  ASKA.A[name]={fingerprint=fingerprint,entries=entries,value=value}; ASKA.status[name]='OK'
  return value
end
function ASKA.needSig(name)
  local value,e=ASKA.resolveSig(name); return need(value,e or 'Resolver unavailable.',e or '対象を解決できません。')
end


----------------------------------------------------------------- hook manager
function ASKA.hookOn(name)
  ASKA.require()
  if ASKA.hooks[name] and ASKA.hooks[name].failedInstall then ASKA.hookOff(name) end
  if ASKA.hooks[name] then return false end
  local h=need(ASKA.HOOKS[name],'Hook is not configured.','フックが設定されていません。')
  need(h.len and h.len&gt;=5 and h.len&lt;=64 and type(h.validate)=='function' and type(h.quiesce)=='function',
    'Hook requires length, validation and quiescence contracts.','フックには長さ・検証・実行待機の定義が必要です。')
  local site=ASKA.needSig(h.sig)
  need(type(site)=='number','A hook requires one code site.','フック位置は1か所に限定してください。')
  for _,st in pairs(ASKA.hooks) do need(site+h.len&lt;=st.addr or site&gt;=st.addr+#st.orig,
    'Hook sites overlap.','フック範囲が重複しています。') end
  local original=need(bytes(site,h.len),'Cannot read original code.','元コードを読み取れません。')
  need(h.validate(site,original)==true,'Hook instruction contract failed.','フック命令の検証に失敗しました。')
  need(type(h.aa)=='string' and h.aa:find('[ENABLE]',1,true) and h.aa:find('[DISABLE]',1,true),
    'Hook AA needs ENABLE and DISABLE.','AAの有効化・解除処理が必要です。')
  local script=h.aa:gsub('%$SITE',hex(site)):gsub('%$ORIG','db '..db(original)):gsub('%$NOP',h.len&gt;5 and 'nop '..(h.len-5) or '')
  script=script:gsub('%[ENABLE%]','[ENABLE]\nassert('..hex(site)..','..db(original)..')',1)
  local assembled,ok,info=pcall(autoAssemble,script)
  local patched=bytes(site,h.len)
  if not assembled or not ok or not patched or equal(original,patched) then
    local state={addr=site,orig=original,pid=ASKA.pid,info=assembled and info or nil,
      failedInstall=true,cleanup=h.cleanupFailedInstall,
      resourceCleanup=h.failedInstallResourceAA, allocationConfirmed=assembled and ok==true}
    ASKA.hooks[name]=state
    local cleaned,reason=pcall(ASKA.hookOff,name)
    if not cleaned then ASKA.status[name]=tostring(reason) end
    ASKA.err('Hook installation could not be verified.','フックの設置を確認できませんでした。')
  end
  ASKA.hooks[name]={addr=site,orig=original,patch=patched,script=script,info=info,pid=ASKA.pid}
  need(patched and not equal(original,patched),'Hook bytes were not changed.','フックの書き込みを確認できません。')
  ASKA.A[h.sig]=nil
  return true
end
function ASKA.hookOff(name)
  local st=ASKA.hooks[name]; if not st then return end
  ASKA.require()
  need(st.pid==ASKA.pid,'Hook belongs to another process.','別プロセスのフックです。')
  if st.failedInstall then
    if not st.resourceCleanupComplete then
      if st.cleanup then
        checkedCall(st.cleanup,st)
      else
        need(st.allocationConfirmed and type(st.info)=='table' and type(st.resourceCleanup)=='string',
          'Failed installation requires verified cleanup.','設置失敗後の復元と資源の照合が必要です。')
        need(equal(bytes(st.addr,#st.orig),st.orig),
          'Cannot release hook resources while entry bytes differ.','入口の命令が異なるためフック領域を解放できません。')
        need(autoAssemble(st.resourceCleanup,st.info),
          'Hook resource cleanup failed.','フック領域の後始末に失敗しました。')
      end
      st.resourceCleanupComplete=true
    end
    need(equal(bytes(st.addr,#st.orig),st.orig),
      'Failed installation left unverified instructions.','設置失敗後の命令を照合できません。')
    ASKA.hooks[name]=nil
    return
  end
  need(ASKA.HOOKS[name].quiesce(st)==true,'Hook execution has not drained.','フックの実行完了を確認できません。')
  local now=bytes(st.addr,#st.orig)
  need(equal(now,st.patch) or equal(now,st.orig),
    'Code ownership changed; restore was stopped.','コードの所有状態が変化したため復元を停止しました。')
  need(autoAssemble(st.script,st.info),'Hook restoration failed; state retained.','フック復元に失敗しました。状態を保持します。')
  need(equal(bytes(st.addr,#st.orig),st.orig),'Restored bytes do not match.','復元したバイトが一致しません。')
  ASKA.hooks[name]=nil
end

----------------------------------------------------------------- features
local function usedHook(name)
  for key in pairs(ASKA.active) do for _,h in ipairs(ASKA.F[key].hooks or {}) do if h==name then return true end end end
  return false
end
function ASKA.feature(key,on)
  ASKA.require()
  local f=need(ASKA.F[key],'Feature is not configured.','機能が設定されていません。')
  if on then
    if ASKA.active[key] then return end
    if f.available then need(f.available()==true,'Feature unavailable for this binary.','このバイナリでは利用できません。') end
    local boundary=ASKA.featureBoundary(f)
    if f.prepare then checkedCall(f.prepare) end -- resolve/validate before writing
    local added={}; ASKA.active[key]={boundary=boundary,starting=true}
    local ok,e=pcall(function()
      for _,h in ipairs(f.hooks or {}) do
        if not ASKA.hooks[h] then added[#added+1]=h; ASKA.hookOn(h) end
      end
      need(ASKA.featureBoundary(f)==boundary,'Game data changed.','ゲームデータが変化しました。')
      if f.on then checkedCall(f.on) end
      ASKA.active[key].starting=nil
      ASKA.startTimer()
    end)
    if not ok then
      local clean,ce=pcall(function() if f.off then checkedCall(f.off) end end)
      if clean then
        ASKA.active[key]=nil
        for i=#added,1,-1 do if not usedHook(added[i]) then local restored,re=pcall(ASKA.hookOff,added[i]); if not restored then clean=false; ce=re end end end
      end
      if not clean then ASKA.active[key]={boundary=boundary,cleanup=true}; error(tostring(e)..' / '..tostring(ce),0) end
      error(e,0)
    end
  else
    if not ASKA.active[key] then return end
    ASKA.active[key].cleanup=true -- stop scheduled tasks even if off/restore fails
    if f.off then checkedCall(f.off) end
    local previous=ASKA.active[key]; ASKA.active[key]=nil
    local ok,e=pcall(function() for _,h in ipairs(f.hooks or {}) do if not usedHook(h) then ASKA.hookOff(h) end end end)
    if not ok then previous.cleanup=true; ASKA.active[key]=previous; error(e,0) end
  end
end

function ASKA.action(key)
  ASKA.require(); local fn=need(ASKA.ACTIONS[key],'Action is not configured.','操作が設定されていません。')
  return fn()
end

-- WP10-style native CT editors. Values use isolated mirrors, NEVER direct game addresses.
-- A user edit touches only scratch memory; the queued commit verifies process, world,
-- object identity and unchanged old value before invoking the adapter's write contract.

----------------------------------------------------------------- editor memory and value updates







function ASKA.undoLast()
  local h=ASKA.history[#ASKA.history]; if not h then return end
  local ctx=ASKA.checkContext(h.session)
  need(h.field.read(ctx)==h.after,'Value changed; undo cancelled.','値が変化したため元に戻せません。')
  need(h.field.write(ctx,h.before)==true,'Undo was rejected.','変更を戻せませんでした。')
  need(h.field.read(ASKA.checkContext(h.session))==h.before,'Undo readback differs.','元に戻した値が一致しません。')
  table.remove(ASKA.history)
end

----------------------------------------------------------------- UI helpers and editor records











-- Inline selections use native CE records and only apply via an explicit action.
local function inlineAction(parent,en,ja,callback)
  local row=ASKA.addAction(parent,en,ja,'')
  -- addAction's deferred closure cannot retain memrec, so capture its ID in the script.
  row.Script=('[ENABLE]\n{$lua}\nif syntaxcheck then return end\nASKA.oneShot(memrec,function() ASKA.runInline(%d) end)\n{$asm}\n[DISABLE]'):format(row.ID)
  ASKA.dynamic[row.ID].callback=callback
  return row
end
function ASKA.runInline(id)
  local entry=ASKA.dynamic[id]
  if entry and entry.callback then entry.callback() end
end
local function validateRows(rows,known)
  for _,row in ipairs(rows) do
    need((type(row.id)=='number' or type(row.id)=='string') and not known[row.id],
      'Selection IDs must be stable and unique.','選択IDは安定した一意の値にしてください。')
    known[row.id]=true
  end
end

function ASKA.chooseBatch(parent,categories,accept)
  local known={}
  for _,category in ipairs(categories) do validateRows(category.rows,known) end
  ASKA.clearChildren(parent)
  for _,category in ipairs(categories) do
    local group=ASKA.addHdr(parent,category.en,category.ja)
    ASKA.choose(group,category.rows,true,function(rows) accept(rows,category.id) end)
    group.Collapsed=true
  end
  parent.Collapsed=false
end

-- Read-only list records. The adapter shares the editor's rows/context/fields.
function ASKA.openParameterList(parent,key)
  ASKA.require()
  local d=need(ASKA.EDITORS[key],'List adapter is not configured.','一覧が設定されていません。')
  local boundary,epoch=ASKA.captureBoundary(),ASKA.epoch
  local rows=d.rows()
  validateRows(rows,{})
  ASKA.clearChildren(parent)
  inlineAction(parent,'Refresh','更新',function() ASKA.openParameterList(parent,key) end)
  for _,target in ipairs(rows) do
    local ctx=d.context(target.id)
    if ctx and ctx.identity~=nil then
      local identity=ctx.identity
      local prefix=tostring(target.id)..' | '
      local group=ASKA.addHdr(parent,prefix..(target.en or target.name),prefix..(target.ja or target.name or target.en))
      local function current()
        ASKA.require()
        need(ASKA.epoch==epoch and ASKA.captureBoundary()==boundary,
          'Game context changed. Refresh the list.','ゲーム状態が変わりました。一覧を更新してください。')
        local context=d.context(target.id)
        return need(context and context.identity==identity and context,
          'Target changed. Refresh the list.','対象が変わりました。一覧を更新してください。')
      end
      inlineAction(group,'Open in editor','エディタで開く',function()
        current()
        local editor=need(getAddressList().getMemoryRecordByID(d.record or -1),
          'Editor record is not configured.','エディタ項目が設定されていません。')
        ASKA.openEditorTarget(editor,key,target,identity)
        editor.Active=true
        while editor do editor.Collapsed=false;editor=editor.Parent end
      end)
      for _,action in ipairs(d.listActions or {}) do
        inlineAction(group,action.en,action.ja,function() action.run({current()}) end)
      end
      for _,field in ipairs(d.fields) do
        if not field.available or field.available(ctx)==true then
          local value=tostring(field.read(ctx))
          ASKA.addHdr(group,field.en..' = '..value,(field.ja or field.en)..' = '..value)
        end
      end
    end
  end
  parent.Collapsed=false
end

function ASKA.openListRecord(parent,key)
  ASKA.defer(function()
    if not parent.Active then return end
    local ok=ASKA.userRun(function() ASKA.openParameterList(parent,key) end)
    if not ok then ASKA.clearChildren(parent); parent.Active=false end
  end)
end


----------------------------------------------------------------- language and initial layout




----------------------------------------------------------------- ATTACH / ALL OFF


----------------------------------------------------------------- timer (editor tasks and process watch)

function ASKA.tick()
  if not ASKA.pid then return end
  if not next(ASKA.active) and not next(ASKA.queue) and not next(ASKA.sessions) then return end
  if not ASKA.alive() then
    ASKA.queue={}; ASKA.stopTimer()
    -- Do not destroy mirror rows against a different target or restore old bytes there.
    -- Clear callbacks and editor records only; allocated pages remain owned by old process.
    local parents={} for _,s in pairs(ASKA.sessions) do parents[#parents+1]=s.parent end
    for _,p in ipairs(parents) do ASKA.closeEditor(p) end
    ASKA.msg('Process changed/exited. Automatic work stopped. Select the original process to restore.',
      'プロセスが変化／終了しました。自動処理を停止しました。復元時は元のプロセスを選択してください。')
    return
  end
  local pending=ASKA.queue; ASKA.queue={}
  for _,job in pairs(pending) do
    local ok,e=pcall(ASKA.commit,job.info,job.value,job.before,job.characterStat)
    if not ok then ASKA.msg(tostring(e),tostring(e)); pcall(ASKA.paintMirror,job.info,job.info.last) end
  end
  local keys={} for k in pairs(ASKA.active) do keys[#keys+1]=k end
  for _,key in ipairs(keys) do
    local st,f=ASKA.active[key],ASKA.F[key]
    if st and not st.cleanup and not st.starting then
      local ok,e=pcall(function()
        need(ASKA.featureBoundary(f)==st.boundary,'World/save context changed.','ワールド／プレイ状態が変化しました。')
        if f.task then checkedCall(f.task) end
      end)
      if not ok then
        local clean,ce=pcall(ASKA.feature,key,false)
        if not clean and ASKA.active[key] then ASKA.active[key].cleanup=true end
        ASKA.msg(tostring(e)..(clean and '' or ' / '..tostring(ce)),tostring(e)..(clean and '' or ' / '..tostring(ce)))
      end
    end
  end

end


----------------------------------------------------------------- process cleanup and table reload
function ASKA.forgetProcess()
  local addressList=getAddressList()
  for _,id in ipairs({8001,8002}) do
    local record=addressList.getMemoryRecordByID(id)
    if record then record.Active=false;ASKA.clearChildren(record) end
  end
  ASKA.stopTimer(); ASKA.cancelDeferred()
  local parents={} for _,s in pairs(ASKA.sessions) do parents[#parents+1]=s.parent end
  for _,p in ipairs(parents) do ASKA.closeEditor(p) end
  if ASKA.lifeHandle then executeCodeLocalEx('kernel32.CloseHandle',ASKA.lifeHandle) end
  ASKA.lifeHandle=nil; ASKA.pid=nil; ASKA.modules=nil; ASKA.uiBase=nil; ASKA.slots=nil
  ASKA.active,ASKA.hooks,ASKA.A,ASKA.status,ASKA.queue,ASKA.history={},{},{},{},{},{}
  ASKA.retryCursor,ASKA.lastRetry=nil,nil
  ASKA.epoch=ASKA.epoch+1
end
function ASKA.shutdown()
  if ASKA.pid then
    if ASKA.alive() then
      ASKA.disableAll()
      if ASKA.uiBase then
        need(deAlloc(ASKA.uiBase),'Cannot free editor mirrors.','編集用メモリを解放できません。')
        ASKA.uiBase,ASKA.slots=nil,nil
      end
    else
      local exited=false
      if ASKA.lifeHandle then
        local ok,r=pcall(executeCodeLocalEx,'kernel32.WaitForSingleObject',ASKA.lifeHandle,0); exited=ok and r==0
      end
      need(exited,'Select the original process and restore before reloading this table.',
        'テーブル再読込前に元のプロセスを選択して解除してください。')
    end
  end
  ASKA.closeHousingTables()
  ASKA.forgetProcess()
end

----------------------------------------------------------------- diagnostics
function ASKA.luaEngine(on)
  local form=getLuaEngine(); if on then form.show(); form.bringToFront() else form.hide() end
end
function ASKA.envReport()
  ASKA.msg('ASKA '..ASKA.VERSION..' / '..ASKA.CHEATVER,'ASKA '..ASKA.VERSION..' / '..ASKA.CHEATVER)
  ASKA.msg('PID: '..tostring(ASKA.pid)..' / opened: '..tostring(getOpenedProcessID()),
    'PID: '..tostring(ASKA.pid)..' / 接続先: '..tostring(getOpenedProcessID()))
  if ASKA.pid and ASKA.alive() then
    for _,m in ipairs(enumModules(ASKA.pid)) do
      local ok,p=pcall(ASKA.pe,m)
      if ok then print(('%s base=%X size=%X machine=%X PE-id=%X'):format(m.Name,m.Address,p.size,p.machine,p.ts)) end
    end
  end
end

function ASKA.statusReport()
  local n=0 for _ in pairs(ASKA.active) do n=n+1 end
  local h=0 for _ in pairs(ASKA.hooks) do h=h+1 end
  ASKA.msg(('Features: %d / Hooks: %d'):format(n,h),('有効機能: %d / フック: %d'):format(n,h))
  for name,value in pairs(ASKA.status) do print(name..': '..value) end
end
-- Names are inserted by the build tool together with the XML tree.

ASKA.BUILD = {
executable={machine=0x8664,timestamp=0x69BA5C59,size=0xE1000,methods={}},
assembly={machine=0x8664,timestamp=0x6AC911E6,size=0x6832000,methods={{rva=0x3680700,bytes={72,131,236,40,128,61,252,91,153,2,0,117,19,72,141,13}},{rva=0x7C3370,bytes={72,139,65,48,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0x71C450,bytes={72,139,65,80,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0x6B48D0,bytes={15,182,65,96,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0xB46360,bytes={72,131,236,40,72,139,137,80,1,0,0,72,133,201,116,24}},{rva=0xB3E470,bytes={72,137,92,36,8,87,72,131,236,64,128,185,124,2,0,0}},{rva=0xB424C0,bytes={72,137,92,36,8,72,137,116,36,24,87,72,131,236,48,51}},{rva=0xB7D120,bytes={72,137,92,36,16,87,72,131,236,112,128,61,101,163,72,5}},{rva=0x3653DF0,bytes={72,137,92,36,32,86,87,65,86,72,131,236,48,128,61,0}},{rva=0x3654750,bytes={64,83,85,65,86,65,87,72,131,236,56,128,61,160,25,156}},{rva=0x36511E0,bytes={72,137,108,36,24,86,87,65,86,72,131,236,48,128,61,10}},{rva=0x3681580,bytes={72,137,92,36,8,87,72,131,236,32,128,61,238,76,153,2}},{rva=0x3658A10,bytes={72,137,92,36,16,87,72,131,236,32,128,61,14,215,155,2}},{rva=0x366AA00,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,48,128}},{rva=0xB93AA0,bytes={64,83,72,131,236,32,128,61,118,58,71,5,0,72,139,217}},{rva=0xB93BB0,bytes={64,83,72,131,236,32,128,61,103,57,71,5,0,72,139,217}},{rva=0xB93EE0,bytes={64,83,72,131,236,32,72,139,217,72,139,137,8,1,0,0}},{rva=0x12635F0,bytes={72,137,92,36,32,85,72,141,108,36,169,72,129,236,240,0}},{rva=0x1266B20,bytes={64,83,72,131,236,64,128,61,8,62,218,4,0,72,139,217}},{rva=0x125EE60,bytes={64,85,83,65,84,65,87,72,141,172,36,120,255,255,255,72}},{rva=0x1267510,bytes={64,83,72,131,236,80,128,61,9,52,218,4,0,72,139,217}},{rva=0x1267670,bytes={64,85,83,72,141,108,36,152,72,129,236,104,1,0,0,128}},{rva=0x45F7DF0,bytes={64,83,72,131,236,32,128,61,103,173,162,1,0,72,139,217}},{rva=0x45F7F80,bytes={72,137,92,36,16,87,72,131,236,32,128,61,199,171,162,1}},{rva=0x45F93C0,bytes={72,137,92,36,16,86,72,131,236,32,128,61,136,151,162,1}},{rva=0xAA5510,bytes={64,83,72,131,236,32,128,61,186,25,86,5,0,72,139,217}},{rva=0xC1C4A0,bytes={64,83,72,131,236,80,128,61,99,180,62,5,0,72,139,217}},{rva=0xC1F710,bytes={64,83,72,131,236,80,128,61,246,129,62,5,0,72,139,217}},{rva=0xC1E670,bytes={72,139,196,72,137,88,16,72,137,72,8,86,87,65,84,65}},{rva=0x82BE90,bytes={72,139,129,168,0,0,0,195,204,204,204,204,204,204,204,204}},{rva=0xDCB100,bytes={72,137,92,36,16,87,72,131,236,32,128,61,140,211,35,5}},{rva=0xDCB810,bytes={64,83,72,131,236,32,72,139,194,72,139,217,72,139,145,96}},{rva=0xDC0360,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,32,128}},{rva=0xDC0E40,bytes={64,83,65,86,72,131,236,88,128,61,127,118,36,5,0,72}},{rva=0xDF86D0,bytes={72,137,92,36,32,87,72,129,236,128,0,0,0,128,61,156}},{rva=0xDAA2D0,bytes={72,139,196,72,137,88,24,72,137,112,32,85,87,65,87,72}},{rva=0xDE8640,bytes={65,84,65,86,65,87,72,129,236,176,0,0,0,128,61,64}},{rva=0xC9A3A0,bytes={64,83,72,129,236,144,0,0,0,128,61,54,217,54,5,0}},{rva=0xBB5910,bytes={72,137,92,36,8,72,137,116,36,16,72,137,124,36,24,65}},{rva=0xBB5D60,bytes={72,139,196,72,137,80,16,72,137,72,8,83,86,87,65,84}},{rva=0xABE920,bytes={72,137,92,36,16,87,72,129,236,144,0,0,0,128,61,1}},{rva=0xAD2220,bytes={64,83,72,131,236,64,128,61,147,77,83,5,0,72,139,217}},{rva=0xBD03E0,bytes={72,137,92,36,8,87,72,131,236,32,72,139,129,8,1,0}},{rva=0xBD0650,bytes={72,137,92,36,8,87,72,131,236,32,128,61,192,112,67,5}},{rva=0xBD06E0,bytes={72,137,92,36,8,87,72,131,236,32,128,61,47,112,67,5}},{rva=0xE107C0,bytes={64,87,72,131,236,32,128,61,128,127,31,5,0,72,139,249}},{rva=0xDA15B0,bytes={64,83,85,87,72,131,236,48,128,61,50,110,38,5,0,72}},{rva=0xDA5690,bytes={72,137,92,36,24,87,72,131,236,64,128,61,109,45,38,5}},{rva=0x10A6FF0,bytes={72,137,84,36,16,83,85,87,72,131,236,32,128,61,211,44}},{rva=0x10A08A0,bytes={72,131,236,40,128,61,229,147,246,4,0,117,19,72,141,13}},{rva=0xC93560,bytes={64,85,83,86,87,72,141,108,36,193,72,129,236,152,0,0}},{rva=0x12AC920,bytes={72,137,92,36,8,87,72,131,236,32,128,61,224,225,213,4}},{rva=0x1291030,bytes={72,137,92,36,16,87,72,131,236,32,128,61,65,154,215,4}},{rva=0x12ED100,bytes={72,137,92,36,8,87,72,131,236,32,128,61,143,219,209,4}},{rva=0x12F2640,bytes={72,137,92,36,8,87,72,129,236,176,0,0,0,128,61,109}},{rva=0x12F3480,bytes={72,137,92,36,24,72,137,108,36,32,65,86,72,131,236,48}},{rva=0x12B9A30,bytes={72,137,92,36,24,87,72,129,236,144,0,0,0,128,61,3}},{rva=0x12B7A80,bytes={64,85,83,87,65,85,72,141,108,36,136,72,129,236,120,1}},{rva=0x12B4A40,bytes={72,131,236,40,72,139,65,32,72,133,192,116,33,72,131,184}},{rva=0x12B4B40,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,48,72}},{rva=0x35EA4C0,bytes={64,83,72,131,236,48,72,139,1,72,139,217,15,41,116,36}},{rva=0x847940,bytes={139,129,128,1,0,0,195,204,204,204,204,204,204,204,204,204}},{rva=0xF83C40,bytes={72,131,236,40,128,61,224,85,8,5,0,117,19,72,141,13}},{rva=0xF75B80,bytes={64,83,72,131,236,80,128,61,194,54,9,5,0,72,139,217}},{rva=0xF78400,bytes={64,87,65,85,72,129,236,168,0,0,0,128,61,80,14,9}},{rva=0xF84050,bytes={15,182,129,140,1,0,0,195,204,204,204,204,204,204,204,204}},{rva=0xF85060,bytes={136,145,140,1,0,0,195,204,204,204,204,204,204,204,204,204}}}},
}
-- Reference common routines; ASKA-specific changes are recorded in port_reference_framework.py.
-- Reference: Survivalist Invisible Strain.CT:1002-1002
function ASKA.T(en,ja) return ASKA.lang=='ja' and (ja or en) or en end

-- Reference: Survivalist Invisible Strain.CT:1006-1006
function ASKA.err(en,ja) error(ASKA.T(en,ja),0) end

-- Reference: Survivalist Invisible Strain.CT:1007-1011
function ASKA.userRun(fn)
  local ok,e=pcall(fn)
  if not ok then ASKA.msg(tostring(e),tostring(e)) end
  return ok,e
end

-- Reference: Survivalist Invisible Strain.CT:1012-1026
function ASKA.defer(fn)
  local epoch=ASKA.epoch
  local t=createTimer(nil,false); ASKA.deferred[t]=true; t.Interval=1
  t.OnTimer=function()
    if not ASKA.deferred[t] then return end
    ASKA.deferred[t]=nil
    pcall(function()
      t.Enabled=false
      t.OnTimer=nil
      t.destroy()
    end)
    if ASKA.epoch==epoch then ASKA.userRun(fn) end
  end
  t.Enabled=true
end

-- Reference: Survivalist Invisible Strain.CT:1027-1038
function ASKA.oneShot(mr,fn)
  local id=mr and mr.ID
  local tracked=id and ASKA.dynamic[id]
  local epoch=ASKA.epoch
  ASKA.defer(function()
    ASKA.userRun(fn)
    if id and _G.ASKA==ASKA and (id==1 or ASKA.epoch==epoch) and ASKA.dynamic[id]==tracked then
      local current=getAddressList().getMemoryRecordByID(id)
      if current and current.Active then current.Active=false end
    end
  end)
end


do
  local forms = {}
  function ASKA.closeHousingTables()
    for _, view in pairs(forms) do view.form.close() end
  end
  local houseRows = {
    {'100.00%', '100.00%'}, {'87.77%', '100.00%'}, {'60.73%', '87.36%'},
    {'33.32%', '63.61%'}, {'20.00%', '50.00%'}, {'18.35%', '46.91%'},
    {'16.39%', '41.27%'}, {'14.26%', '34.18%'}, {'12.09%', '26.73%'},
    {'10.00%', '20.00%'},
  }
  local furnitureRows = {
    {'Small Hearth', '小型の暖炉', 12},
    {'Sturdy Table', '頑丈なテーブル', 12},
    {'Sturdy Bed', '頑丈なベッド', 10},
    {'Sturdy Food Shelf', '頑丈な食料棚', 8},
    {'Sturdy Wall', '頑丈な壁', 8},
    {'Sturdy Doorway', '頑丈なドア枠', 8},
    {'Food Shelf (Sideshelf3)', '食料棚（Sideshelf3）', 7},
    {'Sturdy Shelf', '頑丈な棚', 7},
    {'Sturdy Armor Rack', '頑丈な鎧ラック', 6},
    {'Small Fireplace', '小さな暖炉', 5},
    {'Food Storage', '食料貯蔵庫', 5},
    {'Sturdy Firewood Storage', '頑丈な薪収納庫', 5},
    {'Angled Wall Doorway', '傾斜壁の入り口', 5},
    {'Flimsy Table', '貧相なテーブル', 4},
    {'Armor Rack', '防具棚', 3},
    {'Thatch Bed', '藁ぶきの寝床', 3},
    {'Firewood Storage', '薪貯蔵庫', 3},
    {'Food Shelf (FoodShelf1)', '食料棚（FoodShelf1）', 3},
    {'Angled Wall', '傾斜壁', 3},
    {'Flimsy Shelf', '貧相な棚', 3},
    {'Small Item Shelf', '小アイテム棚', 3},
    {'Small Item Storage', '小アイテム貯蔵庫', 3},
    {'Weapon Display', '武器ディスプレイ', 3},
    {'Weapon Rack', '武器棚', 3},
    {'Sturdy Weapon Rack', '頑丈な武器ラック', 3},
    {'Backdrop Panel', '背景パネル', 1},
  }

  function ASKA.showHousingTable(kind, refreshOnly)
    local houses = kind == 'houses'
    local T = ASKA.T
    local view = forms[kind]
    if not view and refreshOnly then return end
    if not view then
      local form = createForm(false)
      form.Name = houses and 'ASKA_HouseHousingPoints' or 'ASKA_FurnitureHousingPoints'
      form.Position = 'poScreenCenter'
      form.BorderStyle = 'bsSizeable'
      form.ClientWidth = 680
      form.ClientHeight = houses and 360 or 610
      form.Font.Name = 'Yu Gothic UI'
      form.Font.Size = 10
      local notes = createMemo(form)
      notes.Parent = form
      notes.Align = 'alBottom'
      notes.Height = houses and 62 or 88
      notes.ReadOnly = true
      notes.WordWrap = true
      local list = createListView(form)
      list.Name = 'HousingPointsList'
      list.Parent = form
      list.Align = 'alClient'
      list.ViewStyle = 'vsReport'
      list.ReadOnly = true
      list.RowSelect = true
      list.ShowColumnHeaders = true
      form.OnClose = function()
        forms[kind] = nil
        return caFree
      end
      view = {form = form, list = list, notes = notes}
      forms[kind] = view
    end
    local form, list, notes = view.form, view.list, view.notes
    list.Items.clear()
    list.Columns.clear()
    local function column(title, width)
      local entry = list.Columns.add()
      entry.Caption = title
      entry.Width = width
    end
    local function row(title, value, extra)
      local entry = list.Items.add()
      entry.Caption = title
      entry.SubItems.add(value)
      if extra then entry.SubItems.add(extra) end
    end
    if houses then
      form.Caption = T('House housing points table', '家の住宅ポイント表')
      column(T('Assigned residents', '割り当て住民数'), 174)
      column(T('Cottage', '小さな家'), 222)
      column(T('Longhouse', '長屋'), 222)
      for count, values in ipairs(houseRows) do
        row(tostring(count), values[1], values[2])
      end
      notes.Lines.Text = T(
        'Percentage of housing points retained after the resident-count adjustment (interior and exterior). Reductions begin at 2 residents in the cottage and 3 in the longhouse.',
        '人数補正後に残る屋内・屋外住宅ポイントの割合です。小さな家は2人目、長屋は3人目から減算されます。')
    else
      form.Caption = T('Furniture housing points table', '家具の住宅ポイント表')
      column(T('Furniture', '家具'), 440)
      column(T('Base interior points', '屋内住宅ポイント基準加算'), 196)
      for _, furniture in ipairs(furnitureRows) do
        row(T(furniture[1], furniture[2]), ('+%d'):format(furniture[3]))
      end
      notes.Lines.Text = T(
        'Before the resident-count adjustment. For repeated copies of the same furniture, the 1st through 6th add approximately 100%, 57.83%, 27.81%, 12.92%, 6.29%, and 1.03% of the base points respectively. From the 7th copy onward, each adds approximately 1.00%.',
        '人数補正前の値です。同じ家具を複数置いた場合、1～6個目の加算率は順に約100%、57.83%、27.81%、12.92%、6.29%、1.03%です。7個目以降は1個につき基準値の約1.00%が加算されます。')
    end
    if not refreshOnly then
      form.show()
      form.bringToFront()
    end
  end
  function ASKA.refreshHousingTables()
    for kind in pairs(forms) do ASKA.showHousingTable(kind, true) end
  end
end

-- Reference: Survivalist Invisible Strain.CT:1039-1050
function ASKA.cancelDeferred()
  local pending=ASKA.deferred
  ASKA.deferred={}
  for timer in pairs(pending) do

    pcall(function()
      timer.Enabled=false
      timer.OnTimer=nil
      timer.destroy()
    end)
  end
end

-- Reference: Survivalist Invisible Strain.CT:1194-1214
function ASKA.toggleRecord(mr,key,on)
  if ASKA.disarming then return end
  if on then
    local id=mr and mr.ID
    local epoch=ASKA.epoch
    if not id then return end
    ASKA.defer(function()
      if _G.ASKA~=ASKA or ASKA.epoch~=epoch or ASKA.disarming then return end
      local list=getAddressList()
      local current=list.getMemoryRecordByID(id)
      if not current or not current.Active then return end
      local ok=ASKA.userRun(function() ASKA.feature(key,true) end)
      if _G.ASKA==ASKA and ASKA.epoch==epoch and (not ok or not ASKA.active[key]) then
        current=list.getMemoryRecordByID(id)
        if current and current.Active then current.Active=false end
      end
    end)
  elseif ASKA.active[key] then
    ASKA.userRun(function() ASKA.feature(key,false) end)
  end
end

-- Reference: Survivalist Invisible Strain.CT:1221-1229
local editorMirrorSlotBytes = 0x1000
function ASKA.mirrorBase()
  ASKA.require()
  if not ASKA.uiBase then
    ASKA.uiBase=need(allocateMemory(1024 * editorMirrorSlotBytes),'Cannot allocate editor mirrors.','編集用メモリを確保できません。')
    need(ASKA.uiBase~=0,'Cannot allocate editor mirrors.','編集用メモリを確保できません。')
    ASKA.slots={}
  end
  return ASKA.uiBase
end

-- Reference: Survivalist Invisible Strain.CT:1230-1234
function ASKA.allocSlot()
  local b=ASKA.mirrorBase()
  for i=0,1023 do if not ASKA.slots[i] then ASKA.slots[i]=true; return i,b+i*editorMirrorSlotBytes end end
  ASKA.err('Too many editor rows; close another editor.','編集行が多すぎます。ほかのエディタを閉じてください。')
end

-- Reference: Survivalist Invisible Strain.CT:1235-1245
function ASKA.checkContext(session)
  need(session.live,'Editor was closed.','エディタは閉じられています。')
  ASKA.require()
  need(session.epoch==ASKA.epoch and session.pid==ASKA.pid and ASKA.captureBoundary()==session.boundary,
    'Game context changed. Reopen the editor.','ゲームの状態が変わりました。エディタを開き直してください。')
  local definition=ASKA.EDITORS[session.key]
  local ctx=definition.context(session.id)
  need(ctx and ctx.identity~=nil and ctx.identity==session.identity,
    'Target identity changed. Reopen the editor.','対象の実体が変わりました。エディタを開き直してください。')
  return ctx
end

-- Reference: Survivalist Invisible Strain.CT:1246-1274
function ASKA.normalized(field,value,reading)
  if field.kind=='string' then
    value=tostring(value)
    need(not value:find('\0',1,true) and #value&lt;=(field.maxLength or 120),
      'Text is too long or contains NUL.','文字列が長すぎるか、NULを含んでいます。')
  else
    value=tonumber(value)
    need(value and value==value and math.abs(value)&lt;math.huge,
      'Enter a finite number.','有限の数値を入力してください。')
    if field.characterStat and field.kind=='float' then
      local single=string.unpack('&lt;f',string.pack('&lt;f',value))
      need(value==0 or single~=0,"Value is too small for the game's single-precision format.",'入力値が小さすぎてゲームの単精度数値ではゼロになります。')
      need(math.abs(single)&lt;math.huge,"Value exceeds the game's single-precision range.",'ゲームの単精度数値の範囲を超えています。')
    else
      need(math.abs(value)&lt;=9007199254740991,'Value exceeds exact numeric range.','数値の正確な表現範囲を超えています。')
    end
    local strict=reading or field.strict or field.choices
    if field.kind=='integer' then
      if strict then need(value%1==0,'Enter an integer.','整数を入力してください。')
      else value=math.floor(value) end
    end
    if strict then
      need((not field.min or value&gt;=field.min) and (not field.max or value&lt;=field.max),
        'Value is out of range.','入力値が範囲外です。')
    else
      if field.min then value=math.max(field.min,value) end
      if field.max then value=math.min(field.max,value) end
    end
  end
  if field.choices then
    local found=false for _,r in ipairs(field.choices) do if r.value==value then found=true end end
    need(found,'Select a listed value.','一覧の値を選択してください。')
  end
  return value
end

-- Reference: Survivalist Invisible Strain.CT:1275-1287
function ASKA.paintMirror(info,value)
  local session=info.session
  need(session.live and session.epoch==ASKA.epoch and ASKA.sessions[session.parentId]==session
    and session.rows[info.id]==info,'Editor was closed.','エディタは閉じられています。')
  ASKA.require()
  info.painting=true
  local ok,e=pcall(function()
    if info.field.kind=='string' then need(writeString(info.address,tostring(value)..'\0',true), 'Mirror write failed.','表示値を更新できません。')
    else need(writeDouble(info.address,value),'Mirror write failed.','表示値を更新できません。') end
    info.last=value
  end)
  info.painting=false; if not ok then error(e,0) end
end

-- Reference: Survivalist Invisible Strain.CT:1288-1303
function ASKA.commit(info,value,before)
  local s=info.session
  need(s.live and ASKA.sessions[s.parentId]==s and s.rows[info.id]==info,
    'Editor was closed.','エディタは閉じられています。')
  local ctx=ASKA.checkContext(s); value=ASKA.normalized(info.field,value)
  local current=info.field.read(ctx)
  local liveNumber=type(current)=='number' and (s.key=='memberEditor' or info.field.liveFloat)
  need(current==before or liveNumber,
    'Value changed in the game; refresh first.','ゲーム内で値が変化しました。再取得してください。')
  need(type(info.field.write)=='function','This field is read-only.','この項目は読み取り専用です。')
  need(info.field.write(ctx,value)==true,'Game rejected the edit.','ゲーム側の変更処理に失敗しました。')
  local fresh=ASKA.checkContext(s)
  if info.field.liveFloat then value=string.unpack('&lt;f',string.pack('&lt;f',value)) end
  need(info.field.read(fresh)==value,'Readback differs; refresh before another edit.','変更結果が一致しません。再取得してください。')
  ASKA.paintMirror(info,value)
end

-- Reference: Survivalist Invisible Strain.CT:1304-1314
function ASKA.queueEdit(info,newvalue)
  if info.painting or ASKA.disarming or not info.session.live then return end
  local s=info.session
  local ok,e=pcall(function()
    need(not info.field.readOnly,'This value is read-only.','この項目は表示専用です。')
    local before=info.last; local value=ASKA.normalized(info.field,newvalue)
    local ctx=ASKA.checkContext(s)
    if info.field.characterStat and info.field.available then
      need(info.field.available(ctx),'Attribute is unavailable.','属性を取得できません。')
    end
    ASKA.queue[info.id]={info=info,before=before,value=value,characterStat=info.field.characterStat and ctx.values[info.field.characterStat]}
  end)
  if not ok then ASKA.msg(tostring(e),tostring(e)); pcall(ASKA.paintMirror,info,info.last) end
end

-- Reference: Survivalist Invisible Strain.CT:1315-1317
function ASKA.track(m,en,ja)
  m.DontSave=true; ASKA.dynamic[m.ID]={mr=m,en=en,ja=ja}; return m
end

-- Reference: Survivalist Invisible Strain.CT:1318-1322
function ASKA.addHdr(parent,en,ja)
  local m=getAddressList().createMemoryRecord(); m.IsGroupHeader=true
  m.Description=ASKA.T(en,ja); m.Color=ASKA.C_GROUP; m.Options='[moManualExpandCollapse]'
  m.appendToEntry(parent); m.Collapsed=true; return ASKA.track(m,en,ja)
end

-- Reference: Survivalist Invisible Strain.CT:1323-1328
function ASKA.addAction(parent,en,ja,body)
  local m=getAddressList().createMemoryRecord()
  m.Description=ASKA.T(en,ja); m.Color=ASKA.C_SCRIPT; m.Type=vtAutoAssembler
  m.Script='[ENABLE]\n{$lua}\nif syntaxcheck then return end\nASKA.oneShot(memrec,function() '..body..' end)\n{$asm}\n[DISABLE]'
  m.appendToEntry(parent); return ASKA.track(m,en,ja)
end

-- Reference: Survivalist Invisible Strain.CT:1329-1345
function ASKA.clearChildren(parent)
  while parent.Count&gt;0 do
    local m=parent.Child[0]; ASKA.clearChildren(m)
    local d=ASKA.dynamic[m.ID]
    if d and d.info then
      ASKA.queue[m.ID]=nil
      if ASKA.slots then ASKA.slots[d.info.slot]=nil end
      d.info.mr.OnValueChangedByUser=nil
    end
    local id=m.ID
    ASKA.dynamic[id]=nil
    m.OnActivate=nil
    m.Active=false
    local current=getAddressList().getMemoryRecordByID(id)
    if current then current.destroy() end
  end
end

-- Reference: Survivalist Invisible Strain.CT:1346-1355
function ASKA.closeEditor(parent)
  local s=ASKA.sessions[parent.ID]
  if s then
    s.live=false
    for id in pairs(s.rows) do ASKA.queue[id]=nil end
    ASKA.sessions[parent.ID]=nil
  end
  ASKA.clearChildren(parent)
  local names=ASKA.NAMES[parent.ID]; if names then parent.Description=ASKA.T(names[1],names[2]) end
end

-- Reference: Survivalist Invisible Strain.CT:1356-1417
function ASKA.selectEditor(parent,key,selected,expectedIdentity)
  ASKA.require(); local d=need(ASKA.EDITORS[key],'Editor is not configured.','エディタが設定されていません。')
  local boundary=ASKA.captureBoundary()
  local rows=selected and {selected} or d.rows(); need(type(rows)=='table' and #rows&gt;0,'No editable targets.','編集対象がありません。')
  local identities={}
  for _,row in ipairs(rows) do
    local identity=d.identityForRow and d.identityForRow(row)
    if identity==nil then
      local target=need(d.context(row.id),'Target is unavailable.','対象を取得できません。')
      identity=target.identity
    end
    identities[row.id]=identity
  end
  local chosen=selected
  if key=='items' then need(chosen,'Item list context is missing.','所持品一覧を取得できません。')
  elseif not chosen then chosen=(d.choose or ASKA.choose)(ASKA.T(d.en,d.ja),rows,false) end
  if not chosen then return false end
  need(ASKA.captureBoundary()==boundary,'Game data changed while choosing.','選択中にゲームデータが変化しました。')
  local ctx=need(d.context(chosen.id),'Target is unavailable.','対象を取得できません。')
  need(ctx.identity~=nil,'Editor identity contract is missing.','対象の同一性確認が未実装です。')
  need(ctx.identity==(expectedIdentity or identities[chosen.id]),
    'Target changed while choosing.','選択中に対象の実体が変わりました。')
  ASKA.closeEditor(parent)
  local session={key=key,id=chosen.id,identity=ctx.identity,boundary=boundary,
    epoch=ASKA.epoch,pid=ASKA.pid,parent=parent,parentId=parent.ID,rows={},live=true}
  ASKA.sessions[parent.ID]=session
  local ok,e=pcall(function()
    session.label={chosen.en or chosen.name,chosen.ja or chosen.name}
    local suffix=ASKA.T(session.label[1],session.label[2]); parent.Description=ASKA.T(d.en,d.ja)..(suffix~='' and (' : '..suffix) or '')
    if key~='addItems' and key~='items' then
      local selectTarget='ASKA.selectEditor(getAddressList().getMemoryRecordByID(%d),%q)'
      ASKA.addAction(parent,'Change target...','対象を変更...',selectTarget:format(parent.ID,key))
    end
    ASKA.addAction(parent,'Refresh values','値を再取得','ASKA.refreshEditors()')
    if key=='playerEditor' then
      ASKA.addAction(parent,'Max all skills','最強','ASKA.playerEditorAction(true)')
      ASKA.addAction(parent,'Fully heal','全回復','ASKA.playerEditorAction(false)')
    end
    local groups={}
    local fields=d.fieldsFor and d.fieldsFor(d.fields,ctx) or d.fields
    for _,field in ipairs(fields) do
      if not field.available or field.available(ctx)==true then
        local value=ASKA.normalized(field,field.read(ctx),true)
        local slot,address=ASKA.allocSlot()
        local m=getAddressList().createMemoryRecord()
        local info={mr=m,id=m.ID,session=session,field=field,slot=slot,address=address}
        m.Description=ASKA.T(field.en,field.ja); m.Address=hex(address)
        if field.kind=='string' then
          need((field.maxLength or 120)*2+4&lt;=editorMirrorSlotBytes,'Editor text field exceeds its display buffer.','文字列欄が表示領域の容量を超えています。')
          m.Type=vtString; m.String.Size=field.maxLength or 120; m.String.Unicode=true
        else m.Type=vtDouble end
        local owner=parent
        if field.category then
          owner=groups[field.category]
          if not owner then
            owner=ASKA.addHdr(parent,field.groupEn,field.groupJa)
            if key=="items" then owner.Collapsed=false end
            groups[field.category]=owner
          end
        end
        m.appendToEntry(owner); ASKA.track(m,field.en,field.ja).DontSave=true
        ASKA.dynamic[m.ID].info=info; session.rows[m.ID]=info
        ASKA.paintMirror(info,value)
        ASKA.applyChoices(info)
        m.OnActivate=function(_,before) return not before end  
        m.OnValueChangedByUser=function(_,old,new)

          ASKA.queueEdit(info,field.kind=='string' and new or tonumber(new) or readDouble(address))
        end
      end
    end
    ASKA.checkContext(session)
    ASKA.startTimer()
    parent.Collapsed=false
  end)
  if not ok then ASKA.closeEditor(parent); error(e,0) end
  return true
end

-- Reference: Survivalist Invisible Strain.CT:1418-1424
function ASKA.openEditorTarget(parent,key,target,expectedIdentity)
  ASKA.editorTargets=ASKA.editorTargets or {}
  if parent.Active then return ASKA.selectEditor(parent,key,target,expectedIdentity) end
  ASKA.editorTargets[parent.ID]={target=target,identity=expectedIdentity}
  parent.Active=true
  ASKA.editorTargets[parent.ID]=nil
end

-- Reference: Survivalist Invisible Strain.CT:1425-1440
function ASKA.openEditor(parent,key)
  local target=ASKA.editorTargets and ASKA.editorTargets[parent.ID]

  local id,epoch=parent.ID,ASKA.epoch
  ASKA.defer(function()
    if _G.ASKA~=ASKA or ASKA.epoch~=epoch or ASKA.disarming then return end
    local list=getAddressList()
    local current=list.getMemoryRecordByID(id)
    if not current or not current.Active then return end
    local ok,result=ASKA.userRun(function() return ASKA.selectEditor(current,key,target and target.target,target and target.identity) end)
    if _G.ASKA==ASKA and ASKA.epoch==epoch and (not ok or result==false) then
      current=list.getMemoryRecordByID(id)
      if current and current.Active then current.Active=false end
    end
  end)
end

-- Reference: Survivalist Invisible Strain.CT:1441-1465
function ASKA.refreshEditors(identityOnly)
  local stale={}
  for _,s in pairs(ASKA.sessions) do
    local ok,e=pcall(function()
      local ctx=ASKA.checkContext(s)
      for id,info in pairs(s.rows) do
        if not identityOnly and not ASKA.queue[id] then
          local field=info.field
          local unavailable=not not (field.characterStat and field.available and not field.available(ctx))
          if field.characterStat and (info.unavailable or false)~=unavailable then
            info.unavailable=unavailable
            local dynamic=ASKA.dynamic[id]
            if dynamic then
              dynamic.en=field.en..(unavailable and ' (unavailable)' or '')
              dynamic.ja=field.ja..(unavailable and '（取得不可）' or '')
              info.mr.Description=ASKA.T(dynamic.en,dynamic.ja)
            end
          end
          if not unavailable then ASKA.paintMirror(info,ASKA.normalized(field,field.read(ctx),true)) end
        end
      end
    end)
    if not ok then stale[#stale+1]={session=s,error=e} end
  end
  for _,v in ipairs(stale) do
    local session=v.session
    if session.live and ASKA.sessions[session.parentId]==session then
      local list=getAddressList()
      local parent=list.getMemoryRecordByID(session.parentId)
      if parent then
        ASKA.closeEditor(parent)
        parent=list.getMemoryRecordByID(session.parentId)
        if parent and parent.Active and not ASKA.sessions[session.parentId] then parent.Active=false end
      end
      ASKA.msg(tostring(v.error),tostring(v.error))
    end
  end
end

-- Reference: Survivalist Invisible Strain.CT:1466-1472
function ASKA.applyChoices(info)
  if not info.field.choices then return end
  local lines={}
  for _,v in ipairs(info.field.choices) do lines[#lines+1]=tostring(v.value)..':'..ASKA.T(v.en,v.ja) end
  local m=info.mr; m.DropDownList.Text=table.concat(lines,'\n')
  m.DropDownReadOnly=true; m.DropDownDescriptionOnly=true; m.DisplayAsDropDownListItem=true
end

-- Reference: Survivalist Invisible Strain.CT:1475-1485
function ASKA.applyLang()
  local al=getAddressList()
  for i=0,al.Count-1 do
    local m=al.getMemoryRecord(i); local names=ASKA.NAMES[m.ID]
    if names and not ASKA.sessions[m.ID] then m.Description=ASKA.T(names[1],names[2]) end
  end
  for _,d in pairs(ASKA.dynamic) do d.mr.Description=ASKA.T(d.en,d.ja); if d.info then ASKA.applyChoices(d.info) end end
  for _,s in pairs(ASKA.sessions) do
    local d=ASKA.EDITORS[s.key]; local suffix=ASKA.T(s.label[1],s.label[2]); s.parent.Description=ASKA.T(d.en,d.ja)..(suffix~='' and (' : '..suffix) or '')
  end
end

-- Reference: Survivalist Invisible Strain.CT:1486-1486
function ASKA.setLang(lang) need(lang=='en' or lang=='ja','Invalid language.','言語設定が不正です。'); ASKA.lang=lang; ASKA.applyLang(); ASKA.refreshHousingTables() end

-- Reference: Survivalist Invisible Strain.CT:1487-1497
function ASKA.initCollapse()
  local al=getAddressList()
  for i=0,al.Count-1 do
    local m=al.getMemoryRecord(i)
    if m.Count&gt;0 then
      local p=m; local settings=false
      while p do if p.ID==2 then settings=true break end p=p.Parent end
      m.Collapsed=not settings
    end
  end
end

-- Reference: Survivalist Invisible Strain.CT:1539-1549
function ASKA.stopTimer()
  local timer=ASKA.timer
  ASKA.timer=nil
  if timer then
    pcall(function()
      timer.Enabled=false
      timer.OnTimer=nil
      timer.destroy()
    end)
  end
end

-- Reference: Survivalist Invisible Strain.CT:1685-1693
function ASKA.startTimer()
  if ASKA.timer then return end
  local t=createTimer(nil,false); ASKA.timer=t; t.Interval=ASKA.CONFIG.tick
  t.OnTimer=function()
    if ASKA.timer~=t or ASKA.inTick or ASKA.disarming then return end
    if not next(ASKA.active) and not next(ASKA.queue) and not next(ASKA.sessions) then
      ASKA.stopTimer(); return
    end
    ASKA.inTick=true; local ok,e=pcall(ASKA.tick); ASKA.inTick=false
    if not ok then ASKA.stopTimer(); ASKA.queue={}; ASKA.msg(tostring(e),tostring(e)) end
  end
  t.Enabled=true
end

-- Reference: Survivalist Invisible Strain.CT:6984-7011
function ASKA.choose(title,rows,multiple,options)
  options=options or {}
  local mapped, originals={},{}
  for _,row in ipairs(rows) do
    mapped[#mapped+1]={id=row.id,displayId=row.displayId or row.id,name=ASKA.T(row.en or row.name,row.ja or row.name)}
    if options.description then mapped[#mapped].description=ASKA.T(row.descriptionEn,row.descriptionJa) end
    originals[row.id]=row
  end
  local columns={
    {key='displayId',title='ID',numeric=type(mapped[1] and mapped[1].displayId)=='number',width=100},
    {key='name',title=ASKA.T('Name','名前'),flex=true},
  }
  if options.nameOnly then table.remove(columns,1) end
  if options.description then
    columns[#columns].flex=nil
    columns[#columns].width=240
    columns[#columns+1]={key='description',title=ASKA.T('Description','説明'),flex=true}
  end
  local id,back,quantity=ASKA.Picker.show({title=title,rows=mapped,columns=columns,multi=multiple,batch=multiple,
    back=options.back,sortIndex=options.sortIndex,quantity=options.quantity,noTooltips=options.noTooltips,
    accept=options.accept,confirmOnly=options.confirmOnly})
  if multiple and id then
    local selected={}
    for _,key in ipairs(id) do selected[#selected+1]=originals[key] end
    return selected,back,quantity
  end
  return id~=nil and originals[id] or nil,back,quantity
end

-- ASKA build 25834809. Values below are selected from the local PE and IL2CPP dump.
ASKA.TITLE = 'ASKA'
ASKA.EXE, ASKA.MODULE, ASKA.GAMEVER = 'Aska.exe', 'GameAssembly.dll', '25834809'
ASKA.TAG = 'ASKA'
ASKA.CONFIG.title = ASKA.TITLE
ASKA.CONFIG.modules = {code={names={ASKA.MODULE}}}
ASKA.CONFIG.candidates = function(name) return name:lower() == ASKA.EXE:lower() end

local function binaryName(name)
  return tostring(name or ''):gsub('\\','/'):match('([^/]+)$'):lower()
end
local function matches(module,expected)
  local pe=ASKA.pe(module)
  need(pe.machine==expected.machine and pe.ts==expected.timestamp and pe.size==expected.size,
    'Binary header mismatch: '..module.Name,'バイナリの版が一致しません: '..module.Name)
  for _,check in ipairs(expected.methods) do
    need(equal(bytes(module.Address+check.rva,#check.bytes),check.bytes),
      ('Code mismatch: %s + %X'):format(module.Name,check.rva),
      ('命令が一致しません: %s + %X'):format(module.Name,check.rva))
  end
  return true
end
ASKA.CONFIG.identify=function(modules,_,process)
  need(binaryName(process)==ASKA.EXE:lower(),'Wrong process: '..tostring(process),'対象プロセスが異なります: '..tostring(process))
  local mainIndex,assembly
  for index,module in ipairs(modules) do
    local name=binaryName(module.Name)
    if name==ASKA.EXE:lower() then
      need(not mainIndex,'Duplicate game executable.','ゲーム実行ファイルが重複しています。')
      mainIndex=index
    elseif name==ASKA.MODULE:lower() then
      need(not assembly,'Duplicate game assembly.','ゲームDLLが重複しています。')
      assembly=module
    end
  end
  need(mainIndex and assembly,'Game executable or DLL is not loaded.','ゲーム実行ファイルまたはDLLを取得できません。')
  matches(modules[mainIndex],ASKA.BUILD.executable)
  matches(assembly,ASKA.BUILD.assembly)
  if mainIndex~=1 then modules[1],modules[mainIndex]=modules[mainIndex],modules[1] end
  return true
end

local function pointer(addr)
  if not addr then return end
  local value = readPointer(addr)
  if value and value &gt;= 0x10000 and value &lt; 0x800000000000 and value % 8 == 0 then
    return value
  end
end

local function follow(addr, offset)
  if addr then return pointer(addr + offset) end
end

local function typeObject(base, rva)
  return pointer(base + rva)
end

local function singleton(class)
  return follow(follow(class, 0xB8), 0)
end

local function unityIdentity(obj)
  return follow(obj, 0x10)
end

local function soloContext()
  local base = ASKA.module().Address
  local manager = singleton(typeObject(base, 0x5D63E40))
  if not unityIdentity(manager) then return end
  local play = follow(manager, 0x30)
  local playClass = typeObject(base, 0x5D640B0)
  if not playClass or not unityIdentity(play) or follow(play, 0) ~= playClass then return end
  if readBytes(play + 0x60, 1) ~= 1 then return end
  local player = follow(play, 0x50)
  local playerIdentity = unityIdentity(player)
  local playerClass = typeObject(base, 0x5D5EF78)
  if not playerIdentity or not playerClass or follow(player, 0) ~= playerClass then return end
  local runner = follow(player, 0x38)
  if not unityIdentity(runner) or not follow(runner, 0x30) or readInteger(runner + 0x180) ~= 1 then return end
  return {
    base=base, player=player, identity=playerIdentity, runner=runner,
    token=('%X:%X:%X:%X'):format(play, player, playerIdentity, runner),
  }
end

local function clockContext()
  local context = soloContext()
  if not context then return end
  local base, runner = context.base, context.runner
  local weatherClass = typeObject(base, 0x5D47038)
  local weather = singleton(weatherClass)
  local identity = unityIdentity(weather)
  if not identity or follow(weather, 0) ~= weatherClass or follow(weather, 0x38) ~= runner then return end
  if readBytes(weather + 0x674, 1) ~= 1 then return end
  return {
    base=base, weather=weather, identity=identity, class=weatherClass, runner=runner,
    token=('%s:%X:%X'):format(context.token, weather, identity),
  }
end

local function clockBoundary()
  local context = clockContext()
  return context and context.token
end

ASKA.CONFIG.boundary = clockBoundary

local function native(name, ...)
  return executeCodeLocalEx(name, ...)
end

local suspensionHandle,suspensionEpoch
local function openSuspensionState(handle)
  local scratch=native('kernel32.VirtualAlloc',0,0x1000,0x3000,4)
  need(scratch and scratch~=0,'Cannot allocate a local process-state handle.',
    '一時停止の状態管理用メモリを確保できません。')
  local ok,status=pcall(native,'ntdll.NtCreateProcessStateChange',scratch,1,0,handle,0)
  local readOK,state=pcall(readQwordLocal,scratch)
  local freed,freeStatus=pcall(native,'kernel32.VirtualFree',scratch,0,0x8000)
  if not (ok and status==0 and readOK and state and state~=0 and freed and freeStatus==1) then
    if readOK and state and state~=0 then pcall(native,'kernel32.CloseHandle',state) end
    need(false,'Cannot obtain a Windows process suspension state.',
      'Windowsの一時停止状態を取得できません。')
  end
  return state
end

local function withTargetSuspended(work)
  ASKA.require()
  local handle = getOpenedProcessHandle()
  need(handle and handle ~= 0, 'Cannot access process handle.', 'プロセスハンドルを取得できません。')
  if suspensionHandle then
    need(handle==suspensionHandle and ASKA.epoch==suspensionEpoch,
      'Process changed during a suspended operation.','一時停止した操作の途中で対象プロセスが変わりました。')
    work(handle)
    return
  end
  local state=openSuspensionState(handle)
  local paused,status=pcall(native,'ntdll.NtChangeProcessState',state,handle,0,0,0,0)
  local ok,reason
  if paused and status==0 then
    suspensionHandle,suspensionEpoch=handle,ASKA.epoch
    ok,reason=pcall(work,handle)
    suspensionHandle,suspensionEpoch=nil,nil
  end
  -- The kernel releases the suspension when the state handle closes,
  -- including when Cheat Engine is terminated before this line runs.
  local closed,result=pcall(native,'kernel32.CloseHandle',state)
  need(closed and result==1,'Cannot close the game suspension state.',
    'ゲームの一時停止状態を解放できません。')
  need(paused and status==0,'Cannot suspend the game briefly.','ゲームを一時停止できません。')
  if not ok then error(reason,0) end
end

local function makeJump(address, target)
  local displacement = target - address - 5
  need(displacement &gt;= -0x80000000 and displacement &lt;= 0x7FFFFFFF,
    'Jump allocation is out of range.', 'ジャンプ先が到達範囲外です。')
  return string.char(0xE9) .. string.pack('&lt;i4', displacement)
end



local function checkedWrite(handle, address, expected)
  need(writeBytes(address, expected) == #expected and equal(bytes(address, #expected), expected),
    'Code write could not be verified.', 'コードの書き込みを確認できません。')
  need(native('kernel32.FlushInstructionCache', handle, address, #expected) == 1,
    'Instruction cache flush failed.', '命令キャッシュを更新できません。')
end

local function replaceEntry(handle, address, expected, previous)
  local success, reason = pcall(checkedWrite, handle, address, expected)
  if success then return end
  local reverted, failure = pcall(checkedWrite, handle, address, previous)
  if not reverted then error(tostring(reason)..' / '..tostring(failure), 0) end
  error(reason, 0)
end

local function verifyThreadsOutside(first, last)
  local ranges=type(first)=='table' and first or {{first,last}}
  local scratch = native('kernel32.VirtualAlloc', 0, 0x1000, 0x3000, 4)
  need(scratch and scratch ~= 0, 'Cannot allocate thread context scratch space.', 'スレッド状態の確認領域を確保できません。')
  local list
  local ok, reason = pcall(function()
    list = createStringlist()
    getThreadlist(list)
    need(list.Count &gt; 0, 'Could not enumerate game threads.', 'ゲームのスレッドを列挙できません。')
    for i = 0, list.Count - 1 do
      local id = assert(tonumber(list[i], 16))
      local thread = native('kernel32.OpenThread', 0x48, 0, id)
      need(thread and thread ~= 0, 'Cannot access a game thread.', 'ゲームのスレッドにアクセスできません。')
      local read, rip = pcall(function()
        -- AMD64 CONTEXT.Control: flags at +0x30, RIP at +0xF8.
        writeIntegerLocal(scratch + 0x30, 0x100001)
        if native('kernel32.GetThreadContext', thread, scratch) == 1 then
          return readQwordLocal(scratch + 0xF8)
        end
      end)
      native('kernel32.CloseHandle', thread)
      need(read and rip and rip &gt; 0, 'Cannot verify a game thread.', 'ゲームのスレッド状態を確認できません。')
      for _,range in ipairs(ranges) do
        need(rip &lt; range[1] or rip &gt;= range[2],
          'A game thread is in the code range. Retry the operation.',
          '対象のコードを実行中のスレッドがあります。再試行してください。')
      end
    end
  end)
  if list then list.destroy() end
  native('kernel32.VirtualFree', scratch, 0, 0x8000)
  if not ok then error(reason, 0) end
end

-- Recovery metadata is stored in the target allocation, independently of CE's Lua state.
local recoveryOffset=0xF00
local recoveryMagic='ASKAHK01'
local recoverySites={}
ASKA.nativeRecoverySites=recoverySites
local function recoveryChecksum(value)
  local sum=2166136261
  for i=1,#value do sum=((sum ~ value:byte(i))*16777619) &amp; 0xFFFFFFFF end
  return sum
end
local function recoveryStableLength(code)
  local gap=code:find(string.rep('\0',16),1,true)
  return gap and gap-1 or #code
end
local function recoveryRanges(extra,codeLength,stable)
  local ranges=extra and extra.ranges
  need(type(ranges)=='table'and #ranges&gt;0 and #ranges&lt;0x10000,
    'Invalid recovery instruction ranges.','復元用の命令範囲が不正です。')
  local last=stable
  for _,range in ipairs(ranges)do
    need(math.type(range.offset)=='integer'and math.type(range.length)=='integer'
      and range.offset&gt;=last and range.length&gt;0 and range.offset+range.length&lt;=codeLength,
      'Invalid recovery instruction range.','復元用の命令範囲が不正です。')
    last=range.offset+range.length
  end
  return ranges
end
local function recoveryExtent(extra,primary)
  if extra and extra.codeExtent then
    need(extra.primaryCodeLength==primary and math.type(extra.codeExtent)=='integer'
      and extra.codeExtent&gt;recoveryOffset and primary&lt;=recoveryOffset,
      'Invalid auxiliary recovery extent.','追加処理の復元範囲が不正です。')
    return extra.codeExtent
  end
  return primary
end
local function recoveryMetadata(context,entry,cave,rva,original,signature,jump,code,extra)
  local stable=recoveryStableLength(code)
  local primary=extra and extra.primaryCodeLength or #code
  local extent=recoveryExtent(extra,primary)
  need(math.type(primary)=='integer'and primary&gt;=stable and primary&lt;=#code
    and (not(extra and extra.codeExtent)or #code==extent),
    'Invalid auxiliary recovery payload.','追加処理の復元データが不正です。')
  need(#original&lt;=64 and #jump&lt;=64 and primary&lt;=recoveryOffset
    and #code&lt;=(extra and extra.codeExtent or recoveryOffset) and stable&gt;=5,
    'Invalid recovery record layout.','復元記録の構造が不正です。')
  local reserved,verifiedCode=0,code:sub(1,stable)
  if extra then
    if extra.ranges then
      local ranges=recoveryRanges(extra,#code,stable)
      reserved=0x80000000|#ranges
      for _,range in ipairs(ranges)do verifiedCode=verifiedCode..code:sub(range.offset+1,range.offset+range.length)end
    else
    need(extra.offset&gt;=stable and extra.length&gt;0 and extra.offset+extra.length&lt;=#code,
      'Invalid extra recovery code range.','復元用の追加命令範囲が不正です。')
    reserved=(extra.offset&lt;&lt;16)|extra.length
    verifiedCode=verifiedCode..code:sub(extra.offset+1,extra.offset+extra.length)
    end
  end
  local payload=string.pack('&lt;c8I8I8I8I4I4I4I4I4I4c64c64I4',
    recoveryMagic,entry,cave,context.base,rva,#original,primary,stable,
    recoveryChecksum(verifiedCode),reserved,
    string.char(table.unpack(original))..string.rep('\0',64-#original),
    string.char(table.unpack(jump))..string.rep('\0',64-#jump),
    recoveryChecksum(string.char(table.unpack(signature))))
  return payload..string.pack('&lt;I4',recoveryChecksum(payload))
end
local function recoverableSite(spec,base,entry,current)
  local original,signature=spec.original,spec.signature
  need(current and current[1]==0xE9 and #original&gt;=5,
    ('Unknown code at %s+%X'):format(ASKA.MODULE,spec.rva),
    ('未登録の命令です: %s+%X'):format(ASKA.MODULE,spec.rva))
  local cave=entry+5+string.unpack('&lt;i4',string.char(table.unpack(current,2,5)))
  need(cave&gt;=0x10000 and cave&lt;0x800000000000 and cave%0x1000==0,
    'Invalid leftover hook destination.','残留処理の移動先が不正です。')
  local jump=makeJump(entry,cave)..string.rep(string.char(0x90),#original-5)
  need(equal(bytes(entry,#original),{jump:byte(1,#jump)}),
    'Unknown leftover entry bytes.','残留処理の入口命令を照合できません。')
  for index=#original+1,#signature do
    need(current[index]==signature[index],'Code following the hook differs.','差込み後方の命令が異なります。')
  end
  local headerBytes=bytes(cave+recoveryOffset,192)
  local header=headerBytes and string.char(table.unpack(headerBytes))
  local verifiedCodeLength
  local verifiedCodeExtent=0x1000
  if header and header:sub(1,8)==recoveryMagic then
    local magic,savedEntry,savedCave,module,rva,length,codeLength,stable,codeHash,reserved,
      savedOriginal,savedJump,signatureHash,headerHash=string.unpack(
      '&lt;c8I8I8I8I4I4I4I4I4I4c64c64I4I4',header)
    need(savedEntry==entry and savedCave==cave and module==base and rva==spec.rva
      and length==#original and codeLength&lt;=recoveryOffset and stable&gt;=5 and stable&lt;=codeLength
      and savedOriginal:sub(1,length)==string.char(table.unpack(original))
      and savedJump:sub(1,length)==jump and signatureHash==recoveryChecksum(string.char(table.unpack(signature)))
      and headerHash==recoveryChecksum(header:sub(1,-5)),
      'Leftover recovery record did not verify.','残留処理の復元記録を照合できません。')
    verifiedCodeLength=codeLength
    local prefix=bytes(cave,stable)
    local verifiedCode=prefix and string.char(table.unpack(prefix))
    if reserved~=0 then
      if reserved&amp;0x80000000~=0 then
        local extra=spec.extraCode
        if extra and reserved~=0x80000000|#(extra.ranges or{})and extra.previous then
          local previous=extra.previous[codeLength]
          if previous and previous.ranges then extra=previous end
        end
        local function matchRanges(candidate)
          if not candidate or reserved~=0x80000000|#(candidate.ranges or{})then return end
          local extent=recoveryExtent(candidate,codeLength)
          local ranges=recoveryRanges(candidate,extent,stable)
          local candidateCode=prefix and string.char(table.unpack(prefix))
          if not candidateCode then return end
          for _,range in ipairs(ranges)do
            local value=bytes(cave+range.offset,range.length)
            if not value or #value~=range.length then return end
            candidateCode=candidateCode..string.char(table.unpack(value))
          end
          if recoveryChecksum(candidateCode)==codeHash then return candidateCode,extent end
        end
        local candidateCode,extent=matchRanges(extra)
        local alternatives=spec.extraCode and spec.extraCode.previousRanges
          and spec.extraCode.previousRanges[codeLength]
        if not candidateCode and alternatives then
          need(type(alternatives)=='table'and #alternatives&lt;=32,
            'Invalid legacy recovery layouts.','旧版の復元配置が不正です。')
          for _,candidate in ipairs(alternatives)do
            candidateCode,extent=matchRanges(candidate)
            if candidateCode then break end
          end
        end
        verifiedCode=need(candidateCode,'Leftover hook code changed.','残留処理のコードが変化しています。')
        verifiedCodeExtent=math.max(0x1000,extent)
      else
      local offset,extraLength=reserved&gt;&gt;16,reserved&amp;0xFFFF
      local extraSpec=spec.extraCode
      local function matches(candidate)
        return candidate and offset==candidate.offset and extraLength==candidate.length
      end
      local recognized=matches(extraSpec)
      if not recognized and extraSpec and extraSpec.previous then
        local previous=extraSpec.previous[codeLength]
        if previous and previous.offset then recognized=matches(previous)
        elseif previous then
          for _,candidate in ipairs(previous)do
            if matches(candidate)then recognized=true;break end
          end
        end
      end
      need(recognized
        and offset&gt;=stable and offset+extraLength&lt;=codeLength,
        'Unknown extra recovery code range.','復元用の追加命令範囲を照合できません。')
      local extraBytes=bytes(cave+offset,extraLength)
      need(extraBytes,'Cannot read additional hook instructions.','追加の差込み命令を読み取れません。')
      verifiedCode=verifiedCode and (verifiedCode..string.char(table.unpack(extraBytes)))
      end
    end
    need(verifiedCode and recoveryChecksum(verifiedCode)==codeHash,
      'Leftover hook code changed.','残留処理のコードが変化しています。')
  else
    need(header and header==string.rep('\0',192),
      'Unrecognized or damaged recovery metadata.','復元記録が不明または破損しています。')
    -- Legacy tables have no persistent record: require the entire generated instruction prefix.
    local context=need(spec.context(),'Cannot identify the old hook context.','旧処理の対象を照合できません。')
    local expected=spec.makeCode(context,cave,entry)
    verifiedCodeLength=#expected
    verifiedCodeExtent=math.max(0x1000,#expected)
    local stable=recoveryStableLength(expected)
    need(stable&gt;=5 and stable&lt;=recoveryOffset,
      'Legacy hook cannot be verified.','旧処理の命令範囲を照合できません。')
    if stable&lt;16 then
      need(stable==#expected,'Legacy code range is too short.','旧処理の命令範囲が不足しています。')
      local padding=bytes(cave+stable,recoveryOffset-stable)
      need(padding and #padding==recoveryOffset-stable,'Cannot read legacy code padding.','旧処理の配置範囲を確認できません。')
      for _,value in ipairs(padding) do
        need(value==0,'Legacy code allocation contains unknown data.','旧処理の配置範囲に不明なデータがあります。')
      end
    end
    if spec.extraCode then
      local extra=spec.extraCode
      local ranges=extra.ranges and recoveryRanges(extra,#expected,stable)or{extra}
      for _,range in ipairs(ranges)do
      need(equal(bytes(cave+range.offset,range.length),{expected:byte(range.offset+1,range.offset+range.length)}),
        'Legacy additional instructions differ.','旧処理の追加命令が一致しません。')
      end
    end
    need(equal(bytes(cave,stable),{expected:byte(1,stable)}),
      ('Unknown legacy hook [%s / +%X].'):format(spec.key,spec.rva),
      ('旧処理の生成コードが一致しません [%s / +%X]。'):format(spec.key,spec.rva))
  end
  return cave,verifiedCodeLength,verifiedCodeExtent
end
function ASKA.recoverNativeSites()
  -- External runtimes must drain and restore their own entry groups before
  -- generic recovery can restore/free a callback they still require.
  local external=ASKA.beforeNativeRecovery and ASKA.beforeNativeRecovery()or 0
  local base=ASKA.module().Address
  local grouped={}
  for _,spec in ipairs(recoverySites) do
    grouped[spec.rva]=grouped[spec.rva] or {}
    grouped[spec.rva][#grouped[spec.rva]+1]=spec
  end
  local rvas={}
  for rva in pairs(grouped) do rvas[#rvas+1]=rva end
  table.sort(rvas)
  local recovered=external
  -- A clean process needs no suspension. Recheck the entire group under
  -- suspension before touching any code when a changed site is detected.
  local changed=false
  for _,rva in ipairs(rvas) do
    local signature=grouped[rva][1].signature
    local current=bytes(base+rva,#signature)
    if not equal(current,signature) then
      -- Only the near jump format can belong to the CT. Reject unmatched
      -- bytes while the game is still running, even if another entry needs recovery.
      need(current and current[1]==0xE9,
        ('Unknown code at %s+%X'):format(ASKA.MODULE,rva),
        ('未登録の命令です: %s+%X'):format(ASKA.MODULE,rva))
      changed=true
    end
  end
  if not changed and recovered==0 then return 0 end
  if changed then withTargetSuspended(function(handle)
    local plans,ranges={},{}
    -- Validate every changed site before restoring the first byte.
    for _,rva in ipairs(rvas) do
      local candidates=grouped[rva]
      local current=bytes(base+rva,#candidates[1].signature)
      if not equal(current,candidates[1].signature) then
        local chosen,cave,reason,codeLength,codeExtent
        for _,spec in ipairs(candidates) do
          local ok,result,length,extent=pcall(recoverableSite,spec,base,base+rva,bytes(base+rva,#spec.signature))
          if ok then chosen,cave,codeLength,codeExtent=spec,result,length,extent;break end
          reason=result
        end
        need(chosen,tostring(reason),tostring(reason))
        ranges[#ranges+1]={cave,cave+codeExtent}
        if chosen.checkIdle then chosen.checkIdle(cave,codeLength) end
        plans[#plans+1]={spec=chosen,cave=cave,entry=base+rva,current=bytes(base+rva,#chosen.original)}
      end
    end
    if #ranges&gt;0 then verifyThreadsOutside(ranges) end
    for _,plan in ipairs(plans) do
      if plan.spec.beforeRestore then plan.spec.beforeRestore(plan.cave,handle) end
      replaceEntry(handle,plan.entry,plan.spec.original,plan.current)
      need(deAlloc(plan.cave),'Cannot release recovered hook memory.','復元済み処理のメモリを解放できません。')
      recovered=recovered+1
    end
  end) end
  if recovered&gt;0 then
    ASKA.msg(('Restored %d verified leftover hooks.'):format(recovered),
      ('照合済みの残留処理を%dか所復元しました。'):format(recovered))
  end
  return recovered
end

-- The diagnostic checks the ASKA native sites, rather than the unused template SIGS table.
function ASKA.scanSelfTest()
  ASKA.require()
  local base=ASKA.module().Address
  local groups={}
  for _,spec in ipairs(recoverySites)do
    groups[spec.rva]=groups[spec.rva]or{}
    groups[spec.rva][#groups[spec.rva]+1]=spec
  end
  local original,installed,failures=0,0,{}
  local external={}
  if ASKA.forgeNativeSiteScan then
    local ok,result=pcall(ASKA.forgeNativeSiteScan)
    if ok then external=result
    else failures[#failures+1]='Forge runtime: '..tostring(result)end
  end
  local function countExternal(rva,result)
    if result.ok then
      if result.installed then installed=installed+1 else original=original+1 end
    else failures[#failures+1]=('GameAssembly.dll+%X: %s'):format(rva,tostring(result.reason))end
  end
  for rva,variants in pairs(groups)do
    if external[rva]then countExternal(rva,external[rva])else
    local verified,reason=false,nil
    for _,spec in ipairs(variants)do
      if equal(bytes(base+rva,#spec.signature),spec.signature)then
        original=original+1;verified=true;break
      end
    end
    if not verified then
      for _,spec in ipairs(variants)do
        local ok,result=pcall(recoverableSite,spec,base,base+rva,bytes(base+rva,#spec.signature))
        if ok then installed=installed+1;verified=true;break end
        reason=result
      end
    end
    if not verified then failures[#failures+1]=('GameAssembly.dll+%X: %s'):format(rva,tostring(reason))end
    end
  end
  for rva,result in pairs(external)do if not groups[rva]then countExternal(rva,result)end end
  table.sort(failures)
  for _,failure in ipairs(failures)do ASKA.msg(failure,failure)end
  ASKA.msg(('Native checks: %d original, %d verified hooks, %d mismatches.'):format(original,installed,#failures),
    ('命令照合：元の命令%d、有効なフック%d、不一致%d。'):format(original,installed,#failures))
  return #failures==0
end

local function entryFeature(key, rva, original, signature, contextFor, makeCode, interiorOffset, controlSize, checkIdle, controlOffset)
  local recoveryRecord={key=key,rva=rva,original=original,signature=signature,
    context=contextFor,makeCode=makeCode,checkIdle=checkIdle}
  recoverySites[#recoverySites+1]=recoveryRecord
  local state
  local function restore()
    if not state then return end
    if state.epoch ~= ASKA.epoch then
      -- A new attachment follows the template's old-process lifetime check.
      state = nil
      return
    end
    withTargetSuspended(function(handle)
      if state.entryWriteAttempted then
        local current = bytes(state.entry, #original)
        need(equal(current, original) or equal(current, state.jump),
          'Code entry ownership changed.', '処理の入口が別のコードに変わっています。')
        if not equal(current, original) then
          replaceEntry(handle, state.entry, original, state.jump)
        else
          need(native('kernel32.FlushInstructionCache', handle, state.entry, #original) == 1,
            'Instruction cache flush failed.', '命令キャッシュを更新できません。')
        end
        state.entryWriteAttempted = false
        state.caveMayBeExecuting = true
      end
      if state.caveMayBeExecuting then
        verifyThreadsOutside(state.cave, state.cave + (recoveryRecord.extraCode and recoveryRecord.extraCode.codeExtent or 0x1000))
        if checkIdle then checkIdle(state.cave) end
      end
      need(deAlloc(state.cave), 'Cannot release code memory.', '処理のメモリを解放できません。')
      state = nil
    end)
  end

  local feature = {
    boundary=function()
      local context = contextFor()
      return context and context.token
    end,
    on=function()
      if state then restore() end
      withTargetSuspended(function(handle)
        local context = need(contextFor(), 'Player data is not ready.', 'プレイヤーデータの準備ができていません。')
        need(context.token == ASKA.active[key].boundary, 'Player data changed.', 'プレイヤーデータが変化しました。')
        local entry = context.base + rva
        local actual=bytes(entry,#signature)
        local function formatBytes(values)
          if not values then return '&lt;unreadable&gt;' end
          local result={}
          for _,value in ipairs(values) do result[#result+1]=('%02X'):format(value) end
          return table.concat(result,' ')
        end
        need(equal(actual,signature),
          ('Code mismatch [%s / %s+%X]; expected %s; actual %s'):format(
            key,ASKA.MODULE,rva,formatBytes(signature),formatBytes(actual)),
          ('命令不一致 [%s / %s+%X] 期待=%s 実際=%s'):format(
            key,ASKA.MODULE,rva,formatBytes(signature),formatBytes(actual)))
        -- A thread may be parked between two instructions in a multi-instruction entry.
        if interiorOffset then verifyThreadsOutside(entry + interiorOffset, entry + #original) end
        local allocationSize=recoveryRecord.allocateSize and recoveryRecord.allocateSize(context)or 0x1000
        need(math.type(allocationSize)=='integer' and allocationSize&gt;=0x1000 and allocationSize%0x1000==0,
          'Invalid code allocation size.','処理領域の大きさが不正です。')
        local cave = need(allocateMemory(allocationSize, entry), 'Cannot allocate code memory.', '処理のメモリを確保できません。')
        state = {epoch=ASKA.epoch, entry=entry, cave=cave}
        local code = makeCode(context, cave, entry)
        local jump = makeJump(entry, cave) .. string.rep(string.char(0x90), #original-5)
        state.jump = {jump:byte(1,#jump)}
        checkedWrite(handle, cave, {code:byte(1,#code)})
        local metadata=recoveryMetadata(context,entry,cave,rva,original,signature,state.jump,code,recoveryRecord.extraCode)
        checkedWrite(handle,cave+recoveryOffset,{metadata:byte(1,#metadata)})
        if recoveryRecord.writePayload then recoveryRecord.writePayload(handle,cave) end
        state.entryWriteAttempted = true
        replaceEntry(handle, entry, state.jump, original)
      end)
    end,
    off=restore,
  }
  -- Retain a verified existing entry without rewriting or freeing it. A caller
  -- must verify its own dynamic owner fields before adopting the Lua handle.
  function feature.retainedAllocation()
    if not state or state.epoch~=ASKA.epoch then return end
    return {cave=state.cave,entry=state.entry,epoch=state.epoch,installed=state.entryWriteAttempted==true}
  end
  function feature.retainExisting(verifyOwner)
    need(not state,'Native entry is already retained.','処理の入口は既に保持されています。')
    withTargetSuspended(function()
      local context=need(contextFor(),'Player data is not ready.','プレイヤーデータの準備ができていません。')
      need(ASKA.active[key] and ASKA.active[key].boundary==context.token,
        'Native retained context changed.','保持する処理の対象情報が変わりました。')
      local entry=context.base+rva
      local cave=recoverableSite(recoveryRecord,context.base,entry,bytes(entry,#signature))
      need(type(verifyOwner)=='function' and verifyOwner(cave,context),
        'Retained native owner fields differ.','保持する処理の所有情報が一致しません。')
      local jump=makeJump(entry,cave)..string.rep(string.char(0x90),#original-5)
      state={epoch=ASKA.epoch,entry=entry,cave=cave,jump={jump:byte(1,#jump)},
        entryWriteAttempted=true,caveMayBeExecuting=true}
    end)
  end
  feature.recoveryRecord=recoveryRecord
  recoveryRecord.feature=feature
  if controlSize then
    function feature.memberControl()
      need(state and state.epoch == ASKA.epoch and state.entryWriteAttempted
        and equal(bytes(state.entry, #state.jump), state.jump),
        'Feature code is not installed.', '機能のコードが有効化されていません。')
      return state.cave + (controlOffset or 0x220), controlSize
    end
  end
  return feature
end

local function groupedEntryFeatures(sites)
  return {
    boundary=sites[1].boundary,
    on=function()
      for _, site in ipairs(sites) do site.on() end
    end,
    off=function()
      local failures = {}
      for i = #sites, 1, -1 do
        local ok, reason = pcall(sites[i].off)
        if not ok then failures[#failures+1] = tostring(reason) end
      end
      if #failures &gt; 0 then error(table.concat(failures,'\n'),0) end
    end,
  }
end

do
  local clockFreezeInstructions = "\x49\x3B\x0A\x75\x22\x49\x8B\x42\x08\x48\x39\x41\x10\x75\x18\x49\x8B\x42\x10\x48\x39\x41\x38\x75\x0E\x80\xB9\x74\x06\x00\x00\x01\x75\x05\x41\x5A\x58\xEB\x09\x41\x5A\x58\xFF\x15\xDF\x9B\x57\x13"
  local signature={0xE8,0x92,0xF3,0,0,0x48,0x8B,0x0D,0xBB,0x14,0xDD,0x04,0x48,0x8B,0x7B,0x40}
  local original={table.unpack(signature,1,5)}
  local function clockCode(context,cave,entry)
    local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',0x120-7)
      ..string.char(0x50,0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x100)..clockFreezeInstructions
    local first,last=code:find(string.pack('&lt;I4',0x13579BDF),1,true)
    need(first,'Clock call marker is missing.','時刻固定の呼出位置を確認できません。')
    code=code:sub(1,first-1)..string.pack('&lt;i4',0x118-last)..code:sub(last+1)
    code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',0x120-#code-7)
    code=code..makeJump(cave+#code,entry+#original)
    need(#code&lt;=0x100,'Clock code exceeds its reserved range.','時刻固定処理が確保範囲を超えています。')
    return code..string.rep('\0',0x100-#code)
      ..string.pack('&lt;I8I8I8I8I4',context.weather,context.identity,context.runner,context.base+0xF84FD0,0)
  end
  ASKA.F.freezeClock=entryFeature('freezeClock',0xF75C39,original,signature,clockContext,clockCode,nil,nil,
    function(cave)need(readInteger(cave+0x120)==0,'A clock update is finishing.','時刻更新処理の完了を待っています。')end)
end

-- CharacterMovement.TryJumpCommand, Steam build 25834809.
local jumpRva = 0x1266D6B
local jumpLoad = {0xF3,0x0F,0x10,0x51,0x2C}
local jumpSignature = {0xF3,0x0F,0x10,0x51,0x2C,0x45,0x33,0xC9,0x8B,0x40,0x08,0x48,0x8D,0x4C,0x24,0x30}
local jumpMultiplier = 2.0
local movementFactorOffset = 0x200
local factorMarker = string.pack('&lt;I4',0x13579BDF)

local function withMovementFactor(code, factor)
  local from=1
  while true do
    local first,last=code:find(factorMarker,from,true)
    if not first then break end
    local displacement=movementFactorOffset-last
    code=code:sub(1,first-1)..string.pack('&lt;i4',displacement)..code:sub(last+1)
    from=last+1
  end
  need(#code&lt;=movementFactorOffset,'Movement code exceeds its reserved range.','移動処理が確保範囲を超えています。')
  return code..string.rep('\0',movementFactorOffset-#code)..string.pack('&lt;f',factor)
end

local function jumpContext()
  local context = soloContext()
  if not context or readBytes(context.player + 0x194, 1) ~= 0 then return end
  local movement = follow(context.player, 0x3B8)
  local identity = unityIdentity(movement)
  if not identity or follow(movement, 0x38) ~= context.runner then return end
  if not unityIdentity(follow(movement, 0x180)) then return end
  context.movement, context.movementIdentity = movement, identity
  context.token = ('%s:%X:%X'):format(context.token, movement, identity)
  return context
end

local function forPlayerMovement(context, instructions)
  return string.char(0x9C,0x41,0x53,0x49,0xBB) .. string.pack('&lt;I8', context.movement)
    .. string.char(0x4C,0x39,0xDB,0x75,16+#instructions)
    .. string.char(0x49,0xBB) .. string.pack('&lt;I8', context.movementIdentity)
    .. string.char(0x4C,0x39,0x5B,0x10,0x75,#instructions) .. instructions
    .. string.char(0x41,0x5B,0x9D)
end

local function jumpCode(context, cave, entry)
  local code = string.char(table.unpack(jumpLoad))
    .. forPlayerMovement(context,string.char(0xF3,0x0F,0x59,0x15)..factorMarker)
  return withMovementFactor(code..makeJump(cave+#code,entry+#jumpLoad),jumpMultiplier)
end

local speedMultiplier = 2.0
local speedSignature = {
  0x48,0x8B,0xB3,0x50,0x01,0,0,0x44,0x39,0xB1,0xE4,0,0,0,0x75,0x05,
}
local speedOriginal = {table.unpack(speedSignature,1,7)}

local function speedCode(context,cave,entry)
  -- Compute both horizontal components before storing. Skip the update if either is NaN or infinite.
  -- XMM0/XMM1 are saved here, and forPlayerMovement preserves R11 and flags.
  local scale = "\x48\x83\xec\x20\xf3\x0f\x7f\x04\x24\xf3\x0f\x7f\x4c\x24\x10\xf3\x0f\x10\x07\xf3\x0f\x59\x05"..factorMarker
    .. "\x66\x41\x0f\x7e\xc3\x45\x01\xdb\x41\x81\xfb\x00\x00\x00\xff\x73\x27\xf3\x0f\x10\x4f\x08\xf3\x0f\x59\x0d"..factorMarker
    .. "\x66\x41\x0f\x7e\xcb\x45\x01\xdb\x41\x81\xfb\x00\x00\x00\xff\x73\x09\xf3\x0f\x11\x07\xf3\x0f\x11\x4f\x08\xf3\x0f\x6f\x04\x24\xf3\x0f\x6f\x4c\x24\x10\x48\x83\xc4\x20"
  local matched = string.char(0x4C,0x8D,0x9B,0xCC,0x01,0x00,0x00,0x4C,0x39,0xDF,0x75,#scale)..scale
  local code = forPlayerMovement(context,matched)..string.char(table.unpack(speedOriginal))
  return withMovementFactor(code..makeJump(cave+#code,entry+#speedOriginal),speedMultiplier)
end

ASKA.F.speedMultiplier = entryFeature(
  'speedMultiplier',0x126138B,speedOriginal,speedSignature,jumpContext,speedCode,nil,4,nil,movementFactorOffset)

function ASKA.chooseSpeedMultiplier()
  need(not ASKA.active.speedMultiplier,'Disable the speed multiplier before changing it.','設定を変更する前に移動速度倍率を解除してください。')
  local value=inputQuery(ASKA.T('Movement speed multiplier','移動速度倍率'),
    ASKA.T('Enter a horizontal movement multiplier.','水平方向の移動倍率を入力してください。'),tostring(speedMultiplier))
  if value==nil then return end
  value=tonumber(value)
  need(value and value&gt;=0 and value&lt;=3.4028234663852886e38,
    'Enter a finite, nonnegative multiplier.','有限の0以上の倍率を入力してください。')
  speedMultiplier=value
  ASKA.msg(('Movement speed multiplier set to %g×.'):format(value),('移動速度倍率を%g倍に設定しました。'):format(value))
end

ASKA.F.jumpMultiplier = entryFeature(
  'jumpMultiplier', jumpRva, jumpLoad, jumpSignature, jumpContext, jumpCode,nil,4,nil,movementFactorOffset)

function ASKA.chooseJumpMultiplier()
  need(not ASKA.active.jumpMultiplier,
    'Disable the jump multiplier before changing its value.',
    '倍率を変更する前にジャンプ倍率を解除してください。')
  local value = inputQuery(ASKA.T('Jump multiplier', 'ジャンプ倍率'),
    ASKA.T('Enter an initial vertical speed factor (0.1 to 10).', '鉛直方向の初速倍率を入力してください（0.1～10）。'),
    tostring(jumpMultiplier))
  if value == nil then return end
  value = tonumber(value)
  need(value and value &gt;= 0.1 and value &lt;= 10,
    'The multiplier must be between 0.1 and 10.', '倍率は0.1～10の範囲で入力してください。')
  jumpMultiplier = value
  ASKA.msg(('Jump multiplier set to %g×.'):format(value), ('ジャンプ倍率を%g倍に設定しました。'):format(value))
end

local equipmentDecayGuardInstructions = "\x9C\x50\x52\x41\x50\x41\x51\x41\x53\x56\x57\x48\x85\xC9\x0F\x84\x9D\x01\x00\x00\x81\x79\x10\xF2\x03\x00\x00\x0F\x85\x90\x01\x00\x00\x66\x0F\x7E\xC8\x25\xFF\xFF\xFF\x7F\x3D\x00\x00\x80\x7F\x0F\x83\x7C\x01\x00\x00\x0F\x2E\x49\x28\x0F\x8A\x72\x01\x00\x00\x0F\x86\x6C\x01\x00\x00\xF7\x41\x28\x00\x00\x00\x80\x0F\x85\x5F\x01\x00\x00\x49\x8B\x42\x28\x48\x85\xC0\x0F\x84\x52\x01\x00\x00\x4C\x8B\x98\x40\x3E\xD6\x05\x4D\x85\xDB\x0F\x84\x42\x01\x00\x00\x4D\x8B\x9B\xB8\x00\x00\x00\x4D\x85\xDB\x0F\x84\x32\x01\x00\x00\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\x26\x01\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\x1B\x01\x00\x00\x4D\x8B\x5B\x30\x4D\x85\xDB\x0F\x84\x0E\x01\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\x03\x01\x00\x00\x48\x8B\x80\xB0\x40\xD6\x05\x49\x39\x03\x0F\x85\xF3\x00\x00\x00\x41\x80\x7B\x60\x01\x0F\x85\xE8\x00\x00\x00\x4D\x8B\x5B\x50\x4D\x3B\x1A\x0F\x85\xDB\x00\x00\x00\x49\x8B\x02\x48\x85\xC0\x0F\x84\xCF\x00\x00\x00\x49\x8B\x52\x08\x48\x85\xD2\x0F\x84\xC2\x00\x00\x00\x48\x39\x50\x10\x0F\x85\xB8\x00\x00\x00\x49\x8B\x52\x10\x48\x85\xD2\x0F\x84\xAB\x00\x00\x00\x48\x39\x50\x38\x0F\x85\xA1\x00\x00\x00\x83\xBA\x80\x01\x00\x00\x01\x0F\x85\x94\x00\x00\x00\x48\x8B\x90\x60\x02\x00\x00\x48\x85\xD2\x0F\x84\x84\x00\x00\x00\x48\x83\x7A\x10\x00\x74\x7D\x4C\x8B\x42\x50\x4D\x85\xC0\x74\x74\x41\x8B\x78\x18\x85\xFF\x7E\x6C\x49\x8B\x70\x10\x48\x85\xF6\x74\x63\x3B\x7E\x18\x7F\x5E\x45\x8B\x48\x1C\x31\xC0\x39\xF8\x7D\x54\x4C\x8B\x5C\xC6\x20\xFF\xC0\x4D\x85\xDB\x74\xF0\x49\x39\x53\x68\x75\xEA\x4D\x8B\x5B\x50\x4D\x85\xDB\x74\xE1\x49\x39\x53\x60\x75\xDB\x49\x39\x4B\x70\x75\xD5\x45\x39\x48\x1C\x75\x27\x49\x8B\x02\x48\x39\x90\x60\x02\x00\x00\x75\x1B\x48\x83\x7A\x10\x00\x74\x14\x4C\x39\x42\x50\x75\x0E\x5F\x5E\x41\x5B\x41\x59\x41\x58\x5A\x58\x9D\x41\x5A\xC3\x5F\x5E\x41\x5B\x41\x59\x41\x58\x5A\x58\x9D"
-- The three time-based decay modes converge on this addition in ItemDurablilityProcess.Run.
local decayUpdateRva = 0xDAA91B
local decayReturnRva = 0xDAA464
local decayOriginal = {0xF3,0x41,0x0F,0x58,0xF0}
local decaySignature = {
  0xF3,0x41,0x0F,0x58,0xF0,0x4C,0x8B,0x80,0x90,0x01,0x00,0x00,
  0x0F,0x28,0xCE,0xE9,0x2F,0xFB,0xFF,0xFF,
}

local function itemDecayCode(context, cave, entry)
  -- Preserve flags. A positive increment exits before the setter.
  -- Non-positive or unordered increments follow the original game path.
  local restore = string.char(0x48,0x8D,0x64,0x24,0x08,0x9D)
  local code = string.char(0x9C,0x6A,0x00,0x0F,0x2E,0x34,0x24,0x76,#restore+5)
    .. restore
  code = code .. makeJump(cave + #code, context.base + decayReturnRva)
    .. restore .. string.char(table.unpack(decayOriginal))
  return code .. makeJump(cave + #code, entry + #decayOriginal)
end

local expirySignature={0x48,0x85,0xDB,0x0F,0x84,0xF6,0,0,0,0x48,0x8B,0x13,0x48,0x8B,0xCB}
local expiryOriginal={table.unpack(expirySignature,1,9)}

local function expiryCode(context,cave)
  -- Both expiration conditions converge here, before container removal or world pickup disposal.
  return makeJump(cave,context.base+0xFFBB83)
end

ASKA.F.noTimedItemDecay=groupedEntryFeatures({
  entryFeature('noTimedItemDecay',decayUpdateRva,decayOriginal,decaySignature,soloContext,itemDecayCode),
  entryFeature('noTimedItemDecay',0xFFBBD1,expiryOriginal,expirySignature,soloContext,expiryCode,3),
})

local equipmentDamageSignature = {
  0xF3,0x0F,0x58,0x06,0x48,0x8B,0x4C,0x24,0x58,0xF3,0x0F,0x5D,0xF0,0x48,0x85,0xC9,
}
local equipmentDamageOriginal = {table.unpack(equipmentDamageSignature,1,9)}

local function equipmentWearContext()
  local context = soloContext()
  if not context then return end
  local equipment = follow(context.player, 0x260)
  local identity = unityIdentity(equipment)
  if not identity then return end
  context.equipment = equipment
  context.equipmentIdentity = identity
  -- Component replacement stays within the same verified player/world boundary.
  return context
end

local function equipmentWearCode(context, cave, entry)
  -- RDI is the equipment item. RSI points to the damage increment.
  -- Skip only positive finite wear for items owned by the player's equipment manager.
  local code = string.char(0x9C,0x41,0x53,0x49,0xBB) .. string.pack('&lt;I8',context.equipment)
    .. string.char(0x4C,0x39,0x5F,0x60,0x75,0x0F) -- cmp [rdi+60],r11; jne original
    .. string.char(0x44,0x8B,0x1E,0x41,0xFF,0xCB) -- mov r11d,[rsi]; dec r11d
    .. string.char(0x41,0x81,0xFB,0xFE,0xFF,0x7F,0x7F,0x76,0x04) -- cmp r11d,7F7FFFFE; jbe resume
    .. string.char(table.unpack(equipmentDamageOriginal,1,4))
    .. string.char(0x41,0x5B,0x9D)
    .. string.char(table.unpack(equipmentDamageOriginal,5))
  return code .. makeJump(cave + #code, entry + #equipmentDamageOriginal)
end

local shieldWearSignature = {
  0xF3,0x0F,0x58,0xC6,0x0F,0x2F,0xC7,0x77,0x03,0x0F,0x28,0xF8,0x48,0x8B,0x4D,0xC7,
}
local shieldWearOriginal = {table.unpack(shieldWearSignature,1,7)}

local function shieldWearCode(context, cave, entry)
  -- RSI is the shield item. XMM6 holds the wear increment in Character.TakeDamage.
  local code = string.char(0x9C,0x41,0x53,0x49,0xBB) .. string.pack('&lt;I8',context.equipment)
    .. string.char(0x4C,0x39,0x5E,0x60,0x75,0x11) -- cmp [rsi+60],r11; jne original
    .. string.char(0x66,0x41,0x0F,0x7E,0xF3,0x41,0xFF,0xCB) -- movd r11d,xmm6; dec r11d
    .. string.char(0x41,0x81,0xFB,0xFE,0xFF,0x7F,0x7F,0x76,0x04)
    .. string.char(table.unpack(shieldWearOriginal,1,4))
    .. string.char(0x41,0x5B,0x9D)
    .. string.char(table.unpack(shieldWearOriginal,5))
  return code .. makeJump(cave + #code, entry + #shieldWearOriginal)
end

local diggingWearSignature = {
  0xF3,0x0F,0x58,0x87,0xB4,0x00,0x00,0x00,0x48,0x8B,0x03,0x48,0x8B,0xCB,
  0x4C,0x8B,0x80,0x90,0x01,0x00,0x00,
}
local diggingWearOriginal = {table.unpack(diggingWearSignature,1,8)}

local function diggingWearCode(context, cave, entry)
  -- Follow DiggingMeleeObject.WeaponObject to the same item used for the decay getter.
  local owner = string.char(0x49,0xBA) .. string.pack('&lt;I8',context.equipment)
    .. string.char(0x4D,0x39,0x53,0x60) -- cmp [r11+60],r10
  local amount = string.char(0x44,0x8B,0x9F,0xB4,0x00,0x00,0x00,0x41,0xFF,0xCB)
    .. string.char(0x41,0x81,0xFB,0xFE,0xFF,0x7F,0x7F,0x76,#diggingWearOriginal)
  local checkOwner = owner .. string.char(0x75,#amount) .. amount
  local checkItem = string.char(0x4D,0x8B,0x9B,0x08,0x01,0x00,0x00,0x4D,0x85,0xDB,0x74,#checkOwner)
    .. checkOwner
  local code = string.char(0x9C,0x41,0x52,0x41,0x53)
    .. string.char(0x4C,0x8B,0x5F,0x20,0x4D,0x85,0xDB,0x74,#checkItem)
    .. checkItem
    .. string.char(table.unpack(diggingWearOriginal))
    .. string.char(0x41,0x5B,0x41,0x5A,0x9D)
  return code .. makeJump(cave + #code, entry + #diggingWearOriginal)
end

local combatWearKey = 'noCombatEquipmentWear'
local function directWearSite(rva, signature, size, addSize, loadItem, loadAmount, unchanged)
  local original = {table.unpack(signature,1,size)}
  local add = string.char(table.unpack(original,1,addSize))
  local replay = string.char(table.unpack(original,addSize+1))
  local restore = string.char(0x41,0x5B,0x41,0x5A,0x9D)
  local function codeFor(context, cave, entry)
    local changed = unchanged .. string.char(0xEB,#add)
    local amount = loadAmount .. string.char(0x41,0xFF,0xCB,0x41,0x81,0xFB,0xFE,0xFF,0x7F,0x7F)
      .. string.char(0x77,#changed) .. changed
    local owner = string.char(0x49,0xBA) .. string.pack('&lt;I8',context.equipment)
      .. string.char(0x4D,0x39,0x53,0x60,0x75,#amount) .. amount
    local code = string.char(0x9C,0x41,0x52,0x41,0x53) .. loadItem
      .. string.char(0x4D,0x85,0xDB,0x74,#owner) .. owner .. add .. restore .. replay
    return code .. makeJump(cave + #code, entry + #original)
  end
  return entryFeature(combatWearKey, rva, original, signature, equipmentWearContext, codeFor, addSize)
end

local xmm1WearAmount = string.char(0x66,0x41,0x0F,0x7E,0xCB) -- movd r11d,xmm1
local copyCurrentToXmm1 = string.char(0xF3,0x0F,0x10,0xC8) -- movss xmm1,xmm0
local combatWearSites = {
  entryFeature(combatWearKey, 0xB42560, equipmentDamageOriginal, equipmentDamageSignature,
    equipmentWearContext, equipmentWearCode, 4),
  entryFeature(combatWearKey, 0xB4116A, shieldWearOriginal, shieldWearSignature,
    equipmentWearContext, shieldWearCode, 4),
  entryFeature(combatWearKey, 0x12910F7, diggingWearOriginal, diggingWearSignature,
    equipmentWearContext, diggingWearCode),
  directWearSite(0xDFE57C, {
    0xF3,0x0F,0x58,0xC8,0x44,0x0F,0x2F,0xC1,0x77,0x04,0x44,0x0F,0x28,0xC1,
  }, 8, 4, string.char(0x4C,0x8B,0x5F,0x10), xmm1WearAmount, copyCurrentToXmm1),
  directWearSite(0xD70114, {
    0xF3,0x0F,0x58,0x41,0x74,0x48,0x8B,0x07,0x48,0x8B,0xCF,0x4C,0x8B,0x80,0x90,0x01,0x00,0x00,
  }, 8, 5, string.char(0x4C,0x8B,0x5B,0x10), string.char(0x44,0x8B,0x59,0x74), ''),
  directWearSite(0xC93867, {
    0xF3,0x0F,0x58,0xC8,0x4C,0x8B,0x80,0x90,0x01,0x00,0x00,0xFF,0x90,0x88,0x01,0x00,0x00,
  }, 11, 4, string.char(0x4C,0x8B,0x5F,0x50), xmm1WearAmount, copyCurrentToXmm1),
  -- FishingItem in RAX; XMM0 holds fish weight, and [rbp-45h] is the current decay.
  directWearSite(0x1293B1D, {
    0xF3,0x0F,0x58,0x45,0xBB,0xF3,0x0F,0x11,0x45,0xC3,0x48,0x85,0xC0,
  }, 10, 5, string.char(0x4C,0x8B,0xD8), string.char(0x66,0x41,0x0F,0x7E,0xC3),
    string.char(0xF3,0x0F,0x10,0x45,0xBB)),
}
do
  local signature={0x40,0x53,0x48,0x83,0xEC,0x20,0xF3,0x0F,0x10,0x41,0x28,0x48,0x8B,0xD9,0x0F,0x2E,0xC1}
  local original={table.unpack(signature,1,6)}
  local function codeFor(context,cave,entry)
    local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x400)
      ..equipmentDecayGuardInstructions..string.char(0x41,0x5A)..string.char(table.unpack(original))
    code=code..makeJump(cave+#code,entry+6)
    need(#code&lt;=0x400,'Equipment decay guard exceeds its reserved range.','装備消耗保護の処理が確保範囲を超えています。')
    return code..string.rep('\0',0x400-#code)
      ..string.pack('&lt;I8I8I8I8I8I8',context.player,context.identity,context.runner,context.equipment,context.equipmentIdentity,context.base)
  end
  combatWearSites[#combatWearSites+1]=entryFeature(combatWearKey,0x35E3290,original,signature,equipmentWearContext,codeFor)
end
ASKA.F[combatWearKey] = groupedEntryFeatures(combatWearSites)

-- Invasion_BloodMoon has InvasionConfig.id == 2 in this build's sharedassets0.assets.
local bloodMoonKey = 'preventBloodMoon'
local bloodMoonId = 2

local function bloodMoonSite(rva, signature, managerMethod)
  local original = {table.unpack(signature,1,5)}
  local function makeCode(context, cave, entry)
    local restore = string.char(0x41,0x5B,0x9D)
    local suppress = restore .. (managerMethod and '' or string.char(0xB8,0,0,0,0)) .. string.char(0xC3)
    local checkId = string.char(0x41,0x83,0x7B,0x18,bloodMoonId,0x75,#suppress) .. suppress
    local source = string.char(0x4C,0x8B,0xD9) -- mov r11,rcx (InvasionConfig)
    if managerMethod then
      local loadConfig = string.char(0x4C,0x8B,0x5A,0x10,0x4D,0x85,0xDB,0x74,#checkId)
      source = string.char(0x49,0xBB) .. string.pack('&lt;I8',context.runner)
        .. string.char(0x4C,0x39,0x59,0x38,0x75,5+#loadConfig+#checkId)
        .. string.char(0x48,0x85,0xD2,0x74,#loadConfig+#checkId)
        .. loadConfig
    end
    local code = string.char(0x9C,0x41,0x53) .. source .. checkId .. restore
      .. string.char(table.unpack(original))
    return code .. makeJump(cave+#code,entry+#original)
  end
  return entryFeature(bloodMoonKey,rva,original,signature,clockContext,makeCode)
end

local activeSignature={0x73,0x3D,0x33,0xD2,0x48,0x8B,0xCB,0xE8}
local activeOriginal={table.unpack(activeSignature,1,7)}

local function finishBloodMoon(context,cave,entry)
  -- RBX is active InvasionData, RAX is its non-null config, RDI is the manager.
  -- Preserve the duration comparison for every other event.
  local restore=string.char(0x41,0x5B,0x9D)
  local finishLength=#restore+5
  local checkId=string.char(0x83,0x78,0x18,bloodMoonId,0x75,finishLength)
  local guard=string.char(0x49,0xBB)..string.pack('&lt;I8',context.runner)
    ..string.char(0x4C,0x39,0x5F,0x38,0x75,#checkId+finishLength)..checkId
  local timeout=context.base+0x12F2D11
  local code=string.char(0x9C,0x41,0x53)..guard..restore
  code=code..makeJump(cave+#code,timeout)..restore
  code=code..string.char(0x0F,0x83)..string.pack('&lt;i4',timeout-(cave+#code+6))
  code=code..string.char(table.unpack(activeOriginal,3))
  return code..makeJump(cave+#code,entry+#activeOriginal)
end

ASKA.F[bloodMoonKey] = groupedEntryFeatures({
  bloodMoonSite(0x12ED100,{0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x20,0x80,0x3D,0x8F,0xDB,0xD1,0x04}),
  bloodMoonSite(0x12F2640,{0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x81,0xEC,0xB0,0x00,0x00,0x00,0x80,0x3D,0x6D},true),
  bloodMoonSite(0x12F3480,{0x48,0x89,0x5C,0x24,0x18,0x48,0x89,0x6C,0x24,0x20,0x41,0x56,0x48,0x83,0xEC,0x30},true),
  entryFeature(bloodMoonKey,0x12F2CD2,activeOriginal,activeSignature,clockContext,finishBloodMoon,2),
})

-- LateUpdate compares timeRunningEnabled before advancing the hour.
local daylightSignature = {
  0x80,0xBB,0x8C,0x01,0x00,0x00,0x00,0x0F,0x28,0xF0,0xF3,0x0F,0x59,0xB3,0xFC,0x00,0x00,0x00,
}
local daylightOriginal = {table.unpack(daylightSignature,1,7)}

local function daylightCode(context, cave, entry)
  local noon = string.pack('&lt;f',12.0)
  local setTime = string.char(0xC7,0x83,0xC0,0x01,0x00,0x00) .. noon
    .. string.char(0xC6,0x83,0x18,0x04,0x00,0x00,0x01)
  -- Set force-update only when changing the hour. Report ZF=1 to LateUpdate.
  local forceDay = string.char(0x81,0xBB,0xC0,0x01,0x00,0x00) .. noon
    .. string.char(0x74,#setTime) .. setTime
    .. string.char(0x4D,0x39,0xDB,0xEB,#daylightOriginal)
  local identity = string.char(0x49,0xBB) .. string.pack('&lt;I8',context.identity)
    .. string.char(0x4C,0x39,0x5B,0x10,0x75,#forceDay) .. forceDay
  local code = string.char(0x41,0x53,0x49,0xBB) .. string.pack('&lt;I8',context.weather)
    .. string.char(0x4C,0x39,0xDB,0x75,#identity) .. identity .. string.char(table.unpack(daylightOriginal))
    .. string.char(0x41,0x5B)
  return code .. makeJump(cave+#code,entry+#daylightOriginal)
end

ASKA.F.alwaysDay = entryFeature('alwaysDay',0xF75BD5,daylightOriginal,daylightSignature,clockContext,daylightCode)

do
  local modules = (function()
local modules = {}
modules.context = (function()
-- InventoryItemInstance.Handler is initialized by the game's item subsystem.
-- The local WorldDataManager owns the streaming manager used by the map menu.
return function(base, link, unityIdentity, byte)
  local itemClass=link(base,0x5CFDAE0)
  if not itemClass or itemClass &amp; 1 ~= 0 then return end
  local handler=link(link(itemClass,0xB8),0)
  local data=link(handler,0x10)
  if not unityIdentity(data) or byte(data+0x88)~=0 then return end
  local manager=link(data,0x28)
  local identity=unityIdentity(manager)
  if not identity then return end
  return manager,identity,data
end
end)()
modules.world = (function()
-- Use the same local-world entry point as the existing MAP feature.
return function(base, memory, resolveContext)
  local function link(object, offset)
    if not object or object == 0 then return end
    local value = memory.pointer(object + offset)
    if value and value ~= 0 then return value end
  end
  local function current()
    return resolveContext(base, link, memory.unityIdentity, memory.byte)
  end
  local streaming, identity, dataManager = current()
  if not streaming then return end
  local generator = link(streaming, 0xF8)
  local map = link(generator, 0x58)
  local controller = link(generator, 0x38)
  local terrainHandler = link(controller, 0xF8)
  if not map or not terrainHandler or link(controller, 0xE8) ~= dataManager
      or memory.byte(generator + 0x78) ~= 1 or memory.byte(map + 0x28) ~= 1 then return end
  local tileSize = memory.float(dataManager + 0x58)
  if not tileSize or not (tileSize &gt; 0 and tileSize &lt; math.huge) then return end
  local function currentDataManager()
    local currentStreaming, currentIdentity, currentData = current()
    if currentStreaming == streaming and currentIdentity == identity and currentData == dataManager
        and link(streaming, 0xF8) == generator and link(generator, 0x58) == map
        and link(generator, 0x38) == controller and link(controller, 0xF8) == terrainHandler
        and link(controller, 0xE8) == dataManager then return currentData end
  end
  if not currentDataManager() then return end
  return {streaming=streaming, dataManager=dataManager, generator=generator,
    map=map, terrainHandler=terrainHandler, tileSize=tileSize}, currentDataManager
end
end)()
modules.native = (function()
-- Native functions for Steam build 25834809.
local signatures = {
  generateTile = {0x35C2EF0, "48895C240848896C2410488974241857"},
  startCoroutine = {0x4520700, "48895C2410564883EC20488BF2488BD9"},
  getTile = {0x35C1CA0, "48895C2410574883EC20803D843EA502"},
  getHeightmapData = {0xF53570, "48895C24084889742410574883EC2080"},
  openData = {0xEDC480, "48895C24104889742418574883EC3080"},
  getLandmask = {0x11315A0, "405356415441564883EC58803D538BED"},
  updateDirtyLandmask = {0x11420D0, "4055415641574883EC20803D3280EC04"},
  createMapPart = {0x12294F0, "44894C242044894424185355574883EC"},
  setupMapMaterial = {0x113EE30, "48895C241048896C2418565741564883"},
  destroy = {0x4522290, "40534883EC20803D4FDAAF0100488BD9"},
  getGameObject = {0x4507BC0, "40534883EC20803D8A7EB10100488BD9"},
}

return function(base, readBuffer)
  local native = {}
  for name, signature in pairs(signatures) do
    local address = base + signature[1]
    local expected = signature[2]:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end)
    if readBuffer(address, #expected) ~= expected then return nil, name end
    native[name] = address
  end
  return native
end
end)()
modules.snapshot = (function()
-- Read initialized top-level area rectangles without calling the allocating
-- WorldGenerator.GetDataMap or accepting a collection changed mid-read.
return function(streaming, memory, includeLandBitmaps)
  local pointer,integer,byte,text=memory.pointer,memory.integer,memory.byte,memory.cstring
  local function link(object,offset)
    if not object or object==0 then return end
    local result=pointer(object+offset)
    if result and result~=0 then return result end
  end
  local generator=link(streaming,0xF8)
  local map=link(generator,0x58)
  if not map or byte(map+0x28)~=1 then return end
  local container=link(map,0x30)
  local dictionary=link(container,0x10)
  local entries=link(dictionary,0x18)
  if not entries then return end
  local count,version=integer(dictionary+0x20),integer(dictionary+0x2C)
  local capacity=integer(entries+0x18)
  if not count or not capacity or not version or count&lt;0 or count&gt;capacity then return end
  local rectangles,lists,bitmaps={},{},{}

  for index=0,count-1 do
    local entry=entries+0x20+index*24
    local hash=integer(entry)
    if hash==nil then return end
    if hash&gt;=0 then
      local list=link(entry,0x10)
      local items=link(list,0x10)
      if not items then return end
      local size,listVersion=integer(list+0x18),integer(list+0x1C)
      local limit=integer(items+0x18)
      if not size or not limit or not listVersion or size&lt;0 or size&gt;limit then return end
      lists[#lists+1]={list,items,size,listVersion}
      for row=0,size-1 do
        local instance=link(items,0x20+row*8)
        local class=link(instance,0)
        local name,namespace=link(class,0x10),link(class,0x18)
        if not name or not namespace then return end
        local typeName,typeNamespace=text(name),text(namespace)
        if typeName=='LandmassInstance' and typeNamespace=='SandSailorStudio.WorldGen.Deterministic'
           or (typeName=='WorldAreaInstance' or typeName=='TerrainAreaInstance') and
              typeNamespace=='SandSailorStudio.WorldGen' then
          if byte(instance+0x70)~=1 then return end
          local x,y,w,h=integer(instance+0x74),integer(instance+0x78),
                        integer(instance+0x7C),integer(instance+0x80)
          if not x or not y or not w or not h then return end
          rectangles[#rectangles+1]={x,y,w,h}
          if includeLandBitmaps and typeName=='LandmassInstance' then
            local bitmap=link(instance,0xC0)
            local data=link(bitmap,0x10)
            if not data then return end
            local length,resolution=integer(bitmap+0x18),integer(bitmap+0x20)
            if not resolution or resolution&lt;=0 or not length
               or length~=(resolution*resolution+7)//8 then return end
            local bounds={}
            for i=1,4 do bounds[i]=integer(instance+0xC4+4*i) end
            if not bounds[1] or not bounds[2] or not bounds[3] or not bounds[4]
               or bounds[3]&lt;=0 or bounds[4]&lt;=0 then return end
            -- CE can return unsigned DWORDs for signed world coordinates.
            for axis=1,2 do
              if bounds[axis]&gt;=0x80000000 then bounds[axis]=bounds[axis]-0x100000000 end
            end
            local packed=memory.readBuffer(data,length)
            if not packed or #packed~=length or link(instance,0xC0)~=bitmap
               or link(bitmap,0x10)~=data or integer(bitmap+0x18)~=length
               or integer(bitmap+0x20)~=resolution then return end
            bitmaps[#bitmaps+1]={bounds=bounds,resolution=resolution,packed=packed}
          end
        elseif not typeName or not typeNamespace then return end
      end
    end
  end
  for _,row in ipairs(lists) do
    local list,items,size,listVersion=table.unpack(row)
    if link(list,0x10)~=items or integer(list+0x18)~=size
       or integer(list+0x1C)~=listVersion then return end
  end
  if link(streaming,0xF8)~=generator or link(generator,0x58)~=map or byte(map+0x28)~=1
     or link(map,0x30)~=container or link(container,0x10)~=dictionary
     or link(dictionary,0x18)~=entries or integer(dictionary+0x20)~=count
     or integer(dictionary+0x2C)~=version then return end
  return rectangles,bitmaps
end
end)()
modules.indexLand = (function()
-- Index every map tile touched by land pixels, including narrow coastlines.
return function(landmasses, tileSize)
  assert(tileSize &gt; 0)
  local tiles = {}
  local function addSpan(firstX, lastX, firstZ, lastZ, source)
    for z = firstZ, lastZ do
      local row = tiles[z]
      if not row then row = {}; tiles[z] = row end
      for x = firstX, lastX do
        local sources = row[x]
        if not sources then sources = {}; row[x] = sources end
        if sources[#sources] ~= source then sources[#sources + 1] = source end
      end
    end
  end
  for _, source in ipairs(landmasses) do
    local minX, minZ, width, depth = table.unpack(source.bounds)
    local n = source.resolution
    assert(n &gt; 0 and width &gt; 0 and depth &gt; 0 and #source.packed == (n * n + 7) // 8)
    local stepX, stepZ = width / n, depth / n
    for row = 0, n - 1 do
      local firstZ = math.floor((minZ + row * stepZ) / tileSize)
      local lastZ = math.ceil((minZ + (row + 1) * stepZ) / tileSize) - 1
      for column = 0, n - 1 do
        local index = row * n + column
        if ((source.packed:byte(index // 8 + 1) &gt;&gt; (index % 8)) &amp; 1) == 1 then
          local firstX = math.floor((minX + column * stepX) / tileSize)
          local lastX = math.ceil((minX + (column + 1) * stepX) / tileSize) - 1
          addSpan(firstX, lastX, firstZ, lastZ, source)
        end
      end
    end
  end
  return tiles
end
end)()
modules.targets = (function()
-- Match the land bitmap coverage to canonical IDs from the world registry.
return function(landTiles, registered)
  local targets, missing = {}, {}
  for z, row in pairs(landTiles) do
    for x in pairs(row) do
      assert(math.abs(x) &lt;= 1023 and math.abs(z) &lt;= 1023,
        "Land tile outside the WorldTileId coordinate range")
      local id = (math.abs(x) &lt;&lt; 10) | math.abs(z)
        | (x &gt;= 0 and 0x1000000 or 0) | (z &gt;= 0 and 0x2000000 or 0)
      local list = registered[id] and targets or missing
      list[#list + 1] = {id=id, x=x, z=z}
    end
  end
  local function byPosition(a, b)
    return a.z &lt; b.z or (a.z == b.z and a.x &lt; b.x)
  end
  table.sort(targets, byPosition)
  table.sort(missing, byPosition)
  return targets, missing
end
end)()
modules.resolveTiles = (function()
-- Resolve registered tiles and their optional loaded data from the two game dictionaries.
return function(world, memory)
  local pointer, integer = memory.pointer, memory.integer

  local function snapshot(owner, offset)
    local dict = pointer(owner + offset)
    if not dict or dict == 0 then return end
    local entries = pointer(dict + 0x18)
    local count, version = integer(dict + 0x20), integer(dict + 0x2C)
    if not count or count &lt; 0 or not version then return end
    local function stable()
      return pointer(owner + offset) == dict and pointer(dict + 0x18) == entries
        and integer(dict + 0x20) == count and integer(dict + 0x2C) == version
    end
    if count == 0 then return {}, stable end
    if not entries or entries == 0 then return end
    local capacity = integer(entries + 0x18)
    if not capacity or count &gt; capacity then return end
    local bytes = memory.readBuffer(entries + 0x20, count * 24)
    if not bytes or #bytes ~= count * 24 or not stable() then return end
    local values = {}
    for offset = 1, #bytes, 24 do
      local hash, _, key, value = string.unpack("&lt;i4i4I4xxxxI8", bytes, offset)
      if hash &gt;= 0 and value ~= 0 then values[key] = value end
    end
    return values, stable
  end

  local registered, registeredStable = snapshot(world.map, 0x10)
  local loaded, loadedStable = snapshot(world.dataManager, 0x48)
  if not registered or not loaded then return end
  local function matchesId(address, id)
    local value = integer(address)
    return value ~= nil and (value &amp; 0xFFFFFFFF) == id
  end
  return function(tile)
    -- Generation may create a WorldTileData and thereby invalidate this cache.
    if not registeredStable() then return end
    if not loadedStable() then
      local refreshed, stable = snapshot(world.dataManager, 0x48)
      if not refreshed then return end
      loaded, loadedStable = refreshed, stable
    end
    local id = tile.id &amp; 0xFFFFFFFF
    local object, data = registered[id], loaded[id]
    if not object or pointer(object + 0x58) ~= world.map
        or not matchesId(object + 0x38, id) then return end
    if data and (pointer(data + 0x30) ~= object or not matchesId(data + 0x28, id)) then return end
    return {id=id, x=tile.x, z=tile.z, worldTile=object, data=data}
  end, registered
end
end)()
modules.generatedInputs = (function()
-- Snapshot descriptors for a caller-verified WorldTile after generation ends.
return function(generator, map, tile, tileId, heightClass, biomeClass, memory)
  local pointer, integer, byte = memory.pointer, memory.integer, memory.byte
  local function current()
    return byte(generator+0x78)==1 and byte(generator+0x84)==0
      and pointer(generator+0x58)==map and pointer(tile+0x58)==map
      and integer(tile+0x38)==tileId
  end
  if not current() then return end
  local height, biome = pointer(tile+0x30), pointer(tile+0x20)
  if not height or height==0 or not biome or biome==0
     or pointer(height)~=heightClass or pointer(biome)~=biomeClass then return end

  local function samples(object, resolutionOffset)
    local data, length = pointer(object+0x10), integer(object+0x18)
    local resolution = integer(object+resolutionOffset)
    if data and data~=0 and resolution and resolution&gt;0 and length==resolution*resolution then
      return {data=data, count=length, resolution=resolution}
    end
  end
  local heights, biomes = samples(height,0x20), samples(biome,0x28)
  if not heights or not biomes or not current()
     or pointer(tile+0x30)~=height or pointer(tile+0x20)~=biome then return end
  return heights, biomes
end
end)()
modules.requests = (function()
-- Payloads for the main-thread workers. Publish while the target is suspended.
-- Write the menu selector separately, after the corresponding payload.
local requests = {}

function requests.terrain(world, tile, native)
  return string.pack("&lt;I8I4I4I8I8I8I8I8I8I8I8I8I8I8I8",
    world.generator, tile.id, 0, 0,
    native.generateTile, native.startCoroutine, world.map, tile.worldTile,
    native.getTile, tile.data or 0, world.terrainHandler,
    native.getHeightmapData, world.dataManager, 0, native.openData)
end

function requests.landmask(world, tile, native, resolution)
  assert(tile.data and tile.data ~= 0, "Tile data is required for a landmask")
  assert(resolution &gt; 0, "Invalid landmask resolution")
  return string.pack("&lt;I8I8I8I8I8i4i4i4i4I8I8I8",
    world.dataManager, tile.data, tile.worldTile,
    native.getLandmask, native.updateDirtyLandmask,
    0, 0, resolution, resolution,
    0, 0, 0)
end

function requests.display(world, tile, native, texture)
  assert(tile.data and tile.data ~= 0 and texture and texture ~= 0,
    "Tile data and an applied landmask are required for display")
  return string.pack("&lt;I8I8I8I8I8I8I8I8I8I8I8i4i4I8I8",
    world.dataManager, tile.data, tile.worldTile, texture,
    native.createMapPart, native.setupMapMaterial, native.destroy, native.getGameObject,
    0, 0, 0, tile.x, tile.z, 0, 0)
end

function requests.cleanup(receipt, native)
  return string.rep("\0", 0x30)
    .. string.pack("&lt;I8I8I8I8I8I8I8I8",
      native.destroy, native.getGameObject, receipt.image, receipt.material,
      3, 0, 0, receipt.owner)
end

return requests
end)()
modules.mailboxes = (function()
-- Use the CT's target suspension and verified-write functions.
return function(generation, menu, memory)
  local function transaction(base, action, requireWorld)
    local applied = false
    memory.suspend(function(handle)
      if requireWorld and not memory.sameWorld() then return end
      if memory.readInt(base + 0x60) ~= 0 then return end
      action(handle)
      applied = true
    end)
    return applied
  end

  local function publish(address, payload, operation)
    if not operation then
      assert(address == generation and #payload == 0x70, "Invalid generation request")
      return transaction(generation, function(handle)
        assert(memory.readPointer(generation) == 0, "Generation request already active")
        -- Keep the owner pointer zero until the rest of the request is verified.
        memory.write(handle, generation + 8, payload:sub(9))
        memory.write(handle, generation, payload:sub(1, 8))
      end, true)
    end
    local offset, size = 0x80, 0x50
    if operation == 2 then offset, size = 0x100, 0x70 end
    assert((operation == 1 or operation == 2) and address == menu + offset
      and #payload == size, "Invalid map menu request")
    return transaction(menu, function(handle)
      assert(memory.readInt(menu) == 0, "Map menu request already active")
      memory.write(handle, address, payload)
      memory.write(handle, menu, string.pack("&lt;I4", operation))
    end, true)
  end

  local function disarm(phase)
    local terrain = phase == "terrain"
    local base, size = menu, 4
    if terrain then base, size = generation, 8 end
    return transaction(base, function(handle)
      memory.write(handle, base, string.rep("\0", size))
    end, false)
  end

  local function quiesce()
    local ready, receipt = false, nil
    memory.suspend(function(handle)
      if memory.readInt(generation + 0x60) ~= 0 or memory.readInt(menu + 0x60) ~= 0 then return end
      local operation = memory.readInt(menu)
      if operation == nil then return end
      if operation == 2 and memory.readInt(menu + 0x150) ~= 0 then
        local image = memory.readPointer(menu + 0x140)
        local material = memory.readPointer(menu + 0x148)
        local owner = memory.readPointer(menu + 0x168)
        if image == nil or material == nil or owner == nil then return end
        if image ~= 0 or material ~= 0 then
          if owner == 0 then return end
          receipt = {image=image, material=material, owner=owner}
        end
      end
      memory.write(handle, generation, string.rep("\0", 8))
      memory.write(handle, menu, string.rep("\0", 4))
      ready = true
    end)
    return ready, receipt
  end

  return publish, disarm, quiesce
end
end)()
modules.host = (function()
-- Connect the queue to the two main-thread mailboxes. The session supplies
-- stable game-object snapshots and atomic publication while the target is paused.
return function(session, requests)
  local host = {sameWorld = session.sameWorld}
  local generation, menu = session.generation, session.menu
  local readInt, readPointer = session.readInt, session.readPointer
  local texture

  local function retainDisplay(tile, requireBoth)
    local image = readPointer(menu + 0x140)
    local material = readPointer(menu + 0x148)
    local owner = readPointer(menu + 0x168)
    if image == nil or material == nil or owner == nil then return false end
    if requireBoth and (image == 0 or material == 0) then return false end
    if image ~= 0 or material ~= 0 then
      if owner == 0 then return false end
      session.retain(tile, image, material, owner)
    end
    return true
  end

  function host.ready(tile, phase)
    if phase == "terrain" then return session.generated(tile) end
    if phase == "landmask" then return texture ~= nil end
    return session.displayed(tile)
  end

  function host.submit(tile, phase)
    local current = session.resolve(tile)
    if not current then return false end
    if phase == "terrain" then
      return session.publish(generation, requests.terrain(session.world, current, session.native))
    end
    if not current.data or current.data == 0 then return false end
    if phase == "landmask" then
      return session.publish(menu + 0x80,
        requests.landmask(session.world, current, session.native, session.resolution), 1)
    end
    if not session.menuReady() then return false end
    return session.publish(menu + 0x100, requests.display(session.world, current, session.native, texture), 2)
  end

  function host.poll(tile, phase)
    if phase == "terrain" then
      local state = readInt(generation + 0x0C)
      if state == 2 then return "failed", "Terrain generation was rejected" end
      if state == 1 and session.generated(tile) then return "finished" end
      return "waiting"
    end
    if phase == "landmask" then
      local state = readInt(menu + 0xC0)
      if state == 2 then return "failed", "Landmask request was rejected" end
      if state == 3 then
        local applied = readPointer(menu + 0xB8)
        if applied and applied ~= 0 then
          texture = applied
          return "finished"
        end
        return "failed", "Applied landmask reference was lost"
      end
      return "waiting"
    end
    local state = readInt(menu + 0x150)
    if state == 2 then
      if readInt(menu + 0x60) ~= 0 or not retainDisplay(tile, false) then return "waiting" end
      return "failed", "Map part could not be drawn"
    end
    if state == 5 then return "failed", "Map part no longer matches its applied landmask" end
    if state ~= 1 then return "waiting" end
    -- The receipt owns Unity resources. Keep it until all references are read.
    if not retainDisplay(tile, true) then return "waiting" end
    return "finished"
  end

  function host.release(tile, phase)
    if session.disarm(phase) == false then return false end
    -- Keep the applied record available to the native display guard.
    if phase == "display" then texture = nil end
    return true
  end

  return host
end
end)()
modules.advance = (function()
-- One outstanding request. The host publishes immutable payloads before
-- enabling a mailbox and verifies the current world at every step.
return function(host)
  local pending
  return function(tile, phase)
    if not host.sameWorld() then return "world changed" end
    if not pending then
      local alreadyReady, reason = host.ready(tile, phase)
      if alreadyReady then return "ready" end
      if reason then return "failed", reason end
      local sent, failure = host.submit(tile, phase)
      if not sent then
        if failure then return "failed", failure end
        return "waiting"
      end
      pending = {id=tile.id, phase=phase}
      return "waiting"
    end
    assert(pending.id == tile.id and pending.phase == phase, "Map request order changed")
    local status, reason = host.poll(tile, phase)
    if status == "waiting" then return status end
    if status == "failed" then
      if host.release(tile, phase) == false then return "waiting" end
      pending = nil
      return status, reason
    end
    assert(status == "finished", "Unexpected map mailbox status")
    local ready, failure = host.ready(tile, phase)
    if not ready and not failure then return "waiting" end
    if host.release(tile, phase) == false then return "waiting" end
    pending = nil
    if ready then return "ready" end
    return "failed", failure
  end
end
end)()
modules.queue = (function()
-- The adapter advances a single native request and returns its status.
-- A request stays in flight across ticks until its result can be inspected.
return function(tiles, advance, advanceTerrain)
  local cursor, completed, failed = 1, 0, {}
  local phase = "terrain"
  local invalidated
  local prefetched

  return function()
    if invalidated then return "world changed", completed, failed end
    local tile = tiles[cursor]
    if not tile then
      return #failed == 0 and "complete" or "incomplete", completed, failed
    end

    local status, reason
    if phase == "terrain" and prefetched and prefetched.id == tile.id then
      status, reason = prefetched.status, prefetched.reason
      if status then prefetched = nil end
    end
    if not status then
      local step = phase == "terrain" and advanceTerrain or advance
      status, reason = step(tile, phase)
      if prefetched and prefetched.id == tile.id and status ~= "waiting" then prefetched = nil end
    end
    if phase == "display" and status == "waiting" and advanceTerrain then
      local nextTile = tiles[cursor + 1]
      if nextTile and (not prefetched or not prefetched.status) then
        local result, issue = advanceTerrain(nextTile, "terrain")
        prefetched = {id=nextTile.id, status=result ~= "waiting" and result or nil, reason=issue}
        if result == "world changed" then status = result end
      end
    end
    if status == "world changed" then
      invalidated = true
      return status, completed, failed
    end
    if status == "waiting" then return phase, completed, failed end

    if status == "failed" then
      failed[#failed + 1] = {id=tile.id, x=tile.x, z=tile.z, phase=phase, reason=reason}
    else
      assert(status == "ready", "Unexpected map request status")
      if phase == "terrain" then
        phase = "landmask"
        return phase, completed, failed, true
      end
      if phase == "landmask" then
        phase = "display"
        return phase, completed, failed, true
      end
      completed = completed + 1
    end

    cursor = cursor + 1
    phase = "terrain"
    return status, completed, failed, true
  end
end
end)()
modules.session = (function()
-- Prepare a reveal for one local world. The caller owns hook installation
-- and uses the returned receipts to remove its Unity objects on shutdown.
return function(world, memory, hooks, modules)
  local pointer, integer = memory.pointer, memory.integer
  local function sameWorld()
    return memory.currentDataManager() == world.dataManager
      and pointer(world.dataManager + 0x28) == world.streaming
      and pointer(world.streaming + 0xF8) == world.generator
      and pointer(world.generator + 0x58) == world.map
  end
  if not sameWorld() then return nil, "World changed during map setup" end
  local _, bitmaps = modules.snapshot(world.streaming, memory, true)
  local resolve, registered = modules.resolveTiles(world, memory)
  if not bitmaps or not resolve or not sameWorld() then
    return nil, "World map data is not ready"
  end
  local tiles, missing = modules.targets(modules.indexLand(bitmaps, world.tileSize), registered)
  if #tiles == 0 or #missing &gt; 0 then
    return nil, "World registry does not cover the land bitmap", missing
  end
  local minX, maxX = tiles[1].x, tiles[1].x
  local minZ, maxZ = tiles[1].z, tiles[1].z
  for _, tile in ipairs(tiles) do
    minX, maxX = math.min(minX, tile.x), math.max(maxX, tile.x)
    minZ, maxZ = math.min(minZ, tile.z), math.max(maxZ, tile.z)
  end
  local function classOf(object, name, namespace)
    local class = object and object ~= 0 and pointer(object)
    if not class or class == 0 then return end
    local nameAddress, namespaceAddress = pointer(class + 0x10), pointer(class + 0x18)
    if nameAddress and nameAddress ~= 0 and namespaceAddress and namespaceAddress ~= 0
        and memory.cstring(nameAddress) == name and memory.cstring(namespaceAddress) == namespace then
      return class
    end
  end
  local heightClass, biomeClass = world.heightClass, world.biomeClass
  if not heightClass or not biomeClass then
    for _, tile in ipairs(tiles) do
      local row = resolve(tile)
      if row and row.data then
        heightClass = classOf(pointer(row.worldTile + 0x30), "HeightMap16", "SandSailorStudio.TerrainGeneration")
        biomeClass = classOf(pointer(row.worldTile + 0x20), "BiomeMap", "SandSailorStudio.WorldGen")
        if heightClass and biomeClass then break end
      end
    end
  end
  if not heightClass or not biomeClass then return nil, "Generated terrain types are not ready" end

  local observedMenu, observedUpdate, setupAddress
  local function menuReady()
    local update = integer(hooks.menu + 0x70)
    local menu = pointer(hooks.menu + 0x68)
    if not update or not menu or menu == 0 then return false end
    local manager = pointer(menu + 0x230)
    if pointer(menu + 0x228) ~= world.dataManager or not manager or manager == 0
        or pointer(manager + 0x98) ~= world.streaming then
      observedMenu, observedUpdate = nil, nil
      return false
    end
    local advanced = observedMenu == menu and observedUpdate ~= update
    observedMenu, observedUpdate = menu, update
    if advanced and (not setupAddress or pointer(setupAddress) == menu) then return menu end
  end

  local receipts = {}
  local publish, disarm, quiesce = modules.mailboxes(hooks.generation, hooks.menu, {
    suspend=memory.suspend, write=memory.write,
    readInt=integer, readPointer=pointer, sameWorld=sameWorld,
  })
  local host = modules.host({
    world=world, native=hooks.native, resolution=hooks.landmaskResolution,
    generation=hooks.generation, menu=hooks.menu, sameWorld=sameWorld,
    readInt=integer, readPointer=pointer, resolve=resolve,
    menuReady=menuReady, publish=publish, disarm=disarm,
    generated=function(tile)
      local row = resolve(tile)
      if not row or not row.data then return false end
      return modules.generatedInputs(world.generator, world.map, row.worldTile, row.id,
        heightClass, biomeClass, memory) ~= nil
    end,
    displayed=function(tile) return receipts[tile.id] ~= nil end,
    retain=function(tile, image, material, owner)
      receipts[tile.id] = {image=image, material=material, owner=owner}
    end,
  }, modules.requests)
  if not sameWorld() then return nil, "World changed during map setup" end
  local advance = modules.queue(tiles, modules.advance(host), modules.advance(host))
  local cleanupId, stopping
  local function tick()
    if stopping then return "stopping" end
    local status, completed, failed, advanced
    for _ = 1, 4 do
      status, completed, failed, advanced = advance()
      if not advanced then break end
    end
    return status, completed, failed
  end
  local function cleanup()
    if not stopping then
      local ready, receipt = quiesce()
      if not ready then return "busy" end
      if receipt then
        local retained
        for _, known in pairs(receipts) do
          if known.image == receipt.image and known.material == receipt.material then
            retained = true
            break
          end
        end
        if not retained then receipts[0] = receipt end
      end
      stopping = true
    end
    -- Removing unexecuted work only touches our allocation. Use the world
    -- check before accessing Unity-owned receipts, even during shutdown.
    if not cleanupId and not next(receipts) then return "complete" end
    if not sameWorld() then return "world changed" end
    if cleanupId then
      if integer(hooks.menu + 0x150) ~= 4 or not disarm("display") then return "waiting" end
      receipts[cleanupId] = nil
      cleanupId = nil
    end
    local id, receipt = next(receipts)
    if not id then return "complete" end
    if integer(hooks.menu) ~= 0 or menuReady() ~= receipt.owner then return "waiting" end
    if publish(hooks.menu + 0x100, modules.requests.cleanup(receipt, hooks.native), 2) then
      cleanupId = id
    end
    return "waiting"
  end
  return {tick=tick, cleanup=cleanup, total=#tiles, receipts=receipts,
    bounds={minX,minZ,maxX,maxZ}, requireSetup=function(address) setupAddress=address end}
end
end)()
modules.install = (function()
-- Install or restore the three sites under one game suspension.
-- The caller retains the allocation until restore has succeeded.
return function(slots, generation, menu, memory)
  local function idle()
    assert(memory.readInt(generation + 0x60) == 0 and memory.readInt(menu + 0x60) == 0,
      "A map worker is executing")
    local ranges = {}
    for _, slot in ipairs(slots) do
      assert(not slot.busy or memory.readInt(slot.busy) == 0, "A map setup is executing")
      ranges[#ranges + 1] = {slot.site, slot.site + #slot.original}
      ranges[#ranges + 1] = {slot.cave, slot.cave + #slot.code}
    end
    memory.verifyOutside(ranges)
  end

  local function restore(handle, attempted)
    local failures = {}
    for index = #attempted, 1, -1 do
      local slot = attempted[index]
      if memory.readBuffer(slot.site, #slot.original) ~= slot.original then
        local ok, reason = pcall(memory.write, handle, slot.site, slot.original)
        if not ok then failures[#failures + 1] = tostring(reason) end
      end
    end
    if #failures &gt; 0 then error(table.concat(failures, " / "), 0) end
  end

  local function install()
    memory.suspend(function(handle)
      idle()
      for _, slot in ipairs(slots) do
        local expected = slot.signature or slot.original
        assert(memory.readBuffer(slot.site, #expected) == expected, "Map entry changed")
      end
      for _, slot in ipairs(slots) do
        memory.write(handle, slot.cave, slot.code)
        if slot.initial then memory.write(handle, slot.data, slot.initial) end
      end
      local attempted = {}
      local ok, reason = pcall(function()
        for _, slot in ipairs(slots) do
          attempted[#attempted + 1] = slot
          memory.write(handle, slot.site, slot.branch)
        end
      end)
      if not ok then
        local restored, failure = pcall(restore, handle, attempted)
        if not restored then error(tostring(reason) .. " / " .. tostring(failure), 0) end
        error(reason, 0)
      end
    end)
  end

  local function uninstall()
    memory.suspend(function(handle)
      idle()
      assert(memory.readInt(menu) == 0 and memory.readPointer(generation) == 0,
        "A map request is still armed")
      for _, slot in ipairs(slots) do
        local current = memory.readBuffer(slot.site, #slot.original)
        assert(current == slot.branch or current == slot.original, "Map entry ownership changed")
      end
      restore(handle, slots)
    end)
  end
  return install, uninstall
end
end)()
modules.runtime = (function()
-- The CT owns the returned record until stop reports successful restoration.
return function(base, memory, modules, resolution)
  local world, currentDataManager = modules.world(base, memory, modules.context)
  if not world then return nil, "Local world data is not ready" end
  local native, mismatch = modules.native(base, memory.readBuffer)
  if not native then return nil, "Game function differs: " .. mismatch end
  local allocation = memory.allocate(modules.displayPlan and 0x4000 or 0x3000, base + 0x12285E0)
  if not allocation or allocation == 0 then return nil, "Cannot allocate map workers" end

  local slots, generation, menu = modules.bundle(base, allocation)
  if not slots then memory.free(allocation); return nil, generation end
  local sessionMemory = setmetatable({currentDataManager=currentDataManager}, {__index=memory})
  local ok, session, reason = pcall(modules.session, world, sessionMemory, {
    generation=generation, menu=menu, native=native, landmaskResolution=resolution,
  }, modules)
  if not ok or not session then
    memory.free(allocation)
    return nil, ok and reason or session
  end
  if modules.displayPlan then
    local built, slot, boundsError = pcall(modules.bounds, base, allocation, world, session, modules.displayPlan)
    if not built or not slot then
      memory.free(allocation)
      return nil, built and boundsError or slot
    end
    slots[#slots + 1] = slot
    session.requireSetup(slot.menuSetup)
  end

  local install, uninstall = modules.install(slots, generation, menu, {
    readInt=memory.integer, readPointer=memory.pointer, readBuffer=memory.readBuffer,
    verifyOutside=memory.verifyOutside, suspend=memory.suspend, write=memory.write,
  })
  local started, failure = pcall(install)
  local restored
  local function release()
    if not restored then
      uninstall()
      restored = true
    end
    memory.free(allocation)
    allocation = nil
  end
  local record = {total=session.total}
  if not started then
    local original = true
    for _, slot in ipairs(slots) do
      if memory.readBuffer(slot.site, #slot.original) ~= slot.original then original = false end
    end
    if original then memory.free(allocation); return nil, failure end
    -- Keep the allocation reachable when installation could not be rolled back.
    record.stop = function() if allocation then release() end; return "complete" end
    return record, failure
  end
  record.tick = function()
    if not allocation or restored then return "stopped" end
    return session.tick()
  end
  record.stop = function()
    if not allocation then return "complete" end
    if not restored then
      local status = session.cleanup()
      if status ~= "complete" then return status end
    end
    release()
    return "complete"
  end
  return record
end
end)()
modules.bounds = (function()
-- Use the existing map setup plan with its own data record.
return function(base, allocation, world, session, displayPlan)
  local cave, data = allocation + 0x3000, allocation + 0x2800
  local site = base + 0x1227C0D
  local code, signature = displayPlan(base, cave, data)
  local displacement = cave - site - 5
  if displacement &lt; -0x80000000 or displacement &gt; 0x7FFFFFFF then
    return nil, "Map bounds allocation is out of branch range"
  end
  local minX, minZ, maxX, maxZ = table.unpack(session.bounds)
  -- The setup helper clears this one status byte and publishes the menu at
  -- +0x80 after applying bounds. It needs only one byte for this signal.
  local record = string.rep("\0", 8) .. string.pack("&lt;I8", world.streaming)
    .. string.rep("\0", 0x30) .. string.pack("&lt;I8I4", data, 1)
    .. string.rep("\0", 0x1C) .. string.pack("&lt;I8i4i4i4i4", data+0x90, minX, minZ, maxX, maxZ)
    .. string.rep("\0", 0x11)
  return {
    cave=cave, site=site, code=code, signature=signature, original=signature:sub(1,9),
    branch=string.char(0xE9)..string.pack("&lt;i4",displacement)..string.rep(string.char(0x90),4),
    busy=cave+0x380, data=data, initial=record,
    menuSetup=data+0x80,
  }
end
end)()
modules.bundle = (function()
-- Generated by build_world_map_reveal_code.py.
local templates = {
  {0x113FA90, "40534883ec50", 0x0, "534883ec504889cb48ba0005000122110000f0ff4260488b81980000004885c07413488b88f800000048b8a000000122110000ffd048ba0005000122110000f0ff4a6048ba0015000122110000f0ff4260833a0175164889d94881c28000000048b80003000122110000ffd048ba0015000122110000f0ff4a604889d948b896fa130122110000ffe0000000000000000000000000000000000000000000000053564883ec284889cb4889d64885db0f845d0100004885f60f845401000048391e0f854b010000837e0c000f8541010000807b78010f853701000080bb84000000000f852a01000048837e18000f841801000048837e20000f840d010000488b4b584885c90f8400010000483b4e280f85f600000048837e30000f84eb00000048837e38000f84e00000008b56084531c0ff5638483b46300f85cd000000488b4b384885c90f84c0000000488b91e80000004885d20f84b0000000483b56580f85a6000000488b89f80000004885c90f8496000000483b4e480f858c00000048837e50000f8481000000c7460c02000000488b56404885d2751f48837e68007471488b4e588b56084531c04531c9ff56684885c0745c4889c2488b463048394230754f48895640488b4e484531c04531c9ff56504885c074394889d98b56084531c04531c9ff56184885c074254889d94889c24531c0ff56204885c0741448894610c7460c01000000eb07c7460c020000004883c4285e5bc300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000053564883ec284885c90f840b0100004885d20f84020100004889d3837b40000f85f50000004889ce488b86980000004885c00f84e2000000488b80f80000004885c00f84d2000000488b40384885c00f84c5000000488b80e80000004885c00f84b5000000483b030f85ac000000c7434002000000488b5308488b8ea80000004885c90f84910000004885d20f8488000000488b42304885c0747f483b4310757948837b1800747248837b2000746b4531c04531c9ff53184885c0745d4889433848897348488b86380100004885c07449488b40104885c074408b4018894424204889f1488b53084c8d43284531c9ff5320488b86380100004885c0741c488b40104885c074138b40182b44242083f8017507c74340010000004883c4285e5bc3", {
    {10, "allocation", 0x500},
    {43, "allocation", 0xA0},
    {55, "allocation", 0x500},
    {69, "allocation", 0x1500},
    {98, "allocation", 0x300},
    {110, "allocation", 0x1500},
    {127, "module", 0x113FA96},
  }},
  {0x12285E0, "40534883ec20", 0x1000, "534883ec204889cb48ba0015000122110000f0ff426048894a68ff427048b8a010000122110000ffd048ba0015000122110000f0ff4a604889d948b8e685220122110000ffe00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004885d27405833a027401c383ba5001000003747783ba500100000075ed4885c974e8488b8128020000483b820001000075d883bac0000000037559488b8280000000483b82000100007549488b8288000000483b82080100007539488b8290000000483b82100100007529488b82b8000000483b82180100007519488b8130020000483b82c800000075094881c200010000eb0bc7825001000005000000c35356574883ec304889d34885c90f84a90100004885db0f84a0010000837b50030f848a010000837b50000f858c010000488b81280200004885c00f847c010000483b030f8573010000488bb1300200004885f60f8463010000c7435002000000488b53084885d20f844f010000488b42304885c00f8442010000483b43100f8538010000488b42384885c00f842b010000837818040f8c21010000488b40384885c00f8414010000488b40284885c00f8407010000483b43180f85fd00000048837b20000f84f200000048837b28000f84e700000048837b30000f84dc00000048837b38000f84d100000048894b684883c218448b4358448b4b5c48c744242000000000ff53204885c00f84ac0000004889c7488943404889f9488b07488b9040030000ff90380300004885c07433488943484989c14889f18b5358448b435c48c74424200100000048c744242800000000ff532884c07409c7435001000000eb5a4885ff741d4889f931d2ff53384885c074104889c131d2ff533048c7434000000000488b4b484885c9740d31d2ff533048c7434800000000837b5003751c48837b40007515c7435004000000eb0c483b4b687506488b7b40eba64883c4305f5e5bc3", {
    {10, "allocation", 0x1500},
    {31, "allocation", 0x10A0},
    {43, "allocation", 0x1500},
    {60, "module", 0x12285E6},
  }},
  {0x1142AD9, "8b9de0020000", 0x2000, "9c5048b8801500012211000083784001751f483b704875194c3b6038751351498b4d18483b4808597507c7404003000000589d8b9de0020000ff2500000000df2a140122110000", {
    {4, "allocation", 0x1580},
    {63, "module", 0x1142ADF},
  }},
}
local function decode(hex)
  return (hex:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end))
end
return function(module, allocation)
  local slots = {}
  for _, template in ipairs(templates) do
    local site, original, cave, worker, relocations = table.unpack(template)
    site, cave, worker = module + site, allocation + cave, decode(worker)
    local displacement = cave - (site + 5)
    if displacement &lt; -0x80000000 or displacement &gt; 0x7FFFFFFF then return nil, "Map code is out of branch range" end
    for _, relocation in ipairs(relocations) do
      local offset, origin, delta = table.unpack(relocation)
      local base = origin == "module" and module or allocation
      worker = worker:sub(1, offset)..string.pack("&lt;I8", base + delta)..worker:sub(offset + 9)
    end
    local branch = string.char(0xE9)..string.pack("&lt;i4", displacement)..string.char(0x90)
    slots[#slots + 1] = {site=site, original=decode(original), branch=branch, cave=cave, code=worker}
  end
  return slots, allocation + 0x500, allocation + 0x1500
end
end)()
return modules
  end)()
  local displayPlan=(function()
local function decode(hex)
  return (hex:gsub('..',function(byte)return string.char(tonumber(byte,16))end))
end
local template=decode('9cf0ff057803000050515241504151415241534883ec204c89f948ba88776655443322114c8d450748b85200230100000000ffd04883c420415b415a415941585a59589dff25000000003f0123010000000031c04885c90f84e10000004d85c00f84d80000004c8b99700200004d89184c8b99780200004d8958084885d20f84ba0000004c8b89480200004d85c90f84aa0000004c3b4a080f85a00000004c8b4a404d85c90f8493000000837a48000f8489000000448b4a70448b5274443b4a787f7b443b527c7f75448b5a788b427c453b08450f4f08453b5004450f4f5004453b5808450f4c5808413b400c410f4c400c44898970020000448991740200004489997802000089817c020000488b42684885c07423448b4a484989c8574889c74489c931c0fcf3aa5f890289424c8942644c898280000000b801000000c3f3410f108750010000458baf78020000452baf70020000418b877c020000412b8774020000498b8f9801000089457f418d7d01660f6ecf8d7001660f6ed60f5bc90f5bd2f30f59c8f30f59d0f30f114de7f30f1155eb4885c90f8475010000488b55e74533c0e8369f2f0366410f6e877002000066410f6e8f74020000f3410f1097500100000f5bc00f5bc9f30f59c2f30f59caf3410f118760020000f3410f118f64020000418b8778020000ffc0660f6ec8418b877c020000ffc00f5bc9660f6ec00f5bc0f30f59caf30f59c2f3410f118f68020000f3410f11876c020000488b0db2cbad04e855003aff4533f6448bc64c897424288bd7488bc84488742420488bd8458d4e3fe8e40f2d034d8da7f0020000488bd3498bcc49891c24e81ef039ff498b0c244885c90f84a40000004533c033d2e8f7ab2b03498b0c244885c90f848d0000004533c0418d5601e85eb12b038b7d0b909090903b7d13909090907f5a8b5d07909090903b5d0f909090907f3f488b0d1fecb1044439b1e40000007505e899003aff4533c9488d4d6f448bc78bd3e8b8813e028b556f4533c0498bcfe85a84ffffffc33b5d0f909090907ec1ffc73b7d13909090907ea69cf0ff0d7c0000009dff2500000000ca7d2201000000009cf0ff0d650000009dff2500000000bf85220100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000')
local signature=decode('f3410f108750010000458baf78020000452baf70020000418b877c020000412b8774020000498b8f9801000089457f418d7d01660f6ecf8d7001660f6ed60f5bc90f5bd2f30f59c8f30f59d0f30f114de7f30f1155eb4885c90f8453090000488b55e74533c0e86824300366410f6e877002000066410f6e8f74020000f3410f1097500100000f5bc00f5bc9f30f59c2f30f59caf3410f118760020000f3410f118f64020000418b8778020000ffc0660f6ec8418b877c020000ffc00f5bc9660f6ec00f5bc0f30f59caf30f59c2f3410f118f68020000f3410f11876c020000488b0de450ae04e887853aff4533f6448bc64c897424288bd7488bc84488742420488bd8458d4e3fe816952d034d8da7f0020000488bd3498bcc49891c24e850753aff498b0c244885c90f84820800004533c033d2e829312c03498b0c244885c90f846b0800004533c0418d5601e890362c03418bbf74020000413bbf7c0200007f5a418b9f70020000413b9f780200007f3f488b0d5171b2044439b1e40000007505e8cb853aff4533c9488d4d6f448bc78bd3e8ea063f028b556f4533c0498bcfe88c090000ffc3413b9f780200007ec1ffc7413bbf7c0200007ea6')
return function(base,cave,job)
  local function put(code,offset,data)
    return code:sub(1,offset)..data..code:sub(offset+#data+1)
  end
  local code=put(template,28,string.pack('&lt;I8',job))
  code=put(code,42,string.pack('&lt;I8',cave+82))
  code=put(code,74,string.pack('&lt;I8',cave+319))
  for _,offset in ipairs({422,546,551,584,606,629,654,693,707,724,738}) do
    local original=string.unpack('&lt;i4',template,offset+1)
    code=put(code,offset,string.pack('&lt;i4',original+19070976-(cave-base)))
  end
  for _,offset in ipairs({779,802}) do
    local rva=string.unpack('&lt;I8',template,offset+1)
    code=put(code,offset,string.pack('&lt;I8',base+rva))
  end
  return code,signature
end
  end)()
  modules.displayPlan = displayPlan

  local key, record, reported, timer = "revealWorldMap"
  local phases = {terrain="地形生成", landmask="地図テクスチャ更新", display="描画"}
  local function readBuffer(address, length)
    local raw = bytes(address, length)
    if not raw then return end
    local parts = {}
    for index=1,length,1024 do
      parts[#parts + 1] = string.char(table.unpack(raw, index, math.min(index+1023,length)))
    end
    return table.concat(parts)
  end
  local memory = {
    pointer=readPointer, integer=readInteger, float=readFloat, readBuffer=readBuffer,
    byte=function(address) return readBytes(address,1) end,
    cstring=function(address) return readString(address,128,false) end,
    unityIdentity=unityIdentity, allocate=allocateMemory, free=deAlloc,
    suspend=withTargetSuspended, verifyOutside=verifyThreadsOutside,
    write=function(handle,address,value) checkedWrite(handle,address,{value:byte(1,#value)}) end,
  }
  local feature
  local function stopTimer()
    if not timer then return end
    if ASKA.deferred[timer] then
      ASKA.deferred[timer] = nil
      timer.destroy()
    end
    timer = nil
  end
  feature = {
    on=function()
      local context = need(soloContext(), "A local world is required.", "ローカルのワールドを開いてください。")
      local reason
      record, reason = modules.runtime(context.base,memory,modules,128)
      need(record and record.tick,tostring(reason),tostring(reason))
      reported = false
      ASKA.msg("Open or reopen the world map to view the revealed areas.",
        "開放された区画を見るにはワールドマップを開くか、開き直してください。")
      local epoch = ASKA.epoch
      timer = createTimer(nil,false)
      ASKA.deferred[timer] = true
      timer.Interval = 45
      timer.OnTimer = function()
        local active = ASKA.active[key]
        if ASKA.inTick or ASKA.disarming or not active or active.starting or active.cleanup then return end
        if ASKA.epoch ~= epoch or not ASKA.alive() then return end
        local ok, problem = pcall(feature.advance)
        if not ok then
          stopTimer()
          local restored, cleanupError = pcall(ASKA.feature,key,false)
          local message = tostring(problem)..(restored and "" or " / "..tostring(cleanupError))
          ASKA.msg(message,message)
        end
      end
      timer.Enabled = true
    end,
    advance=function()
      if reported then return end
      local status, completed, failures = record.tick()
      need(status ~= "world changed", "World changed.", "ワールドが変化しました。")
      if status == "complete" or status == "incomplete" then
        reported = true
        stopTimer()
        if status == "complete" then
          ASKA.msg(("Map parts prepared: %d/%d."):format(completed,record.total),
            ("地図区画の描画準備：%d/%d件。"):format(completed,record.total))
        else
          local first = failures[1]
          ASKA.msg(("Map reveal incomplete. %d/%d prepared. First failure at (%d, %d), %s: %s.")
              :format(completed,record.total,first.x,first.z,first.phase,first.reason),
            ("地図全開放は未完了です。描画準備 %d/%d件。最初の失敗は区画 (%d, %d) の%sです。")
              :format(completed,record.total,first.x,first.z,phases[first.phase]))
        end
      end
    end,
    off=function()
      stopTimer()
      if not record then return end
      local status = record.stop()
      if status == "complete" then record = nil; return end
      need(status ~= "world changed", "Map cleanup requires the original world.",
        "地図の解除には元のワールドが必要です。")
      local epoch = ASKA.epoch
      timer = createTimer(nil,false)
      ASKA.deferred[timer] = true
      timer.Interval = 45
      timer.OnTimer = function()
        if ASKA.inTick or ASKA.disarming or ASKA.epoch ~= epoch or not ASKA.alive() then return end
        local ok, result = pcall(record.stop)
        if ok and result == "complete" then
          record = nil
          ASKA.feature(key,false)
          ASKA.msg("Map reveal disabled.", "MAP全開放を解除しました。")
        elseif not ok or result == "world changed" then
          stopTimer()
          ASKA.msg(tostring(result),tostring(result))
        end
      end
      timer.Enabled = true
      need(false, "Map cleanup is running. Keep the world map open until it finishes.",
        "MAP全開放の解除処理中です。完了するまでワールドマップを開いてください。")
    end,
  }
  ASKA.F[key] = feature
end


local snapshotMemberScope = (function()
-- Read the owning settlement and living villagers for the current solo player.
-- The accessors are supplied by the ASKA adapter or an offline fixture.
return function(context, memory, enumerateMembers)
  local follow, integer, byte = memory.follow, memory.integer, memory.byte
  local unityIdentity = memory.unityIdentity
  if not context.playerAgentClass or not context.villagerClass then return end
  local manager = follow(context.player, 0x290)
  if not unityIdentity(manager) or byte(manager + 0x48) ~= 0 then return end

  local settlements = follow(manager, 0x40)
  local count = 0
  if settlements then
    count = integer(settlements + 0x18)
    if not count or count&lt;0 then return end
  end
  local settlementItems,settlementVersion
  local world = follow(manager, 0x38)
  local settlement=world
  if count&gt;0 then
    settlementItems=follow(settlements,0x10)
    local capacity=settlementItems and integer(settlementItems+0x18)
    settlementVersion=integer(settlements+0x1C)
    if not capacity or count&gt;capacity or not settlementVersion then return end
    settlement=follow(settlementItems,0x20)
  elseif not world or follow(world,0x1E8)~=manager then
    return
  end
  local settlementIdentity = unityIdentity(settlement)
  if not settlementIdentity or not world or (count&gt;0 and settlement==world) then return end

  local agent = follow(context.player, 0x198)
  if not unityIdentity(agent)
    or follow(agent, 0) ~= context.playerAgentClass
    or follow(agent, 0x198) ~= context.player then return end
  local population = follow(agent, 0x278)
  if not unityIdentity(population) then return end
  local villagers = follow(population, 0xA8)
  if not villagers then return end
  local items = follow(villagers, 0x10)
  local size = integer(villagers + 0x18)
  local version = integer(villagers + 0x1C)
  local capacity = items and integer(items + 0x18)
  if not capacity or not size or not version or size &lt; 0 or size &gt; capacity or size &gt; 16384 then return end

  local members, seen = {}, {}
  for index = 0, (enumerateMembers==false and -1 or size-1) do
    local villager = follow(items, 0x20 + index * 8)
    if villager and not seen[villager] and follow(villager, 0) == context.villagerClass then
      seen[villager] = true
      local identity = unityIdentity(villager)
      if identity and follow(villager, 0x38) == context.runner
        and follow(villager, 0x4C8) == settlement and follow(villager, 0x4D0) == population
        and byte(villager + 0x194) == 0 then
        members[#members+1] = {
          address=villager, identity=identity,
          guidAddress=follow(villager, 0x628), survival=follow(villager, 0x490),
        }
      end
    end
  end

  if integer(villagers + 0x1C) ~= version or integer(villagers + 0x18) ~= size
    or follow(villagers, 0x10) ~= items or follow(population, 0xA8) ~= villagers
    or follow(manager,0x40)~=settlements or follow(manager,0x38)~=world
    or (settlements and integer(settlements+0x18)~=count)
    or (count&gt;0 and (integer(settlements+0x1C)~=settlementVersion
      or follow(settlements,0x10)~=settlementItems or follow(settlementItems,0x20)~=settlement))
    or (count==0 and follow(world,0x1E8)~=manager)
    or unityIdentity(settlement) ~= settlementIdentity or byte(manager + 0x48) ~= 0 then return end
  return {
    settlement=settlement, identity=settlementIdentity, manager=manager,
    population=population, members=members,
  }
end

end)()

local weatherCatalog = (function()
-- Read the current world's registered WeatherConditionDatabase without a game-side call.
return function(base, memory)
  local reads={}
  local function capture(fn,...)
    local args={...};local value=fn(table.unpack(args))
    reads[#reads+1]={read=function()return fn(table.unpack(args))end,value=value}
    return value
  end
  local function follow(...)return capture(memory.follow,...)end
  local function integer(...)return capture(memory.integer,...)end
  local function classString(...)return capture(memory.classString,...)end
  local function isWeatherClass(class, name)
    return class and classString(class, 0x10) == name and classString(class, 0x18) == 'SSSGame.Weather'
  end

  local registryClass = follow(base, 0x5D635B8)
  local registryData = follow(registryClass, 0xB8)
  local registry = follow(registryData, 0)
  local entries = follow(registry, 0x18)
  if not entries then return end
  local size = integer(registry + 0x20)
  local capacity = integer(entries + 0x18)
  local version = integer(registry + 0x2C)
  if not size or not capacity or not version or size &lt; 1 or size &gt; capacity then return end

  local database
  for index = 0, size - 1 do
    local entry = entries + 0x20 + index * 0x18
    local hash = integer(entry)
    local candidate = hash and hash &gt;= 0 and hash &lt; 0x80000000 and follow(entry, 0x10)
    if candidate and isWeatherClass(follow(candidate, 0), 'WeatherConditionDatabase')
      and follow(candidate, 0x10) then
      if database then return end
      database = candidate
    end
  end

  local conditions = follow(database, 0x20)
  if not conditions then return end
  local count = integer(conditions + 0x18)
  if not count or count &lt; 1 then return end
  local result, ids = {}, {}
  for index = 0, count - 1 do
    local config = follow(conditions, 0x20 + index * 8)
    if config and follow(config, 0x10) then
      local class = follow(config, 0)
      local concrete = class
      local ancestry = {}
      while class and not ancestry[class] do
        if isWeatherClass(class, 'ProgressingWeatherConditionConfig') then
          local id = integer(config + 0x18)
          if not id or id &lt; 0 or ids[id] then return end
          ids[id] = true
          result[#result + 1] = {id=id, index=index, address=config, class=concrete}
          break
        end
        ancestry[class] = true
        class = follow(class, 0x58)
      end
    end
  end

  if follow(registryData, 0) ~= registry or follow(registry, 0x18) ~= entries
    or integer(registry + 0x2C) ~= version or follow(database, 0x20) ~= conditions then return end
  result.database,result.identity=database,follow(database,0x10)
  function result.validate()
    for _,item in ipairs(reads)do if item.read()~=item.value then error('Weather catalog changed',0)end end
    return true
  end
  result.validate()
  return result
end

end)()
-- The game uses its weather-update delegate to fill and consume the override list.
do
local weatherKey = 'lockWeather'
local noWeatherEvent = -1
local weatherSelection

local function liveWeatherCatalog(context)
  return weatherCatalog(context.base,{
    follow=follow, integer=readInteger,
    classString=function(class,offset)
      local address=readPointer(class+offset)
      return address and address~=0 and readString(address,96,false)
    end,
  })
end

function ASKA.chooseWeather(validRequest)
  local context=need(clockContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
  local options=need(liveWeatherCatalog(context),
    'Cannot read the weather catalog.', '天候一覧を読み取れません。')
  table.sort(options,function(a,b) return a.id&lt;b.id end)
  table.insert(options,1,{id=noWeatherEvent})
  local labels=need(ASKA.weatherLabelsFor and ASKA.weatherLabelsFor(),
    'Weather names are unavailable. Prepare the selection again.','天候名を取得できません。天候選択を開き直してください。')
  local rows={}
  for _, option in ipairs(options) do
    local label
    if option.id==noWeatherEvent then label={en='Seasonal weather (no events)',ja='季節の天候（イベントなし）'}
    else
      label=need(labels[option.address],'Weather name is unavailable.','天候名を取得できません。')
      need(label.kind==6 and label.id==option.id and label.identity==unityIdentity(option.address),
        'Weather identity changed.','天候の実体が変わりました。')
    end
    local display=ASKA.T(label.en,label.ja)
    if label.key and display==label.key and option.address then
      -- Keep the exact lookup key and show the configuration's serialized name.
      local source=follow(option.address,0x20)
      local length=source and readInteger(source+0x10)
      local name=length and length&gt;0 and length&lt;=0x100000 and readString(source+0x14,length*2,true)
      if type(name)=='string' and name~='' and name~=display
        and follow(option.address,0x20)==source and unityIdentity(option.address)==label.identity then
        if label.key=='weather.Event_FimbulBlizzardname' then
          for _, alternate in pairs(labels) do
            if alternate.key=='weather.Event_Blizzardname' and alternate.en==name
              and type(alternate.ja)=='string' and alternate.ja~='' and alternate.ja~=alternate.key then
              name=ASKA.T(name,alternate.ja)
              break
            end
          end
        end
        display=name..' ['..display..']'
      end
    end
    rows[#rows+1]={display,option.id}
  end
  local index=ASKA.chooseInventoryRow(ASKA.T('Choose weather to lock','固定する天気を選択'),
    {ASKA.T('Weather','天気'),'ID'},rows)
  if not index or (validRequest and not validRequest()) then return end
  local selected=options[index].id
  local current=need(clockContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
  need(current.token==context.token,'World changed while choosing weather.','天候の選択中にワールドが変化しました。')
  if selected~=noWeatherEvent then
    local valid=false
    for _,option in ipairs(liveWeatherCatalog(current) or {}) do
      if option.id==selected and option.address==options[index].address
        and option.class==options[index].class
        and unityIdentity(option.address)==labels[options[index].address].identity then valid=true; break end
    end
    need(valid,'The selected weather is unavailable.','選択した天候を取得できません。')
  end
  local active=ASKA.active[weatherKey]
  if selected==weatherSelection and (not active or
    (not active.cleanup and ASKA.F[weatherKey].boundary()==active.boundary)) then return true end
  local previous=weatherSelection
  if not active then weatherSelection=selected; return true end
  need(not active.cleanup,'Weather cleanup is pending.','天候固定の解除処理が保留されています。')
  ASKA.feature(weatherKey,false)
  weatherSelection=selected
  local ok,reason=pcall(ASKA.feature,weatherKey,true)
  if ok then return true end

  weatherSelection=previous
  local restored,restoreError=pcall(function()
    if ASKA.active[weatherKey] then ASKA.feature(weatherKey,false) end
    ASKA.feature(weatherKey,true)
  end)
  if not restored then
    ASKA.defer(function()
      if ASKA.active[weatherKey] then return end
      local record=getAddressList().getMemoryRecordByID(515)
      if record then record.Active=false end
    end)
    error(tostring(reason)..' / '..tostring(restoreError),0)
  end
  error(reason,0)
end

function ASKA.prepareWeatherLabels(callback,valid,failed)
  if ASKA.weatherLabelsFor and ASKA.weatherLabelsFor(nil,true)then callback();return end
  return ASKA.withWeatherLabels(callback,valid,failed)
end
local weatherDialogRequest
function ASKA.configureWeatherAndToggleRecord(record,key,configure)
  local token,epoch={},ASKA.epoch
  weatherDialogRequest=token
  local function valid()
    local current=getAddressList().getMemoryRecordByID(record.ID)
    return weatherDialogRequest==token and ASKA.epoch==epoch and not ASKA.disarming and current and current.Active
  end
  local function failed()
    if valid()then record.Active=false;weatherDialogRequest=nil end
  end
  ASKA.defer(function()
    if not valid()then return end
    local ok=ASKA.userRun(function()
      ASKA.prepareWeatherLabels(function()
        if not valid()then return end
        local accepted,result=ASKA.userRun(function()return configure(valid)end)
        if not valid()then return end
        weatherDialogRequest=nil
        if accepted and result then ASKA.toggleRecord(record,key,true)else record.Active=false end
      end,valid,failed)
    end)
    if not ok then failed()end
  end)
end
function ASKA.chooseWeatherWithLabels()
  local token,epoch={},ASKA.epoch;weatherDialogRequest=token
  local function valid()return weatherDialogRequest==token and ASKA.epoch==epoch and not ASKA.disarming end
  return ASKA.prepareWeatherLabels(function()
    if not valid()then return end
    ASKA.userRun(function()ASKA.chooseWeather(valid)end)
    if valid()then weatherDialogRequest=nil end
  end,valid,function()if valid()then weatherDialogRequest=nil end end)
end

local function weatherLockContext()
  local context=clockContext()
  if not context or not weatherSelection or not follow(context.weather,0x98) then return end
  if weatherSelection==noWeatherEvent then
    context.token=context.token..':noWeatherEvent'
    return context
  end
  local options=liveWeatherCatalog(context)
  for _, option in ipairs(options or {}) do
    if option.id==weatherSelection then
      context.config,context.configIdentity=option.address,unityIdentity(option.address)
      if not context.configIdentity then return end
      context.token=('%s:%X:%X'):format(context.token,context.config,context.configIdentity)
      return context
    end
  end
end

local function whenWeatherMatches(context, matched)
  return string.char(0x49,0xBB)..string.pack('&lt;I8',context.weather)
    .. string.char(0x4C,0x39,0xDF,0x75,16+#matched)
    .. string.char(0x49,0xBB)..string.pack('&lt;I8',context.identity)
    .. string.char(0x4C,0x39,0x5F,0x10,0x75,#matched)..matched
end

local branchSignature={0x44,0x38,0xAF,0xCD,0x02,0,0,0x0F,0x85,0xF5,0x03,0,0,0x44,0x38,0xAF,0xCC,0x02,0,0}
local branchOriginal={table.unpack(branchSignature,1,13)}

local function weatherBranchCode(context,cave,entry)
  local restore=string.char(0x41,0x5B,0x9D)
  local destination=context.base+0xF788F3
  local stub=string.char(0x9C,0x41,0x53)
  local matchAt=cave+#stub+31
  local matched=restore..makeJump(matchAt+#restore,destination)
  local code=stub..whenWeatherMatches(context,matched)..restore
    .. string.char(table.unpack(branchOriginal,1,7))
  -- Re-encode the original conditional branch for the new instruction address.
  local rel=destination-(cave+#code+6)
  code=code..string.char(0x0F,0x85)..string.pack('&lt;i4',rel)
  return code..makeJump(cave+#code,entry+#branchOriginal)
end

local configSignature={0xF3,0x0F,0x10,0x9F,0xD8,0x02,0,0,0x0F,0x28,0xD6,0x48,0x8B,0x97,0xD0,0x02,0,0,0x4C,0x89,0x6C,0x24,0x20}
local configOriginal={table.unpack(configSignature,1,18)}

local function weatherConfigCode(context,cave,entry)
  local restore=string.char(0x41,0x5B,0x9D)
  -- A null configuration clears the state list. Named weather samples its midpoint.
  local matched=string.char(0x41,0xBB,0,0,0,0x3F,0x66,0x41,0x0F,0x6E,0xDB,0x0F,0x28,0xD6,0x48,0xBA)
    .. string.pack('&lt;I8',context.config or 0)..string.char(0xEB,#configOriginal)
  local code=string.char(0x9C,0x41,0x53)..whenWeatherMatches(context,matched)
    .. string.char(table.unpack(configOriginal))..restore
  return code..makeJump(cave+#code,entry+#configOriginal)
end

local weatherFeature=groupedEntryFeatures({
  entryFeature(weatherKey,0xF7890B,configOriginal,configSignature,weatherLockContext,weatherConfigCode,8),
  entryFeature(weatherKey,0xF784F1,branchOriginal,branchSignature,weatherLockContext,weatherBranchCode,7),
})

local installedWeather
local installWeather,removeWeather=weatherFeature.on,weatherFeature.off
local function refreshWeather(expected)
  if not expected or expected.epoch~=ASKA.epoch then return end
  withTargetSuspended(function(handle)
    local current=clockContext()
    if current and current.token==expected.token then
      checkedWrite(handle,current.weather+0x418,{1})
    end
  end)
end

weatherFeature.on=function()
  local context=need(clockContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
  installWeather()
  context.epoch=ASKA.epoch
  installedWeather=context
  refreshWeather(context)
end

weatherFeature.off=function()
  removeWeather()
  refreshWeather(installedWeather)
  installedWeather=nil
end

ASKA.F[weatherKey]=weatherFeature
end

local function currentMembers(enumerateMembers)
  local context = soloContext()
  if not context then return end
  context.playerAgentClass = typeObject(context.base, 0x5D612D0)
  context.villagerClass = typeObject(context.base, 0x5D3A260)
  local scope = snapshotMemberScope(context, {
    follow=follow, integer=readInteger,
    byte=function(address) return readBytes(address, 1) end, unityIdentity=unityIdentity,
  },enumerateMembers)
  if not scope then return end
  scope.context = context
  scope.token = ('%s:%X:%X'):format(context.token, scope.settlement or 0, scope.identity or 0)
  return scope
end


do
local happinessScopeInstructions = "\x81\x7F\x10\x9F\x08\x00\x00\x0F\x85\x13\x01\x00\x00\x48\x8B\x47\x18\x48\x85\xC0\x0F\x84\x06\x01\x00\x00\x4C\x8B\x40\x78\x45\x31\xC9\x4D\x85\xC0\x74\x17\x45\x8B\x48\x18\x41\xFF\xC9\x0F\x88\xED\x00\x00\x00\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x74\xED\x4C\x8B\x58\x20\x4D\x85\xDB\x0F\x84\xCD\x00\x00\x00\x49\x8B\x42\x18\x49\x39\x03\x0F\x85\xC0\x00\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\xB5\x00\x00\x00\x49\x39\xBB\x58\x05\x00\x00\x0F\x85\xA8\x00\x00\x00\x49\x8B\x42\x20\x49\x39\x43\x38\x0F\x85\x9A\x00\x00\x00\x49\x8B\x42\x08\x49\x39\x83\xC8\x04\x00\x00\x0F\x85\x89\x00\x00\x00\x49\x8B\x42\x10\x49\x39\x83\xD0\x04\x00\x00\x75\x7C\x41\x80\xBB\x94\x01\x00\x00\x00\x75\x72\x41\x80\xBB\x7C\x02\x00\x00\x01\x75\x68\x4D\x8B\x1A\x41\x80\x7B\x48\x00\x75\x67\x49\x8B\x42\x08\x4C\x39\x98\xE8\x01\x00\x00\x75\x5A\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x10\x49\x39\xC3\x75\x0B\xEB\x0B\x4D\x85\xC0\x0F\x85\x0A\xFF\xFF\xFF\xEB\x2E\x48\x89\xF9\xF3\x0F\x10\x4F\x44\x48\x83\xEC\x20\x45\x31\xC0\xFF\x15\xDF\x9B\x57\x13\x48\x83\xC4\x20\x5F\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xF0\xFF\x0D\xE0\x9B\x57\x13\xC3"
-- Stop native happiness decrement processing and let the game's setter publish the maximum.
local happinessSignature={0x48,0x89,0x74,0x24,0x10,0x57,0x48,0x83,0xEC,0x40,0x80,0x3D,0xAB,0xB6,0xA2,0x02}
local happinessOriginal={table.unpack(happinessSignature,1,5)}
local function happinessContext()
  local scope=currentMembers(false)
  if not scope or not scope.settlement then return end
  local context=scope.context
  context.scope=scope;context.token=scope.token
  return context
end
local function happinessCode(context,cave,entry)
  local scope=context.scope
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',0x230-7)
    ..string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53,0x57,0x48,0x8B,0xF9,0x49,0xBA)
    ..string.pack('&lt;I8',cave+0x200)..happinessScopeInstructions
    ..string.char(0x5F,0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
  for _,patch in ipairs({{0x13579BDF,0x228},{0x13579BE0,0x230}})do
    local first,last=code:find(string.pack('&lt;I4',patch[1]),1,true)
    need(first,'Happiness code marker is missing.','幸福度処理の位置を確認できません。')
    code=code:sub(1,first-1)..string.pack('&lt;i4',patch[2]-last)..code:sub(last+1)
  end
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',0x230-#code-7)
    ..string.char(table.unpack(happinessOriginal))
  code=code..makeJump(cave+#code,entry+#happinessOriginal)
  need(#code&lt;=0x200,'Happiness code exceeds its reserved range.','幸福度処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8I8I8I4',
    scope.manager,scope.settlement,scope.population,context.villagerClass,context.runner,context.base+0x35EA4C0,0)
end
ASKA.F.maxMemberHappiness=entryFeature('maxMemberHappiness',0x35EA5E0,happinessOriginal,happinessSignature,
  happinessContext,happinessCode,nil,nil,function(cave)
    need(readInteger(cave+0x230)==0,'A happiness update is finishing.','幸福度更新処理の完了を待っています。')
  end)

end
local needsScopeInstructions = "\x49\x8B\x42\x48\x48\x8B\x00\x48\x85\xC0\x74\x47\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x3B\x48\x8B\x00\x48\x85\xC0\x74\x33\x48\x83\x78\x10\x00\x74\x2C\x48\x8B\x40\x30\x48\x85\xC0\x74\x23\x48\x83\x78\x10\x00\x74\x1C\x4D\x8B\x5A\x50\x4D\x8B\x1B\x4C\x39\x18\x75\x10\x80\x78\x60\x01\x75\x0A\x48\x8B\x40\x50\x49\x3B\x42\x10\x74\x05\xE9\x29\x01\x00\x00\x4C\x8B\x99\x60\x01\x00\x00\x4D\x85\xDB\x0F\x84\x19\x01\x00\x00\x41\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x0B\x01\x00\x00\x80\xB9\x6C\x01\x00\x00\x01\x0F\x85\xFE\x00\x00\x00\x49\x8B\x43\x38\x49\x3B\x42\x18\x0F\x85\xF0\x00\x00\x00\x49\x3B\x0A\x75\x2A\x48\x8B\x41\x10\x49\x3B\x42\x08\x0F\x85\xDD\x00\x00\x00\x4D\x3B\x5A\x10\x0F\x85\xD3\x00\x00\x00\x49\x39\x8B\xC8\x03\x00\x00\x0F\x85\xC6\x00\x00\x00\xE9\xB9\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xB4\x00\x00\x00\x48\x8B\x11\x49\x3B\x52\x30\x0F\x85\xA7\x00\x00\x00\x49\x8B\x13\x49\x3B\x52\x28\x0F\x85\x9A\x00\x00\x00\x49\x39\x83\xC8\x04\x00\x00\x0F\x85\x8D\x00\x00\x00\x49\x39\x8B\x90\x04\x00\x00\x0F\x85\x80\x00\x00\x00\x49\x83\x7B\x10\x00\x74\x79\x49\x8B\x93\xD0\x04\x00\x00\x49\x3B\x52\x40\x75\x6C\x48\x8B\x90\xE8\x01\x00\x00\x49\x3B\x52\x38\x75\x5F\x48\x85\xD2\x74\x5A\x80\x7A\x48\x00\x75\x54\x52\x48\x8B\x52\x40\x48\x85\xD2\x74\x22\x83\x7A\x18\x00\x7C\x30\x74\x1A\x48\x8B\x52\x10\x48\x85\xD2\x74\x25\x83\x7A\x18\x00\x7E\x1F\x48\x8B\x52\x20\x48\x85\xD2\x74\x16\xEB\x0D\x48\x8B\x14\x24\x48\x8B\x52\x38\x48\x85\xD2\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0D\x48\x39\xC2\x75\x08\x0F\x28\xC3\xF3\x0F\x5C\xC1\xC3"
-- CharacterSurvival custom modifiers return a delta to VariableAttribute.Tick.
local needsOriginal = {0x40,0x53,0x48,0x83,0xEC,0x20}
local needFeatures = {
  {key='noHunger', rva=0xB93AA0, attribute=0x78, modifier=0x88,
    signature={0x40,0x53,0x48,0x83,0xEC,0x20,0x80,0x3D,0x76,0x3A,0x47,0x05,0x00,0x48,0x8B,0xD9}},
  {key='noThirst', rva=0xB93BB0, attribute=0x98, modifier=0xA8,
    signature={0x40,0x53,0x48,0x83,0xEC,0x20,0x80,0x3D,0x67,0x39,0x47,0x05,0x00,0x48,0x8B,0xD9}},
  {key='normalWarmth', rva=0xB93EE0, attribute=0x100, modifier=0x138,
    signature={0x40,0x53,0x48,0x83,0xEC,0x20,0x48,0x8B,0xD9,0x48,0x8B,0x89,0x08,0x01,0x00,0x00}},
}

local function packMembers(scope)
  if not scope or not scope.settlement then return string.rep('\0',40) end
  local survivalClass = typeObject(scope.context.base, 0x5D3DF50)
  need(survivalClass and follow(scope.settlement, 0x1E8) == scope.manager,
    'Cannot verify member survival scope.', 'メンバーの生存データの適用範囲を確認できません。')
  return string.pack('&lt;I8I8I8I8I8', scope.settlement, scope.context.villagerClass,
    survivalClass, scope.manager, scope.population)
end

local function needContext(spec)
  local context = soloContext()
  if not context or readBytes(context.player + 0x194, 1) ~= 0 then return end
  local survival = follow(context.player, 0x3C8)
  local identity = unityIdentity(survival)
  if not identity or follow(survival, 0x160) ~= context.player then return end
  if readBytes(survival + 0x16B, 1) ~= 1 or readBytes(survival + 0x16C, 1) ~= 1 then return end
  local attribute = follow(survival, spec.attribute)
  local modifier = follow(survival, spec.modifier)
  local callback = follow(modifier, 0x20)
  if not attribute or follow(callback, 0x40) ~= survival or follow(callback, 0x18) ~= context.base + spec.rva then return end
  context.survival, context.survivalIdentity = survival, identity
  context.token = ('%s:%X:%X:%X:%X'):format(context.token, survival, identity, attribute, modifier)
  return context
end

local function activeMemberScope()
  if ASKA.active.applyNeedsToMembers and not ASKA.active.applyNeedsToMembers.cleanup then
    local scope = need(currentMembers(false), 'Member data is not ready.', 'メンバー情報の準備ができていません。')
    need(scope.token == ASKA.active.applyNeedsToMembers.boundary, 'Settlement changed.', '集落が変わりました。')
    return scope
  end
end

local function needCode(context, cave, entry)
  local code = string.char(0x49,0xBA) .. string.pack('&lt;I8', cave + 0x200)
    .. needsScopeInstructions .. string.char(table.unpack(needsOriginal))
  code = code .. makeJump(cave + #code, entry + #needsOriginal)
  need(#code &lt;= 0x200, 'Survival code exceeds its reserved range.', '生存処理が確保範囲を超えています。')
  return code .. string.rep('\0',0x200-#code)
    .. string.pack('&lt;I8I8I8I8', context.survival, context.survivalIdentity, context.player, context.runner)
    .. packMembers(activeMemberScope())..string.pack('&lt;I8I8',context.base+0x5D63E40,context.base+0x5D640B0)
end

for _, spec in ipairs(needFeatures) do
  ASKA.F[spec.key] = entryFeature(spec.key, spec.rva, needsOriginal, spec.signature,
    function() return needContext(spec) end, needCode, 2, 40)
end

do
  local debugNeeds={
    {'noHunger',0xB936FE,0xB93724,1,{0x80,0x7B,0x62,0x00,0x74,0x20,0x48,0x8B,0x4B,0x78,0x48,0x85,0xC9,0x0F,0x84,0x1D},"\x9C\x80\x7B\x62\x00\x0F\x84\xC1\x01\x00\x00\x50\x51\x52\x41\x52\x41\x53\x48\x89\xD9\x49\xBA\x94\x98\x74\x88\x39\x03\x18\x16\x49\x8B\x42\x48\x48\x8B\x00\x48\x85\xC0\x74\x47\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x3B\x48\x8B\x00\x48\x85\xC0\x74\x33\x48\x83\x78\x10\x00\x74\x2C\x48\x8B\x40\x30\x48\x85\xC0\x74\x23\x48\x83\x78\x10\x00\x74\x1C\x4D\x8B\x5A\x50\x4D\x8B\x1B\x4C\x39\x18\x75\x10\x80\x78\x60\x01\x75\x0A\x48\x8B\x40\x50\x49\x3B\x42\x10\x74\x05\xE9\x2B\x01\x00\x00\x4C\x8B\x99\x60\x01\x00\x00\x4D\x85\xDB\x0F\x84\x1B\x01\x00\x00\x41\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x0D\x01\x00\x00\x80\xB9\x6C\x01\x00\x00\x01\x0F\x85\x00\x01\x00\x00\x49\x8B\x43\x38\x49\x3B\x42\x18\x0F\x85\xF2\x00\x00\x00\x49\x3B\x0A\x75\x2A\x48\x8B\x41\x10\x49\x3B\x42\x08\x0F\x85\xDF\x00\x00\x00\x4D\x3B\x5A\x10\x0F\x85\xD5\x00\x00\x00\x49\x39\x8B\xC8\x03\x00\x00\x0F\x85\xC8\x00\x00\x00\xE9\xB9\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xB6\x00\x00\x00\x48\x8B\x11\x49\x3B\x52\x30\x0F\x85\xA9\x00\x00\x00\x49\x8B\x13\x49\x3B\x52\x28\x0F\x85\x9C\x00\x00\x00\x49\x39\x83\xC8\x04\x00\x00\x0F\x85\x8F\x00\x00\x00\x49\x39\x8B\x90\x04\x00\x00\x0F\x85\x82\x00\x00\x00\x49\x83\x7B\x10\x00\x74\x7B\x49\x8B\x93\xD0\x04\x00\x00\x49\x3B\x52\x40\x75\x6E\x48\x8B\x90\xE8\x01\x00\x00\x49\x3B\x52\x38\x75\x61\x48\x85\xD2\x74\x5C\x80\x7A\x48\x00\x75\x56\x52\x48\x8B\x52\x40\x48\x85\xD2\x74\x22\x83\x7A\x18\x00\x7C\x30\x74\x1A\x48\x8B\x52\x10\x48\x85\xD2\x74\x25\x83\x7A\x18\x00\x7E\x1F\x48\x8B\x52\x20\x48\x85\xD2\x74\x16\xEB\x0D\x48\x8B\x14\x24\x48\x8B\x52\x38\x48\x85\xD2\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0F\x48\x39\xC2\x75\x0A\x41\x5B\x41\x5A\x5A\x59\x58\x9D\xEB\x1C\x41\x5B\x41\x5A\x5A\x59\x58\x9D\x80\x7B\x62\x00\x74\x0E\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x9D\x80\x7B\x62\x00\xEB\xEB"},
    {'noThirst',0xB936D5,0xB936FE,2,{0x80,0x7B,0x61,0x00,0x74,0x23,0x48,0x8B,0x8B,0x98,0x00,0x00,0x00,0x48,0x85,0xC9},"\x9C\x80\x7B\x61\x00\x0F\x84\xC1\x01\x00\x00\x50\x51\x52\x41\x52\x41\x53\x48\x89\xD9\x49\xBA\x94\x98\x74\x88\x39\x03\x18\x16\x49\x8B\x42\x48\x48\x8B\x00\x48\x85\xC0\x74\x47\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x3B\x48\x8B\x00\x48\x85\xC0\x74\x33\x48\x83\x78\x10\x00\x74\x2C\x48\x8B\x40\x30\x48\x85\xC0\x74\x23\x48\x83\x78\x10\x00\x74\x1C\x4D\x8B\x5A\x50\x4D\x8B\x1B\x4C\x39\x18\x75\x10\x80\x78\x60\x01\x75\x0A\x48\x8B\x40\x50\x49\x3B\x42\x10\x74\x05\xE9\x2B\x01\x00\x00\x4C\x8B\x99\x60\x01\x00\x00\x4D\x85\xDB\x0F\x84\x1B\x01\x00\x00\x41\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x0D\x01\x00\x00\x80\xB9\x6C\x01\x00\x00\x01\x0F\x85\x00\x01\x00\x00\x49\x8B\x43\x38\x49\x3B\x42\x18\x0F\x85\xF2\x00\x00\x00\x49\x3B\x0A\x75\x2A\x48\x8B\x41\x10\x49\x3B\x42\x08\x0F\x85\xDF\x00\x00\x00\x4D\x3B\x5A\x10\x0F\x85\xD5\x00\x00\x00\x49\x39\x8B\xC8\x03\x00\x00\x0F\x85\xC8\x00\x00\x00\xE9\xB9\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xB6\x00\x00\x00\x48\x8B\x11\x49\x3B\x52\x30\x0F\x85\xA9\x00\x00\x00\x49\x8B\x13\x49\x3B\x52\x28\x0F\x85\x9C\x00\x00\x00\x49\x39\x83\xC8\x04\x00\x00\x0F\x85\x8F\x00\x00\x00\x49\x39\x8B\x90\x04\x00\x00\x0F\x85\x82\x00\x00\x00\x49\x83\x7B\x10\x00\x74\x7B\x49\x8B\x93\xD0\x04\x00\x00\x49\x3B\x52\x40\x75\x6E\x48\x8B\x90\xE8\x01\x00\x00\x49\x3B\x52\x38\x75\x61\x48\x85\xD2\x74\x5C\x80\x7A\x48\x00\x75\x56\x52\x48\x8B\x52\x40\x48\x85\xD2\x74\x22\x83\x7A\x18\x00\x7C\x30\x74\x1A\x48\x8B\x52\x10\x48\x85\xD2\x74\x25\x83\x7A\x18\x00\x7E\x1F\x48\x8B\x52\x20\x48\x85\xD2\x74\x16\xEB\x0D\x48\x8B\x14\x24\x48\x8B\x52\x38\x48\x85\xD2\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0F\x48\x39\xC2\x75\x0A\x41\x5B\x41\x5A\x5A\x59\x58\x9D\xEB\x1C\x41\x5B\x41\x5A\x5A\x59\x58\x9D\x80\x7B\x61\x00\x74\x0E\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x9D\x80\x7B\x61\x00\xEB\xEB"},
    {'normalWarmth',0xB93724,0xB93753,3,{0x80,0x7B,0x63,0x00,0x74,0x29,0x48,0x8B,0x8B,0x00,0x01,0x00,0x00,0x48,0x85,0xC9},"\x9C\x80\x7B\x63\x00\x0F\x84\xC1\x01\x00\x00\x50\x51\x52\x41\x52\x41\x53\x48\x89\xD9\x49\xBA\x94\x98\x74\x88\x39\x03\x18\x16\x49\x8B\x42\x48\x48\x8B\x00\x48\x85\xC0\x74\x47\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x3B\x48\x8B\x00\x48\x85\xC0\x74\x33\x48\x83\x78\x10\x00\x74\x2C\x48\x8B\x40\x30\x48\x85\xC0\x74\x23\x48\x83\x78\x10\x00\x74\x1C\x4D\x8B\x5A\x50\x4D\x8B\x1B\x4C\x39\x18\x75\x10\x80\x78\x60\x01\x75\x0A\x48\x8B\x40\x50\x49\x3B\x42\x10\x74\x05\xE9\x2B\x01\x00\x00\x4C\x8B\x99\x60\x01\x00\x00\x4D\x85\xDB\x0F\x84\x1B\x01\x00\x00\x41\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x0D\x01\x00\x00\x80\xB9\x6C\x01\x00\x00\x01\x0F\x85\x00\x01\x00\x00\x49\x8B\x43\x38\x49\x3B\x42\x18\x0F\x85\xF2\x00\x00\x00\x49\x3B\x0A\x75\x2A\x48\x8B\x41\x10\x49\x3B\x42\x08\x0F\x85\xDF\x00\x00\x00\x4D\x3B\x5A\x10\x0F\x85\xD5\x00\x00\x00\x49\x39\x8B\xC8\x03\x00\x00\x0F\x85\xC8\x00\x00\x00\xE9\xB9\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xB6\x00\x00\x00\x48\x8B\x11\x49\x3B\x52\x30\x0F\x85\xA9\x00\x00\x00\x49\x8B\x13\x49\x3B\x52\x28\x0F\x85\x9C\x00\x00\x00\x49\x39\x83\xC8\x04\x00\x00\x0F\x85\x8F\x00\x00\x00\x49\x39\x8B\x90\x04\x00\x00\x0F\x85\x82\x00\x00\x00\x49\x83\x7B\x10\x00\x74\x7B\x49\x8B\x93\xD0\x04\x00\x00\x49\x3B\x52\x40\x75\x6E\x48\x8B\x90\xE8\x01\x00\x00\x49\x3B\x52\x38\x75\x61\x48\x85\xD2\x74\x5C\x80\x7A\x48\x00\x75\x56\x52\x48\x8B\x52\x40\x48\x85\xD2\x74\x22\x83\x7A\x18\x00\x7C\x30\x74\x1A\x48\x8B\x52\x10\x48\x85\xD2\x74\x25\x83\x7A\x18\x00\x7E\x1F\x48\x8B\x52\x20\x48\x85\xD2\x74\x16\xEB\x0D\x48\x8B\x14\x24\x48\x8B\x52\x38\x48\x85\xD2\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0F\x48\x39\xC2\x75\x0A\x41\x5B\x41\x5A\x5A\x59\x58\x9D\xEB\x1C\x41\x5B\x41\x5A\x5A\x59\x58\x9D\x80\x7B\x63\x00\x74\x0E\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x9D\x80\x7B\x63\x00\xEB\xEB"},
  }
  local function makeCode(context,cave,entry,spec)
    local code=spec[6]
    local addresses={
      {0x1618033988749894,cave+0x200},
      {0x1414213562373095,entry+6},
      {0x5772156649015328,context.base+spec[3]},
    }
    for _, pair in ipairs(addresses) do
      local marker=string.pack('&lt;I8',pair[1])
      local value=string.pack('&lt;I8',pair[2])
      local first,last=code:find(marker,1,true)
      need(first,'Cannot locate warmth code address.','体温処理のアドレスを確認できません。')
      while first do
        code=code:sub(1,first-1)..value..code:sub(last+1)
        first,last=code:find(marker,last+1,true)
      end
    end
    need(#code&lt;=0x200,'Warmth code exceeds its reserved range.','体温処理が確保範囲を超えています。')
    return code..string.rep('\0',0x200-#code)
      ..string.pack('&lt;I8I8I8I8',context.survival,context.survivalIdentity,context.player,context.runner)
      ..packMembers(activeMemberScope())..string.pack('&lt;I8I8',context.base+0x5D63E40,context.base+0x5D640B0)
  end
  for _, spec in ipairs(debugNeeds) do
    local key,signature=spec[1],spec[5]
    local rate=ASKA.F[key]
    local debugPath=entryFeature(key,spec[2],{table.unpack(signature,1,6)},signature,
      function() return needContext(needFeatures[spec[4]]) end,
      function(context,cave,entry) return makeCode(context,cave,entry,spec) end,nil,40)
    local combined=groupedEntryFeatures({rate,debugPath})
    combined.memberControl=rate.memberControl
    combined.memberControls={rate.memberControl,debugPath.memberControl}
    ASKA.F[key]=combined
  end
end

local memberControls = {}
local sharedMemberFeatures = {'noHunger','noThirst','normalWarmth','xpMultiplier','infiniteHealth','infiniteStamina','enemyInvulnerability','oneHitKill','noAmmoUse','noRangedWeaponWear','stealthMode'}
local memberControlEpoch
local memberScopeOwner={}

local function restoreMemberControls(handle)
  for address, saved in pairs(memberControls) do
    local key=saved.key
    if ASKA.active[key] and not ASKA.active[key].cleanup then
      local current = saved.control()
      need(current == address, 'Member scope address changed.', 'メンバー適用範囲のアドレスが変化しました。')
      checkedWrite(handle, address, saved.before)
    end
    memberControls[address] = nil
  end
end

local function updateMemberMode(enabled)
  if memberControlEpoch ~= ASKA.epoch then memberControls = {}; memberControlEpoch = ASKA.epoch end
  withTargetSuspended(function(handle)
    -- A failed attempt can leave a partial control write. Restore it before retrying.
    restoreMemberControls(handle)
    local scope
    if enabled then
      scope = need(currentMembers(false), 'Member data is not ready.', 'メンバー情報の準備ができていません。')
      need(scope.token == ASKA.active.applyNeedsToMembers.boundary, 'Settlement changed.', '集落が変わりました。')
    end
    local blob = packMembers(scope)
    local data = {blob:byte(1,#blob)}
    local pending={}
    for _, key in ipairs(sharedMemberFeatures) do
      if ASKA.active[key] and not ASKA.active[key].cleanup then
        local feature=ASKA.F[key]
        for _,control in ipairs(feature.memberControls or {feature.memberControl}) do
          local address,size=control()
          need(size==#data,
            'Member scope size does not match the installed feature.', 'メンバー適用範囲のサイズが有効な機能と一致しません。')
          local before=need(bytes(address,size),
            'Cannot read the previous member scope.', '元のメンバー適用範囲を読み取れません。')
          if not equal(before,data) then
            pending[#pending+1]={address=address,key=key,control=control,before=before}
          end
        end
      end
    end
    local ok, reason = pcall(function()
      for _, change in ipairs(pending) do
        memberControls[change.address]=change
        checkedWrite(handle,change.address,data)
      end
    end)
    if not ok then
      restoreMemberControls(handle)
      error(reason, 0)
    end
    memberControls = {}
    memberScopeOwner.manager=scope and scope.manager
    memberScopeOwner.population=scope and scope.population
  end)
end

ASKA.F.applyNeedsToMembers = {
  boundary=function()
    local scope = currentMembers(false)
    memberScopeOwner.observedManager=scope and scope.manager
    memberScopeOwner.observedPopulation=scope and scope.population
    return scope and scope.token
  end,
  on=function() updateMemberMode(true) end,
  off=function() updateMemberMode(false) end,
  task=function()
    if memberScopeOwner.observedManager~=memberScopeOwner.manager
      or memberScopeOwner.observedPopulation~=memberScopeOwner.population then
      updateMemberMode(true)
    end
  end,
}

do
local ammoScopeInstructions = "\x9C\x41\x53\x50\x49\x3B\x1A\x75\x24\x49\x8B\x42\x08\x48\x39\x43\x10\x0F\x85\x12\x01\x00\x00\x49\x8B\x42\x10\x48\x39\x83\x70\x01\x00\x00\x0F\x85\x01\x01\x00\x00\xE9\x12\x01\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xEF\x00\x00\x00\x4D\x8B\x5A\x18\x4C\x39\x5B\x38\x0F\x85\xE1\x00\x00\x00\x48\x83\x7B\x10\x00\x0F\x84\xD6\x00\x00\x00\x4C\x8B\x9B\x70\x01\x00\x00\x4D\x85\xDB\x0F\x84\xC6\x00\x00\x00\x51\x4C\x89\xD9\x4D\x8B\x5A\x28\x4C\x39\x19\x0F\x85\xB4\x00\x00\x00\x48\x39\x99\xA8\x01\x00\x00\x0F\x85\xA7\x00\x00\x00\x48\x39\x81\xC8\x04\x00\x00\x0F\x85\x9A\x00\x00\x00\x4D\x8B\x5A\x18\x4C\x39\x59\x38\x0F\x85\x8C\x00\x00\x00\x4D\x8B\x5A\x40\x4C\x39\x99\xD0\x04\x00\x00\x75\x7F\x48\x83\x79\x10\x00\x74\x78\x80\xB9\x94\x01\x00\x00\x00\x75\x6F\x80\xB9\x7C\x02\x00\x00\x01\x75\x66\x59\x4D\x8B\x5A\x38\x4C\x39\x98\xE8\x01\x00\x00\x75\x59\x41\x80\x7B\x48\x00\x75\x52\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x08\x49\x39\xC3\x75\x03\xEB\x17\x59\x41\x80\x7A\x48\x00\x75\x09\x8B\x04\x24\x67\x8D\x50\xFF\xEB\x16\xF3\x0F\x58\xCE\xEB\x10\x41\x80\x7A\x48\x00\x75\x05\x8B\x14\x24\xEB\x04\xF3\x0F\x10\xCE\x58\x41\x5B\x9D\x41\x5A"
-- Suppress only the ammo debit in the two ranged firing routes of build 25834809.
local ammoOriginal = {0x8D,0x50,0xFF,0x4D,0x8B,0x81,0xD0,0x01,0x00,0x00}
local ammoSignature = {table.unpack(ammoOriginal)}
for _, byte in ipairs({0x41,0xFF,0x91,0xC8,0x01,0x00,0x00}) do
  ammoSignature[#ammoSignature+1] = byte
end

local function ammoContext()
  local context = soloContext()
  if not context or readBytes(context.player + 0x194, 1) ~= 0 then return end
  local ranged = follow(context.player, 0x1A8)
  local identity = unityIdentity(ranged)
  if not identity or follow(ranged, 0x170) ~= context.player or follow(ranged, 0x38) ~= context.runner then return end
  context.ranged, context.rangedIdentity = ranged, identity
  context.token = ('%s:%X:%X'):format(context.token, ranged, identity)
  return context
end

-- Shoot adds the weapon wear to the current decay value before calling its setter.
local weaponWearOriginal = {0xF3,0x0F,0x58,0xCE,0x4C,0x8B,0x80,0x90,0x01,0x00,0x00}
local weaponWearSignature = {table.unpack(weaponWearOriginal)}
for _, byte in ipairs({0xFF,0x90,0x88,0x01,0x00,0x00}) do
  weaponWearSignature[#weaponWearSignature+1] = byte
end

local function rangedSite(key,rva,original,signature,wear)
  local function codeFor(context,cave,entry)
    local firstTail=wear and 5 or 4
    local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
      ..ammoScopeInstructions..string.char(table.unpack(original,firstTail))
    code=code..makeJump(cave+#code,entry+#original)
    need(#code&lt;=0x200,'Firing code exceeds its reserved range.','射撃処理が確保範囲を超えています。')
    return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8',
      context.ranged,context.rangedIdentity,context.player,context.runner)
      ..packMembers(activeMemberScope())..string.char(wear and 1 or 0)
  end
  return entryFeature(key,rva,original,signature,ammoContext,codeFor,wear and 4 or 3,40)
end

local ammoSites={
  rangedSite('noAmmoUse',0x12ACBEC,ammoOriginal,ammoSignature,false),
  rangedSite('noAmmoUse',0x12B9B56,ammoOriginal,ammoSignature,false),
}
local ammoUse=groupedEntryFeatures(ammoSites)
ammoUse.memberControls={ammoSites[1].memberControl,ammoSites[2].memberControl}
ASKA.F.noAmmoUse=ammoUse
ASKA.F.noRangedWeaponWear=rangedSite('noRangedWeaponWear',0x12B897B,weaponWearOriginal,weaponWearSignature,true)

end
do
local staminaScopeInstructions = "\x49\x3B\x0A\x75\x13\x49\x8B\x42\x08\x48\x39\x41\x10\x0F\x85\xD0\x00\x00\x00\xE9\xC2\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xBE\x00\x00\x00\x4D\x8B\x5A\x28\x4C\x39\x19\x0F\x85\xB1\x00\x00\x00\x48\x39\x81\xC8\x04\x00\x00\x0F\x85\xA4\x00\x00\x00\x4D\x8B\x5A\x18\x4C\x39\x59\x38\x0F\x85\x96\x00\x00\x00\x4D\x8B\x5A\x40\x4C\x39\x99\xD0\x04\x00\x00\x0F\x85\x85\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7E\x80\xB9\x94\x01\x00\x00\x00\x75\x75\x80\xB9\x7C\x02\x00\x00\x01\x75\x6C\x4D\x8B\x5A\x38\x4C\x39\x98\xE8\x01\x00\x00\x75\x5F\x41\x80\x7B\x48\x00\x75\x58\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0E\x49\x39\xC3\x75\x09\x0F\x57\xC0\x0F\x2E\xC8\x76\x01\xC3"
-- Character.DrainStamina(float, DrainStaminaUsage), ASKA Steam build 25834809.
local staminaRva = 0xB3E470
local staminaOriginal = {0x48, 0x89, 0x5C, 0x24, 0x08}
local staminaEntry = {0x48, 0x89, 0x5C, 0x24, 0x08, 0x57, 0x48, 0x83, 0xEC, 0x40, 0x80, 0xB9, 0x7C, 0x02, 0x00, 0x00}

local function staminaCode(context,cave,entry)
  local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    ..staminaScopeInstructions..string.char(table.unpack(staminaOriginal))
  code=code..makeJump(cave+#code,entry+#staminaOriginal)
  need(#code&lt;=0x200,'Stamina code exceeds its reserved range.','スタミナ処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8',
    context.player,context.identity,0,context.runner)..packMembers(activeMemberScope())
end

ASKA.F.infiniteStamina=entryFeature('infiniteStamina',staminaRva,staminaOriginal,staminaEntry,
  soloContext,staminaCode,nil,40)

end
do
local healthLiveGuardInstructions = "\x4D\x8B\x5A\x50\x49\x8B\x83\x40\x3E\xD6\x05\x48\x85\xC0\x74\x7B\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x6F\x48\x8B\x00\x48\x85\xC0\x74\x67\x48\x83\x78\x10\x00\x74\x60\x48\x8B\x40\x30\x48\x85\xC0\x74\x57\x48\x83\x78\x10\x00\x74\x50\x4D\x8B\x9B\xB0\x40\xD6\x05\x4C\x39\x18\x75\x44\x80\x78\x60\x01\x75\x3E\x48\x8B\x40\x50\x49\x3B\x42\x10\x75\x34\x48\x85\xC0\x74\x2F\x4D\x8B\x5A\x48\x4C\x39\x58\x10\x75\x25\x4D\x8B\x5A\x18\x4C\x39\x58\x38\x75\x1B\x80\xB8\x94\x01\x00\x00\x00\x75\x12\x4D\x8B\x1A\x4C\x39\x98\x50\x01\x00\x00\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3"
local healthScopeInstructions = "\x48\xB8\x88\x77\x66\x55\x44\x33\x22\x11\x48\x83\xEC\x28\xFF\xD0\x48\x83\xC4\x28\x84\xC0\x0F\x84\x81\x01\x00\x00\x81\x79\x10\x98\x08\x00\x00\x0F\x85\x74\x01\x00\x00\x49\x3B\x0A\x75\x12\x49\x8B\x42\x08\x48\x39\x01\x0F\x85\x62\x01\x00\x00\xE9\x58\x01\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\x50\x01\x00\x00\x41\x50\x41\x51\x4D\x8B\x5A\x38\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\x30\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x25\x01\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xD8\x00\x00\x00\x49\x39\xC3\x0F\x85\xCF\x00\x00\x00\x4D\x8B\x5A\x40\x4D\x8B\x9B\xA8\x00\x00\x00\x4D\x85\xDB\x0F\x84\xBB\x00\x00\x00\x45\x8B\x4B\x18\x45\x85\xC9\x0F\x8E\xAE\x00\x00\x00\x4D\x8B\x43\x10\x4D\x85\xC0\x0F\x84\xA1\x00\x00\x00\x45\x3B\x48\x18\x0F\x87\x97\x00\x00\x00\x41\xFF\xC9\x0F\x88\x8E\x00\x00\x00\x4F\x8B\x5C\xC8\x20\x4D\x85\xDB\x74\xED\x49\x8B\x42\x28\x49\x39\x03\x75\xE4\x49\x83\x7B\x10\x00\x74\xDD\x49\x39\x8B\x50\x01\x00\x00\x75\xD4\x49\x8B\x42\x20\x49\x39\x83\xC8\x04\x00\x00\x75\xC7\x49\x8B\x42\x40\x49\x39\x83\xD0\x04\x00\x00\x75\xBA\x49\x8B\x42\x18\x49\x39\x43\x38\x75\xB0\x41\x80\xBB\x94\x01\x00\x00\x00\x75\xA6\x49\x8B\x83\x90\x04\x00\x00\x48\x85\xC0\x74\x9A\x4C\x39\x98\x60\x01\x00\x00\x75\x91\x4D\x8B\x5A\x30\x4C\x39\x18\x75\x88\x66\x81\xB8\x6B\x01\x00\x00\x01\x01\x0F\x85\x79\xFF\xFF\xFF\x48\x39\x48\x68\x0F\x85\x6F\xFF\xFF\xFF\x41\x59\x41\x58\xEB\x06\x41\x59\x41\x58\xEB\x05\xF3\x0F\x5F\x49\x28"
local healthRva = 0x35EA4C0
local healthOriginal = {0x40,0x53,0x48,0x83,0xEC,0x30}
local healthEntry = {0x40,0x53,0x48,0x83,0xEC,0x30,0x48,0x8B,0x01,0x48,0x8B,0xD9,0x0F,0x29,0x74,0x24}

local function healthContext()
  local context = soloContext()
  if not context or readBytes(context.player + 0x194, 1) ~= 0 then return end
  local health = follow(context.player, 0x150)
  local class = follow(health, 0)
  if follow(class, 0x188) ~= context.base + healthRva then return end
  local current = readFloat(health + 0x28)
  if not current or current &lt;= 0 or current ~= current or current == math.huge then return end
  local id = readInteger(health + 0x10)
  if id ~= 2200 then return end
  context.health, context.healthClass, context.healthID = health, class, id
  context.token = ('%s:%X:%X:%X'):format(context.token, health, class, id)
  return context
end


local function healthCode(context,cave,entry)
  local marker=string.pack('&lt;I8',0x1122334455667788)
  local at=assert(healthScopeInstructions:find(marker,1,true))
  local scope=healthScopeInstructions:sub(1,at-1)..string.pack('&lt;I8',cave+0x300)..healthScopeInstructions:sub(at+8)
  local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    ..scope..string.char(table.unpack(healthOriginal))
  code=code..makeJump(cave+#code,entry+#healthOriginal)
  need(#code&lt;=0x200,'Health code exceeds its reserved range.','体力処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x200-#code)
    ..string.pack('&lt;I8I8I8I8',context.health,context.healthClass,context.player,context.runner)
    ..packMembers(activeMemberScope())
    ..string.pack('&lt;I8I8',context.identity,context.base)
  return code..string.rep('\0',0x300-#code)..healthLiveGuardInstructions
end

ASKA.F.infiniteHealth=entryFeature('infiniteHealth',healthRva,healthOriginal,healthEntry,
  healthContext,healthCode,2,40)
ASKA.F.infiniteHealth.recoveryRecord.extraCode={offset=0x300,length=#healthLiveGuardInstructions}

end
local xpQueueScopeInstructions = "\x48\x8B\x06\x48\x85\xC0\x0F\x84\x3F\x01\x00\x00\x48\x8B\x4E\x08\x48\x39\x48\x10\x0F\x85\x31\x01\x00\x00\x48\x8B\x4E\x10\x48\x39\x48\x38\x0F\x85\x23\x01\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\x16\x01\x00\x00\x4C\x89\xE1\xE8\x10\x01\x00\x00\x85\xC0\x0F\x84\x06\x01\x00\x00\x49\x8B\x4C\x24\x60\x48\x85\xC9\x0F\x84\xF8\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xED\x00\x00\x00\x31\xD2\xFF\x56\x30\x49\x89\xC5\x48\x85\xC0\x0F\x84\xDC\x00\x00\x00\x83\x78\x10\x00\x0F\x8E\xD2\x00\x00\x00\x4C\x8B\xB7\x40\x01\x00\x00\x4D\x85\xF6\x0F\x84\xC2\x00\x00\x00\x4C\x39\xB7\x40\x01\x00\x00\x0F\x85\xB5\x00\x00\x00\x41\x83\x7E\x20\x00\x0F\x8E\xAA\x00\x00\x00\x49\x8B\x46\x10\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x41\x8B\x56\x18\x3B\x50\x18\x0F\x83\x90\x00\x00\x00\x4C\x8B\x7C\xD0\x20\x4C\x89\xF9\xE8\x85\x00\x00\x00\x85\xC0\x74\x7F\x49\x8B\x4F\x60\x48\x85\xC9\x74\x76\x48\x83\x79\x10\x00\x74\x6F\x31\xD2\xFF\x56\x30\x48\x85\xC0\x74\x65\x4C\x39\xE8\x74\x27\x41\x8B\x55\x10\x39\x50\x10\x75\x57\x4D\x8D\x45\x14\x4C\x8D\x48\x14\x41\x0F\xB7\x08\x66\x41\x39\x09\x75\x45\x49\x83\xC0\x02\x49\x83\xC1\x02\xFF\xCA\x75\xEA\x48\x8B\x56\x28\x48\x8B\x12\x48\x85\xD2\x74\x2D\x4C\x89\xF1\xFF\x56\x20\x4C\x39\xF8\x75\x22\x48\x89\xF9\x31\xD2\xFF\x56\x38\x4C\x89\xF9\x31\xD2\xFF\x56\x40\x48\x85\xC0\x74\x0D\x48\x89\xC1\x31\xD2\xFF\x56\x48\xE9\x3E\xFF\xFF\xFF\xEB\x5A\x31\xC0\x48\x85\xC9\x74\x52\x48\x83\x79\x10\x00\x74\x4B\x48\x39\xB9\x98\x00\x00\x00\x75\x42\x4C\x8B\x91\xB0\x00\x00\x00\x4D\x85\xD2\x74\x36\x4D\x8B\x52\x20\x4D\x85\xD2\x74\x2D\x4C\x8B\x5E\x18\x4D\x8B\x1B\x4D\x85\xDB\x74\x21\x4D\x39\x1A\x75\x1C\x4D\x8B\x52\x10\x4D\x85\xD2\x74\x13\x49\x83\x7A\x10\x00\x74\x0C\x41\x83\x7A\x18\x01\x75\x05\xB8\x01\x00\x00\x00\xC3"
local xpCapScopeInstructions = "\x9C\x50\x41\x53\x4D\x85\xE4\x0F\x84\x2A\x01\x00\x00\x4D\x3B\x22\x75\x26\x4D\x8B\x5C\x24\x10\x4D\x3B\x5A\x08\x0F\x85\x16\x01\x00\x00\x4D\x8B\x9C\x24\x98\x01\x00\x00\x4D\x3B\x5A\x10\x0F\x85\x04\x01\x00\x00\xE9\xDC\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xF2\x00\x00\x00\x4D\x8B\x1C\x24\x4D\x3B\x5A\x28\x0F\x85\xE4\x00\x00\x00\x49\x83\x7C\x24\x10\x00\x0F\x84\xD8\x00\x00\x00\x41\x80\xBC\x24\x94\x01\x00\x00\x00\x0F\x85\xC9\x00\x00\x00\x41\x80\xBC\x24\x7C\x02\x00\x00\x01\x0F\x85\xBA\x00\x00\x00\x4D\x8B\x5C\x24\x38\x4D\x3B\x5A\x18\x0F\x85\xAB\x00\x00\x00\x49\x39\x84\x24\xC8\x04\x00\x00\x0F\x85\x9D\x00\x00\x00\x4D\x8B\x9C\x24\xD0\x04\x00\x00\x4D\x3B\x5A\x40\x0F\x85\x8B\x00\x00\x00\x4C\x8B\x98\xE8\x01\x00\x00\x4D\x3B\x5A\x38\x75\x7E\x4D\x85\xDB\x74\x79\x41\x80\x7B\x48\x00\x75\x72\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x28\x49\x39\xC3\x75\x23\xF3\x0F\x10\x46\x30\x0F\x2E\x45\x20\x7A\x18\x72\x16\x41\x5B\x58\x9D\x41\x5A\x45\x0F\x57\xC0\x48\xB8\x94\x98\x74\x88\x39\x03\x18\x16\xFF\xE0\x41\x5B\x58\x9D\x41\x5A"
local xpScopeInstructions = "\x9C\x50\x41\x53\x48\x85\xD2\x0F\x84\x0F\x01\x00\x00\x49\x3B\x12\x75\x24\x4C\x8B\x5A\x10\x4D\x3B\x5A\x08\x0F\x85\xFC\x00\x00\x00\x4C\x8B\x9A\x98\x01\x00\x00\x4D\x3B\x5A\x10\x0F\x85\xEB\x00\x00\x00\xE9\xCF\x00\x00\x00\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\xD9\x00\x00\x00\x4C\x8B\x1A\x4D\x3B\x5A\x28\x0F\x85\xCC\x00\x00\x00\x48\x83\x7A\x10\x00\x0F\x84\xC1\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\xB4\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\xA7\x00\x00\x00\x4C\x8B\x5A\x38\x4D\x3B\x5A\x18\x0F\x85\x99\x00\x00\x00\x48\x39\x82\xC8\x04\x00\x00\x0F\x85\x8C\x00\x00\x00\x4C\x8B\x9A\xD0\x04\x00\x00\x4D\x3B\x5A\x40\x75\x7F\x4C\x8B\x98\xE8\x01\x00\x00\x4D\x3B\x5A\x38\x75\x72\x4D\x85\xDB\x74\x6D\x41\x80\x7B\x48\x00\x75\x66\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x1C\x49\x39\xC3\x75\x17\x66\x41\x0F\x7E\xD3\x41\xFF\xCB\x41\x81\xFB\xFE\xFF\x7F\x7F\x77\x06\xF3\x41\x0F\x59\x52\x48\x41\x5B\x58\x9D\x41\x5A"
-- InteractionMoveset.AwardProfficiencyPoints receives agent in RDX and base XP in XMM2.
local xpEntry = {0x41,0x54,0x41,0x56,0x41,0x57,0x48,0x81,0xEC,0xB0,0x00,0x00,0x00,0x80,0x3D,0x40}
local xpOriginal = {table.unpack(xpEntry,1,6)}
local xpFactor = 2.0

local function playerAgentContext()
  local context = soloContext()
  if not context then return end
  local agent = follow(context.player, 0x198)
  local identity = unityIdentity(agent)
  local agentClass = typeObject(context.base, 0x5D612D0)
  if not identity or not agentClass or follow(agent, 0) ~= agentClass
    or follow(agent, 0x198) ~= context.player then return end
  context.agent, context.agentIdentity = agent, identity
  context.token = ('%s:%X:%X'):format(context.token,agent,identity)
  return context
end

local function xpCode(context, cave, entry)
  local code = string.char(0x41,0x52,0x49,0xBA) .. string.pack('&lt;I8',cave+0x200)
    .. xpScopeInstructions .. string.char(table.unpack(xpOriginal))
  code = code .. makeJump(cave+#code,entry+#xpOriginal)
  need(#code &lt;= 0x200,'XP code exceeds its reserved range.','経験値処理が確保範囲を超えています。')
  return code .. string.rep('\0',0x200-#code)
    .. string.pack('&lt;I8I8I8I8',context.agent,context.agentIdentity,context.player,context.runner)
    .. packMembers(activeMemberScope()) .. string.pack('&lt;f',xpFactor)
end

ASKA.F.xpMultiplier=entryFeature('xpMultiplier',0xDE8640,xpOriginal,xpEntry,playerAgentContext,xpCode,2,40)
do
local xpAward=ASKA.F.xpMultiplier
local xpCapSignature={0x49,0x8B,0x8F,0x88,0,0,0,0xF3,0x0F,0x10,0x75,0x10,0x48,0x85,0xC9,0x0F}
local xpCapOriginal={table.unpack(xpCapSignature,1,7)}
local function xpCapCode(context,cave,entry,replay)
  local marker=string.pack('&lt;I8',0x1618033988749894)
  local first,last=xpCapScopeInstructions:find(marker,1,true)
  need(first,'XP cap exit is unavailable.','経験値上限の終了位置を取得できません。')
  local guard=xpCapScopeInstructions:sub(1,first-1)..string.pack('&lt;I8',context.base+0xDE8C30)..xpCapScopeInstructions:sub(last+1)
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    ..guard..string.char(table.unpack(replay or xpCapOriginal))
  code=code..makeJump(cave+#code,entry+#(replay or xpCapOriginal))
  need(#code&lt;=0x200,'XP cap code exceeds its reserved range.','経験値上限の処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)
    ..string.pack('&lt;I8I8I8I8',context.agent,context.agentIdentity,context.player,context.runner)
    ..packMembers(activeMemberScope())
end
local xpCap=entryFeature('xpMultiplier',0xDE8BF8,xpCapOriginal,xpCapSignature,playerAgentContext,xpCapCode,nil,40)
local xpLoopSignature={0xF3,0x0F,0x10,0x4E,0x30,0xF3,0x44,0x0F,0x5C,0xC7,0xF3,0x0F,0x10,0x45,0x20,0xF3}
local xpLoopOriginal={table.unpack(xpLoopSignature,1,5)}
local xpLoop=entryFeature('xpMultiplier',0xDE8A50,xpLoopOriginal,xpLoopSignature,playerAgentContext,function(context,cave,entry)
  return xpCapCode(context,cave,entry,xpLoopOriginal)
end,nil,40)
local xpQueueSignature={0x48,0x8B,0x8B,0x40,0x01,0,0,0x48,0x85,0xC9,0x74,0x4F,0x4C,0x8B,0x05,0xA3}
local xpQueueOriginal={table.unpack(xpQueueSignature,1,7)}
local xpQueueData,xpQueueBusy=0x600,0x650
local function xpQueueCode(context,cave,entry)
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',xpQueueBusy-7)
    ..string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53,0x53,0x56,0x57,0x41,0x54,0x41,0x55,0x41,0x56,0x41,0x57)
    ..string.char(0x49,0x89,0xC4,0x48,0x89,0xDF,0x48,0xBE)..string.pack('&lt;I8',cave+xpQueueData)
    ..string.char(0x48,0x83,0xEC,0x38)..xpQueueScopeInstructions
    ..string.char(0x48,0x83,0xC4,0x38,0x41,0x5F,0x41,0x5E,0x41,0x5D,0x41,0x5C,0x5F,0x5E,0x5B,0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',xpQueueBusy-#code-7)
    ..string.char(table.unpack(xpQueueOriginal))
  code=code..makeJump(cave+#code,entry+#xpQueueOriginal)
  need(#code&lt;=xpQueueData,'XP notification code exceeds its reserved range.','経験値通知の処理が確保範囲を超えています。')
  return code..string.rep('\0',xpQueueData-#code)..string.pack('&lt;I8I8I8I8I8I8I8I8I8I8I8',
    context.player,context.identity,context.runner,context.base+0x5D577B0,
    context.base+0x24C2EA0,context.base+0x5CB9628,context.base+0x438C370,
    context.base+0xEA4080,context.base+0x4507BC0,context.base+0x4522290,0)
end
local xpQueue=entryFeature('xpMultiplier',0xEA53D2,xpQueueOriginal,xpQueueSignature,playerAgentContext,xpQueueCode,nil,nil,function(cave)
  need(readInteger(cave+xpQueueBusy)==0,'An XP notification is finishing. Retry cleanup.','経験値通知の完了後に解除を再試行します。')
end)
local xpFeature=groupedEntryFeatures({xpAward,xpCap,xpLoop,xpQueue})
xpFeature.memberControl=xpAward.memberControl
xpFeature.memberControls={xpAward.memberControl,xpCap.memberControl,xpLoop.memberControl}
ASKA.F.xpMultiplier=xpFeature
end

function ASKA.chooseXpMultiplier()
  need(not ASKA.active.xpMultiplier,'Disable the XP multiplier before changing it.','設定を変更する前に経験値倍率を解除してください。')
  local value = inputQuery(ASKA.T('XP multiplier','経験値倍率'),
    ASKA.T('Enter the multiplier for XP gained.','獲得する経験値にかける倍率を入力してください。'),tostring(xpFactor))
  if value == nil then return end
  value=tonumber(value)
  need(value and value &gt;= 0 and value &lt;= 3.4028234663852886e38,
    'Enter a finite, nonnegative multiplier.','有限の0以上の倍率を入力してください。')
  xpFactor=value
  ASKA.msg(('XP multiplier set to %g×.'):format(value),('経験値倍率を%g倍に設定しました。'):format(value))
  return true
end

local ascendScopeInstructions = "\x48\x3B\x1E\x0F\x85\xB3\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x46\x08\x0F\x85\xA5\x01\x00\x00\x66\x83\xBB\xD8\x01\x00\x00\x00\x0F\x85\x97\x01\x00\x00\x80\xBB\xE5\x01\x00\x00\x00\x0F\x85\x8A\x01\x00\x00\x80\xBB\xF9\x00\x00\x00\x00\x0F\x85\x7D\x01\x00\x00\x48\x83\xEC\x48\xFF\x56\x18\x48\x85\xC0\x0F\x84\x69\x01\x00\x00\x48\x89\xC1\x48\x8D\x54\x24\x20\xC7\x02\x00\x00\x00\x00\xFF\x56\x20\x85\xC0\x0F\x84\x50\x01\x00\x00\x8B\x44\x24\x20\x3B\x46\x10\x0F\x85\x43\x01\x00\x00\xB9\x20\x00\x00\x00\xFF\x56\x28\x66\x85\xC0\x0F\x89\x32\x01\x00\x00\x48\x8B\x8B\x80\x01\x00\x00\x48\x85\xC9\x0F\x84\x22\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\x17\x01\x00\x00\x48\x89\x4C\x24\x38\x31\xC9\xFF\x56\x50\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x0F\x84\xF9\x00\x00\x00\x0F\x57\xC9\x0F\x2E\xC1\x0F\x86\xED\x00\x00\x00\xF3\x0F\x59\x46\x48\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x0F\x84\xD4\x00\x00\x00\xF3\x0F\x11\x44\x24\x40\xF3\x0F\x10\x83\xFC\x02\x00\x00\xF3\x0F\x58\x44\x24\x40\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x0F\x84\xAC\x00\x00\x00\xF3\x0F\x10\x83\xEC\x01\x00\x00\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x0F\x84\x90\x00\x00\x00\x48\x8B\x4C\x24\x38\x31\xD2\xFF\x56\x30\x84\xC0\x75\x46\x48\x8D\x4C\x24\x28\x48\x8B\x54\x24\x38\x45\x31\xC0\xFF\x56\x38\xF3\x0F\x10\x44\x24\x2C\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x74\x5C\x0F\x57\xC9\x0F\x2E\xC1\x73\x18\xC7\x44\x24\x2C\x00\x00\x00\x00\x48\x8B\x4C\x24\x38\x48\x8D\x54\x24\x28\x45\x31\xC0\xFF\x56\x40\xF3\x0F\x10\x83\xFC\x02\x00\x00\xF3\x0F\x58\x44\x24\x40\x66\x0F\x7E\xC0\x25\x00\x00\x80\x7F\x3D\x00\x00\x80\x7F\x74\x1E\x0F\x57\xC9\x0F\x2E\x8B\xEC\x01\x00\x00\x76\x0A\xC7\x83\xEC\x01\x00\x00\x00\x00\x00\x00\xF3\x0F\x11\x83\xFC\x02\x00\x00\x48\x83\xC4\x48"
-- CharacterMovement.Update calls _ApplyRootMotion on the active local controller.
local ascendOriginal={0xE8,0xE2,0x00,0x00,0x00}
local ascendSignature={0xE8,0xE2,0x00,0x00,0x00,0x48,0x8B,0x93,0xB0,0x00,0x00,0x00,0x48,0x85,0xD2}
local ascendInFlight=0x24C

local function ascendCode(context,cave,entry)
  local pid=need(getOpenedProcessID(),'Game process is unavailable.','ゲームプロセスを確認できません。')
  local foreground=need(getAddressSafe('user32.GetForegroundWindow'),'Window API is unavailable.','ウィンドウ確認 API を取得できません。')
  local windowPid=need(getAddressSafe('user32.GetWindowThreadProcessId'),'Window process API is unavailable.','ウィンドウのプロセス確認 API を取得できません。')
  local keyState=need(getAddressSafe('user32.GetAsyncKeyState'),'Keyboard API is unavailable.','キーボード入力 API を取得できません。')
  local originalCall=string.char(0x48,0xB8)..string.pack('&lt;I8',context.base+0x1267670)..string.char(0xFF,0xD0)
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',ascendInFlight-7)
    ..string.char(0x56,0x48,0xBE)..string.pack('&lt;I8',cave+0x200)
    ..ascendScopeInstructions..string.char(0x5E,0x48,0x89,0xD9,0x31,0xD2)..originalCall
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',ascendInFlight-#code-7)
  code=code..makeJump(cave+#code,entry+#ascendOriginal)
  need(#code&lt;=0x200,'Ascent code exceeds its reserved range.','浮上処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)
    .. string.pack('&lt;I8I8I8I8I8I8I8I8I8fI4I8',context.movement,context.movementIdentity,pid,
      foreground,windowPid,keyState,context.base+0x45F7DF0,context.base+0x45F7F80,context.base+0x45F93C0,5.0,0,context.base+0x4530390)
end

ASKA.F.holdSpaceToAscend=entryFeature('holdSpaceToAscend',0x1267589,ascendOriginal,ascendSignature,
  jumpContext,ascendCode,nil,nil,function(cave)
    need(readInteger(cave+ascendInFlight)==0,
      'An ascent call is finishing. Retry cleanup.','浮上処理の呼び出し完了後に解除を再試行します。')
  end)

local favorsUnlockInstructions = "\x9C\x50\x41\x53\x49\x3B\x0A\x75\x64\x49\x8B\x42\x08\x48\x39\x41\x10\x75\x5A\x80\xB9\xA8\x00\x00\x00\x01\x75\x51\x48\x85\xD2\x74\x4C\x48\x8B\x41\x40\x49\x3B\x42\x10\x75\x42\x48\x85\xC0\x74\x3D\x44\x8B\x58\x18\x45\x3B\x5A\x20\x75\x33\x44\x8B\x58\x1C\x45\x3B\x5A\x24\x75\x29\x48\x8B\x40\x10\x49\x3B\x42\x18\x75\x1F\x45\x8B\x5A\x20\x45\x85\xDB\x74\x16\x41\xFF\xCB\x4A\x39\x54\xD8\x20\x75\xF1\x41\x5B\x58\x9D\x41\x5A\xB8\x00\x00\x00\x00\xC3\x41\x5B\x58\x9D\x41\x5A"
local favorsScopeInstructions = "\x9C\x41\x53\x48\x85\xC9\x74\x58\x83\x79\x18\x01\x75\x52\x4C\x8B\x59\x30\x4D\x85\xDB\x74\x49\x45\x8B\x5B\x18\x41\x83\xFB\x06\x77\x3F\x83\x79\x1C\x01\x74\x16\x83\x79\x1C\x02\x75\x33\x45\x0F\xA3\x5A\x04\x72\x21\x45\x0F\xA3\x5A\x0C\x72\x0F\xEB\x23\x45\x0F\xA3\x1A\x72\x12\x45\x0F\xA3\x5A\x08\x73\x16\x41\x5B\x9D\x41\x5A\xB8\x00\x00\x00\x00\xC3\x41\x5B\x9D\x41\x5A\xB8\x01\x00\x00\x00\xC3\x41\x5B\x9D\x41\x5A"
-- MetaProgressionCondition.IsUnlocked checks favor tiers against the deeds database.
local favorsSignature={0x48,0x89,0x54,0x24,0x10,0x53,0x55,0x57,0x48,0x83,0xEC,0x20,0x80,0x3D,0xD3,0x2C}
local favorsOriginal={table.unpack(favorsSignature,1,5)}
local favorMasks={0x79,0x77}
local function favorsContext()
  local base=ASKA.module().Address
  local class=typeObject(base,0x5D2E3F0)
  local database=singleton(class)
  local identity=unityIdentity(database)
  if not identity or follow(database,0)~=class then return end
  return {base=base,token=('%X:%X'):format(database,identity)}
end

local function favorCodeFor(key)
  return function(_,cave,entry)
    local allow,deny={0,0},{0,0}
    for tier, mask in ipairs(favorMasks) do
      if key=='unconditionalFavors' then
        allow[tier]=mask
      end
    end
    local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x100)
      .. favorsScopeInstructions..string.char(table.unpack(favorsOriginal))
    code=code..makeJump(cave+#code,entry+#favorsOriginal)
    need(#code&lt;=0x100,'Favor code exceeds its reserved range.','寵愛処理が確保範囲を超えています。')
    return code..string.rep('\0',0x100-#code)..string.pack('&lt;I4I4I4I4',allow[1],allow[2],deny[1],deny[2])
  end
end

for _, key in ipairs({'unconditionalFavors','editedFavors'}) do
  ASKA.F[key]=entryFeature(key,0x10A6FF0,favorsOriginal,favorsSignature,favorsContext,favorCodeFor(key))
  local enable=ASKA.F[key].on
  ASKA.F[key].on=function()
    local other=key=='unconditionalFavors' and 'editedFavors' or 'unconditionalFavors'
    need(not ASKA.active[other],'Disable the other favor mode first.','もう一方の寵愛モードを先に解除してください。')
    enable()
  end
end

-- The favor/deeds page uses IsDeedLocked, independently of cosmetic reward conditions.
local function deedsUnlockContext()
  local context=favorsContext()
  if not context then return end
  local database=singleton(typeObject(context.base,0x5D2E3F0))
  local list=follow(database,0x40)
  local array=follow(list,0x10)
  local count=list and readInteger(list+0x18)
  local version=list and readInteger(list+0x1C)
  local capacity=array and readInteger(array+0x18)
  if not array or not count or count&lt;=0 or not capacity or count&gt;capacity or version==nil
    or readBytes(database+0xA8,1)~=1 then return end
  context.database,context.identity=database,unityIdentity(database)
  context.list,context.array,context.count,context.listVersion=list,array,count,version
  return context
end
local deedUnlockSignature={0x48,0x89,0x5C,0x24,0x18,0x57,0x48,0x83,0xEC,0x20,0x48,0x8B,0xDA,0x48,0x8B,0xF9}
local deedUnlockOriginal={table.unpack(deedUnlockSignature,1,5)}
local function deedsUnlockCode(context,cave,entry)
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x100)
    ..favorsUnlockInstructions..string.char(table.unpack(deedUnlockOriginal))
  code=code..makeJump(cave+#code,entry+#deedUnlockOriginal)
  need(#code&lt;=0x100,'Favor unlock code exceeds its reserved range.','寵愛の解放処理が確保範囲を超えています。')
  return code..string.rep('\0',0x100-#code)..string.pack('&lt;I8I8I8I8i4i4',
    context.database,context.identity,context.list,context.array,context.count,context.listVersion)
end
ASKA.F.unconditionalFavors=groupedEntryFeatures({ASKA.F.unconditionalFavors,
  entryFeature('unconditionalFavors',0x109DAA0,deedUnlockOriginal,deedUnlockSignature,deedsUnlockContext,deedsUnlockCode)})

-- The old editedFavors native variant remains registered for verified leftover recovery only.

-- Shared fallback used by inventory/weather selection; the favors editor uses CE rows.
local function chooseListIndex(title,caption,values)
  local list=createStringlist()
  for _,value in ipairs(values)do list.add(value)end
  local ok,index=pcall(showSelectionList,title,caption,list,false)
  list.destroy()
  if not ok then error(index,0)end
  return index
end

local inventory_quantityScopeInstructions = "\x48\x3B\x1E\x0F\x85\x5B\x02\x00\x00\x48\x8B\x43\x10\x48\x3B\x46\x08\x0F\x85\x4D\x02\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x20\x0F\x85\x38\x02\x00\x00\x48\x8B\x43\x38\x48\x3B\x46\x10\x0F\x85\x6B\x01\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\x5E\x01\x00\x00\x48\x8B\x83\x68\x02\x00\x00\x48\x85\xC0\x0F\x84\x4E\x01\x00\x00\x48\x8B\x40\x20\x48\x3B\x46\x30\x0F\x85\x40\x01\x00\x00\x80\x78\x60\x01\x0F\x85\x36\x01\x00\x00\x83\x7E\x24\xFF\x0F\x84\x4A\x01\x00\x00\x48\x8B\x48\x68\x48\x8B\x56\x38\xE8\xA4\x01\x00\x00\x84\xC0\x0F\x84\x17\x01\x00\x00\x48\x8B\x46\x38\x48\x8B\x48\x28\x48\x3B\x4E\x30\x0F\x85\x05\x01\x00\x00\x48\x8B\x48\x68\x48\x8B\x56\x40\xE8\x7D\x01\x00\x00\x84\xC0\x0F\x84\xF0\x00\x00\x00\x48\x8B\x4E\x40\x48\x8B\x41\x10\x48\x3B\x46\x38\x0F\x85\xDE\x00\x00\x00\x48\x8B\x41\x20\x48\x3B\x46\x48\x0F\x85\xD0\x00\x00\x00\x8B\x41\x30\x3B\x46\x24\x0F\x85\xC4\x00\x00\x00\x8B\x56\x28\x85\xD2\x0F\x88\xB9\x00\x00\x00\x29\xC2\x7F\x36\x0F\x84\xBB\x00\x00\x00\xF7\xDA\x48\x83\xEC\x38\x41\x89\xD0\x48\x89\xCA\x48\x8B\x4E\x38\x45\x31\xC9\x48\xC7\x44\x24\x20\x00\x00\x00\x00\xFF\x56\x50\x48\x83\xC4\x38\x84\xC0\x0F\x84\x84\x00\x00\x00\xE9\x8B\x00\x00\x00\x48\x83\xEC\x38\x89\x54\x24\x28\x48\x8B\x4E\x38\x48\x8B\x56\x48\x48\x8B\x01\x4C\x8B\x80\x40\x02\x00\x00\xFF\x90\x38\x02\x00\x00\x3B\x46\x28\x7C\x56\x48\x8B\x4E\x40\x8B\x54\x24\x28\x48\x8B\x01\x4C\x8B\x80\x40\x02\x00\x00\xFF\x90\x38\x02\x00\x00\x48\x85\xC0\x74\x39\x48\x83\x78\x10\x00\x75\x32\x48\x8B\x4E\x38\x48\x89\xC2\x44\x8B\x44\x24\x28\x4C\x8B\x4E\x40\x48\xC7\x44\x24\x20\x00\x00\x00\x00\xFF\x56\x58\x03\x46\x24\x48\x83\xC4\x38\x89\x46\x2C\xC7\x46\x20\x03\x00\x00\x00\xE9\xC3\x00\x00\x00\x48\x83\xC4\x38\xC7\x46\x20\x04\x00\x00\x00\xE9\xB3\x00\x00\x00\x8B\x46\x28\x89\x46\x2C\xC7\x46\x20\x03\x00\x00\x00\xE9\xA1\x00\x00\x00\x83\x7E\x28\x00\x7E\xDC\x80\x78\x10\x01\x75\xD6\x48\x8B\x40\x38\x48\x85\xC0\x74\xCD\x48\x83\x78\x10\x00\x74\xC6\x48\x8B\x48\x28\x48\x85\xC9\x74\xBD\x48\x83\x79\x10\x00\x74\xB6\x48\x83\xEC\x38\x8B\x56\x48\x45\x31\xC0\xFF\x56\x60\x48\x85\xC0\x74\xA0\x8B\x50\x18\x3B\x56\x48\x75\x98\x48\x89\xC2\x48\x8B\x4E\x30\x44\x8B\x46\x28\x45\x31\xC9\xFF\x56\x68\x48\x83\xC4\x38\x89\x46\x2C\xC7\x46\x20\x03\x00\x00\x00\xEB\x3A\x31\xC0\x48\x85\xC9\x74\x2F\x48\x85\xD2\x74\x2A\x44\x8B\x41\x18\x45\x85\xC0\x7E\x21\x48\x8B\x49\x10\x48\x85\xC9\x74\x18\x44\x3B\x41\x18\x77\x12\x48\x8D\x49\x20\x48\x39\x11\x74\x0A\x48\x83\xC1\x08\x41\xFF\xC8\x75\xF2\xC3\xB0\x01\xC3"
local inventorySnapshot = (function()
-- Read physical inventory stacks in their registered containers.
return function(player, memory)
  local follow, integer, byte = memory.follow, memory.integer, memory.byte
  local component = follow(player,0x268)
  if not component or not follow(component,0x10) or byte(component+0x31)~=1 then return end
  local collection = follow(component,0x20)
  if not collection or byte(collection+0x60)~=1 then return end
  local containers = follow(collection,0x68)
  local watched = {}
  local function watch(list)
    if not list then return end
    local array=follow(list,0x10)
    if not array then return end
    local size,version=integer(list+0x18),integer(list+0x1C)
    local capacity=integer(array+0x18)
    if not size or not version or not capacity or size&lt;0 or size&gt;capacity then return end
    watched[#watched+1]={list=list,array=array,size=size,version=version}
    return array,size
  end

  local containerArray,containerCount=watch(containers)
  if not containerArray then return end
  local result,seen={},{ }
  for containerIndex=0,containerCount-1 do
    local container=follow(containerArray,0x20+8*containerIndex)
    if container and follow(container,0x28)==collection then
      local items=follow(container,0x68)
      local itemArray,itemCount=watch(items)
      if not itemArray then return end
      for index=0,itemCount-1 do
        local item=follow(itemArray,0x20+8*index)
        if item and follow(item,0x10)==container and not seen[item] then
          local info=follow(item,0x20)
          local count=integer(item+0x30)
          local id=info and integer(info+0x18)
          if not id or not count or count&lt;1 then return end
          seen[item]=true
          result[#result+1]={item=item,info=info,id=id,count=count,container=container,containerIndex=containerIndex,
            position=integer(item+0x34),stackSize=integer(info+0x2C)}
        end
      end
      if follow(container,0x68)~=items then return end
    end
  end
  for _, list in ipairs(watched) do
    if follow(list.list,0x10)~=list.array or integer(list.list+0x18)~=list.size
      or integer(list.list+0x1C)~=list.version then return end
  end
  if follow(player,0x268)~=component or follow(component,0x20)~=collection
    or follow(collection,0x68)~=containers then return end
  for _, stack in ipairs(result) do
    if follow(stack.item,0x10)~=stack.container or follow(stack.item,0x20)~=stack.info
      or integer(stack.item+0x30)~=stack.count then return end
  end
  return {component=component,collection=collection,stacks=result}
end

end)()
local inventoryKey='inventoryQuantity'
local inventoryData=0x300
local inventoryMailbox=inventoryData+0x20
local inventoryBusy=inventoryData+0x18
local inventoryOriginal={0xE8,0x50,0x4C,0xFC,0xFF}
local inventorySignature={0xE8,0x50,0x4C,0xFC,0xFF,0x48,0x8B,0xBB,0x08,0x03,0,0,0x48,0x85,0xFF}

local function inventoryCode(context,cave,entry)
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',inventoryBusy-7)
    .. string.char(0x48,0xB8)..string.pack('&lt;I8',context.base+0xB41DB0)..string.char(0xFF,0xD0)
    .. string.char(0x56,0x48,0xBE)..string.pack('&lt;I8',cave+inventoryData)
    .. inventory_quantityScopeInstructions..string.char(0x5E)
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',inventoryBusy-#code-7)
  code=code..makeJump(cave+#code,entry+#inventoryOriginal)
  need(#code&lt;=inventoryData,'Inventory code exceeds its reserved range.','所持品処理が確保範囲を超えています。')
  return code..string.rep('\0',inventoryData-#code)
    .. string.pack('&lt;I8I8I8I8',context.player,context.identity,context.runner,0)
    .. string.rep('\0',0x30)..string.pack('&lt;I8I8I8I8',context.base+0x3654750,context.base+0x3653DF0,
      context.base+0x3658A10,context.base+0x366AA00)
end

local inventoryFeature=entryFeature(inventoryKey,0xB7D15B,inventoryOriginal,inventorySignature,soloContext,
  inventoryCode,nil,0x30,function(cave)
    need(readInteger(cave+inventoryBusy)==0,
      'Inventory operation is finishing. Retry cleanup.','所持品処理の完了後に解除を再試行します。')
  end,inventoryMailbox)
ASKA.F[inventoryKey]=inventoryFeature

local function editingContext()
  return need(soloContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
end

local function submitInventory(context,old,count,collection,container,item,info,batch)
  if not ASKA.active[inventoryKey] then
    ASKA.feature(inventoryKey,true)
    inventoryFeature.automatic=true
  end
  need(not ASKA.active[inventoryKey].cleanup,
    'Retry cleanup before editing inventory.','所持品編集の解除を再試行してください。')
  withTargetSuspended(function(handle)
    need(ASKA.featureBoundary(inventoryFeature)==context.token,'Player changed.','プレイヤーが変わりました。')
    local mailbox=inventoryFeature.memberControl()
    need(readInteger(mailbox)==0 and not inventoryFeature.receipt and not inventoryFeature.submissionUncertain,
      'An inventory request is already pending.','前の所持品操作が完了していません。')
    local payload=string.pack('&lt;i4i4i4I8I8I8I8',old,count,0,collection,container,item,info)
    checkedWrite(handle,mailbox+4,{payload:byte(1,#payload)})
    inventoryFeature.batch=batch
    local published,reason=pcall(checkedWrite,handle,mailbox,{1})
    if not published then
      local status=readInteger(mailbox)
      if status==0 then
        inventoryFeature.batch=nil
        error(reason,0)
      end
      inventoryFeature.submissionUncertain=status==nil or nil
    end
  end)
end

do
  local off=inventoryFeature.off
  inventoryFeature.off=function()
    off()
    inventoryFeature.batch=nil
    inventoryFeature.automatic=nil
    inventoryFeature.receipt=nil
    inventoryFeature.submissionUncertain=nil
  end
end

inventoryFeature.task=function()
  local mailbox=inventoryFeature.memberControl()
  local status=readInteger(mailbox)
  local receipt=inventoryFeature.receipt
  if inventoryFeature.submissionUncertain then
    if status==nil then return end
    inventoryFeature.submissionUncertain=nil
    if status==0 then
      inventoryFeature.batch=nil
      ASKA.msg('The inventory request was not submitted.','所持品の操作要求を送信できませんでした。')
      return
    end
  end
  if status==0 and not receipt and inventoryFeature.automatic and not inventoryFeature.batch and not ASKA.sessions[304] then
    ASKA.feature(inventoryKey,false)
    return
  end
  if not receipt then
    if status~=3 and status~=4 then return end
    local actual,wanted
    if status==3 then
      actual,wanted=readInteger(mailbox+0x0C),readInteger(mailbox+8)
      if actual==nil or wanted==nil then return end
    end
    receipt={status=status,actual=actual,wanted=wanted}
    inventoryFeature.receipt=receipt
  end
  if status==receipt.status then
    pcall(writeInteger,mailbox,0)
    status=readInteger(mailbox)
  end
  if status~=0 then return end
  inventoryFeature.receipt=nil
  local batch=inventoryFeature.batch
  local actual,wanted=receipt.actual,receipt.wanted
  status=receipt.status
  if batch then
    local item=batch.items[batch.index]
    if status==3 then
      ASKA.msg(('%s [%d]: added %d of %d.'):format(item[2],item[1],actual,wanted),
        ('%s [%d] を%d個中%d個追加しました。'):format(item[3],item[1],wanted,actual))
    else
      ASKA.msg(('%s [%d]: request rejected.'):format(item[2],item[1]),
        ('%s [%d] の追加が拒否されました。'):format(item[3],item[1]))
    end
  elseif status==4 then
    ASKA.msg('The game rejected the inventory request.','ゲームが所持品の操作を受け付けませんでした。')
  elseif actual==wanted then
    ASKA.msg(('New quantity: %d.'):format(actual),('変更後の個数は%d個です。'):format(actual))
  else
    ASKA.msg(('The game added only enough to reach %d.'):format(actual),('ゲームが受け付けた変更後の個数は%d個です。'):format(actual))
  end
  if batch then
    inventoryFeature.batch=nil
    batch.index=batch.index+1
    local nextItem=batch.items[batch.index]
    if nextItem then
      submitInventory(batch.context,-1,batch.count,batch.collection,0,0,nextItem[1],batch)
    end
  end
  return receipt
end

-- List picker layout and interaction adapted from Survivalist Invisible Strain.CT.
do
    local Picker={}
    ASKA.Picker=Picker
    local function text(v)
      if math.type(v)=='float' then return ('%.6g'):format(v) end
      return v == nil and '' or tostring(v)
    end
    function Picker.matches(value, query, numeric)
      query = text(query):match('^%s*(.-)%s*$')
      if query == '' then
        return true
      end
      if numeric then
        local n = tonumber(value)
        if not n then
          return false
        end
        local number = '[+-]?%d*%.?%d+'
        local lo, hi = query:match('^(' .. number .. ')%s*%-%s*(' .. number .. ')$')
        if lo then
          return n &gt;= tonumber(lo) and n &lt;= tonumber(hi)
        end
        local op, rhs = query:match('^([&lt;&gt;!=]+)%s*(' .. number .. ')$')
        rhs = tonumber(rhs)
        if rhs then
          if op == '&gt;=' then
            return n &gt;= rhs
          elseif op == '&lt;=' then
            return n &lt;= rhs
          elseif op == '&gt;' then
            return n &gt; rhs
          elseif op == '&lt;' then
            return n &lt; rhs
          elseif op == '=' or op == '==' then
            return n == rhs
          elseif op == '!=' then
            return n ~= rhs
          end
        end
        local exact = tonumber(query)
        if exact then
          return n == exact
        end
      end
      return text(value):lower():find(query:lower(), 1, true) ~= nil
    end
    function Picker.view(rows, columns, queries, sortIndex, ascending)
      local shown = {}
      for _, row in ipairs(rows) do
        local include = true
        for i, col in ipairs(columns) do
          if not Picker.matches(row[col.key], queries[i], col.numeric) then
            include = false
            break
          end
        end
        if include then
          shown[#shown + 1] = row
        end
      end
      local col = columns[sortIndex]
      table.sort(shown, function(a, b)
        local x, y = a[col.key], b[col.key]
        if x == nil or y == nil then
          if x ~= y then
            return y == nil
          end
        else
          if not col.numeric then
            x = text(x):lower()
            y = text(y):lower()
          end
          if x ~= y then
            if ascending then
              return x &lt; y
            else
              return x &gt; y
            end
          end
        end
        return a.id &lt; b.id
      end)
      return shown
    end
    function Picker.selectedRows(state,list)
      local rows={}
      local index=-1
      while true do
        local nextIndex=tonumber(sendMessage(list.Handle,0x100c,index,2)) or -1
        if nextIndex&lt;=index or nextIndex&gt;=#state.shown then break end
        rows[#rows+1]=state.shown[nextIndex+1]
        index=nextIndex
      end
      return rows
    end
    function Picker.create(options)
      local state = {
        rows = options.rows,
        columns = options.columns,
        shown = {},
        filters = {},
        sortIndex = options.sortIndex or #options.columns,
        ascending = true,
        lastId = options.current,
        result = nil,
        updating = false,
      }
      local form = options.form
      state.form = form
      form.Name = 'ASKA_EntityPicker101'
      form.Caption = options.title
      form.Position = 'poScreenCenter'
      form.BorderStyle = 'bsSizeable'
      form.ClientWidth = options.multi and 1200 or 840
      form.ClientHeight = math.max(330, math.min(620, 180 + #options.rows * 32))
      form.Font.Name = 'Yu Gothic UI'
      form.Font.Size = 10
      form.Color = 0x252525
      form.Font.Color = 0xf0f0f0
      pcall(function()
        form.Constraints.MinWidth = 700
        form.Constraints.MinHeight = 380
      end)
      local list = createListView(form)
      state.list = list
      list.Name = 'ASKA_EntityTable101'
      list.ViewStyle = 'vsReport'
      list.RowSelect = true
      list.HideSelection = false
      list.ReadOnly = true
      list.MultiSelect = options.multi == true and not options.singleSelection
      list.OwnerData = true
      list.Color = 0x252525
      list.Font.Color = 0xf0f0f0
      local headers = {}
      local headerButtons = {}
      state.headerButtons = headerButtons
      list.ShowColumnHeaders = options.multi == true
      for i, col in ipairs(state.columns) do
        local h = list.Columns.add()
        h.Caption = col.title
        headers[i] = h
        local button = createButton(form)
        button.Name = 'ASKA_EntitySort101_' .. i
        button.Caption = col.title
        headerButtons[i] = button
        button.OnClick = function()
          state.sort(i)
        end
        local edit = createEdit(form)
        edit.Name = 'ASKA_EntityFilter101_' .. i
        edit.Text = ''
        edit.Color = 0x353535
        edit.Font.Color = 0xffffff
        edit.ShowHint = not options.noTooltips
        pcall(function()
          edit.TextHint = ASKA.T('Search ' .. col.title, col.title .. '検索')
        end)
        if not options.noTooltips then
          edit.Hint = col.numeric and ASKA.T('Exact value, range10-30, or &gt;=10', '数値、範囲10-30、&gt;=10で検索')
            or ASKA.T('Search this column', 'この列を検索')
        end
        state.filters[i] = edit
      end
      local count = createLabel(form)
      state.count = count
      count.Font.Color = 0xcfcfcf
      local clear = createButton(form)
      state.clear = clear
      clear.Caption = ASKA.T('Clear filters', '検索解除')
      local accept = createButton(form)
      state.accept = accept
      accept.Name = 'ASKA_EntityAccept101'
      accept.Caption = options.accept or ASKA.T('Select', '選択')
      accept.Default = true
      local cancel = createButton(form)
      state.cancel = cancel
      cancel.Name = 'ASKA_EntityCancel101'
      cancel.Caption = ASKA.T('Cancel', 'キャンセル')
      cancel.Cancel = true
      local quantityLabel, quantityEdit, quantityError
      if options.quantity then
        quantityLabel = createLabel(form)
        quantityLabel.Caption = options.batch and ASKA.T('Qty per item','品目ごとの個数') or ASKA.T('Quantity','個数')
        quantityEdit = createEdit(form)
        quantityEdit.Name = 'ASKA_EntityQuantity101'
        quantityEdit.Text = '1'
        quantityEdit.Hint = tostring(options.minimum or 1)..'–2147483647'
        quantityEdit.ShowHint = true
        pcall(function() quantityLabel.FocusControl = quantityEdit end)
        quantityError = createLabel(form)
        quantityError.Caption = ASKA.T('Enter a valid quantity','有効な個数を入力してください')
        quantityError.Visible = false
        local tabOrder = 0
        for _, filter in ipairs(state.filters) do
          filter.TabOrder = tabOrder
          tabOrder = tabOrder + 1
        end
        for _, control in ipairs({list,quantityEdit,clear,cancel,accept}) do
          control.TabOrder = tabOrder
          tabOrder = tabOrder + 1
        end
      end
      local function readQuantity()
        if not quantityEdit then return end
        local text = quantityEdit.Text
        local value = text:match('^%s*%d+%s*$') and tonumber(text)
        if value and value &gt;= (options.minimum or 1) and value &lt;= 0x7FFFFFFF then return value end
      end
      function state.selectedId()
        local item = list.Selected
        local row = item and state.shown[item.Index + 1]
        return row and row.id or nil
      end
      local function updateAccept()
        local selectedCount=options.multi and #Picker.selectedRows(state,list) or 0
        if options.multi then
          count.Caption=ASKA.T('Shown ','表示 ')..#state.shown..' / '..#state.rows
            ..ASKA.T('   Selected ','   選択 ')..selectedCount
          local minimum=quantityEdit and 278 or 155
          clear.Left=math.max(minimum,count.Left+count.Width+16)
        end
        local valid = not quantityEdit or readQuantity() ~= nil
        if quantityError then quantityError.Visible = not valid end
        accept.Enabled = options.alwaysAccept or (valid and ((options.multi and (selectedCount==1 or (options.batch and selectedCount&gt;0)))
          or (not options.multi and state.selectedId()~=nil)))
      end
      if quantityEdit then quantityEdit.OnChange = updateAccept end
      list.OnData = function(sender, item)
        local row = state.shown[item.Index + 1]
        if not row then
          return
        end
        local first = state.columns[1]
        local value = row[first.key]
        item.Caption = value == nil and first.missingText or text(value)
        item.SubItems.clear()
        for i = 2, #state.columns do
          local column = state.columns[i]
          local subValue = row[column.key]
          item.SubItems.add(subValue == nil and column.missingText or text(subValue))
        end
      end
      function state.render()
        if state.updating then
          return
        end
        local selected = state.selectedId()
        if selected ~= nil then
          state.lastId = selected
        end
        local queries = {}
        for i, edit in ipairs(state.filters) do
          queries[i] = edit.Text
        end
        local selectedIds={}
        if options.multi then
          for _,row in ipairs(Picker.selectedRows(state,list)) do selectedIds[row.id]=true end
        end
        state.shown = Picker.view(
          state.rows,
          state.columns,
          queries,
          state.sortIndex,
          state.ascending
        )
        list.beginUpdate()
        list.Items.clear()
        list.Items.Count = #state.shown
        local selectedIndex = -1
        for i, row in ipairs(state.shown) do
          if row.id == state.lastId then
            selectedIndex = i - 1
            break
          end
        end
        list.ItemIndex = selectedIndex
        if options.multi then
          for i,row in ipairs(state.shown) do
            list.Items[i-1].Selected=selectedIds[row.id]==true
          end
        end
        list.endUpdate()
        if not options.multi and state.lastId == nil and #state.shown &gt; 0 then
          list.ItemIndex = 0
          state.lastId = state.shown[1].id
        end
        for i, h in ipairs(headers) do
          h.Caption = state.columns[i].title .. (i == state.sortIndex and (state.ascending and ' ↑' or ' ↓') or '')
          headerButtons[i].Caption = h.Caption
        end
        count.Caption = ASKA.T('Shown ', '表示 ') .. #state.shown .. ' / ' .. #state.rows
        updateAccept()
      end
      function state.sort(index)
        if state.sortIndex == index then
          state.ascending = not state.ascending
        else
          state.sortIndex = index
          state.ascending = true
        end
        state.render()
      end
      list.OnColumnClick = function(sender, column)
        for i, h in ipairs(headers) do
          if h == column or h.Caption == column.Caption then
            state.sort(i)
            return
          end
        end
      end
      list.OnSelectItem = function()
        updateAccept()
      end
      local function choose()
        local id = state.selectedId()
        if options.multi then
          local selected=Picker.selectedRows(state,list)
          if options.batch and #selected&gt;0 then
            id={}
            for _,row in ipairs(selected) do id[#id+1]=row.id end
          else
            id=#selected==1 and selected[1].id or nil
          end
        end
        local quantity = readQuantity()
        if id ~= nil and (not quantityEdit or quantity) then
          state.quantity = quantity
          state.result = id
          form.ModalResult = 1
        end
      end
      accept.OnClick = choose
      if not options.confirmOnly then list.OnDblClick = choose end
      if options.back then
        cancel.Caption = ASKA.T('Back','戻る')
        cancel.Cancel = false
      end
      cancel.OnClick = function()
        state.result = nil
        state.back = options.back
        form.ModalResult = 2
      end
      for _, edit in ipairs(state.filters) do
        edit.OnKeyDown = function(sender, key)
          if key == 40 and #state.shown &gt; 0 then
            if list.ItemIndex &lt; 0 then
              list.ItemIndex = 0
            end
            list.setFocus()
            return 0
          end
          return key
        end
      end
      for _, edit in ipairs(state.filters) do
        edit.OnChange = state.render
      end
      clear.OnClick = function()
        state.updating = true
        for _, edit in ipairs(state.filters) do
          edit.Text = ''
        end
        state.updating = false
        state.render()
      end
      list.OnCustomDrawItem = function(sender, item, drawState)
        local row = state.shown[item.Index + 1]
        if not row then
          return false
        end
        local rect = item.displayRect('drBounds')
        local canvas = sender.Canvas
        canvas.Font.Color = 0xffffff
        canvas.Brush.Color = item.Selected and 0x805020 or 0x252525
        canvas.fillRect(rect.Left, rect.Top, sender.Width, rect.Bottom)
        local x = rect.Left
        for i, col in ipairs(state.columns) do
          local width = headers[i].Width
          canvas.textRect(
            { Left = x + 6, Top = rect.Top, Right = x + width - 6, Bottom = rect.Bottom },
            x + 6,
            rect.Top + 2,
            row[col.key] == nil and (col.missingText or '') or text(row[col.key])
          )
          x = x + width
        end
        return false
      end
      local function layout()
        local w, h = form.ClientWidth, form.ClientHeight
        local x = 14
        local available = w - 48
        local fixed, flex = 0, 0
        for _, col in ipairs(state.columns) do
          if col.flex then
            flex = flex + 1
          else
            fixed = fixed + (col.width or 100)
          end
        end
        for i, col in ipairs(state.columns) do
          local width = col.flex and math.max(180, math.floor((available - fixed) / math.max(1, flex)))
            or (col.width or 100)
          headers[i].Width = width
          headers[i].MinWidth = width
          headers[i].MaxWidth = width
          local edit = state.filters[i]
          edit.Left = x
          edit.Top = 54
          edit.Width = width - 6
          edit.Visible = not options.multi or x+width &lt;= w-14
          edit.Height = 28
          x = x + width
          local button = headerButtons[i]
          button.Left = edit.Left
          button.Top = 91
          button.Width = width
          button.Visible = not options.multi
          button.Height = 30
        end
        list.Left = 14
        list.Top = options.multi and 88 or 122
        list.Width = w - 28
        list.Height = h - list.Top - 64
        count.Left = 16
        count.Top = h - 43
        clear.Left = math.max(quantityEdit and 278 or 155,count.Left+count.Width+16)
        clear.Top = h - 49
        clear.Width = 110
        clear.Height = 33
        if quantityEdit then
          quantityLabel.Left = 16
          quantityLabel.Top = h - 43
          quantityEdit.Left = 80
          quantityEdit.Top = h - 49
          quantityEdit.Width = 64
          quantityError.Left = 16
          quantityError.Top = h - 72
          list.Height = list.Height - 12
          count.Left = 165
        end
        accept.Left = w - (options.back and 136 or 266)
        accept.Top = h - 49
        accept.Width = 118
        accept.Height = 33
        cancel.Left = w - (options.back and 266 or 136)
        cancel.Top = h - 49
        cancel.Width = 118
        cancel.Height = 33
      end
      form.OnResize = layout
      form.OnShow = function()
        state.render()
        -- CE applies its current theme when the form becomes visible.
        local themeTimer=createTimer(form,false)
        themeTimer.Interval=1
        themeTimer.OnTimer=function()
          themeTimer.destroy()
          form.Color,form.Font.Color=0x252525,0xf0f0f0
          list.Color,list.Font.Color=0x252525,0xf0f0f0
          for _,edit in ipairs(state.filters) do edit.Color,edit.Font.Color=0x353535,0xffffff end
          if quantityEdit then quantityEdit.Color,quantityEdit.Font.Color=0x353535,0xffffff end
          count.Font.Color=0xcfcfcf
        end
        themeTimer.Enabled=true
        if options.noTooltips then

          sendMessage(list.Handle,0x1036,0x4400,0)
        end
      end
      layout()
      state.render()
      return state
    end
    function Picker.show(options)
      local generation=ASKA.pickerGeneration or 0
      local form=createForm(false)
      ASKA.forms=ASKA.forms or {}
      ASKA.forms[form]=true
      options.form=form
      local ok, result = pcall(function()
        local state=Picker.create(options)
        if options.configure then options.configure(state) end
        form.showModal()
        return state
      end)
      ASKA.forms[form]=nil
      form.destroy()
      if not ok then
        error(result, 0)
      end
      if _G.ASKA~=ASKA or (ASKA.pickerGeneration or 0)~=generation then return nil,false end
      return result.result,result.back,result.quantity
    end

function ASKA.chooseInventoryRow(title, columns, rows, multi, options)
  options=options or {}
  if type(createListView)~='function' then
    local labels={}
    for i,row in ipairs(rows) do
      labels[i]=table.concat(row,' | ')
    end
    local index=chooseListIndex(title,title,labels)
    if not index then return end
    local count=options.quantity and inputQuery(title,ASKA.T('Quantity','個数'),'1')
    return multi and {index+1} or index+1,tonumber(count)
  end

  local viewColumns, viewRows={},{}
  local indices={}
  if columns[2]=='ID' then indices={2,1} else indices={1} end
  for index=#indices+1,#columns do indices[index]=index end
  for _,index in ipairs(indices) do
    local numeric=false
    for _,row in ipairs(rows) do
      if type(row[index])=='number' then numeric=true break end
    end
    viewColumns[#viewColumns+1]={key=index,title=columns[index],numeric=numeric,flex=index==1,width=110}
  end
  for index,row in ipairs(rows) do
    local view={id=index}
    for key,value in ipairs(row) do view[key]=value end
    viewRows[index]=view
  end
  local picked,back,count=Picker.show({
    title=title,columns=viewColumns,rows=viewRows,multi=multi==true,batch=multi==true,
    quantity=options.quantity,minimum=options.minimum,confirmOnly=multi==true,
    sortIndex=columns[2]=='ID' and 2 or 1,back=options.back,
    accept=multi and ASKA.T('Add selected','選択品を追加') or nil,
  })
  return picked,count,back
end
end

local function addInventoryItems(addItemCatalog)
  local available={}
  for _,category in ipairs(addItemCatalog) do
    local items={}
    for _,item in ipairs(category.items) do
      if not item.blueprint then items[#items+1]=item end
    end
    if #items&gt;0 then available[#available+1]={en=category.en,ja=category.ja,items=items} end
  end
  need(#available&gt;0,'No items are available.','追加できるアイテムがありません。')
  addItemCatalog=available
  local context=editingContext()
  local collection=follow(follow(context.player,0x268),0x20)
  need(collection and readBytes(collection+0x60,1)==1,'Inventory is not ready.','所持品の準備ができていません。')
  local title=ASKA.T('Add items','アイテム追加')
  local categories={}
  for index, category in ipairs(addItemCatalog) do categories[index]={ASKA.T(category.en,category.ja)} end
  local category,selected,input,back
  repeat
    local index=ASKA.chooseInventoryRow(title,{ASKA.T('Category','カテゴリ')},categories)
    category=index and addItemCatalog[index]
    if not category then return end
    local columns={ASKA.T('Item','アイテム'),'ID'}
    local displayedStats={}
    local specColumns={
      {'tier','Tier','段階'}, {'damageMin','Min damage','最小攻撃力'}, {'damageMax','Max damage','最大攻撃力'},
      {'armor','Armor','防御力'}, {'durability','Durability','耐久度'}, {'wearPerUse','Wear / use','使用時消耗'},
      {'cold','Cold resist','耐寒'}, {'rain','Rain resist','雨耐性'}, {'wind','Wind resist','風耐性'},
      {'buildPower','Build power','建築力倍率'}, {'shotSpeedLow','Low shot speed','低出力弾速'},
      {'shotSpeedHigh','High shot speed','高出力弾速'}, {'spread','Spread','拡散倍率'}, {'bowWeight','Bow weight','弓重量値'},
    }
    for _,spec in ipairs(specColumns) do
      for _,item in ipairs(category.items) do
        if item[4] and item[4][spec[1]]~=nil then
          columns[#columns+1]=ASKA.T(spec[2],spec[3])
          displayedStats[#displayedStats+1]=spec[1]
          break
        end
      end
    end
    local items={}
    for n,item in ipairs(category.items) do
      local row={ASKA.T(item[2],item[3]),item[1]}
      for column,key in ipairs(displayedStats) do row[column+2]=item[4] and item[4][key] end
      items[n]=row
    end
    selected,input,back=ASKA.chooseInventoryRow(categories[index][1],columns,items,true,
      {quantity=true,back=true})
  until selected or not back
  if not selected or input==nil then return end
  local count=math.tointeger(input)
  need(count and count&gt;0 and count&lt;=0x7FFFFFFF,'Enter a positive item count.','正の整数を入力してください。')
  local batch={context=context,collection=collection,count=count,index=1,items={}}
  for _,row in ipairs(selected) do batch.items[#batch.items+1]=category.items[row] end
  submitInventory(context,-1,count,collection,0,0,batch.items[1][1],batch)
end
function ASKA.addInventoryItems()
  ASKA.withItemCatalog(addInventoryItems)
end

function ASKA.addAllBlueprints()
  ASKA.withItemCatalog(function(catalog)
    local items={}
    for _,category in ipairs(catalog) do
      for _,item in ipairs(category.items) do
        if item.blueprint then items[#items+1]=item end
      end
    end
    need(#items&gt;0,'No blueprints are available.','追加できる設計図がありません。')
    local context=editingContext()
    local collection=follow(follow(context.player,0x268),0x20)
    need(collection and readBytes(collection+0x60,1)==1,'Inventory is not ready.','所持品の準備ができていません。')
    local batch={context=context,collection=collection,count=1,index=1,items=items}
    submitInventory(context,-1,1,collection,0,0,items[1][1],batch)
  end)
end

do
-- Reference: SIS.openItemQuantities; ASKA submits quantity writes on the game thread.
local function quantitySnapshot()
  local context=editingContext()
  local inventory=need(inventorySnapshot(context.player,{
    follow=follow,integer=readInteger,byte=function(address)return readBytes(address,1)end,
  }),'Inventory changed or is not ready.','所持品が変化したか、準備ができていません。')
  return context,inventory
end
local function inventoryIdentity(context,inventory)
  return ('%s:%X:%X'):format(context.token,inventory.component,inventory.collection)
end
local function quantityString(address)
  if not address then return end
  local length=readInteger(address+0x10)
  if length and length&gt;0 and length&lt;=0x100000 then return readString(address+0x14,length*2,true) end
end
local function quantityLabels(stack)
  if ASKA.inventoryItemLabels then
    local labels=ASKA.inventoryItemLabels(stack.info)
    if labels then return labels end
  end
  local name=quantityString(follow(stack.info,0x38)) or ('[%d]'):format(stack.id)
  local category=follow(stack.info,0x20)
  local categoryName=quantityString(follow(category,0x28))
  return {en=name,ja=name,category=category and readInteger(category+0x20) or 0,
    groupEn=categoryName or 'Items',groupJa=categoryName or 'アイテム'}
end
ASKA.EDITORS.items={en='Edit item quantity',ja='アイテム個数変更',fields={},
  rows=function()return {{id=0,en='',ja=''}}end,
  context=function()
    local context,inventory=quantitySnapshot()
    return {identity=inventoryIdentity(context,inventory),target=context,inventory=inventory}
  end}
local function currentStack(context,original)
  for _,stack in ipairs(context.inventory.stacks)do
    if stack.item==original.item then
      need(stack.info==original.info and stack.container==original.container
        and stack.id==original.id and stack.position==original.position,
        'Item identity changed. Reopen the editor.','アイテムの実体が変わりました。エディタを開き直してください。')
      return stack
    end
  end
end
local function openItemQuantities(parent)
  local id,epoch=parent.ID,ASKA.epoch
  ASKA.defer(function()
    if _G.ASKA~=ASKA or ASKA.epoch~=epoch or ASKA.disarming then return end
    local current=getAddressList().getMemoryRecordByID(id)
    if not current or not current.Active then return end
    local ok=ASKA.userRun(function()
      local boundary=ASKA.captureBoundary()
      local context=ASKA.EDITORS.items.context()
      local fields={}
      for _,stack in ipairs(context.inventory.stacks)do
        local original=stack
        local labels=quantityLabels(stack)
        fields[#fields+1]={en=labels.en,ja=labels.ja,kind='integer',min=0,max=0x7FFFFFFF,strict=true,
          inventoryStack=original,category=labels.category,groupEn=labels.groupEn,groupJa=labels.groupJa,
          read=function(ctx)local item=currentStack(ctx,original);return item and item.count or 0 end}
      end
      need(#fields&gt;0,'No eligible item stacks.','編集できるアイテムがありません。')
      table.sort(fields,function(a,b)
        if a.category~=b.category then return a.category&lt;b.category end
        if a.en~=b.en then return a.en&lt;b.en end
        if a.inventoryStack.containerIndex~=b.inventoryStack.containerIndex then
          return a.inventoryStack.containerIndex&lt;b.inventoryStack.containerIndex
        end
        return a.inventoryStack.item&lt;b.inventoryStack.item
      end)
      need(ASKA.captureBoundary()==boundary and ASKA.EDITORS.items.context().identity==context.identity,
        'Inventory changed while building the list.','一覧作成中に所持品が変わりました。')
      if _G.ASKA~=ASKA or ASKA.epoch~=epoch or ASKA.disarming then return end
      current=getAddressList().getMemoryRecordByID(id)
      if not current or not current.Active then return end
      ASKA.EDITORS.items.fields=fields
      ASKA.selectEditor(current,'items',{id=0,en='',ja=''},context.identity)
    end)
    if not ok and _G.ASKA==ASKA and ASKA.epoch==epoch then
      current=getAddressList().getMemoryRecordByID(id)
      if current and current.Active then current.Active=false end
    end
  end)
end
function ASKA.openItemQuantities(parent)
  local epoch=ASKA.epoch
  local function failed()
    if ASKA.epoch~=epoch then return end
    local current=getAddressList().getMemoryRecordByID(parent.ID)
    if current and current.Active then current.Active=false end
  end
  local ok=ASKA.userRun(function()ASKA.withItemCatalog(function()openItemQuantities(parent)end,function()
    local current=getAddressList().getMemoryRecordByID(parent.ID)
    return ASKA.epoch==epoch and current and current.Active
  end,failed)end)
  if not ok then failed()end
end
local pendingQuantity
local quantityPreviousCommit=ASKA.commit
function ASKA.commit(info,value,before,queuedStat)
  if not info.field.inventoryStack then return quantityPreviousCommit(info,value,before,queuedStat) end
  if pendingQuantity and pendingQuantity.epoch~=ASKA.epoch then pendingQuantity=nil end
  local context=ASKA.checkContext(info.session)
  need(info.session.rows[info.id]==info,'Editor was closed.','エディタは閉じられています。')
  value=ASKA.normalized(info.field,value)
  if pendingQuantity or (ASKA.active[inventoryKey] and readInteger(inventoryFeature.memberControl())~=0) then
    ASKA.queue[info.id]={info=info,before=before,value=value}
    return
  end
  local stack=need(currentStack(context,info.field.inventoryStack),
    'The item is no longer in this inventory.','このアイテムは所持品からなくなりました。')
  need(stack.count==before,'Value changed in the game; refresh first.','ゲーム内で値が変化しました。再取得してください。')
  if value==before then ASKA.paintMirror(info,before);return end
  submitInventory(context.target,before,value,context.inventory.collection,stack.container,stack.item,stack.info)
  pendingQuantity={info=info,before=before,value=value,epoch=ASKA.epoch}
end
local quantityPreviousTask=inventoryFeature.task
inventoryFeature.task=function()
  local receipt=quantityPreviousTask()
  local completed=pendingQuantity
  if not receipt or not completed then return end
  local actual=receipt.actual
  pendingQuantity=nil
  local info=completed.info
  local session=info.session
  if not session.live or ASKA.sessions[session.parentId]~=session or session.rows[info.id]~=info then return end
  local ok,current=pcall(function()return info.field.read(ASKA.checkContext(session))end)
  if not ok then ASKA.msg(tostring(current),tostring(current));return end
  ASKA.paintMirror(info,current)
  local queued=ASKA.queue[info.id]
  if actual==current and queued and queued.info==info and queued.before==completed.before then queued.before=current end
end
local quantityPreviousOff=inventoryFeature.off
inventoryFeature.off=function()
  quantityPreviousOff()
  pendingQuantity=nil
end

end
local settlementItemContext
do
local settlementBreakInstructions = "\x48\x85\xFF\x74\x70\x80\x79\x60\x01\x75\x6A\x41\x80\x7B\x48\x00\x75\x63\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x1B\x48\x39\x87\x58\x01\x00\x00\x75\x12\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementStudyInstructions = "\x48\x85\xDB\x0F\x84\xB7\x00\x00\x00\x48\x85\xC9\x0F\x84\xAE\x00\x00\x00\x48\x85\xD2\x0F\x84\xA5\x00\x00\x00\x48\x39\x4A\x10\x0F\x85\x9B\x00\x00\x00\x48\x39\x8B\xD0\x00\x00\x00\x0F\x85\x8E\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\x81\x00\x00\x00\x80\x78\x60\x01\x75\x7B\x41\x80\x7B\x48\x00\x75\x74\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x2C\x4C\x8B\x9B\x68\x01\x00\x00\x4D\x85\xDB\x74\x20\x49\x39\x83\x58\x01\x00\x00\x75\x17\x58\x41\x5B\x9D\xB8\x01\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementKennelInstructions = "\x48\x85\xF6\x0F\x84\x41\x02\x00\x00\x48\x85\xD2\x0F\x84\x38\x02\x00\x00\x48\x39\x4A\x10\x0F\x85\x2E\x02\x00\x00\x48\x85\xC9\x0F\x84\x25\x02\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\x18\x02\x00\x00\x80\x78\x60\x01\x0F\x85\x0E\x02\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x03\x02\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xB8\x01\x00\x00\x4C\x8B\x5E\x40\x4D\x85\xDB\x74\x38\x4D\x8B\x9B\x50\x01\x00\x00\x4D\x85\xDB\x74\x2C\x49\x39\x8B\xD0\x00\x00\x00\x75\x23\x4C\x39\x59\x38\x75\x1D\x4C\x8B\x5E\x40\x4D\x8B\x9B\x28\x02\x00\x00\x4D\x85\xDB\x74\x0D\x49\x39\x83\x58\x01\x00\x00\x0F\x84\x60\x01\x00\x00\x52\x41\x50\x41\x51\x41\x52\x49\x89\xC2\x4C\x8B\x80\xD8\x00\x00\x00\x4D\x85\xC0\x0F\x84\x35\x01\x00\x00\x45\x8B\x48\x18\x45\x85\xC9\x0F\x8E\x28\x01\x00\x00\x4D\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x1B\x01\x00\x00\x45\x3B\x48\x18\x0F\x87\x11\x01\x00\x00\x49\xBB\x93\x97\x58\x53\x26\x59\x41\x31\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFB\x00\x00\x00\x41\x0F\xB6\x93\x30\x01\x00\x00\x85\xD2\x0F\x84\xEB\x00\x00\x00\x41\xFF\xC9\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x4F\x48\x8B\x89\xC8\x00\x00\x00\x4C\x39\x5C\xD1\xF8\x75\x41\x48\x8B\x88\x30\x01\x00\x00\x48\x85\xC9\x0F\x84\xA6\x00\x00\x00\x4C\x39\x91\x58\x01\x00\x00\x0F\x85\x99\x00\x00\x00\x48\x8B\x80\x38\x01\x00\x00\x48\x85\xC0\x0F\x84\x89\x00\x00\x00\x48\x8B\x40\x20\x48\x8B\x0C\x24\x48\x3B\x41\x28\x0F\x84\x8A\x00\x00\x00\xEB\x75\x52\x48\xB9\x45\x90\x45\x28\x18\x28\x18\x27\x48\x8B\x09\x48\x85\xC9\x74\x61\x0F\xB6\x91\x30\x01\x00\x00\x85\xD2\x74\x56\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x10\x48\x8B\x89\xC8\x00\x00\x00\x48\x8B\x4C\xD1\xF8\x48\x3B\x0C\x24\x59\x5A\x75\x37\x48\x8B\x88\x28\x02\x00\x00\x48\x85\xC9\x74\x2B\x4C\x39\x91\x58\x01\x00\x00\x75\x22\x48\x8B\x80\x50\x01\x00\x00\x48\x85\xC0\x74\x16\x48\x8B\x0C\x24\x48\x39\x88\xD0\x00\x00\x00\x75\x09\x48\x39\x41\x38\x74\x16\xEB\x01\x5A\x59\x45\x85\xC9\x0F\x85\x15\xFF\xFF\xFF\x41\x5A\x41\x59\x41\x58\x5A\xEB\x1F\x59\x41\x5A\x41\x59\x41\x58\x5A\x58\x41\x5B\x9D\xB8\x01\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementConsumableInstructions = "\x9C\x41\x53\x50\x51\x52\x48\x89\xC1\x48\x89\xFA\x49\xBB\x94\x98\x74\x88\x39\x03\x18\x16\x48\x85\xD2\x0F\x84\xF4\x01\x00\x00\x48\x39\x4A\x10\x0F\x85\xEA\x01\x00\x00\x48\x85\xC9\x0F\x84\xE1\x01\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\xD4\x01\x00\x00\x80\x78\x60\x01\x0F\x85\xCA\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\xBF\x01\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x74\x01\x00\x00\x52\x41\x50\x41\x51\x41\x52\x49\x89\xC2\x4C\x8B\x80\xD8\x00\x00\x00\x4D\x85\xC0\x0F\x84\x35\x01\x00\x00\x45\x8B\x48\x18\x45\x85\xC9\x0F\x8E\x28\x01\x00\x00\x4D\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x1B\x01\x00\x00\x45\x3B\x48\x18\x0F\x87\x11\x01\x00\x00\x49\xBB\x93\x97\x58\x53\x26\x59\x41\x31\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFB\x00\x00\x00\x41\x0F\xB6\x93\x30\x01\x00\x00\x85\xD2\x0F\x84\xEB\x00\x00\x00\x41\xFF\xC9\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x4F\x48\x8B\x89\xC8\x00\x00\x00\x4C\x39\x5C\xD1\xF8\x75\x41\x48\x8B\x88\x30\x01\x00\x00\x48\x85\xC9\x0F\x84\xA6\x00\x00\x00\x4C\x39\x91\x58\x01\x00\x00\x0F\x85\x99\x00\x00\x00\x48\x8B\x80\x38\x01\x00\x00\x48\x85\xC0\x0F\x84\x89\x00\x00\x00\x48\x8B\x40\x20\x48\x8B\x0C\x24\x48\x3B\x41\x28\x0F\x84\x8A\x00\x00\x00\xEB\x75\x52\x48\xB9\x45\x90\x45\x28\x18\x28\x18\x27\x48\x8B\x09\x48\x85\xC9\x74\x61\x0F\xB6\x91\x30\x01\x00\x00\x85\xD2\x74\x56\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x10\x48\x8B\x89\xC8\x00\x00\x00\x48\x8B\x4C\xD1\xF8\x48\x3B\x0C\x24\x59\x5A\x75\x37\x48\x8B\x88\x28\x02\x00\x00\x48\x85\xC9\x74\x2B\x4C\x39\x91\x58\x01\x00\x00\x75\x22\x48\x8B\x80\x50\x01\x00\x00\x48\x85\xC0\x74\x16\x48\x8B\x0C\x24\x48\x39\x88\xD0\x00\x00\x00\x75\x09\x48\x39\x41\x38\x74\x16\xEB\x01\x5A\x59\x45\x85\xC9\x0F\x85\x15\xFF\xFF\xFF\x41\x5A\x41\x59\x41\x58\x5A\xEB\x1C\x59\x41\x5A\x41\x59\x41\x58\x5A\x5A\x59\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x5A\x59\x58\x41\x5B\x9D\x48\x85\xC0\x74\x0E\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57"
local settlementCookingInstructions = "\x48\x85\xD2\x0F\x84\xAE\x00\x00\x00\x48\x39\x4A\x10\x0F\x85\xA4\x00\x00\x00\x48\x85\xC9\x0F\x84\x9B\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\x8E\x00\x00\x00\x80\x78\x60\x01\x0F\x85\x84\x00\x00\x00\x41\x80\x7B\x48\x00\x75\x7D\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x35\x48\x39\x8F\xD0\x00\x00\x00\x75\x2C\x4C\x8B\x9F\x70\x01\x00\x00\x4D\x85\xDB\x74\x20\x49\x39\x83\x58\x01\x00\x00\x75\x17\x58\x41\x5B\x9D\xB8\x01\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementForgeInstructions = "\x48\x85\xD2\x0F\x84\xAE\x00\x00\x00\x48\x39\x4A\x10\x0F\x85\xA4\x00\x00\x00\x48\x85\xC9\x0F\x84\x9B\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\x8E\x00\x00\x00\x80\x78\x60\x01\x0F\x85\x84\x00\x00\x00\x41\x80\x7B\x48\x00\x75\x7D\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x35\x49\x39\x8F\xD0\x00\x00\x00\x75\x2C\x4D\x8B\x9F\x70\x01\x00\x00\x4D\x85\xDB\x74\x20\x49\x39\x83\x58\x01\x00\x00\x75\x17\x58\x41\x5B\x9D\xB8\x01\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementPotInstructions = "\x51\x48\x85\xD2\x0F\x84\xEB\x00\x00\x00\x48\x8B\x4A\x10\x48\x85\xC9\x0F\x84\xDE\x00\x00\x00\x48\x8B\x41\x28\x48\x3B\x04\x24\x0F\x85\xD0\x00\x00\x00\x48\x85\xD2\x0F\x84\xC7\x00\x00\x00\x48\x39\x4A\x10\x0F\x85\xBD\x00\x00\x00\x48\x85\xC9\x0F\x84\xB4\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\xA7\x00\x00\x00\x80\x78\x60\x01\x0F\x85\x9D\x00\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x92\x00\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x4A\x4C\x8B\x9F\x80\x00\x00\x00\x4D\x85\xDB\x74\x3E\x4D\x8B\x5B\x28\x4D\x85\xDB\x74\x35\x4D\x8B\x5B\x20\x4C\x3B\x1C\x24\x75\x2B\x4C\x8B\x9F\x70\x01\x00\x00\x4D\x85\xDB\x74\x1F\x49\x39\x83\x58\x01\x00\x00\x75\x16\x59\x58\x41\x5B\x9D\x44\x89\xC0\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x59\x58\x41\x5B\x9D"
local settlementRepairInstructions = "\x48\x85\xD2\x0F\x84\xCC\x00\x00\x00\x48\x39\x4B\x50\x0F\x85\xC2\x00\x00\x00\x48\x39\x93\x08\x01\x00\x00\x0F\x85\xB5\x00\x00\x00\x48\x85\xC9\x0F\x84\xAC\x00\x00\x00\x48\x8B\x83\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x9C\x00\x00\x00\x48\x8B\x40\x20\x48\x39\x41\x28\x0F\x85\x8E\x00\x00\x00\x48\x85\xC9\x0F\x84\x85\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x7C\x80\x78\x60\x01\x75\x76\x41\x80\x7B\x48\x00\x75\x6F\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x27\x4C\x8B\x9B\xD8\x00\x00\x00\x4D\x85\xDB\x74\x1B\x49\x39\x83\x58\x01\x00\x00\x75\x12\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementQuenchInstructions = "\x9C\x41\x53\x50\x51\x49\xBB\x94\x98\x74\x88\x39\x03\x18\x16\x48\x8B\x8B\xD0\x00\x00\x00\x48\x85\xC9\x0F\x84\x86\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x7D\x80\x78\x60\x01\x75\x77\x41\x80\x7B\x48\x00\x75\x70\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x28\x4C\x8B\x9B\x38\x01\x00\x00\x4D\x85\xDB\x74\x1C\x49\x39\x83\x58\x01\x00\x00\x75\x13\x59\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x59\x58\x41\x5B\x9D\x31\xD2\x48\x89\xD9\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14"
local settlementTrapInstructions = "\x48\x8B\x43\x58\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x48\x39\x48\x20\x0F\x85\x8B\x00\x00\x00\x48\x85\xC9\x0F\x84\x82\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x79\x80\x78\x60\x01\x75\x73\x41\x80\x7B\x48\x00\x75\x6C\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x24\x4C\x8B\x5B\x20\x4D\x85\xDB\x74\x1B\x49\x39\x83\x58\x01\x00\x00\x75\x12\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementCraftInstructions = "\x48\x8B\x86\x90\x00\x00\x00\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x48\x85\xC9\x0F\x84\x8C\x00\x00\x00\x48\x39\x48\x20\x0F\x85\x82\x00\x00\x00\x48\x89\xC8\x80\x78\x60\x01\x75\x79\x41\x80\x7B\x48\x00\x75\x72\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x2A\x4C\x8B\x9E\xC0\x00\x00\x00\x4D\x85\xDB\x74\x1E\x49\x39\x83\x58\x01\x00\x00\x75\x15\x58\x41\x5B\x9D\x44\x89\xC0\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementCraftR14Instructions = "\x49\x8B\x86\x90\x00\x00\x00\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x48\x85\xC9\x0F\x84\x8C\x00\x00\x00\x48\x39\x48\x20\x0F\x85\x82\x00\x00\x00\x48\x89\xC8\x80\x78\x60\x01\x75\x79\x41\x80\x7B\x48\x00\x75\x72\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x2A\x4D\x8B\x9E\xC0\x00\x00\x00\x4D\x85\xDB\x74\x1E\x49\x39\x83\x58\x01\x00\x00\x75\x15\x58\x41\x5B\x9D\x44\x89\xC0\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementBlueprintInstructions = "\x9C\x41\x53\x50\x51\x48\x89\xC1\x4C\x8B\x9E\x98\x00\x00\x00\x4D\x85\xDB\x74\x0A\x4D\x8B\x5B\x20\x4C\x39\x59\x28\x74\x2E\x4C\x8B\x9E\x80\x00\x00\x00\x4D\x85\xDB\x0F\x84\xB7\x00\x00\x00\x4D\x8B\x9B\xD0\x01\x00\x00\x4D\x85\xDB\x0F\x84\xA7\x00\x00\x00\x4D\x8B\x5B\x20\x4C\x39\x59\x28\x0F\x85\x99\x00\x00\x00\x49\xBB\x94\x98\x74\x88\x39\x03\x18\x16\x48\x85\xC9\x0F\x84\x86\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x7D\x80\x78\x60\x01\x75\x77\x41\x80\x7B\x48\x00\x75\x70\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x28\x4C\x8B\x9E\xC0\x00\x00\x00\x4D\x85\xDB\x74\x1C\x49\x39\x83\x58\x01\x00\x00\x75\x13\x59\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x28\x53\x01\x49\x66\x15\x72\x57\x59\x58\x41\x5B\x9D\x48\x8B\x96\x88\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x95\x30\x37\x62\x35\x21\x14\x14"
local settlementFoodClearingInstructions = "\x51\x48\x85\xD2\x0F\x84\x04\x02\x00\x00\x48\x8B\x4A\x10\x48\x85\xC9\x0F\x84\xF7\x01\x00\x00\x48\x8B\x41\x28\x48\x3B\x04\x24\x0F\x85\xE9\x01\x00\x00\x48\x85\xC9\x0F\x84\xE0\x01\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\xD3\x01\x00\x00\x80\x78\x60\x01\x0F\x85\xC9\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\xBE\x01\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x73\x01\x00\x00\x52\x41\x50\x41\x51\x41\x52\x49\x89\xC2\x4C\x8B\x80\xD8\x00\x00\x00\x4D\x85\xC0\x0F\x84\x35\x01\x00\x00\x45\x8B\x48\x18\x45\x85\xC9\x0F\x8E\x28\x01\x00\x00\x4D\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x1B\x01\x00\x00\x45\x3B\x48\x18\x0F\x87\x11\x01\x00\x00\x49\xBB\x93\x97\x58\x53\x26\x59\x41\x31\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFB\x00\x00\x00\x41\x0F\xB6\x93\x30\x01\x00\x00\x85\xD2\x0F\x84\xEB\x00\x00\x00\x41\xFF\xC9\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x4F\x48\x8B\x89\xC8\x00\x00\x00\x4C\x39\x5C\xD1\xF8\x75\x41\x48\x8B\x88\x30\x01\x00\x00\x48\x85\xC9\x0F\x84\xA6\x00\x00\x00\x4C\x39\x91\x58\x01\x00\x00\x0F\x85\x99\x00\x00\x00\x48\x8B\x80\x38\x01\x00\x00\x48\x85\xC0\x0F\x84\x89\x00\x00\x00\x48\x8B\x40\x20\x48\x8B\x0C\x24\x48\x3B\x41\x28\x0F\x84\x8A\x00\x00\x00\xEB\x75\x52\x48\xB9\x45\x90\x45\x28\x18\x28\x18\x27\x48\x8B\x09\x48\x85\xC9\x74\x61\x0F\xB6\x91\x30\x01\x00\x00\x85\xD2\x74\x56\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x10\x48\x8B\x89\xC8\x00\x00\x00\x48\x8B\x4C\xD1\xF8\x48\x3B\x0C\x24\x59\x5A\x75\x37\x48\x8B\x88\x28\x02\x00\x00\x48\x85\xC9\x74\x2B\x4C\x39\x91\x58\x01\x00\x00\x75\x22\x48\x8B\x80\x50\x01\x00\x00\x48\x85\xC0\x74\x16\x48\x8B\x0C\x24\x48\x39\x88\xD0\x00\x00\x00\x75\x09\x48\x39\x41\x38\x74\x16\xEB\x01\x5A\x59\x45\x85\xC9\x0F\x85\x15\xFF\xFF\xFF\x41\x5A\x41\x59\x41\x58\x5A\xEB\x1B\x59\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x59\x58\x41\x5B\x9D"
local settlementActivationInstructions = "\x48\x8B\x83\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\xF5\x01\x00\x00\x48\x39\x88\xD0\x00\x00\x00\x0F\x85\xE8\x01\x00\x00\x48\x85\xC9\x0F\x84\xDF\x01\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x0F\x84\xD2\x01\x00\x00\x80\x78\x60\x01\x0F\x85\xC8\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\xBD\x01\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x72\x01\x00\x00\x52\x41\x50\x41\x51\x41\x52\x49\x89\xC2\x4C\x8B\x80\xD8\x00\x00\x00\x4D\x85\xC0\x0F\x84\x35\x01\x00\x00\x45\x8B\x48\x18\x45\x85\xC9\x0F\x8E\x28\x01\x00\x00\x4D\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x1B\x01\x00\x00\x45\x3B\x48\x18\x0F\x87\x11\x01\x00\x00\x49\xBB\x93\x97\x58\x53\x26\x59\x41\x31\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFB\x00\x00\x00\x41\x0F\xB6\x93\x30\x01\x00\x00\x85\xD2\x0F\x84\xEB\x00\x00\x00\x41\xFF\xC9\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x4F\x48\x8B\x89\xC8\x00\x00\x00\x4C\x39\x5C\xD1\xF8\x75\x41\x48\x8B\x88\x30\x01\x00\x00\x48\x85\xC9\x0F\x84\xA6\x00\x00\x00\x4C\x39\x91\x58\x01\x00\x00\x0F\x85\x99\x00\x00\x00\x48\x8B\x80\x38\x01\x00\x00\x48\x85\xC0\x0F\x84\x89\x00\x00\x00\x48\x8B\x40\x20\x48\x8B\x0C\x24\x48\x3B\x41\x28\x0F\x84\x8A\x00\x00\x00\xEB\x75\x52\x48\xB9\x45\x90\x45\x28\x18\x28\x18\x27\x48\x8B\x09\x48\x85\xC9\x74\x61\x0F\xB6\x91\x30\x01\x00\x00\x85\xD2\x74\x56\x51\x48\x8B\x08\x38\x91\x30\x01\x00\x00\x72\x10\x48\x8B\x89\xC8\x00\x00\x00\x48\x8B\x4C\xD1\xF8\x48\x3B\x0C\x24\x59\x5A\x75\x37\x48\x8B\x88\x28\x02\x00\x00\x48\x85\xC9\x74\x2B\x4C\x39\x91\x58\x01\x00\x00\x75\x22\x48\x8B\x80\x50\x01\x00\x00\x48\x85\xC0\x74\x16\x48\x8B\x0C\x24\x48\x39\x88\xD0\x00\x00\x00\x75\x09\x48\x39\x41\x38\x74\x16\xEB\x01\x5A\x59\x45\x85\xC9\x0F\x85\x15\xFF\xFF\xFF\x41\x5A\x41\x59\x41\x58\x5A\xEB\x1A\x59\x41\x5A\x41\x59\x41\x58\x5A\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementSummonInstructions = "\x48\x8B\x83\x08\x01\x00\x00\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x48\x39\x48\x20\x0F\x85\x8B\x00\x00\x00\x48\x85\xC9\x0F\x84\x82\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x79\x80\x78\x60\x01\x75\x73\x41\x80\x7B\x48\x00\x75\x6C\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x24\x4C\x8B\x5B\x78\x4D\x85\xDB\x74\x1B\x49\x39\x83\x58\x01\x00\x00\x75\x12\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlement_itemsScopeInstructions = "\x48\x85\xF6\x0F\x84\x9B\x00\x00\x00\x80\x79\x60\x01\x0F\x85\x91\x00\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x86\x00\x00\x00\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x3E\x4C\x8B\x9E\x30\x01\x00\x00\x4D\x85\xDB\x74\x32\x49\x39\x83\x58\x01\x00\x00\x75\x29\x48\x8B\x86\x38\x01\x00\x00\x48\x85\xC0\x74\x1D\x48\x39\x48\x20\x75\x17\x58\x41\x5B\x9D\xB8\x01\x00\x00\x00\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local settlementItemsKey='preserveSettlementItems'
local settlementInFlight=0x180
local settlementPyreInstructions = "\x48\x8B\x83\xE8\x01\x00\x00\x48\x85\xC0\x0F\x84\x98\x00\x00\x00\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x85\xC9\x0F\x84\x85\x00\x00\x00\x48\x8B\x41\x28\x48\x85\xC0\x74\x7C\x80\x78\x60\x01\x75\x76\x41\x80\x7B\x48\x00\x75\x6F\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x27\x4C\x8B\x9B\x88\x01\x00\x00\x4D\x85\xDB\x74\x1B\x49\x39\x83\x58\x01\x00\x00\x75\x12\x58\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
local storageTypeSlots={[0x3141592653589793]=0x5CC48F0,[0x2718281828459045]=0x5D092D8}

local function fillAddresses(code,addresses)
  for marker,address in pairs(addresses) do
    local placeholder=string.pack('&lt;I8',marker)
    local offset=1
    local first,last=code:find(placeholder,offset,true)
    need(first,'Cannot locate a settlement code address.','集落処理のアドレスを特定できません。')
    local packed=string.pack('&lt;I8',address)
    while first do
      code=code:sub(1,first-1)..packed..code:sub(last+1)
      offset=last+1
      first,last=code:find(placeholder,offset,true)
    end
  end
  return code
end

settlementItemContext=function()
  local scope=currentMembers(false)
  if not scope or not scope.settlement then return end
  local context=scope.context
  context.token=scope.token
  context.settlementManager=scope.manager
  return context
end

local function settlementRemovalSite(rva,signature,retainedRva,callee,guard,storageTypeSlots,restoreSize)
  local original={table.unpack(signature,1,5)}
  local inFlight=storageTypeSlots and 0x300 or settlementInFlight
  restoreSize=restoreSize or 4
  local function codeFor(context,cave,entry)
    local continuation=entry+5
    local instructions=guard
    if storageTypeSlots then
      local addresses={}
      for marker,rva in pairs(storageTypeSlots) do addresses[marker]=context.base+rva end
      instructions=fillAddresses(guard,addresses)
    end
    -- The assembly ends with the continuation pointer and the fallback register restore.
    local code=string.char(0x9C,0x41,0x53,0x50,0x49,0xBB)..string.pack('&lt;I8',context.settlementManager)
      ..instructions:sub(1,-restoreSize-9)..string.pack('&lt;I8',context.base+retainedRva)..instructions:sub(-restoreSize)
    code=code..string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',inFlight-#code-7)
    local call=makeJump(cave+#code,context.base+callee)
    code=code..string.char(0xE8)..call:sub(2)
    code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',inFlight-#code-7)
    code=code..makeJump(cave+#code,continuation)
    need(#code&lt;=inFlight,'Settlement code exceeds its reserved range.','集落の処理が確保範囲を超えています。')
    return code..string.rep('\0',inFlight+4-#code)
  end
  return entryFeature(settlementItemsKey,rva,original,signature,settlementItemContext,codeFor,nil,nil,function(cave)
    need(readInteger(cave+inFlight)==0,
      'A settlement inventory operation is finishing. Retry cleanup.','集落の在庫処理が完了してから解除を再試行します。')
  end)
end

local consumableSignature={0x48,0x85,0xC0,0x74,0x17,0x45,0x33,0xC9,0x48,0x89,0x6C,0x24,0x20,0x48,0x8B,0xD7}
local consumableOriginal={table.unpack(consumableSignature,1,5)}
local function consumableCode(context,_,entry)
  local addresses={
    [0x1618033988749894]=context.settlementManager,
    [0x1414213562373095]=entry+5,
    [0x5772156649015328]=context.base+0xDA175A,
  }
  for marker,rva in pairs(storageTypeSlots) do addresses[marker]=context.base+rva end
  return fillAddresses(settlementConsumableInstructions,addresses)
end

local quenchSignature={0x33,0xD2,0x48,0x8B,0xCB,0xE8,0x86,0xEA,0x21,0,0x48,0x85,0xC0,0x74,0x70}
local quenchOriginal={table.unpack(quenchSignature,1,5)}
local function quenchCode(context,_,entry)
  return fillAddresses(settlementQuenchInstructions,{
    [0x1618033988749894]=context.settlementManager,
    [0x1414213562373095]=entry+5,
    [0x5772156649015328]=context.base+0xBF1DA4,
  })
end

local blueprintSignature={0x48,0x8B,0x96,0x88,0,0,0,0x48,0x8B,0xC8}
local blueprintOriginal={table.unpack(blueprintSignature,1,7)}
local function blueprintCode(context,_,entry)
  return fillAddresses(settlementBlueprintInstructions,{
    [0x1618033988749894]=context.settlementManager,
    [0x1414213562373095]=entry+7,
    [0x5772156649015328]=context.base+0xBB61E2,
  })
end

ASKA.F[settlementItemsKey]=groupedEntryFeatures({
  settlementRemovalSite(0xE30692,{0xE8,0xA9,0xDE,0x83,0x02,0x41,0xFF,0xC6,0xC6,0x86,0xE0,0x02,0,0,0},0xE30697,0x366E540,settlement_itemsScopeInstructions),
  -- With the barrel retained, resume the feast loop after the empty-barrel award.
  settlementRemovalSite(0xE307E8,{0xE8,0x53,0xDD,0x83,0x02,0x48,0x8B,0x8E,0x80,0x02,0,0,0x48,0x85,0xC9},0xE3083F,0x366E540,settlement_itemsScopeInstructions),
  settlementRemovalSite(0xB0923F,{0xE8,0xDC,0x57,0xB6,0x02,0x44,0x38,0xB7,0x28,0x01,0,0},0xB09244,0x366EA20,settlementBreakInstructions),
  settlementRemovalSite(0xD7F48F,{0xE8,0xBC,0x52,0x8D,0x02,0x48,0x8B,0x83,0x20,0x01,0,0,0x48,0x85,0xC0},0xD7F494,0x3654750,settlementStudyInstructions),
  settlementRemovalSite(0x8E267F,{0xE8,0xCC,0x20,0xD7,0x02,0x48,0x8B,0x4E,0x48,0x48,0x85,0xC9,0x74,0x30},0x8E2684,0x3654750,settlementKennelInstructions,
    storageTypeSlots),
  entryFeature(settlementItemsKey,0xDA173E,consumableOriginal,consumableSignature,settlementItemContext,consumableCode,3),
  entryFeature(settlementItemsKey,0xBF1D30,quenchOriginal,quenchSignature,settlementItemContext,quenchCode,2),
  settlementRemovalSite(0x12DEED1,{0xE8,0x6A,0x56,0x37,0x02,0xF3,0x0F,0x10,0x0D,0xCE,0xAC,0x6D,0x03},0x12DEED6,0x3654540,settlementTrapInstructions),
  settlementRemovalSite(0x12DF909,{0xE8,0x32,0x4C,0x37,0x02,0xF3,0x0F,0x10,0x0D,0x96,0xA2,0x6D,0x03},0x12DF90E,0x3654540,settlementTrapInstructions),
  settlementRemovalSite(0x12DFA1B,{0xE8,0x20,0x4B,0x37,0x02,0xF3,0x0F,0x10,0x0D,0x84,0xA1,0x6D,0x03},0x12DFA20,0x3654540,settlementTrapInstructions),
  settlementRemovalSite(0xBB60F7,{0xE8,0xA4,0x85,0xAB,0x02,0x2B,0xF8,0x4C,0x8B,0x6C,0x24,0x60,0xEB},0xBB60FC,0x366E6A0,settlementCraftInstructions),
  settlementRemovalSite(0xB8E41C,{0xE8,0x7F,0x02,0xAE,0x02,0x2B,0xF8,0xEB,0x05,0x48,0x8B,0x74,0x24},0xB8E421,0x366E6A0,settlementCraftR14Instructions),
  settlementRemovalSite(0xBC9D6E,{0xE8,0x2D,0x49,0xAA,0x02,0x2B,0xF8,0x4C,0x8B,0x64,0x24,0x50,0xEB},0xBC9D73,0x366E6A0,settlementCraftR14Instructions),
  entryFeature(settlementItemsKey,0xBB61D3,blueprintOriginal,blueprintSignature,settlementItemContext,blueprintCode),
  settlementRemovalSite(0x8545D9,{0xE8,0x62,0x9F,0xE1,0x02,0x45,0x33,0xC0,0x48,0x8B,0x56,0x20,0x48,0x8B,0xCF},
    0x8545DE,0x366E540,settlementFoodClearingInstructions,storageTypeSlots,5),
  settlementRemovalSite(0xC6C079,{0xE8,0xC2,0x84,0x9E,0x02,0x48,0x8B,0x5C,0x24,0x30,0x48,0x83,0xC4,0x20,0x5F,0xC3},
    0xC6C07E,0x3654540,settlementActivationInstructions,storageTypeSlots),
  settlementRemovalSite(0xC1F482,{0xE8,0xB9,0x50,0xA3,0x02,0x48,0x8B,0x8B,0x88,0,0,0,0x48,0x85,0xC9,0x74},
    0xC1F487,0x3654540,settlementSummonInstructions),
  settlementRemovalSite(0xBD7AA7,{0xE8,0x94,0xCA,0xA7,0x02,0x48,0x8B,0x83,0xF0,0x01,0,0,0x48,0x85,0xC0,0x74},
    0xBD7AAC,0x3654540,settlementPyreInstructions),
  settlementRemovalSite(0xD76878,{0xE8,0xD3,0xDE,0x8D,0x02,0xFF,0xC3,0x8B,0xC3,0xE9,0x5A,0xFF,0xFF,0xFF},0xD7687D,0x3654750,settlementCookingInstructions),
  settlementRemovalSite(0xBCC319,{0xE8,0x32,0x84,0xA8,0x02,0xFF,0xC3,0x8B,0xC3,0xEB,0x8C,0x45,0x84,0xE4},0xBCC31E,0x3654750,settlementForgeInstructions),
  settlementRemovalSite(0xBC789E,{0xE8,0x9D,0x6C,0xAA,0x02,0x4C,0x8D,0xAF,0x18,0x02,0,0,0xFF,0xC6},0xBC78A3,0x366E540,settlementPotInstructions,nil,5),
  settlementRemovalSite(0xB55127,{0xE8,0x14,0xF4,0xAF,0x02,0x48,0x8B,0x8B,0x08,0x01,0,0,0x48,0x85,0xC9},0xB5512C,0x3654540,settlementRepairInstructions),
})

end
do
local comfortScopeInstructions = "\x81\x79\x10\x91\x00\x00\x00\x0F\x85\x35\x01\x00\x00\x48\x8B\x01\x4D\x8B\x5A\x28\x4C\x39\x98\xF8\x01\x00\x00\x0F\x85\x21\x01\x00\x00\x4D\x8B\x1A\x41\x80\x7B\x48\x00\x0F\x85\x13\x01\x00\x00\x4D\x8B\x42\x08\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xC4\x00\x00\x00\x4C\x39\xC0\x0F\x85\xBB\x00\x00\x00\x4D\x8B\x5A\x10\x49\x8B\x83\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xA7\x00\x00\x00\x44\x8B\x48\x18\x45\x85\xC9\x0F\x8E\x9A\x00\x00\x00\x4C\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x8D\x00\x00\x00\x45\x3B\x48\x18\x0F\x87\x83\x00\x00\x00\x41\xFF\xC9\x78\x7E\x4B\x8B\x44\xC8\x20\x48\x85\xC0\x74\xF1\x4D\x8B\x5A\x18\x4C\x39\x18\x75\xE8\x48\x83\x78\x10\x00\x74\xE1\x4D\x8B\x5A\x20\x4C\x39\x58\x38\x75\xD7\x4D\x8B\x5A\x08\x4C\x39\x98\xC8\x04\x00\x00\x75\xCA\x4D\x8B\x5A\x10\x4C\x39\x98\xD0\x04\x00\x00\x75\xBD\x80\xB8\x94\x01\x00\x00\x00\x75\xB4\x4C\x8B\x98\xF8\x04\x00\x00\x4D\x85\xDB\x74\xA8\x49\x83\x7B\x10\x00\x74\xA1\x4C\x8B\x98\x50\x05\x00\x00\x4D\x85\xDB\x74\x95\x49\x39\x83\x00\x01\x00\x00\x75\x8C\x49\x39\x8B\x10\x01\x00\x00\x75\x83\xF3\x0F\x10\x41\x48\xC3"
local comfortKey='maxMemberComfort'
local comfortSignature={0x40,0x53,0x48,0x83,0xEC,0x20,0x80,0x79,0x34,0x00,0x48,0x8B,0xD9,0x74,0x1E,0x48}
local comfortOriginal={table.unpack(comfortSignature,1,6)}

local function comfortContext()
  local scope=currentMembers(false)
  if not scope or not scope.settlement then return end
  local context=scope.context
  context.token=('%s:%X:%X'):format(scope.token,scope.manager,scope.population)
  context.scope=scope
  return context
end

local function comfortCode(context,cave,entry)
  local scope=context.scope
  local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    ..comfortScopeInstructions..string.char(table.unpack(comfortOriginal))
  code=code..makeJump(cave+#code,entry+#comfortOriginal)
  need(#code&lt;=0x200,'Comfort code exceeds its reserved range.','快適度の処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8I8I8',
    scope.manager,scope.settlement,scope.population,context.villagerClass,context.runner,context.base+0x35E9AC0)
end

local function refreshMemberComfort()
  withTargetSuspended(function()
    local context=comfortContext()
    if not context then return end
    local scope=need(currentMembers(),'Member data is not ready.','メンバー情報の準備ができていません。')
    need(scope.token==context.scope.token,'Settlement changed.','集落が変わりました。')
    for _,member in ipairs(scope.members) do
      local status=follow(member.address,0x550)
      if unityIdentity(status) and follow(status,0x100)==member.address
        and follow(status,0xF8) and follow(status,0x110) then
        need(writeBytes(status+0x149,1)==1,
          'Cannot request a comfort refresh.','快適度の再評価を要求できません。')
      end
    end
  end)
end

local comfortHook=entryFeature(comfortKey,0x35DEDD0,comfortOriginal,comfortSignature,comfortContext,comfortCode,2)
ASKA.F[comfortKey]={
  boundary=comfortHook.boundary,
  on=function()
    comfortHook.on()
    refreshMemberComfort()
  end,
  off=function()
    comfortHook.off()
    refreshMemberComfort()
  end,
}

end
do
local fallProtectionInstructions = "\x49\x3B\x0A\x75\x51\x49\x8B\x42\x08\x48\x39\x41\x10\x75\x47\x80\xB9\x6B\x01\x00\x00\x01\x75\x3E\x80\xB9\x6C\x01\x00\x00\x01\x75\x35\x4D\x8B\x5A\x10\x4C\x39\x99\x60\x01\x00\x00\x75\x28\x49\x39\x8B\xC8\x03\x00\x00\x75\x1F\x49\x8B\x42\x18\x49\x39\x43\x10\x75\x15\x49\x8B\x42\x20\x49\x39\x43\x38\x75\x0B\x41\x80\xBB\x94\x01\x00\x00\x00\x75\x01\xC3"
local invulnerabilityScopeInstructions = "\x41\x80\x7A\x38\x00\x75\x1C\x49\x3B\x0A\x0F\x85\x26\x02\x00\x00\x49\x8B\x42\x08\x48\x39\x41\x10\x0F\x85\x18\x02\x00\x00\xE9\xDD\x00\x00\x00\x49\x8B\x42\x48\x48\x85\xC0\x0F\x84\x06\x02\x00\x00\x4D\x8B\x5A\x50\x4C\x39\x19\x0F\x85\xF9\x01\x00\x00\x48\x39\x81\xC8\x04\x00\x00\x0F\x85\xEC\x01\x00\x00\x4D\x8B\x5A\x70\x4C\x39\x59\x38\x0F\x85\xDE\x01\x00\x00\x4D\x8B\x5A\x68\x4C\x39\x99\xD0\x04\x00\x00\x0F\x85\xCD\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xC2\x01\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\xB5\x01\x00\x00\x80\xB9\x7C\x02\x00\x00\x01\x0F\x85\xA8\x01\x00\x00\x4D\x8B\x5A\x60\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\x97\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x8C\x01\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x3F\x01\x00\x00\x49\x39\xC3\x0F\x85\x36\x01\x00\x00\x48\x85\xD2\x0F\x84\x2D\x01\x00\x00\xF7\x42\x54\x00\x40\x03\x00\x0F\x85\x20\x01\x00\x00\x48\x8B\x42\x20\x48\x85\xC0\x0F\x84\x13\x01\x00\x00\x48\x39\xC8\x0F\x84\x0A\x01\x00\x00\x48\x83\xEC\x58\x48\x89\x4C\x24\x20\x48\x89\x54\x24\x28\x4C\x89\x44\x24\x30\x4C\x89\x4C\x24\x38\x4C\x89\x54\x24\x40\xF0\x41\xFF\x42\x40\x49\x8B\x4A\x10\xF6\x01\x01\x74\x04\x41\xFF\x52\x30\x4C\x8B\x54\x24\x40\x49\x8B\x4A\x18\xF6\x01\x01\x74\x04\x41\xFF\x52\x30\x4C\x8B\x54\x24\x40\x49\x8B\x52\x10\x48\x8B\x12\x4C\x8B\x44\x24\x28\x4D\x8B\x40\x20\xB9\x06\x00\x00\x00\x41\xFF\x52\x20\x48\x85\xC0\x0F\x84\x80\x00\x00\x00\x48\x3B\x44\x24\x20\x74\x79\x49\x89\xC0\x4C\x8B\x54\x24\x40\x49\x8B\x52\x18\x48\x8B\x12\xB9\x02\x00\x00\x00\x41\xFF\x52\x20\xA9\x0E\x00\x00\x00\x74\x5A\x4C\x8B\x54\x24\x40\x49\x8B\x52\x10\x48\x8B\x12\x4C\x8B\x44\x24\x28\x4D\x8B\x40\x20\xB9\x04\x00\x00\x00\x41\xFF\x52\x20\x89\x44\x24\x48\x4C\x8B\x54\x24\x40\x48\x8B\x4C\x24\x20\x31\xD2\x41\xFF\x52\x28\x3B\x44\x24\x48\x74\x22\x48\x8B\x54\x24\x28\x81\x4A\x54\x00\x00\x01\x00\xC7\x42\x58\x00\x00\x00\x00\x4C\x8B\x54\x24\x40\xF0\x41\xFF\x4A\x40\x48\x83\xC4\x58\xC3\x48\x8B\x4C\x24\x20\x48\x8B\x54\x24\x28\x4C\x8B\x44\x24\x30\x4C\x8B\x4C\x24\x38\x4C\x8B\x54\x24\x40\xF0\x41\xFF\x4A\x40\x48\x83\xC4\x58"
local invulnerabilityKey='enemyInvulnerability'

local function invulnerabilitySite(rva,signature,member)
  local original={table.unpack(signature,1,5)}
  local function invulnerabilityCode(context,cave,entry)
    local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x300)
      ..invulnerabilityScopeInstructions..string.char(table.unpack(original))
    code=code..makeJump(cave+#code,entry+#original)
    need(#code&lt;=0x300,'Invulnerability code exceeds its reserved range.','無敵処理が確保範囲を超えています。')
    local teamRva=member and 0xB46790 or 0xB7F680
    return code..string.rep('\0',0x300-#code)..string.pack('&lt;I8I8I8I8I8I8I8I8I8',
      context.player,context.identity,context.base+0x5CC8518,context.base+0x5CBFEE8,
      context.base+0x1F70,context.base+teamRva,context.base+0x5D0020,member and 1 or 0,0)
      ..packMembers(member and activeMemberScope() or nil)..string.pack('&lt;I8',context.runner)
  end
  return entryFeature(invulnerabilityKey,rva,original,signature,soloContext,invulnerabilityCode,nil,40,function(cave)
    need(readInteger(cave+0x340)==0,
      'A damage check is finishing. Retry cleanup.','攻撃判定が完了してから解除を再試行します。')
  end,0x348)
end

local playerInvulnerability=invulnerabilitySite(0xB7CC20,
  {0x48,0x89,0x5C,0x24,0x10,0x48,0x89,0x74,0x24,0x18,0x57,0x48,0x83,0xEC,0x30,0x80},false)
local memberInvulnerability=invulnerabilitySite(0xDC0C50,
  {0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x30,0x80,0x3D,0x49,0x78,0x24,0x05},true)
-- PlayerSurvival.DoHardLand applies hardLandStatusEffect without an enemy attacker.
-- Protect that independent path under the existing invulnerability checkbox.
local fallSignature={0x40,0x53,0x48,0x83,0xEC,0x30,0x80,0x3D,0xBB,0xA6,0x46,0x05,0,0x48,0x8B,0xD9}
local fallOriginal={table.unpack(fallSignature,1,6)}
local function fallProtectionCode(context,cave,entry)
  local survival=follow(context.player,0x3C8)
  local identity=unityIdentity(survival)
  need(identity and follow(survival,0x160)==context.player,
    'Player survival data is unavailable.','プレイヤーの生存処理を取得できません。')
  local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x100)
    ..fallProtectionInstructions..string.char(table.unpack(fallOriginal))
  code=code..makeJump(cave+#code,entry+#fallOriginal)
  need(#code&lt;=0x100,'Fall protection exceeds its reserved range.','落下保護が確保範囲を超えています。')
  return code..string.rep('\0',0x100-#code)
    ..string.pack('&lt;I8I8I8I8I8',survival,identity,context.player,context.identity,context.runner)
end
local fallProtection=entryFeature(invulnerabilityKey,0xB9CE60,fallOriginal,fallSignature,
  soloContext,fallProtectionCode,2)
local invulnerability=groupedEntryFeatures({playerInvulnerability,memberInvulnerability,fallProtection})
invulnerability.memberControl=memberInvulnerability.memberControl
ASKA.F[invulnerabilityKey]=invulnerability

end
do
local one_hitScopeInstructions = "\x9C\x48\x81\xEC\xD0\x00\x00\x00\x48\x89\x44\x24\x20\x48\x89\x4C\x24\x28\x48\x89\x54\x24\x30\x4C\x89\x44\x24\x38\x4C\x89\x4C\x24\x40\x4C\x89\x54\x24\x48\x4C\x89\x5C\x24\x50\x0F\x29\x44\x24\x60\x0F\x29\x4C\x24\x70\x0F\x29\x94\x24\x80\x00\x00\x00\x0F\x29\x9C\x24\x90\x00\x00\x00\x0F\x29\xA4\x24\xA0\x00\x00\x00\x0F\x29\xAC\x24\xB0\x00\x00\x00\x49\x3B\x3A\x0F\x84\x19\x02\x00\x00\x0F\x57\xED\x0F\x2F\xF5\x0F\x86\x0D\x02\x00\x00\x0F\x2F\xC5\x0F\x86\x04\x02\x00\x00\x48\x89\xD8\x41\x80\x7A\x38\x00\x74\x03\x48\x8B\x03\x48\x85\xC0\x0F\x84\xEE\x01\x00\x00\xF7\x40\x54\x00\xCC\x03\x00\x0F\x85\xE1\x01\x00\x00\x48\x83\x78\x20\x00\x0F\x84\xD6\x01\x00\x00\x48\x89\x84\x24\xC0\x00\x00\x00\xF0\x41\xFF\x42\x40\x49\x8B\x4A\x10\xF6\x01\x01\x74\x04\x41\xFF\x52\x30\x4C\x8B\x54\x24\x48\x49\x8B\x52\x10\x48\x8B\x12\x4C\x8B\x84\x24\xC0\x00\x00\x00\x4D\x8B\x40\x20\xB9\x06\x00\x00\x00\x41\xFF\x52\x20\x4C\x8B\x54\x24\x48\x48\x85\xC0\x0F\x84\x83\x01\x00\x00\x48\x39\xF8\x0F\x84\x7A\x01\x00\x00\x48\x89\x84\x24\xC8\x00\x00\x00\x49\x3B\x02\x75\x13\x49\x8B\x4A\x08\x48\x39\x48\x10\x0F\x85\x5F\x01\x00\x00\xE9\xDC\x00\x00\x00\x48\x89\xC1\x49\x8B\x42\x48\x48\x85\xC0\x0F\x84\x4A\x01\x00\x00\x4D\x8B\x5A\x50\x4C\x39\x19\x0F\x85\x3D\x01\x00\x00\x48\x39\x81\xC8\x04\x00\x00\x0F\x85\x30\x01\x00\x00\x4D\x8B\x5A\x70\x4C\x39\x59\x38\x0F\x85\x22\x01\x00\x00\x4D\x8B\x5A\x68\x4C\x39\x99\xD0\x04\x00\x00\x0F\x85\x11\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\x06\x01\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\xF9\x00\x00\x00\x80\xB9\x7C\x02\x00\x00\x01\x0F\x85\xEC\x00\x00\x00\x4D\x8B\x5A\x60\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\xDB\x00\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\xD0\x00\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x83\x00\x00\x00\x49\x39\xC3\x75\x7E\x49\x8B\x4A\x18\xF6\x01\x01\x74\x04\x41\xFF\x52\x30\x4C\x8B\x54\x24\x48\x49\x8B\x52\x18\x48\x8B\x12\x49\x89\xF8\xB9\x02\x00\x00\x00\x41\xFF\x52\x20\xA9\x0E\x00\x00\x00\x74\x52\x4C\x8B\x54\x24\x48\x49\x8B\x52\x18\x48\x8B\x12\x49\x89\xF8\xB9\x04\x00\x00\x00\x41\xFF\x52\x20\x89\x44\x24\x58\x4C\x8B\x54\x24\x48\x49\x8B\x52\x18\x48\x8B\x12\x4C\x8B\x84\x24\xC8\x00\x00\x00\xB9\x04\x00\x00\x00\x41\xFF\x52\x20\x3B\x44\x24\x58\x74\x13\xF3\x0F\x5F\x74\x24\x60\x48\x8B\x84\x24\xC0\x00\x00\x00\xF3\x0F\x11\x70\x58\x4C\x8B\x54\x24\x48\xF0\x41\xFF\x4A\x40\x0F\x28\x44\x24\x60\x0F\x28\x4C\x24\x70\x0F\x28\x94\x24\x80\x00\x00\x00\x0F\x28\x9C\x24\x90\x00\x00\x00\x0F\x28\xA4\x24\xA0\x00\x00\x00\x0F\x28\xAC\x24\xB0\x00\x00\x00\x48\x8B\x44\x24\x20\x48\x8B\x4C\x24\x28\x48\x8B\x54\x24\x30\x4C\x8B\x44\x24\x38\x4C\x8B\x4C\x24\x40\x4C\x8B\x5C\x24\x50\x48\x81\xC4\xD0\x00\x00\x00\x9D\x41\x5A"
local oneHitKey='oneHitKill'

local function damageCommitSite(rva,signature,creature)
  local original={table.unpack(signature,1,7)}
  local function damageCommitCode(context,cave,entry)
    local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x300)
      ..one_hitScopeInstructions..string.char(table.unpack(original))
    code=code..makeJump(cave+#code,entry+#original)
    need(#code&lt;=0x300,'Damage code exceeds its reserved range.','ダメージ処理が確保範囲を超えています。')
    return code..string.rep('\0',0x300-#code)..string.pack('&lt;I8I8I8I8I8I8I8I8I8',
      context.player,context.identity,context.base+0x5CC8518,context.base+0x5CBFEE8,
      context.base+0x1F70,0,context.base+0x5D0020,creature and 1 or 0,0)
      ..packMembers(activeMemberScope())..string.pack("&lt;I8",context.runner)
  end
  return entryFeature(oneHitKey,rva,original,signature,soloContext,damageCommitCode,4,40,function(cave)
    need(readInteger(cave+0x340)==0,
      'A damage check is finishing. Retry cleanup.','ダメージ判定が完了してから解除を再試行します。')
  end,0x348)
end

local damageSites={
  damageCommitSite(0xB41629,{0xF3,0x0F,0x5C,0xC6,0x48,0x8B,0xCE,0x4C,0x8B,0x80,0x90,0x01,0,0},false),
  damageCommitSite(0xBE3E70,{0xF3,0x0F,0x5C,0xFE,0x48,0x85,0xC0,0x0F,0x84,0x00,0x05,0,0},true),
}
local oneHit=groupedEntryFeatures(damageSites)
oneHit.memberControls={damageSites[1].memberControl,damageSites[2].memberControl}
ASKA.F[oneHitKey]=oneHit

end
do
local stealthDetectionInstructions = "\x9C\x41\x53\x50\x52\x39\xC7\x0F\x84\x05\x01\x00\x00\x48\x8B\x54\x24\x58\x49\x3B\x12\x75\x13\x49\x8B\x42\x08\x48\x39\x42\x10\x0F\x85\xED\x00\x00\x00\xE9\xD3\x00\x00\x00\x48\x85\xD2\x0F\x84\xDF\x00\x00\x00\x49\x8B\x42\x40\x48\x85\xC0\x0F\x84\xD2\x00\x00\x00\x4D\x8B\x5A\x48\x4C\x39\x1A\x0F\x85\xC5\x00\x00\x00\x48\x39\x82\xC8\x04\x00\x00\x0F\x85\xB8\x00\x00\x00\x4D\x8B\x5A\x68\x4C\x39\x5A\x38\x0F\x85\xAA\x00\x00\x00\x4D\x8B\x5A\x60\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x99\x00\x00\x00\x48\x83\x7A\x10\x00\x0F\x84\x8E\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x81\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x75\x78\x4D\x8B\x5A\x58\x4C\x39\x98\xE8\x01\x00\x00\x75\x6B\x41\x80\x7B\x48\x00\x75\x64\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x1A\x49\x39\xC3\x75\x15\x5A\x58\x41\x5B\x9D\x41\x5A\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5A\x58\x41\x5B\x9D\x41\x5A"
local stealthScopeInstructions = "\x49\x3B\x12\x75\x13\x49\x8B\x42\x08\x48\x39\x42\x10\x0F\x85\xAE\x01\x00\x00\xE9\xE6\x00\x00\x00\x48\x85\xD2\x0F\x84\xA0\x01\x00\x00\x49\x8B\x42\x40\x48\x85\xC0\x0F\x84\x93\x01\x00\x00\x4D\x8B\x5A\x48\x4C\x39\x1A\x0F\x85\x86\x01\x00\x00\x48\x39\x82\xC8\x04\x00\x00\x0F\x85\x79\x01\x00\x00\x4D\x8B\x5A\x68\x4C\x39\x5A\x38\x0F\x85\x6B\x01\x00\x00\x4D\x8B\x5A\x60\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x5A\x01\x00\x00\x48\x83\x7A\x10\x00\x0F\x84\x4F\x01\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x42\x01\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x35\x01\x00\x00\x4D\x8B\x5A\x58\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\x24\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x19\x01\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xCC\x00\x00\x00\x49\x39\xC3\x0F\x85\xC3\x00\x00\x00\x48\x89\xC8\x41\x80\x7A\x30\x01\x74\x04\x48\x8B\x41\x50\x48\x85\xC0\x0F\x84\xAC\x00\x00\x00\x48\x39\xD0\x0F\x84\xA3\x00\x00\x00\x48\x83\xEC\x58\x48\x89\x4C\x24\x20\x48\x89\x54\x24\x28\x4C\x89\x44\x24\x30\x4C\x89\x4C\x24\x38\x4C\x89\x54\x24\x40\x48\x89\x44\x24\x48\xF0\x41\xFF\x42\x38\x49\x8B\x4A\x10\xF6\x01\x01\x74\x04\x41\xFF\x52\x20\x4C\x8B\x54\x24\x40\x49\x8B\x52\x10\x48\x8B\x12\x4C\x8B\x44\x24\x48\xB9\x04\x00\x00\x00\x41\xFF\x52\x18\x89\x44\x24\x50\x4C\x8B\x54\x24\x40\x49\x8B\x52\x10\x48\x8B\x12\x4C\x8B\x44\x24\x28\xB9\x04\x00\x00\x00\x41\xFF\x52\x18\x4C\x8B\x54\x24\x40\xF0\x41\xFF\x4A\x38\x3B\x44\x24\x50\x48\x8B\x4C\x24\x20\x48\x8B\x54\x24\x28\x4C\x8B\x44\x24\x30\x4C\x8B\x4C\x24\x38\x48\x8D\x64\x24\x58\x74\x0E\x41\x80\x7A\x30\x02\x75\x04\x31\xD2\xEB\x03\x31\xC0\xC3"
local stealthKey='stealthMode'

local function targetingSite(rva,length,signature,mode,interior)
  local original={table.unpack(signature,1,length)}
  local function codeFor(context,cave,entry)
    local loadControl=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    local code=loadControl
    if mode==1 then
      -- The original getter tail-calls UnwindTargetContexts with the observer and raw target.
      code=code..string.char(0x48,0x83,0xEC,0x38,0x48,0x89,0x4C,0x24,0x20,0xF0,0x41,0xFF,0x42,0x38)
      local unwind=makeJump(cave+#code,context.base+0x128DC40)
      code=code..string.char(0xE8)..unwind:sub(2)..loadControl
        ..string.char(0xF0,0x41,0xFF,0x4A,0x38,0x48,0x8B,0x4C,0x24,0x20,0x48,0x8B,0xD0,0x48,0x83,0xC4,0x38)
        ..stealthScopeInstructions..string.char(0x48,0x8B,0xC2,0xC3)
    elseif mode==3 then
      -- Damage registers the caller as a threat even when it was already cached.
      code=code..string.char(0x48,0x8B,0xCF,0x48,0x8B,0xD6)
      local callAt=cave+#code
      local normal=string.char(table.unpack(original))
      local branch=string.char(0x85,0xC0,0x75,0x05)
      local guardAt=callAt+5+#branch+5+#normal+5
      code=code..string.char(0xE8)..makeJump(callAt,guardAt):sub(2)..branch
      code=code..makeJump(cave+#code,context.base+0x84B2C7)..normal
      code=code..makeJump(cave+#code,entry+#original)
        ..stealthScopeInstructions..string.char(0xB8,1,0,0,0,0xC3)
    else
      code=code..stealthScopeInstructions..string.char(table.unpack(original))
      code=code..makeJump(cave+#code,entry+#original)
    end
    need(#code&lt;=0x200,'Targeting code exceeds its reserved range.','索敵処理が確保範囲を超えています。')
    return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8I8I8I8I8',
      context.player,context.identity,context.base+0x5CBFEE8,context.base+0x1F70,
      context.base+0x5D0020,0,mode,0)
      ..packMembers(activeMemberScope())..string.pack("&lt;I8",context.runner)
  end
  return entryFeature(stealthKey,rva,original,signature,soloContext,codeFor,interior,40,function(cave)
    need(readInteger(cave+0x238)==0,'A targeting check is finishing. Retry cleanup.','索敵判定の完了後に解除を再試行します。')
  end,0x240)
end

local detectionSignature={0x48,0x8B,0x7C,0x24,0x30,0x48,0x85,0xFF,0x74,0x78}
local detectionOriginal={table.unpack(detectionSignature,1,5)}
local function detectionCode(context,cave,entry)
  local guard=stealthDetectionInstructions
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+0x200)
    ..guard:sub(1,-16)..string.pack('&lt;I8',context.base+0x8494C1)..guard:sub(-7)
    ..string.char(table.unpack(detectionOriginal))
  code=code..makeJump(cave+#code,entry+#detectionOriginal)
  need(#code&lt;=0x200,'Target detection code exceeds its reserved range.','索敵処理が確保範囲を超えています。')
  return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8',context.player,context.identity)
    ..string.rep('\0',0x30)..packMembers(activeMemberScope())..string.pack('&lt;I8',context.runner)
end

local stealthSites={
  targetingSite(0x848720,6,{0x40,0x55,0x53,0x57,0x41,0x56,0x48,0x8D,0x6C,0x24,0xB8},0,2),
  targetingSite(0x84A9F0,5,{0x48,0x89,0x74,0x24,0x20,0x57,0x48,0x83,0xEC,0x20},0),
  targetingSite(0x84B6B0,5,{0x48,0x89,0x5C,0x24,0x10,0x48,0x89,0x74,0x24,0x18},0),
  targetingSite(0x84BE23,5,{0xE9,0x18,0x1E,0xA4,0x00},1),
  targetingSite(0x84C110,5,{0x48,0x89,0x5C,0x24,0x08,0x48,0x89,0x74,0x24,0x10},2),
  entryFeature(stealthKey,0x849380,detectionOriginal,detectionSignature,soloContext,detectionCode,nil,40,nil,0x240),
  targetingSite(0x84B27B,7,{0x48,0x8B,0x4F,0x78,0x48,0x85,0xC9,0x74,0x53,0x4C,0x8B,0x0D},3,4),
}
local stealth=groupedEntryFeatures(stealthSites)
stealth.memberControls={}
for _,site in ipairs(stealthSites) do stealth.memberControls[#stealth.memberControls+1]=site.memberControl end
ASKA.F[stealthKey]=stealth

end
;(function()
local character_editScopeInstructions = "\x48\x3B\x1E\x0F\x85\x67\x03\x00\x00\x48\x8B\x46\x08\x48\x39\x43\x10\x0F\x85\x59\x03\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x20\x0F\x85\x44\x03\x00\x00\x48\x8B\x46\x10\x48\x39\x43\x38\x0F\x85\x2F\x03\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\x22\x03\x00\x00\x48\x8B\x56\x38\x48\x85\xD2\x0F\x84\x15\x03\x00\x00\x48\x8B\x4E\x40\x48\x39\x4A\x10\x0F\x85\x07\x03\x00\x00\x48\x39\x42\x38\x0F\x85\xFD\x02\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\xF0\x02\x00\x00\x4C\x8B\x46\x48\x48\x39\xDA\x75\x12\x4C\x39\x82\xC8\x03\x00\x00\x0F\x85\xDA\x02\x00\x00\xE9\xBE\x00\x00\x00\x48\x8B\x46\x70\x48\x39\x02\x0F\x85\xC8\x02\x00\x00\x4C\x39\x82\x90\x04\x00\x00\x0F\x85\xBB\x02\x00\x00\x48\x8B\x86\x80\x00\x00\x00\x48\x39\x82\x28\x06\x00\x00\x0F\x85\xA7\x02\x00\x00\x48\x8B\x46\x78\x48\x39\x82\xD0\x04\x00\x00\x0F\x85\x96\x02\x00\x00\x48\x8B\x4E\x60\x48\x39\x8A\xC8\x04\x00\x00\x0F\x85\x85\x02\x00\x00\x48\x8B\x46\x68\x48\x39\x83\x90\x02\x00\x00\x0F\x85\x74\x02\x00\x00\x80\x78\x48\x00\x0F\x85\x6A\x02\x00\x00\x50\x48\x8B\x40\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x20\x02\x00\x00\x48\x39\xC8\x0F\x85\x17\x02\x00\x00\x4D\x85\xC0\x0F\x84\x0E\x02\x00\x00\x48\x8B\x46\x50\x49\x39\x40\x10\x0F\x85\x00\x02\x00\x00\x49\x39\x90\x60\x01\x00\x00\x0F\x85\xF3\x01\x00\x00\x66\x41\x81\xB8\x6B\x01\x00\x00\x01\x01\x0F\x85\xE3\x01\x00\x00\x8B\x46\x24\x3D\x00\x00\x03\x00\x0F\x84\xA9\x01\x00\x00\x48\x8B\x4E\x58\x48\x85\xC9\x0F\x84\xC8\x01\x00\x00\x3D\x00\x00\x02\x00\x72\x1A\x49\xB9\xBB\xAA\x99\x88\x77\x66\x55\x44\x48\x83\xEC\x20\x41\xFF\xD1\x48\x83\xC4\x20\xE9\xAE\x01\x00\x00\x3D\x00\x00\x01\x00\x73\x46\x81\x7E\x30\x9D\x08\x00\x00\x0F\x84\x97\x00\x00\x00\x81\x7E\x30\x9F\x08\x00\x00\x0F\x84\xA4\x00\x00\x00\x81\x7E\x30\x9B\x08\x00\x00\x75\x14\x48\x39\xDA\x0F\x84\x74\x01\x00\x00\x3D\x10\x03\x00\x00\x0F\x85\x69\x01\x00\x00\x49\x39\x0C\x00\x0F\x85\x5F\x01\x00\x00\xE9\x99\x00\x00\x00\x2D\x00\x00\x01\x00\x4C\x8B\x8A\x40\x02\x00\x00\x4D\x85\xC9\x0F\x84\x45\x01\x00\x00\x4D\x8B\x49\x48\x4D\x85\xC9\x0F\x84\x38\x01\x00\x00\x41\x3B\x41\x18\x0F\x83\x2E\x01\x00\x00\x44\x8B\x56\x34\x45\x39\x51\x1C\x0F\x85\x20\x01\x00\x00\x4D\x8B\x49\x10\x4D\x85\xC9\x0F\x84\x13\x01\x00\x00\x41\x3B\x41\x18\x0F\x83\x09\x01\x00\x00\x49\x39\x4C\xC1\x20\x0F\x85\xFE\x00\x00\x00\xEB\x3B\x3D\x60\x01\x00\x00\x0F\x85\xF1\x00\x00\x00\x48\x39\x8A\x60\x01\x00\x00\x0F\x85\xE4\x00\x00\x00\xEB\x21\x48\x39\xDA\x0F\x84\xD9\x00\x00\x00\x3D\x58\x05\x00\x00\x0F\x85\xCE\x00\x00\x00\x48\x39\x8A\x58\x05\x00\x00\x0F\x85\xC1\x00\x00\x00\x8B\x46\x30\x39\x41\x10\x0F\x85\xB5\x00\x00\x00\x3D\x98\x08\x00\x00\x75\x0D\x48\x39\x8A\x50\x01\x00\x00\x0F\x85\xA1\x00\x00\x00\x48\x8B\x01\x4C\x8B\x4E\x18\x4C\x39\x88\x88\x01\x00\x00\x0F\x85\x8D\x00\x00\x00\x8B\x56\x28\x39\x51\x28\x0F\x85\x81\x00\x00\x00\xF3\x0F\x10\x4E\x2C\x8B\x56\x2C\x81\xE2\x00\x00\x80\x7F\x81\xFA\x00\x00\x80\x7F\x74\x6B\x80\x79\x48\x00\x75\x06\x0F\x2E\x49\x40\x72\x5F\x80\x79\x49\x00\x75\x08\x0F\x2E\x49\x44\x7A\x53\x77\x51\x4C\x8B\x80\x90\x01\x00\x00\x48\x83\xEC\x20\x41\xFF\xD1\x48\x83\xC4\x20\x48\x8B\x4E\x58\x8B\x41\x28\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x33\x81\x7E\x30\x01\x00\x00\x70\x75\x23\x48\x39\x56\x58\x75\x1D\x8B\x46\x28\x39\x82\xB8\x00\x00\x00\x75\x12\x8B\x46\x2C\x3D\x00\x00\x80\x7F\x73\x08\x89\x82\xB8\x00\x00\x00\xEB\xC8\xC7\x46\x20\x04\x00\x00\x00"
local deedsTransactionInstructions = "\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x60\x48\x89\xCE\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x3C\x0F\x85\x9F\x02\x00\x00\x48\x8B\x3E\x48\x85\xFF\x0F\x84\x8C\x02\x00\x00\x48\x8B\x46\x08\x48\x85\xC0\x0F\x84\x7F\x02\x00\x00\x48\x39\x47\x10\x0F\x85\x75\x02\x00\x00\x80\xBF\xA8\x00\x00\x00\x01\x0F\x85\x68\x02\x00\x00\x48\x8B\x86\x80\x00\x00\x00\x48\x85\xC0\x0F\x84\x58\x02\x00\x00\x48\x39\x87\xB0\x00\x00\x00\x0F\x85\x4B\x02\x00\x00\x48\x8B\x5E\x10\x48\x85\xDB\x0F\x84\x3E\x02\x00\x00\x48\x8B\x46\x18\x48\x85\xC0\x0F\x84\x31\x02\x00\x00\x48\x39\x43\x10\x0F\x85\x27\x02\x00\x00\x8B\x86\xC0\x00\x00\x00\x39\x43\x18\x0F\x85\x18\x02\x00\x00\x48\x8B\x43\x20\x48\x85\xC0\x0F\x84\x0B\x02\x00\x00\x83\x78\x18\x06\x0F\x87\x01\x02\x00\x00\x48\x8B\x86\x88\x00\x00\x00\x48\x39\x47\x40\x0F\x85\xF0\x01\x00\x00\x48\x85\xC0\x0F\x84\xE7\x01\x00\x00\x8B\x96\x98\x00\x00\x00\x3B\x50\x18\x0F\x83\xD8\x01\x00\x00\x8B\x8E\x9C\x00\x00\x00\x39\x48\x1C\x0F\x85\xC9\x01\x00\x00\x48\x8B\x40\x10\x48\x3B\x86\x90\x00\x00\x00\x0F\x85\xB8\x01\x00\x00\x48\x85\xC0\x0F\x84\xAF\x01\x00\x00\x3B\x50\x18\x0F\x83\xA6\x01\x00\x00\x48\x39\x5C\xD0\x20\x0F\x85\x9B\x01\x00\x00\x48\x8B\x46\x20\x48\x39\x43\x48\x0F\x85\x8D\x01\x00\x00\x48\x85\xC0\x0F\x84\x84\x01\x00\x00\x8B\x56\x30\x3B\x50\x18\x0F\x83\x78\x01\x00\x00\x8B\x8E\xA0\x00\x00\x00\x39\x48\x1C\x0F\x85\x69\x01\x00\x00\x48\x8B\x40\x10\x48\x3B\x46\x28\x0F\x85\x5B\x01\x00\x00\x48\x85\xC0\x0F\x84\x52\x01\x00\x00\x3B\x50\x18\x0F\x83\x49\x01\x00\x00\x4C\x8B\x64\xD0\x20\x4C\x3B\xA6\xB0\x00\x00\x00\x0F\x85\x37\x01\x00\x00\x4D\x85\xE4\x0F\x84\x2E\x01\x00\x00\x48\x8B\x86\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x1E\x01\x00\x00\x49\x39\x04\x24\x0F\x85\x14\x01\x00\x00\x8B\x46\x38\x85\xC0\x0F\x88\x09\x01\x00\x00\x41\x3B\x44\x24\x14\x0F\x8F\xFE\x00\x00\x00\x89\x44\x24\x34\x8B\x46\x30\x89\x44\x24\x30\xE8\x05\x01\x00\x00\x84\xC0\x0F\x84\xE6\x00\x00\x00\x8B\x44\x24\x38\x89\x46\x40\x3B\x46\x34\x0F\x85\xD6\x00\x00\x00\x3B\x46\x38\x0F\x84\xBB\x00\x00\x00\x48\x89\xF9\x48\x89\xDA\x45\x31\xC0\xFF\x56\x58\x44\x0F\xB6\xE8\x48\x8D\x44\x24\x3C\x48\x89\x44\x24\x20\x48\xC7\x44\x24\x28\x00\x00\x00\x00\x48\x89\xF9\x48\x89\xDA\x4C\x8D\x44\x24\x30\x4C\x8D\x4C\x24\x34\xFF\x56\x50\x84\xC0\x0F\x84\x8F\x00\x00\x00\xE8\xA1\x00\x00\x00\x84\xC0\x74\x7D\x8B\x44\x24\x38\x89\x46\x40\x48\x89\xF9\x48\x89\xDA\x45\x31\xC0\xFF\x56\x58\x44\x0F\xB6\xF0\x45\x85\xED\x75\x16\x45\x85\xF6\x74\x11\x48\x89\xF9\x48\x89\xDA\x45\x31\xC0\x45\x31\xC9\xFF\x56\x60\xEB\x2D\x45\x85\xED\x74\x28\x45\x85\xF6\x75\x23\x48\x8B\x43\x20\x80\x78\x48\x00\x75\x0C\x48\x89\xF9\x48\x89\xDA\x45\x31\xC0\xFF\x56\x68\x48\x89\xF9\x48\x8B\x53\x20\x45\x31\xC0\xFF\x56\x70\xE8\x39\x00\x00\x00\x84\xC0\x74\x15\x8B\x44\x24\x38\x89\x46\x40\x3B\x46\x38\x75\x09\xC7\x46\x3C\x03\x00\x00\x00\xEB\x10\xC7\x46\x3C\x05\x00\x00\x00\xEB\x07\xC7\x46\x3C\x04\x00\x00\x00\x48\x83\xC4\x60\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\x48\x83\xEC\x38\x48\x89\xF9\x48\x89\xDA\x4C\x8D\x44\x24\x70\x4C\x8D\x4C\x24\x78\x48\x8D\x44\x24\x7C\x48\x89\x44\x24\x20\x48\xC7\x44\x24\x28\x00\x00\x00\x00\xFF\x56\x48\x48\x83\xC4\x38\xC3"
local deedsDispatchInstructions = "\x48\x3B\x1E\x75\x65\x48\x8B\x46\x08\x48\x39\x43\x10\x75\x5B\x48\x8B\x46\x10\x48\x39\x43\x38\x75\x51\x83\xB8\x80\x01\x00\x00\x01\x75\x48\x83\xBE\x3C\x08\x00\x00\x01\x75\x1B\x48\x8D\x8E\x00\x08\x00\x00\x48\x83\xEC\x20\x48\xB8\x88\x77\x66\x55\x44\x33\x22\x11\xFF\xD0\x48\x83\xC4\x20\x83\xBE\x3C\x09\x00\x00\x01\x75\x1B\x48\x8D\x8E\x00\x09\x00\x00\x48\x83\xEC\x20\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x48\x83\xC4\x20"
local itemKeyRequestInstructions = "\x53\x56\x57\x41\x54\x48\x83\xEC\x28\x48\x89\xCE\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x3C\x0F\x85\x6C\x01\x00\x00\x48\x8B\x1E\x48\x85\xDB\x0F\x84\x59\x01\x00\x00\x48\x8B\x46\x08\x48\x85\xC0\x0F\x84\x4C\x01\x00\x00\x48\x39\x43\x10\x0F\x85\x42\x01\x00\x00\x48\x8B\x7E\x10\x48\x85\xFF\x0F\x84\x35\x01\x00\x00\x48\x39\x3B\x0F\x85\x2C\x01\x00\x00\x8B\x46\x44\x85\xC0\x74\x6D\x83\xF8\x01\x74\x58\x83\xF8\x03\x74\x43\x83\xF8\x04\x74\x2E\x83\xF8\x05\x74\x19\x83\xF8\x06\x0F\x85\x08\x01\x00\x00\x4C\x8B\x9F\xE8\x01\x00\x00\x4C\x8B\x87\xF0\x01\x00\x00\xEB\x4E\x4C\x8B\x9F\xC8\x01\x00\x00\x4C\x8B\x87\xD0\x01\x00\x00\xEB\x3E\x4C\x8B\x9F\xD8\x01\x00\x00\x4C\x8B\x87\xE0\x01\x00\x00\xEB\x2E\x4C\x8B\x9F\x18\x02\x00\x00\x4C\x8B\x87\x20\x02\x00\x00\xEB\x1E\x4C\x8B\x9F\xF8\x01\x00\x00\x4C\x8B\x87\x00\x02\x00\x00\xEB\x0E\x4C\x8B\x9F\xC8\x02\x00\x00\x4C\x8B\x87\xD0\x02\x00\x00\x4D\x85\xDB\x0F\x84\xA1\x00\x00\x00\x4C\x3B\x5E\x18\x0F\x85\x97\x00\x00\x00\x4C\x3B\x46\x20\x0F\x85\x8D\x00\x00\x00\x48\x8B\x56\x28\x48\x85\xD2\x0F\x84\x80\x00\x00\x00\x48\x8B\x46\x50\x48\x85\xC0\x74\x77\x48\x39\x10\x75\x72\x83\x7A\x10\x04\x75\x6C\x48\xB8\x6E\x00\x61\x00\x6D\x00\x65\x00\x48\x39\x42\x14\x75\x5C\x48\x8B\x7E\x30\x48\x85\xFF\x74\x53\x83\x7E\x38\x00\x78\x4D\x48\x89\xD9\x41\xFF\xD3\x48\x85\xC0\x74\x42\x8B\x48\x10\x85\xC9\x78\x3B\x89\x4E\x40\x3B\x4E\x38\x77\x2A\x4C\x8D\x60\x14\x85\xC9\x74\x19\x41\x0F\xB7\x14\x24\x66\x85\xD2\x74\x21\x66\x89\x17\x49\x83\xC4\x02\x48\x83\xC7\x02\xFF\xC9\xEB\xE3\xC7\x46\x3C\x03\x00\x00\x00\xEB\x10\xC7\x46\x3C\x05\x00\x00\x00\xEB\x07\xC7\x46\x3C\x04\x00\x00\x00\x48\x83\xC4\x28\x41\x5C\x5F\x5E\x5B\xC3"
local itemKeyBatchInstructions = "\x83\x79\x44\x02\x74\x0C\x48\xB8\xAA\x99\x88\x77\x66\x55\x44\x33\xFF\xE0\x53\x56\x57\x41\x54\x48\x83\xEC\x28\x48\x89\xCE\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x3C\x0F\x85\xB5\x00\x00\x00\x48\x8B\x1E\x48\x85\xDB\x0F\x84\x8D\x00\x00\x00\x83\x7E\x14\x58\x0F\x85\x83\x00\x00\x00\x8B\x7E\x0C\x8B\x46\x08\x85\xC0\x78\x79\x39\xC7\x77\x75\x48\x6B\xC0\x58\x48\x01\xD8\x72\x6C\x48\x3B\x46\x18\x75\x66\x44\x8B\x66\x10\x45\x85\xE4\x7E\x5D\x41\x83\xFC\x20\x77\x57\x3B\x7E\x08\x74\x64\x89\xF8\x48\x6B\xC0\x58\x48\x8D\x0C\x03\x8B\x41\x3C\x83\xF8\x03\x74\x20\x83\xF8\x01\x75\x33\x48\xB8\xAA\x99\x88\x77\x66\x55\x44\x33\xFF\xD0\x89\xF8\x48\x6B\xC0\x58\x8B\x44\x03\x3C\x83\xF8\x03\x75\x18\xFF\xC7\x89\x7E\x0C\x41\xFF\xCC\x75\xBF\x3B\x7E\x08\x74\x23\xC7\x46\x3C\x01\x00\x00\x00\xEB\x24\x89\x7E\x40\x83\xF8\x05\x74\x09\xC7\x46\x3C\x04\x00\x00\x00\xEB\x13\xC7\x46\x3C\x05\x00\x00\x00\xEB\x0A\x89\x7E\x40\xC7\x46\x3C\x03\x00\x00\x00\x48\x83\xC4\x28\x41\x5C\x5F\x5E\x5B\xC3"
local characterBaseEditInstructions = "\x3D\x00\x00\x06\x00\x72\x05\xE9\xF4\x04\x00\x00\x3D\x00\x00\x04\x00\x75\x05\xE9\x48\x02\x00\x00\x3D\x00\x00\x05\x00\x72\x0C\x3D\x18\x00\x05\x00\x73\x05\xE9\xD5\x02\x00\x00\x53\x48\x83\xEC\x20\x2D\x00\x00\x02\x00\x4C\x8B\x8A\x40\x02\x00\x00\x4D\x85\xC9\x0F\x84\xA7\x00\x00\x00\x4D\x8B\x49\x38\x4D\x85\xC9\x0F\x84\x9A\x00\x00\x00\x41\x3B\x41\x20\x0F\x83\x90\x00\x00\x00\x8B\x56\x34\x41\x39\x51\x2C\x0F\x85\x83\x00\x00\x00\x4D\x8B\x49\x18\x4D\x85\xC9\x74\x7A\x41\x3B\x41\x18\x73\x74\x48\x8D\x04\x40\x4D\x8D\x4C\xC1\x20\x41\x83\x39\x00\x7C\x65\x49\x39\x49\x10\x75\x5F\x8B\x56\x30\x41\x39\x51\x08\x75\x56\x39\x51\x10\x75\x51\x48\x8B\x01\x4C\x8B\x4E\x18\x49\x81\xE9\xE0\xB0\x00\x00\x4C\x39\x88\x88\x01\x00\x00\x75\x3A\x8B\x56\x28\x39\x51\x30\x75\x32\x8B\x56\x2C\x81\xE2\x00\x00\x80\x7F\x81\xFA\x00\x00\x80\x7F\x74\x21\xF3\x0F\x10\x4E\x2C\x4C\x8B\x80\x90\x01\x00\x00\x48\x89\xCB\x41\xFF\xD1\x8B\x43\x30\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3"
local characterMilitiaEditInstructions = "\x53\x48\x83\xEC\x20\x48\x39\xDA\x74\x73\x81\x7E\x30\x02\x00\x00\x70\x75\x6A\x48\x39\x56\x58\x75\x64\x0F\xB6\x82\x90\x05\x00\x00\x83\xF8\x01\x77\x58\xF3\x0F\x2A\xC0\x66\x41\x0F\x7E\xC2\x44\x3B\x56\x28\x75\x49\x8B\x46\x2C\x45\x31\xD2\x85\xC0\x74\x0A\x3D\x00\x00\x80\x3F\x75\x38\x41\xFF\xC2\x48\x89\xD3\x48\x89\xD1\x44\x89\xD2\x45\x31\xC0\x4C\x8B\x4E\x18\x49\x81\xE9\xC0\xF3\x81\x02\x41\xFF\xD1\x0F\xB6\x83\x90\x05\x00\x00\xF3\x0F\x2A\xC0\x66\x0F\x7E\xC0\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3"
local characterScheduleEditInstructions = "\x53\x57\x41\x54\x48\x83\xEC\x20\x48\x39\xDA\x0F\x84\xAF\x00\x00\x00\x2D\x00\x00\x05\x00\x83\xF8\x18\x0F\x83\xA1\x00\x00\x00\x41\x89\xC4\x05\x00\x01\x00\x70\x3B\x46\x30\x0F\x85\x90\x00\x00\x00\x48\x39\x8A\x60\x06\x00\x00\x0F\x85\x83\x00\x00\x00\x83\x79\x18\x18\x75\x7D\x31\xC0\x83\x7C\x81\x20\x02\x77\x74\xFF\xC0\x83\xF8\x18\x72\xF2\x42\x8B\x44\xA1\x20\xF3\x0F\x2A\xC0\x66\x41\x0F\x7E\xC2\x44\x3B\x56\x28\x75\x59\x8B\x46\x2C\x45\x31\xD2\x85\xC0\x74\x14\x41\xFF\xC2\x3D\x00\x00\x80\x3F\x74\x0A\x41\xFF\xC2\x3D\x00\x00\x00\x40\x75\x3B\x48\x89\xCF\x48\x89\xD3\x46\x89\x54\xA7\x20\x48\x89\xD9\x48\x89\xFA\x45\x31\xC0\x4C\x8B\x4E\x18\x49\x81\xE9\xB0\xEC\x81\x02\x41\xFF\xD1\x42\x8B\x44\xA7\x20\xF3\x0F\x2A\xC0\x66\x0F\x7E\xC0\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x20\x41\x5C\x5F\x5B\xC3"
local characterParameterEditInstructions = "\x3D\x00\x00\x07\x00\x0F\x84\xF1\x01\x00\x00\x3D\x01\x00\x07\x00\x0F\x84\xDE\x03\x00\x00\x3D\x0A\x00\x07\x00\x0F\x84\x1C\x04\x00\x00\x3D\x10\x00\x07\x00\x0F\x84\xDD\x01\x00\x00\x3D\x11\x00\x07\x00\x0F\x84\x98\x03\x00\x00\x3D\x12\x00\x07\x00\x0F\x84\xD4\x01\x00\x00\x3D\x13\x00\x07\x00\x0F\x84\xD6\x01\x00\x00\x3D\x14\x00\x07\x00\x0F\x84\x3E\x05\x00\x00\x3D\x15\x00\x07\x00\x0F\x84\x33\x05\x00\x00\x3D\x16\x00\x07\x00\x0F\x84\x58\x06\x00\x00\x3D\x17\x00\x07\x00\x0F\x84\x80\x06\x00\x00\x3D\x18\x00\x07\x00\x0F\x84\xAA\x06\x00\x00\x3D\x19\x00\x07\x00\x0F\x84\x0A\x07\x00\x00\x3D\x1A\x00\x07\x00\x0F\x84\x1C\x07\x00\x00\x3D\x0B\x00\x07\x00\x0F\x83\x84\x04\x00\x00\x3D\x02\x00\x07\x00\x0F\x83\x19\x02\x00\x00\x53\x48\x83\xEC\x20\x48\x89\xCB\x2D\x00\x00\x06\x00\x83\xF8\x04\x77\x4A\x48\x85\xC9\x74\x45\x83\xF8\x02\x73\x0F\x48\x3B\x16\x74\x3B\x4C\x8D\x8C\xC2\x10\x07\x00\x00\xEB\x2A\x48\x3B\x16\x75\x2C\x4C\x8B\x8A\xB8\x03\x00\x00\x4D\x85\xC9\x74\x20\x49\x83\x79\x10\x00\x74\x19\x48\x8B\x56\x10\x49\x39\x51\x38\x75\x0F\x4D\x8D\x8C\xC1\x80\x03\x00\x00\x49\x39\x09\x75\x02\xEB\x0C\xC7\x46\x20\x04\x00\x00\x00\xE9\xDE\x00\x00\x00\x48\x8B\x56\x18\x48\x81\xEA\xC0\xA4\x5E\x03\x4C\x8B\x09\x4D\x85\xC9\x0F\x84\xC0\x00\x00\x00\x4C\x3B\x8A\x18\x0E\xD5\x05\x74\x21\x83\xF8\x02\x74\x0F\x4C\x3B\x8A\xC0\x99\xD5\x05\x0F\x85\xA5\x00\x00\x00\xEB\x0D\x4C\x3B\x8A\xA8\xD6\xCE\x05\x0F\x85\x96\x00\x00\x00\x48\x81\xC2\xE0\xF3\x5D\x03\x49\x39\x91\x88\x01\x00\x00\x0F\x85\x82\x00\x00\x00\x41\xB8\x01\x00\x00\x00\x83\xF8\x02\x75\x06\x41\xB8\x02\x00\x00\x00\x44\x39\x46\x34\x75\x6B\x44\x39\x41\x48\x75\x65\x8B\x46\x30\x39\x41\x10\x75\x5D\x8B\x46\x28\x39\x41\x30\x75\x55\x48\x83\x79\x58\x00\x74\x4E\x48\x83\x79\x18\x00\x74\x47\x8B\x46\x2C\x41\x89\xC1\x41\x81\xE1\x00\x00\x80\x7F\x41\x81\xF9\x00\x00\x80\x7F\x74\x31\x41\x83\xF8\x02\x75\x0B\x85\xC0\x74\x07\x3D\x00\x00\x80\x3F\x75\x20\xF3\x0F\x10\x4E\x2C\x48\x8B\x01\x4C\x8B\x80\x90\x01\x00\x00\xFF\xD2\x8B\x43\x30\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3\x41\xB8\xDC\x02\x00\x00\xB8\x03\x00\x00\x70\xEB\x25\x41\xB8\x30\x01\x00\x00\xB8\x13\x00\x00\x70\xEB\x18\x41\xB8\xF8\x00\x00\x00\xB8\x15\x00\x00\x70\xEB\x0B\x41\xB8\xFA\x00\x00\x00\xB8\x16\x00\x00\x70\x48\x3B\x16\x0F\x85\xB5\x01\x00\x00\x39\x46\x30\x0F\x85\xAC\x01\x00\x00\x4C\x8B\x8A\xB8\x03\x00\x00\x4D\x85\xC9\x0F\x84\x9C\x01\x00\x00\x49\x39\xC9\x0F\x85\x93\x01\x00\x00\x49\x8B\x41\x10\x48\x85\xC0\x0F\x84\x86\x01\x00\x00\x48\x3B\x86\x80\x00\x00\x00\x0F\x85\x79\x01\x00\x00\x48\x8B\x46\x10\x49\x39\x41\x38\x0F\x85\x6B\x01\x00\x00\x4C\x39\x8A\xB8\x03\x00\x00\x0F\x85\x5E\x01\x00\x00\x41\x81\xF8\x00\x01\x00\x00\x72\x2A\x8B\x46\x28\x43\x39\x04\x01\x0F\x85\x48\x01\x00\x00\x8B\x46\x2C\x3D\x00\x00\x80\x7F\x0F\x83\x3A\x01\x00\x00\x43\x89\x04\x01\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xC3\x4D\x01\xC1\xE9\xB4\x00\x00\x00\x48\x3B\x16\x0F\x84\x1A\x01\x00\x00\x2D\x02\x00\x07\x00\x83\xF8\x07\x0F\x87\x0C\x01\x00\x00\x44\x8D\x88\x05\x00\x00\x70\x44\x39\x4E\x30\x0F\x85\xFB\x00\x00\x00\x83\xF8\x02\x72\x68\x48\x8B\x56\x48\x48\x39\xCA\x0F\x85\xE9\x00\x00\x00\x83\xF8\x03\x76\x44\x83\xF8\x06\x74\x36\x4C\x8D\x8C\xC2\x7C\x01\x00\x00\x83\xF8\x07\x75\x07\x4C\x8D\x8A\xAC\x01\x00\x00\x8B\x56\x28\x41\x39\x11\x0F\x85\xBF\x00\x00\x00\x8B\x46\x2C\x3D\x00\x00\x80\x7F\x0F\x83\xB1\x00\x00\x00\x41\x89\x01\xE9\x81\x00\x00\x00\x4C\x8D\x8A\xA8\x01\x00\x00\xEB\x31\x4C\x8D\x8A\x9B\x01\x00\x00\x83\xF8\x02\x74\x25\x49\x83\xC1\x05\xEB\x1F\x48\x39\xCA\x0F\x85\x85\x00\x00\x00\x4C\x8D\x8C\x82\x68\x04\x00\x00\x85\xC0\x74\x0A\x41\x8B\x11\xB9\x02\x00\x00\x00\xEB\x09\x41\x0F\xB6\x11\xB9\x01\x00\x00\x00\x39\xCA\x77\x62\xF3\x0F\x2A\xC2\x66\x0F\x7E\xC2\x39\x56\x28\x75\x55\x8B\x46\x2C\x31\xD2\x85\xC0\x74\x17\xFF\xC2\x3D\x00\x00\x80\x3F\x74\x0E\x83\xF9\x02\x75\x3E\x3D\x00\x00\x00\x40\x75\x37\xFF\xC2\x83\xF9\x01\x75\x05\x41\x88\x11\xEB\x03\x41\x89\x11\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xC3\x48\x3B\x16\x74\x18\x48\x3B\x4E\x48\x75\x12\x81\x7E\x30\x14\x00\x00\x70\x75\x09\x4C\x8D\x89\x99\x01\x00\x00\xEB\x91\xC7\x46\x20\x04\x00\x00\x00\xC3\x48\x39\xCA\x75\xF3\x81\x7E\x30\x04\x00\x00\x70\x75\xEA\x0F\xB6\x82\xA0\x00\x00\x00\x83\xF8\x01\x77\xDE\x69\xC0\x00\x00\x80\x3F\x39\x46\x28\x75\xD3\x8B\x46\x2C\x85\xC0\x74\x07\x3D\x00\x00\x80\x3F\x75\xC5\x89\x46\x34\xC1\xE8\x17\x24\x01\x88\x82\xA0\x00\x00\x00\xC7\x46\x20\x03\x00\x00\x00\xC3\x81\x7E\x30\x0D\x00\x00\x70\x75\xA6\x48\x39\x8A\x30\x01\x00\x00\x75\x9D\x83\x79\x10\x0A\x75\x97\x80\x79\x34\x00\x75\x91\x48\x8B\x41\x38\x48\x85\xC0\x74\x06\x83\x78\x18\x00\x75\x82\x48\x8B\x01\x48\x85\xC0\x0F\x84\x76\xFF\xFF\xFF\x4C\x8B\x4E\x18\x49\x81\xE9\xC0\xA4\x5E\x03\x4D\x8D\x81\xD0\xED\x5D\x03\x4C\x39\x80\x78\x01\x00\x00\x0F\x85\x57\xFF\xFF\xFF\x4D\x8D\x81\xE0\xF3\x5D\x03\x4C\x39\x80\x88\x01\x00\x00\x0F\x85\x43\xFF\xFF\xFF\x8B\x46\x28\x39\x41\x28\x0F\x85\x37\xFF\xFF\xFF\x39\x41\x30\x0F\x85\x2E\xFF\xFF\xFF\x8B\x46\x2C\x85\xC0\x0F\x84\x23\xFF\xFF\xFF\x3D\x00\x00\x80\x7F\x0F\x83\x18\xFF\xFF\xFF\x53\x48\x83\xEC\x20\x48\x89\xD3\xF3\x0F\x10\x4E\x2C\x48\x8B\x01\x4D\x89\xC1\x4C\x8B\x80\x90\x01\x00\x00\x41\xFF\xD1\x48\x8B\x8B\x30\x01\x00\x00\x48\x3B\x4E\x58\x75\x1E\x48\x8B\x01\x48\x8B\x90\x80\x01\x00\x00\xFF\x90\x78\x01\x00\x00\xF3\x0F\x11\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3\x48\x3B\x16\x0F\x85\xBA\xFE\xFF\xFF\x48\x39\xCA\x0F\x85\xB1\xFE\xFF\xFF\x2D\x0B\x00\x07\x00\x83\xF8\x04\x0F\x87\xA3\xFE\xFF\xFF\x44\x8D\x88\x0E\x00\x00\x70\x44\x39\x4E\x30\x0F\x85\x92\xFE\xFF\xFF\x4C\x8D\x8C\x82\x2C\x03\x00\x00\x83\xF8\x04\x75\x07\x4C\x8D\x8A\x80\x03\x00\x00\x8B\x46\x28\x41\x39\x01\x0F\x85\x72\xFE\xFF\xFF\x8B\x46\x2C\x3D\x00\x00\x80\x7F\x0F\x83\x64\xFE\xFF\xFF\x41\x89\x01\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\xC3\x48\x3B\x16\x0F\x84\x4D\xFE\xFF\xFF\x41\xB8\x10\x01\x00\x00\x41\xB9\x91\x00\x00\x00\x3D\x14\x00\x07\x00\x74\x0C\x41\xB8\x18\x01\x00\x00\x41\xB9\x94\x00\x00\x00\x44\x39\x4E\x30\x0F\x85\x24\xFE\xFF\xFF\x48\x8B\x82\xF8\x04\x00\x00\x48\x85\xC0\x0F\x84\x14\xFE\xFF\xFF\x48\x83\x78\x10\x00\x0F\x84\x09\xFE\xFF\xFF\x48\x8B\x82\x50\x05\x00\x00\x48\x85\xC0\x0F\x84\xF9\xFD\xFF\xFF\x48\x83\x78\x10\x00\x0F\x84\xEE\xFD\xFF\xFF\x48\x39\x90\x00\x01\x00\x00\x0F\x85\xE1\xFD\xFF\xFF\x4A\x39\x0C\x00\x0F\x85\xD7\xFD\xFF\xFF\x44\x39\x49\x10\x0F\x85\xCD\xFD\xFF\xFF\x48\x8B\x01\x48\x85\xC0\x0F\x84\xC1\xFD\xFF\xFF\x4C\x8B\x4E\x18\x49\x81\xE9\xC0\xA4\x5E\x03\x4D\x8D\x81\xC0\x9A\x5E\x03\x4C\x39\x80\xF8\x01\x00\x00\x74\x21\x81\x7E\x30\x94\x00\x00\x00\x0F\x85\x99\xFD\xFF\xFF\x4D\x8D\x81\x80\xF4\x5D\x03\x4C\x39\x80\xF8\x01\x00\x00\x0F\x85\x85\xFD\xFF\xFF\x49\x81\xC1\xE0\xF3\x5D\x03\x4C\x39\x88\x88\x01\x00\x00\x0F\x85\x71\xFD\xFF\xFF\x8B\x56\x28\x39\x51\x30\x0F\x85\x65\xFD\xFF\xFF\x8B\x56\x2C\x81\xE2\x00\x00\x80\x7F\x81\xFA\x00\x00\x80\x7F\x0F\x84\x50\xFD\xFF\xFF\x53\x48\x83\xEC\x20\x48\x89\xCB\xF3\x0F\x10\x4E\x2C\x4C\x8B\x80\x90\x01\x00\x00\x41\xFF\xD1\x8B\x43\x30\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3\x48\x3B\x16\x0F\x84\x1D\xFD\xFF\xFF\x48\x39\x8A\x58\x05\x00\x00\x0F\x85\x10\xFD\xFF\xFF\x4C\x8B\x92\x60\x05\x00\x00\x4C\x8B\x5E\x18\x49\x81\xEB\xF0\xB6\x00\x00\x41\xB8\x9F\x08\x00\x00\xE9\x08\x01\x00\x00\x48\x39\x8A\x50\x01\x00\x00\x0F\x85\xE6\xFC\xFF\xFF\x48\x8B\x46\x48\x48\x39\x48\x68\x0F\x85\xD8\xFC\xFF\xFF\x48\x8B\x82\x30\x01\x00\x00\x4C\x8B\x5E\x18\x49\x81\xEB\x40\x87\xAA\x02\x41\xBA\x98\x08\x00\x00\xEB\x36\x48\x39\x8A\x58\x01\x00\x00\x0F\x85\xB1\xFC\xFF\xFF\x48\x8B\x46\x48\x48\x39\x88\xF8\x00\x00\x00\x0F\x85\xA0\xFC\xFF\xFF\x48\x8B\x82\x38\x01\x00\x00\x4C\x8B\x5E\x18\x49\x81\xEB\x40\x88\xAA\x02\x41\xBA\x99\x08\x00\x00\x48\x85\xC0\x0F\x84\x7F\xFC\xFF\xFF\x48\x8B\x00\x48\x85\xC0\x0F\x84\x73\xFC\xFF\xFF\x4C\x8B\x46\x18\x49\x81\xE8\xF0\xB6\x00\x00\x4C\x39\x80\x78\x01\x00\x00\x0F\x85\x5B\xFC\xFF\xFF\x45\x89\xD0\x49\x89\xD2\xEB\x68\x48\x8B\x46\x48\x48\x39\x48\x78\x0F\x85\x45\xFC\xFF\xFF\x4C\x8B\x90\x90\x00\x00\x00\x41\xB8\xA4\x08\x00\x00\xEB\x1E\x48\x8B\x46\x48\x48\x39\x88\x98\x00\x00\x00\x0F\x85\x25\xFC\xFF\xFF\x4C\x8B\x90\xB0\x00\x00\x00\x41\xB8\xA3\x08\x00\x00\x4D\x85\xD2\x0F\x84\x0F\xFC\xFF\xFF\x49\x8B\x02\x48\x85\xC0\x0F\x84\x03\xFC\xFF\xFF\x4C\x8B\x5E\x18\x49\x81\xEB\xF0\xB6\x00\x00\x4C\x39\x98\x78\x01\x00\x00\x0F\x85\xEB\xFB\xFF\xFF\x44\x39\x46\x30\x0F\x85\xE1\xFB\xFF\xFF\x44\x39\x41\x10\x0F\x85\xD7\xFB\xFF\xFF\x48\x8B\x01\x48\x85\xC0\x0F\x84\xCB\xFB\xFF\xFF\x4C\x8B\x4E\x18\x4C\x39\x88\x88\x01\x00\x00\x0F\x85\xBA\xFB\xFF\xFF\x4D\x8D\x81\x30\x6D\xFF\xFF\x4C\x39\x80\x18\x02\x00\x00\x74\x0D\x4C\x39\x80\x28\x02\x00\x00\x0F\x85\x9D\xFB\xFF\xFF\x4C\x8B\x41\x58\x4D\x85\xC0\x0F\x84\x90\xFB\xFF\xFF\x4D\x85\xD2\x0F\x84\x87\xFB\xFF\xFF\x4D\x39\x50\x40\x0F\x85\x7D\xFB\xFF\xFF\x4D\x39\x58\x18\x0F\x85\x73\xFB\xFF\xFF\x8B\x56\x28\x39\x51\x28\x0F\x85\x67\xFB\xFF\xFF\x8B\x56\x2C\x81\xE2\x00\x00\x80\x7F\x81\xFA\x00\x00\x80\x7F\x0F\x84\x52\xFB\xFF\xFF\xF3\x0F\x10\x4E\x2C\x80\x79\x48\x00\x75\x0A\x0F\x2E\x49\x40\x0F\x82\x3D\xFB\xFF\xFF\x53\x48\x83\xEC\x20\x48\x89\xCB\x4C\x8B\x80\x90\x01\x00\x00\x41\xFF\xD1\x8B\x43\x28\x89\x46\x34\xC7\x46\x20\x03\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3"
local characterVariableSnapshot = (function()
-- AttributeManager._varAttributesList contains the instance's registered variables.
-- All labels are supplied by the runtime's attribute-config provider, never a CT catalog.
return function(context,memory,actor,labels)
  local follow,int,float,byte=memory.follow,memory.integer,memory.float,memory.byte
  local manager=follow(actor,0x240)
  if not manager then return {} end
  local identity=memory.unityIdentity(manager)
  if not identity then return end
  local list=follow(manager,0x48)
  local array=follow(list,0x10)
  local count=list and int(list+0x18)
  local version=list and int(list+0x1C)
  local capacity=array and int(array+0x18)
  if not array or not count or count&lt;0 or not capacity or count&gt;capacity or version==nil then return end
  local function finite(v)return type(v)=='number' and v==v and math.abs(v)&lt;math.huge end
  local out,seen,observed={},{},{}
  -- The shared dispatcher reserves selectors starting at 0x20000 for base attributes.
  for index=0,math.min(count,0x10000)-1 do
    local attribute=follow(array,0x20+index*8)
    local class=follow(attribute,0)
    if not class then return end
    local id=int(attribute+0x10)
    if id==nil or seen[id] then return end
    seen[id]=true
    observed[#observed+1]={attribute=attribute,class=class,id=id}
    if follow(class,0x188)==context.base+0x35EA4C0 then
      local value,lower,upper=float(attribute+0x28),float(attribute+0x40),float(attribute+0x44)
      local ignoreLower,ignoreUpper=byte(attribute+0x48),byte(attribute+0x49)
      if finite(value) and finite(lower) and finite(upper)
        and (ignoreLower==0 or ignoreLower==1) and (ignoreUpper==0 or ignoreUpper==1)
        and (ignoreLower==1 or ignoreUpper==1 or lower&lt;=upper) then
        local label=labels and labels[id]
        out[#out+1]={id=id,index=index,attribute=attribute,class=class,value=value,
          lower=lower,upper=upper,ignoreLower=ignoreLower,ignoreUpper=ignoreUpper,
          manager=manager,managerIdentity=identity,list=list,array=array,listVersion=version,
          en=label and label.en or ('Attribute %d'):format(id),
          ja=label and label.ja or ('属性 %d'):format(id)}
      end
    end
  end
  if follow(actor,0x240)~=manager or memory.unityIdentity(manager)~=identity
    or follow(manager,0x48)~=list or follow(list,0x10)~=array
    or int(list+0x18)~=count or int(list+0x1C)~=version or int(array+0x18)~=capacity then return end
  for index,item in ipairs(observed)do
    if follow(array,0x20+(index-1)*8)~=item.attribute or follow(item.attribute,0)~=item.class
      or int(item.attribute+0x10)~=item.id then return end
  end
  return out
end

end)()
local characterBaseSnapshot = (function()
-- AttributeManager._attributes holds computed attributes. Expose the base
-- value accepted by Attribute.SetValue, with a label identifying that value.
return function(context,memory,actor,labels)
  local follow,int,float=memory.follow,memory.integer,memory.float
  local manager=follow(actor,0x240)
  if not manager then return {} end
  local identity=memory.unityIdentity(manager)
  if not identity then return end
  local dictionary=follow(manager,0x38)
  if not dictionary then return {} end
  local entries=follow(dictionary,0x18)
  local count,version=int(dictionary+0x20),int(dictionary+0x2C)
  local capacity=entries and int(entries+0x18)
  if not entries or not count or count&lt;0 or not capacity or count&gt;capacity or version==nil then return end
  local out,seen,observed={},{},{}
  -- The remaining selector values include dedicated character commands.
  for index=0,math.min(count,0x10000)-1 do
    local entry=entries+0x20+index*24
    local hash=int(entry)
    if hash==nil then return end
    observed[#observed+1]={entry,hash}
    if hash&gt;=0 and hash&lt;0x80000000 then
      local id,attribute=int(entry+8),follow(entry,0x10)
      local class=follow(attribute,0)
      if id==nil or not class or int(attribute+0x10)~=id or seen[id] then return end
      seen[id]=true
      observed[#observed+1]={entry+8,id}
      if follow(class,0x188)==context.base+0x35DF3E0 then
        local value=float(attribute+0x30)
        if type(value)=='number' and value==value and math.abs(value)&lt;math.huge then
          local label=labels and labels[id]
          out[#out+1]={id=id,index=index,attribute=attribute,class=class,value=value,
            lower=0,upper=0,ignoreLower=1,ignoreUpper=1,baseValue=true,
            manager=manager,managerIdentity=identity,dictionary=dictionary,entries=entries,listVersion=version,
            en=(label and label.en or ('Attribute %d'):format(id))..' (base value)',
            ja=(label and label.ja or ('属性 %d'):format(id))..'（基礎値）'}
        end
      end
    end
  end
  if follow(actor,0x240)~=manager or memory.unityIdentity(manager)~=identity
    or follow(manager,0x38)~=dictionary or follow(dictionary,0x18)~=entries
    or int(dictionary+0x20)~=count or int(dictionary+0x2C)~=version
    or int(entries+0x18)~=capacity then return end
  for _,item in ipairs(observed)do if int(item[1])~=item[2] then return end end
  for _,item in ipairs(out)do
    local entry=entries+0x20+item.index*24
    if follow(entry,0x10)~=item.attribute or follow(item.attribute,0)~=item.class
      or int(item.attribute+0x10)~=item.id then return end
  end
  return out
end

end)()
local characterParameterSnapshot = (function()
-- Candidate only: five declared animator parameters, never arbitrary fields.
-- The caller owns actor/world/member validation. This function performs no writes.
return function(context,memory,target)
  local follow,integer,float=memory.follow,memory.integer,memory.float
  local parameterClass=memory.pointer(context.base+0x5D50E18)
  if not parameterClass then return end
  local actor=target.address
  local owner=actor
  local specs
  if target.settlement then
    specs={{index=0,offset=0x710,kind=1,en='Animation movement input',ja='アニメーション移動入力'},
      {index=1,offset=0x718,kind=1,en='Animation stamina',ja='アニメーション用スタミナ'}}
  else
    if actor~=context.player then return end
    owner=follow(actor,0x3B8)
    if not owner then return {}end
    if not memory.unityIdentity(owner)or follow(owner,0x38)~=context.runner then return end
    specs={{index=2,offset=0x390,kind=2,en='Animation jump impairment (0/1)',ja='アニメーション跳躍制限（0/1）'},
      {index=3,offset=0x398,kind=1,en='Animation stealth',ja='アニメーション用ステルス'},
      {index=4,offset=0x3A0,kind=1,en='Animation movement input',ja='アニメーション移動入力'}}
  end
  local identity=memory.unityIdentity(owner)
  if not identity then return end
  local out={}
  for _,spec in ipairs(specs)do
    local attribute=follow(owner,spec.offset)
    if attribute then
      local class=follow(attribute,0)
      local classSlot=spec.kind==2 and 0x5CED6A8 or 0x5D599C0
      if class==parameterClass then classSlot=0x5D50E18
      elseif not class or class~=memory.pointer(context.base+classSlot)then return end
      local kind,id=integer(attribute+0x48),integer(attribute+0x10)
      -- GetParameter returns existing instances even when their types differ.
      if kind~=spec.kind or id==nil or follow(class,0x188)~=context.base+0x35DF3E0 then return end
      local value=float(attribute+0x30)
      if type(value)~='number'or value~=value or math.abs(value)==math.huge then return end
      if kind==2 and value~=0 and value~=1 then return end
      out[#out+1]={id=id,attribute=attribute,class=class,classSlot=classSlot,value=value,parameterType=kind,
        parameterOwner=owner,parameterOwnerIdentity=identity,parameterOffset=spec.offset,
        index=spec.index,en=spec.en..' (base value)',ja=spec.ja..'（基礎値）',volatile=true}
    end
  end
  if memory.unityIdentity(owner)~=identity then return end
  if not target.settlement and(follow(actor,0x3B8)~=owner or follow(owner,0x38)~=context.runner)then return end
  if memory.pointer(context.base+0x5D50E18)~=parameterClass then return end
  for _,row in ipairs(out)do
    if follow(owner,row.parameterOffset)~=row.attribute or follow(row.attribute,0)~=row.class
      or memory.pointer(context.base+row.classSlot)~=row.class
      or integer(row.attribute+0x10)~=row.id or integer(row.attribute+0x48)~=row.parameterType
      or float(row.attribute+0x30)~=row.value then return end
  end
  return out
end

end)()
local attributeLabelsSnapshot = (function()
-- Resolve current in-game attribute labels through the registered AttributesDatabase.
-- The game language is retained; this does not provide an independent language switch.
return function(base,memory,databaseOnly)
  local follow,int=memory.follow,memory.integer
  local function classIs(object,name)
    local class=follow(object,0)
    if not class then return false end
    -- Native metadata strings are byte-aligned; follow() is for object pointers.
    local address,namespace=memory.pointer(class+0x10),memory.pointer(class+0x18)
    local function valid(value)return type(value)=='number'and value&gt;=0x10000 and value&lt;0x800000000000 end
    return valid(address)and valid(namespace)and memory.cstring(address)==name
      and memory.cstring(namespace)=='SandSailorStudio.Attributes'
  end
  local registryClass=follow(base,0x5D635B8)
  local statics=follow(registryClass,0xB8)
  local registry=follow(statics,0)
  local entries=follow(registry,0x18)
  if not entries then return end
  local count,version,capacity=int(registry+0x20),int(registry+0x2C),int(entries+0x18)
  if not count or not version or not capacity or count&lt;0 or count&gt;capacity then return end
  local database
  for index=0,count-1 do
    local entry=entries+0x20+index*24
    local hash=int(entry)
    local candidate=hash and hash&gt;=0 and hash&lt;0x80000000 and follow(entry,0x10)
    if candidate and classIs(candidate,'AttributesDatabase') and memory.unityIdentity(candidate) then
      if database then return end
      database=candidate
    end
  end
  local identity=memory.unityIdentity(database)
  local list=follow(database,0x20)
  local array=follow(list,0x10)
  local size=list and int(list+0x18)
  local listVersion=list and int(list+0x1C)
  local arraySize=array and int(array+0x18)
  if not identity or not array or not size or size&lt;0 or not arraySize or size&gt;arraySize or listVersion==nil then return end
  local labels,observed={},{}
  for index=0,size-1 do
    local config=follow(array,0x20+index*8)
    if not config or not classIs(config,'AttributeConfig') or not memory.unityIdentity(config) then return end
    local id=int(config+0x18)
    if id==nil then return end
    -- TryGetAttributeConfig builds its cache with Dictionary.set_Item in list
    -- order. Installed 168-entry databases contain three duplicate IDs.
    -- A later unlocalized entry must also discard the earlier display label.
    labels[id]=nil
    local name=follow(config,0x20)
    local localized=memory.byte(config+0x58)
    local text
    if localized==1 and name then
      local length=int(name+0x10)
      if not length or length&lt;0 then return end
      if length&gt;0 then text=memory.string(name+0x14,length) end
      if type(text)=='string' and text~='' then labels[id]={en=text,ja=text,language='game'} end
    end
    observed[#observed+1]={config=config,identity=memory.unityIdentity(config),id=id,name=name,localized=localized,text=text}
  end
  if follow(statics,0)~=registry or follow(registry,0x18)~=entries or int(registry+0x2C)~=version
    or memory.unityIdentity(database)~=identity or follow(database,0x20)~=list
    or follow(list,0x10)~=array or int(list+0x18)~=size or int(list+0x1C)~=listVersion then return end
  for index,item in ipairs(observed)do
    if follow(array,0x20+(index-1)*8)~=item.config or memory.unityIdentity(item.config)~=item.identity or int(item.config+0x18)~=item.id
      or follow(item.config,0x20)~=item.name or memory.byte(item.config+0x58)~=item.localized then return end
    if item.text then
      local length=int(item.name+0x10)
      if not length or memory.string(item.name+0x14,length)~=item.text then return end
    end
  end
  if databaseOnly then return database end
  return labels
end

end)()
local attributeKeyTargets = (function()
-- Attribute-key snapshot. The caller supplies an independently
-- discovered registered AttributesDatabase. No fixed IDs/names/translations.
return function(database,base,memory)
  local reads={}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function read(fn,address)
    local value=fn(address);need(value~=nil,'Unavailable attribute key source')
    reads[#reads+1]={fn,address,value};return value
  end
  local function p(a)return read(memory.pointer,a)end
  local function n(a)return read(memory.integer,a)end
  local function text(a)return read(memory.cstring,a)end
  local function classIs(class,name)
    return text(p(class+0x10))==name and text(p(class+0x18))=='SandSailorStudio.Attributes'
  end
  need(database and database~=0 and p(database+0x10)~=0,'Attribute database was destroyed')
  need(classIs(p(database),'AttributesDatabase'),'Unexpected attribute database class')
  local list=p(database+0x20);need(list~=0,'Missing attribute configuration list')
  local array=p(list+0x10);need(array~=0,'Missing attribute configuration array')
  local count,capacity=n(list+0x18),n(array+0x18);n(list+0x1c)
  need(count&gt;=0 and count&lt;=capacity,'Invalid attribute configuration array')
  local effective={}
  for index=0,count-1 do
    local address=p(array+0x20+index*8);need(address~=0,'Missing attribute configuration')
    local identity=p(address+0x10);need(identity~=0,'Attribute configuration was destroyed')
    local class=p(address);need(class~=0 and classIs(class,'AttributeConfig'),'Unexpected attribute key class')
    local method,metadata=p(class+0x218),p(class+0x220)
    need(method==base+0x35DCA00,'Unanalysed attribute key virtual method')
    local id=n(address+0x18)
    effective[id]={address=address,identity=identity,class=class,method=method,methodInfo=metadata,kind=3,id=id,index=index}
  end
  local targets={}
  for _,target in pairs(effective)do targets[#targets+1]=target end
  table.sort(targets,function(a,b)return a.index&lt;b.index end)
  local out={database=database,targets=targets,byId=effective}
  function out.validate()
    for _,item in ipairs(reads)do need(item[1](item[2])==item[3],'Attribute configuration changed while reading keys')end
    return true
  end
  out.validate()
  return out
end

end)()
local attributeLocalizationSnapshot = (function()
-- Consumer of completed native GetKey requests and independent game
-- language packs. Uses the exact key, not an ID/name guess or embedded text.
return function(snapshot,keys,packs,resolverFactory)
  local function need(ok,message)if not ok then error(message,0)end return ok end
  snapshot.validate();packs.validate()
  local exact={}
  for _,target in ipairs(snapshot.targets)do
    local record=keys[target.address]
    need(type(record)=='table'and record.identity==target.identity and record.status==3
      and type(record.key)=='string','Attribute key request is incomplete or stale')
    exact[target.address]={kind='attribute',key=record.key}
  end
  local resolve=resolverFactory(packs,exact)
  local labels={}
  for _,target in ipairs(snapshot.targets)do
    local en,ja=resolve(target.address,'attribute')
    need(type(en)=='string'and type(ja)=='string','Attribute localization is unavailable')
    labels[target.id]={en=en,ja=ja,key=exact[target.address].key,address=target.address,
      identity=target.identity,language='en/ja'}
  end
  snapshot.validate();packs.validate()
  return labels
end

end)()
local deedKeyTargets = (function()
-- Exact native GetKey targets for DeedsDatabase.deeds and their categories.
return function(database,base,memory)
  local reads={}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function read(fn,address)
    local value=fn(address);need(value~=nil,'Unavailable deed key source')
    reads[#reads+1]={fn,address,value};return value
  end
  local function p(a)return read(memory.pointer,a)end
  local function n(a)return read(memory.integer,a)end
  local function text(a)return read(memory.cstring,a)end
  local function classIs(class,name)
    return text(p(class+0x10))==name and text(p(class+0x18))=='SSSGame.Deeds'
  end
  need(database and database~=0 and p(database+0x10)~=0,'Deed database was destroyed')
  need(classIs(p(database),'DeedsDatabase'),'Unexpected deed database class')
  need(read(memory.byte,database+0xA8)==1,'Deed database is not initialized')
  local list=p(database+0x40);need(list~=0,'Missing deed list')
  local array=p(list+0x10);need(array~=0,'Missing deed array')
  local count,capacity=n(list+0x18),n(array+0x18);n(list+0x1C)
  need(count&gt;=0 and count&lt;=capacity,'Invalid deed array')
  local targets,seen,ids,categories={},{},{},{}
  local function target(address,kind,name,offset,rva)
    need(address~=0,'Missing deed key target')
    if seen[address]then need(seen[address].kind==kind,'Deed key target type changed');return end
    local identity=p(address+0x10);need(identity~=0,'Deed key target was destroyed')
    local class=p(address);need(class~=0 and classIs(class,name),'Unexpected deed key class')
    local method,metadata=p(class+offset),p(class+offset+8)
    need(method==base+rva,'Unanalysed deed key method')
    local id=n(address+0x18)
    local entry={address=address,identity=identity,class=class,method=method,methodInfo=metadata,kind=kind,id=id}
    seen[address]=entry;targets[#targets+1]=entry
    local idMap=kind==4 and ids or categories
    need(not idMap[id] or idMap[id]==address,'Duplicate deed key ID')
    idMap[id]=address
  end
  for index=0,count-1 do
    local deed=p(array+0x20+index*8)
    need(deed~=0,'Missing deed asset')
    local category=p(deed+0x20)
    -- Installed scene lists include an uncategorized placeholder. It has no
    -- category editor and must not prevent all categorized names from loading.
    if category~=0 then
      target(deed,4,'DeedInfo',0x1D8,0x109B4F0)
      target(category,5,'DeedCategoryInfo',0x1C8,0x109AF60)
    end
  end
  local out={database=database,identity=p(database+0x10),targets=targets}
  function out.validate()
    for _,item in ipairs(reads)do need(item[1](item[2])==item[3],'Deed key sources changed')end
    return true
  end
  out.validate()
  return out
end

end)()
local deedLocalizationSnapshot = (function()
return function(snapshot,keys,packs,resolverFactory)
  local function need(ok,message)if not ok then error(message,0)end return ok end
  snapshot.validate();packs.validate()
  local exact={}
  for _,target in ipairs(snapshot.targets)do
    local record=keys[target.address]
    need(type(record)=='table' and record.identity==target.identity and record.status==3
      and type(record.key)=='string','Deed key request is incomplete or stale')
    exact[target.address]={kind=target.kind==6 and 'weather' or target.kind==4 and 'deed' or 'deedCategory',key=record.key}
  end
  local resolve=resolverFactory(packs,exact)
  local labels={}
  for _,target in ipairs(snapshot.targets)do
    local en,ja=resolve(target.address,exact[target.address].kind)
    labels[target.address]={id=target.id,identity=target.identity,en=en,ja=ja,
      key=exact[target.address].key,kind=target.kind}
  end
  snapshot.validate();packs.validate()
  return labels
end

end)()
local weatherKeyTargets = (function()
return function(base,memory,catalogReader)
  local reads={}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function p(a)
    local value=memory.pointer(a);need(value~=nil,'Unavailable weather key source')
    reads[#reads+1]={a,value};return value
  end
  local catalog=need(catalogReader(base,{follow=memory.follow,integer=memory.integer,
    classString=function(class,offset)
      local address=memory.pointer(class+offset)
      return address and address~=0 and memory.cstring(address)
    end}),
    'Weather database is unavailable')
  local targets={}
  for _,option in ipairs(catalog)do
    local method,metadata=p(option.class+0x1E8),p(option.class+0x1F0)
    need(method==base+0xF92020,'Unanalysed weather name method')
    targets[#targets+1]={address=option.address,identity=p(option.address+0x10),class=option.class,
      method=method,methodInfo=metadata,kind=6,id=option.id,index=option.index}
  end
  local out={database=catalog.database,identity=catalog.identity,targets=targets}
  function out.validate()
    catalog.validate()
    for _,item in ipairs(reads)do need(memory.pointer(item[1])==item[2],'Weather name method changed')end
    return true
  end
  out.validate()
  return out
end

end)()
local itemKeyWorkspace = (function()
-- One allocation owns code, recovery record, output buffers and request records.
return function(characters,records)
  local function check(ok)if not ok then error('Invalid item key workspace size',0)end end
  check(math.type(characters)=='integer' and characters&gt;=0 and characters&lt;=0x7FFFFFFF)
  check(math.type(records)=='integer' and records&gt;=0 and records&lt;=0x7FFFFFFF)
  if records==0 then
    local extra=((characters*2+0xFFF)//0x1000)*0x1000
    return {size=0x2000+extra,capacity=math.min(extra//2,0x7FFFFFFF),count=0,
      bufferOffset=0x2000,bufferStride=0,recordsOffset=0}
  end
  check(characters&gt;0)
  local stride=characters*2
  -- Leave room for rounding before multiplying; reject integer overflow.
  check(records&lt;=(math.maxinteger-0x3000)//(stride+0x58))
  local recordsOffset=((0x2000+stride*records+7)//8)*8
  local size=((recordsOffset+0x58*records+0xFFF)//0x1000)*0x1000
  return {size=size,capacity=characters,count=records,bufferOffset=0x2000,
    bufferStride=stride,recordsOffset=recordsOffset}
end

end)()
local itemKeyBatchRequest = (function()
-- Serialize native-only requests. Caller writes records, then controller status=0,
-- then pending=1 under a verified target suspension. No game-derived text is embedded.
return function(workspace,targets,token,tokenSlot,budget)
  local function check(ok,message)if not ok then error(message,0)end end
  local function pointer(value)return math.type(value)=='integer' and value&gt;=0x10000 and value&lt;0x800000000000 end
  check(pointer(workspace.records) and pointer(workspace.buffer),'Missing key workspace')
  check(math.type(workspace.capacity)=='integer' and workspace.capacity&gt;0 and workspace.capacity&lt;=0x7FFFFFFF,'Invalid key capacity')
  check(math.type(workspace.count)=='integer' and #targets&lt;=workspace.count,'Insufficient key records')
  check(pointer(token) and pointer(tokenSlot),'Missing name token')
  check(math.type(budget)=='integer' and budget&gt;=1 and budget&lt;=32,'Invalid key batch budget')
  local writes={}
  for index,target in ipairs(targets)do
    for _,key in ipairs({'address','identity','class','method'})do check(pointer(target[key]),'Missing key target '..key)end
    check(target.methodInfo==0 or pointer(target.methodInfo),'Invalid method metadata')
    check(target.kind==0 or target.kind==1 or target.kind==3 or target.kind==4 or target.kind==5 or target.kind==6,'Invalid key target kind')
    local buffer=workspace.buffer+(index-1)*workspace.capacity*2
    local address=workspace.records+(index-1)*0x58
    local payload=string.pack('&lt;I8I8I8I8I8I8I8i4i4i4i4I8I8',
      target.address,target.identity,target.class,target.method,target.methodInfo,token,
      buffer,workspace.capacity,1,0,target.kind,0,tokenSlot)
    check(#payload==0x58,'Invalid key record layout')
    check(buffer+workspace.capacity*2&lt;=workspace.records and address+0x58&lt;=workspace.limit,'Key workspace boundary differs')
    writes[#writes+1]={address=address,payload=payload,buffer=buffer,target=target}
  end
  local ending=workspace.records+#targets*0x58
  local controller=string.pack('&lt;I8i4i4i4i4I8',workspace.records,#targets,0,budget,0x58,ending)
    ..string.rep('\0',0x3C-0x20)..string.pack('&lt;i4i4i4I8I8',0,0,2,0,0)
  check(#controller==0x58,'Invalid key controller layout')
  return writes,controller
end

end)()
local itemKeyTargets = (function()
-- Enumerate the live complete item list and category parents, with exact native
-- virtual methods for build25834809. Returned validate() rechecks the snapshot.
return function(database,base,memory)
  local reads={}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function get(reader,address)
    local value=reader(address);need(value~=nil,'Unavailable item key source')
    reads[#reads+1]={reader,address,value};return value
  end
  local function p(a)return get(memory.pointer,a)end
  local function n(a)return get(memory.integer,a)end
  local function word(a)return get(memory.word,a)end
  local function live(a)return a~=0 and p(a+0x10)~=0 end
  need(database and database~=0 and live(database),'Item database is unavailable')
  local classes={}
  local function types(class)
    if classes[class]then return classes[class]end
    local result,seen={},{};local initial=class
    while class~=0 do
      need(not seen[class],'Item class hierarchy cycle');seen[class]=true
      local name=get(memory.cstring,p(class+0x10))
      local namespace=get(memory.cstring,p(class+0x18))
      result[namespace..'.'..name]=true
      class=p(class+0x58)
    end
    classes[initial]=result;return result
  end
  local targets,seen={},{}
  local function add(address,kind,chain)
    need(address~=0 and live(address),'Item key asset was destroyed')
    local class=p(address);need(class~=0,'Item key class is missing')
    local ancestry=types(class)
    local required=kind==0 and 'SandSailorStudio.Inventory.ItemInfo' or 'SandSailorStudio.Inventory.ItemCategoryInfo'
    need(ancestry[required],'Unexpected item key asset class')
    local method=p(class+(kind==0 and 0x2C8 or 0x1F8))
    local metadata=p(class+(kind==0 and 0x2D0 or 0x200))
    local allowed=kind==1 and method==base+0x3680B20
      or kind==0 and (method==base+0x3681880
        or ancestry['SandSailorStudio.Inventory.BlueprintInfo']and method==base+0x367E540
        or ancestry['SSSGame.NodeTemplate']and method==base+0xB4CA00)
    need(allowed,'Unanalysed item key virtual method')
    -- Blueprint.GetKey delegates to result unless null, destroyed, or itself.
    -- Validate all delegated methods and reject cycles before entering that API.
    if kind==0 and method==base+0x367E540 then
      chain=chain or {};need(not chain[address],'Blueprint result key cycle')
      chain[address]=true
      local result=p(address+0xD0)
      if result~=0 and result~=address and live(result)then add(result,0,chain)end
      chain[address]=nil
    end
    if seen[address]then need(seen[address].kind==kind,'Conflicting key asset kind');return end
    local target={address=address,identity=p(address+0x10),class=class,method=method,methodInfo=metadata,kind=kind}
    targets[#targets+1]=target;seen[address]=target
  end
  local complete=p(database+0x20);need(complete~=0,'Complete item list is missing')
  local list=p(complete+0x18);need(list~=0,'Item list is missing')
  local array=p(list+0x10);need(array~=0,'Item array is missing')
  local count,capacity=n(list+0x18),n(array+0x18)
  n(list+0x1C)
  need(count&gt;=0 and count&lt;=capacity and count&lt;=65536,'Invalid item key source size')
  for index=0,count-1 do
    local info=p(array+0x20+index*8)
    need(info~=0 and word(info+0x1C)==index,'Item database index changed')
    add(info,0)
    local category=p(info+0x20)
    if category~=0 then
      -- ItemCategoryInfo.Check3680A60 checks the category and one direct parent.
      -- Installed assets contain reciprocal parent references; this is not a tree.
      add(category,1)
      local parent=p(category+0x18)
      if parent~=0 then add(parent,1)end
    end
  end
  local function validate()
    for _,read in ipairs(reads)do need(read[1](read[2])==read[3],'Item key source changed')end
    return true
  end
  validate()
  return {targets=targets,validate=validate,database=database}
end

end)()
local itemLocalizationResolver = (function()
-- Resolve exact GetKey('name') results from independent EN/JA game packs.
-- Missing/null values fall back; an empty requested value also tries fallback,
-- matching Loc365BD90. No display-name matching or inferred translation.
return function(packs,keys)
  local function value(language,key)
    local result=language.values[key]
    if type(result)~='string' or result==''then
      local fallback=packs.fallback.values[key]
      if type(fallback)=='string'then result=fallback end
    end
    if type(result)~='string'then return key end
    return result
  end
  return function(address,kind)
    local record=keys[address]
    if not record or record.kind~=kind or type(record.key)~='string'then error('Item localization key is missing',0)end
    return value(packs.en,record.key),value(packs.ja,record.key)
  end
end

end)()
local localizationPackSnapshot = (function()
-- Installed build 25834809: LocalizationManager.GetDatabase/LanguagePack and LocalizedString[].
-- Pure memory snapshot. No language switch, asset mutation, API call, or embedded game text.
return function(manager,memory,filter)
  local reads={}
  local function check(ok,message)if not ok then error(message,0)end return ok end
  local function capture(fn,address)
    local value=fn(address);check(value~=nil,'Unavailable localization data')
    reads[#reads+1]={fn,address,value};return value
  end
  local function p(a)return capture(memory.pointer,a)end
  local function n(a)return capture(memory.integer,a)end
  local function text(address,nullable)
    if address==0 then check(nullable,'Missing localization key');return nil end
    local count=n(address+0x10);check(count&gt;=0,'Invalid localization string length')
    if count==0 then return '' end
    return capture(function(a)return memory.string(a,count*2)end,address+0x14)
  end
  check(manager and manager~=0,'Missing localization manager')
  local managerIdentity=p(manager+0x10);check(managerIdentity~=0,'Localization manager was destroyed')
  local override=p(manager+0x28)
  local database=override~=0 and p(override+0x10)~=0 and override or p(manager+0x20)
  check(database~=0,'Missing localization database')
  local identity=p(database+0x10);check(identity~=0,'Localization database was destroyed')
  local revision=n(database+0x20)
  local packs=p(database+0x18);check(packs~=0,'Missing language pack list')
  local count=n(packs+0x18);check(count&gt;=0,'Invalid language pack array')
  local fallbackLanguage=n(manager+0x4C)
  local selected,languageEntries={},{}
  -- Array.Find in GetLanguagePack picks the first matching LanguageAsset.
  for index=0,count-1 do
    local asset=p(packs+0x20+index*8);check(asset~=0,'Missing language asset')
    local language=n(asset+0x10)
    languageEntries[#languageEntries+1]={asset=asset,language=language}
    if (language==0 or language==7 or language==fallbackLanguage)and not selected[language]then selected[language]=asset end
  end
  local out={manager=manager,managerIdentity=managerIdentity,database=database,identity=identity,
    revision=revision,packs=packs,packCount=count,maxKeyLength=0,fallbackLanguage=fallbackLanguage}
  local cache={}
  for _,target in ipairs({{0,'en'},{7,'ja'},{fallbackLanguage,'fallback'}})do
    if cache[target[1]]then out[target[2]]=cache[target[1]]else
    local asset=check(selected[target[1]],'Requested language is not present in the game database')
    local pack=p(asset+0x18);check(pack~=0,'Language pack is not loaded')
    local packIdentity=p(pack+0x10);check(packIdentity~=0,'Language pack was destroyed')
    check(n(pack+0x18)==target[1],'Language pack identity differs from its entry')
    local data=p(pack+0x20);check(data~=0,'Language strings are not loaded')
    local length=n(data+0x18);check(length&gt;=0,'Invalid language string array')
    local result={asset=asset,pack=pack,identity=packIdentity,data=data,count=length,values={}}
    for index=0,length-1 do
      local entry=data+0x20+index*16
      local keyPointer=p(entry);local key=text(keyPointer,false)
      if not filter or filter(key)then
        local value=text(p(entry+8),true)
        -- _LoadLanguage uses Dictionary.set_Item: the last duplicate wins.
        if value==nil then result.values[key]=false else result.values[key]=value end
        if keyPointer~=0 then out.maxKeyLength=math.max(out.maxKeyLength,n(keyPointer+0x10))end
      end
    end
    out[target[2]]=result;cache[target[1]]=result
    end
  end
  function out.validate()
    for _,read in ipairs(reads)do check(read[1](read[2])==read[3],'Localization data changed while reading')end
    return true
  end
  -- Labels are read-only cached display text. Check structural ownership on
  -- target refresh without rereading every localization key in all languages.
  -- Full validate() still runs around requests and on explicit editor opening.
  function out.validateIdentity()
    check(memory.pointer(manager+0x10)==managerIdentity,'Localization manager changed')
    local currentOverride=memory.pointer(manager+0x28)
    check(currentOverride~=nil,'Localization override is unreadable')
    local currentDatabase=currentOverride and currentOverride~=0 and memory.pointer(currentOverride+0x10)~=0
      and currentOverride or memory.pointer(manager+0x20)
    check(currentDatabase==database and memory.pointer(database+0x10)==identity
      and memory.integer(database+0x20)==revision and memory.pointer(database+0x18)==packs
      and memory.integer(packs+0x18)==count and memory.integer(manager+0x4C)==fallbackLanguage,
      'Localization database changed')
    for index,entry in ipairs(languageEntries)do
      check(memory.pointer(packs+0x20+(index-1)*8)==entry.asset and memory.integer(entry.asset+0x10)==entry.language,
        'Localization language list changed')
    end
    for _,target in ipairs({{0,'en'},{7,'ja'},{fallbackLanguage,'fallback'}})do
      local entry=out[target[2]]
      check(memory.integer(entry.asset+0x10)==target[1]and memory.pointer(entry.asset+0x18)==entry.pack
        and memory.pointer(entry.pack+0x10)==entry.identity and memory.integer(entry.pack+0x18)==target[1]
        and memory.pointer(entry.pack+0x20)==entry.data and memory.integer(entry.data+0x18)==entry.count,
        'Localization language pack changed')
    end
    return true
  end
  out.validate()
  return out
end

end)()
local runtimeItemCatalog = (function()
-- Read the live database without embedding item names, categories or equipment values.
-- The label resolver supplies game localization; it must not infer ambiguous translations.
return function(database,memory)
  local source,reads,labelReads=memory,{},{}
  memory={}
  for _,key in ipairs({'follow','pointer','integer','float','word','byte','cstring'})do
    local reader=source[key]
    memory[key]=function(...)
      local args=table.pack(...)
      local value=reader(table.unpack(args,1,args.n))
      reads[#reads+1]={reader=reader,args=args,value=value}
      return value
    end
  end
  memory.label=function(address,kind)
    local en,ja=source.label(address,kind)
    labelReads[#labelReads+1]={address=address,kind=kind,en=en,ja=ja}
    return en,ja
  end
  local follow,integer=memory.follow,memory.integer
  local function need(value,message)if not value then error(message,0)end return value end
  local function finite(value)return type(value)=='number' and value==value and math.abs(value)&lt;math.huge end
  local function number(address)
    local value=memory.float(address);return need(finite(value) and value,'Invalid equipment value')
  end
  local classes={}
  local function lineage(info)
    local class=need(follow(info,0),'Item class is missing')
    if classes[class] then return classes[class]end
    local initial=class;local names,seen={},{}
    while class do
      need(not seen[class],'Class inheritance cycle');seen[class]=true
      -- Il2CppClass.name/namespaze are byte-aligned char*, not object pointers.
      -- The shared follow() intentionally accepts only 8-byte-aligned objects.
      local nameAddress=memory.pointer(class+0x10)
      local namespaceAddress=memory.pointer(class+0x18)
      need(type(nameAddress)=='number'and nameAddress&gt;=0x10000 and nameAddress&lt;0x800000000000,'Class name pointer is invalid')
      need(type(namespaceAddress)=='number'and namespaceAddress&gt;=0x10000 and namespaceAddress&lt;0x800000000000,'Class namespace pointer is invalid')
      local name=need(memory.cstring(nameAddress),'Class name is missing')
      local namespace=need(memory.cstring(namespaceAddress),'Class namespace is missing')
      names[namespace..'.'..name]=true
      class=follow(class,0x58)
    end
    need(names['SandSailorStudio.Inventory.ItemInfo'],'Database contains a non-item class')
    classes[initial]=names;return names
  end
  local namesByCategory={}
  local function category(info)
    local pointer=follow(info,0x20)
    if not pointer then return 0,'Uncategorized','未分類' end
    local partsEn,partsJa={},{}
    local function append(current)
      if not namesByCategory[current]then
        local en,ja=memory.label(current,'category')
        need(type(en)=='string' and type(ja)=='string','Category label is missing')
        namesByCategory[current]={en,ja}
      end
      local labels=namesByCategory[current]
      partsEn[#partsEn+1]=labels[1];partsJa[#partsJa+1]=labels[2]
    end
    -- Match the game's direct-parent semantics instead of inventing a recursive tree.
    local parent=follow(pointer,0x18)
    if parent and parent~=pointer then append(parent)end
    append(pointer)
    return need(integer(pointer+0x20),'Category ID is missing'),table.concat(partsEn,' / '),table.concat(partsJa,' / ')
  end
  local attributeKeys={[1013]='durability',[124]='armor',[120]='cold',[121]='rain',[122]='wind',[1005]='buildPower'}
  local function equipmentStats(info,types)
    local equipment=types['SandSailorStudio.Inventory.EquipmentItemInfo']
    local weapon=types['SandSailorStudio.Inventory.WeaponizedItemInfo']
    local ranged=types['SandSailorStudio.Inventory.RangedWeaponInfo']
    if not equipment then return end
    local result={}
    if memory.byte(info+0x30)==1 then result.tier=need(integer(info+0x34),'Tier is missing')end
    local attributes=follow(info,0x90)
    if attributes then
      local effective={}
      local count=need(integer(attributes+0x18),'Attribute count is missing')
      need(count&gt;=0,'Invalid attribute count')
      for index=0,count-1 do
        local data=need(follow(attributes,0x20+8*index),'Attribute data is missing')
        local config=follow(data,0x10)
        if config and follow(config,0x10)then
          local key=attributeKeys[integer(config+0x18)]
          -- ItemInfo.Configure3680FB0 assigns cachedAttributes[id] in array
          -- order (Dictionary.set_Item); the last matching entry is effective.
          if key then effective[key]=data end
        end
      end
      for key,data in pairs(effective)do
        local value=number(data+0x1C)*number(data+0x18)
        need(finite(value),'Invalid multiplied attribute value')
        value=string.unpack('&lt;f',string.pack('&lt;f',value))
        result[key]=need(finite(value) and value,'Multiplied attribute overflows float32')
      end
      need(integer(attributes+0x18)==count and follow(info,0x90)==attributes,'Equipment attributes changed')
    end
    if weapon then
      result.damageMin,result.damageMax,result.wearPerUse=number(info+0xF0),number(info+0xF4),number(info+0xF8)
    end
    if ranged then
      result.shotSpeedLow,result.shotSpeedHigh=number(info+0x110),number(info+0x114)
      result.spread,result.bowWeight=number(info+0x118),number(info+0x11C)
    end
    return result
  end
  local complete=need(follow(database,0x20),'Complete item list is missing')
  local list=need(follow(complete,0x18),'Item list is missing')
  local array=need(follow(list,0x10),'Item array is missing')
  local count,version,capacity=integer(list+0x18),integer(list+0x1C),integer(array+0x18)
  need(count and version and capacity and count&gt;=0 and count&lt;=capacity and count&lt;=65536,'Invalid item database size')
  local groups,byInfo,ids,watch={},{},{},{}
  for index=0,count-1 do
    local info=need(follow(array,0x20+index*8),'Item reference is missing')
    local native=need(follow(info,0x10),'Item asset is unavailable')
    local id=need(integer(info+0x18),'Item ID is missing')
    need(not ids[id],'Duplicate item ID');ids[id]=true
    need(memory.word(info+0x1C)==index,'Item index differs from the database')
    watch[#watch+1]={info=info,native=native,id=id,index=index,class=follow(info,0),
      category=follow(info,0x20),attributes=follow(info,0x90)}
    local types=lineage(info)
    if not types['SSSGame.BiomeResourceInfo'] and not types['SSSGame.MarkerInfo'] then
      local en,ja=memory.label(info,'item')
      need(type(en)=='string' and type(ja)=='string','Item label is missing')
      local categoryId,groupEn,groupJa=category(info)
      local group=groups[categoryId]
      if not group then group={en=groupEn,ja=groupJa,items={}};groups[categoryId]=group end
      need(group.en==groupEn and group.ja==groupJa,'Category ID is ambiguous')
      local stats=equipmentStats(info,types)
      local row={id,en,ja,stats,address=info,databaseIndex=index,
        blueprint=types['SandSailorStudio.Inventory.BlueprintInfo']==true}
      group.items[#group.items+1]=row
      byInfo[info]={en=en,ja=ja,category=categoryId,groupEn=groupEn,groupJa=groupJa,stats=stats}
    end
  end
  need(follow(database,0x20)==complete and follow(complete,0x18)==list and follow(list,0x10)==array
    and integer(list+0x18)==count and integer(list+0x1C)==version and integer(array+0x18)==capacity,
    'Item database changed while reading')
  for _,row in ipairs(watch)do
    need(follow(array,0x20+row.index*8)==row.info and follow(row.info,0x10)==row.native
      and integer(row.info+0x18)==row.id and memory.word(row.info+0x1C)==row.index
      and follow(row.info,0)==row.class and follow(row.info,0x20)==row.category
      and follow(row.info,0x90)==row.attributes,'Item identity changed while reading')
  end
  local result={}
  for _,group in pairs(groups)do
    table.sort(group.items,function(a,b)return a[2]&lt;b[2]or(a[2]==b[2]and a[1]&lt;b[1])end)
    result[#result+1]=group
  end
  table.sort(result,function(a,b)return a.en&lt;b.en end)
  for _,read in ipairs(reads)do
    need(read.reader(table.unpack(read.args,1,read.args.n))==read.value,'Item data changed while reading')
  end
  for _,read in ipairs(labelReads)do
    local en,ja=source.label(read.address,read.kind)
    need(en==read.en and ja==read.ja,'Item localization changed while reading')
  end
  return result,byInfo
end

end)()
local characterEditorSnapshot, characterEditorStats = (function()
-- Read-only target and field resolution shared by the two character editors.
local stats = {
  {key='health', offset=0x68, id=2200, en='Health', ja='体力'},
  {key='energy', offset=0xF8, id=2201, en='Stamina (energy)', ja='スタミナ（エネルギー）'},
  {key='food', offset=0x78, id=2212, en='Food', ja='空腹度'},
  {key='water', offset=0x98, id=2211, en='Water', ja='水分'},
  {key='warmth', offset=0x100, id=2210, en='Warmth', ja='体温'},
  {key='rest', offset=0x310, id=2203, en='Rest', ja='休息', memberOnly=true},
  {key='happiness', offset=0x558, id=2207, en='Happiness', ja='幸福度', memberOnly=true, character=true},
  {key='wetness', offset=0xC8, id=2220, en='Wetness', ja='濡れ'},
  {key='frost', offset=0xE0, id=2221, en='Frost', ja='凍結'},
  {key='ravenLeft', offset=0x160, id=2205, en='Raven transformation remaining', ja='カラス変身の残量', character=true},
}

local function finite(value)
  return type(value)=='number' and value==value and math.abs(value)&lt;math.huge
end

local function managedString(memory, address)
  if not address then return end
  local length=memory.integer(address+0x10)
  if length and length&gt;0 and length&lt;=1024 then
    return memory.string(address+0x14,length)
  end
end

local function defaultVillagerName(context,memory,address)
  local follow,integer=memory.follow,memory.integer
  local definition=follow(address,0xF8)
  local definitionClass=context.villagerDefinitionClass
  if not definitionClass or not definition or follow(definition,0)~=definitionClass then return end

  local nameId=integer(address+0x614)
  local names=follow(definition,0x78)
  local array=follow(names,0x10)
  local count=names and integer(names+0x18)
  local version=names and integer(names+0x1C)
  local capacity=array and integer(array+0x18)
  if not nameId or not count or count&lt;=0 or version==nil or not capacity or count&gt;capacity then return end

  -- The backing ID follows Fusion's name field; skip a changing snapshot.
  local state=follow(address,0x48)
  if state then
    local networkId=memory.byte(state+0x3D)
    if networkId==nil then return end
    if networkId&gt;=128 then networkId=networkId-256 end
    if networkId~=nameId then return end
  end

  local stringAddress=follow(array,0x20+(math.abs(nameId)%count)*8)
  local name=managedString(memory,stringAddress)
  if follow(address,0xF8)~=definition or integer(address+0x614)~=nameId
    or follow(address,0x48)~=state or follow(definition,0x78)~=names
    or follow(names,0x10)~=array or integer(names+0x18)~=count or integer(names+0x1C)~=version then return end
  return name
end

local function editorTarget(context,memory,member,settlement)
  local follow,byte=memory.follow,memory.byte
  local address=member and member.address or context.player
  local identity=memory.unityIdentity(address)
  local expectedIdentity=member and member.identity or context.identity
  if not identity or identity~=expectedIdentity or follow(address,0x38)~=context.runner
    or byte(address+0x194)~=0 then return end

  local ownerOffset=member and 0x490 or 0x3C8
  local survival=follow(address,ownerOffset)
  local survivalIdentity=memory.unityIdentity(survival)
  if not survivalIdentity or follow(survival,0x160)~=address
    or byte(survival+0x16B)~=1 or byte(survival+0x16C)~=1 then return end

  local function villagerIdAddress()
    -- Both Villager ID getters use adjacent integers, in the instance or in network state.
    if not memory.unityIdentity(follow(address,0x40)) then return address+0x6E4 end
    local state=follow(address,0x48)
    return state and (state+0x84)
  end

  local guid, guidAddress, name, persistentId, recyclableId, idAddress
  if member then
    if not settlement or follow(address,0x4C8)~=settlement then return end
    idAddress=villagerIdAddress()
    persistentId=idAddress and memory.integer(idAddress)
    recyclableId=idAddress and memory.integer(idAddress+4)
    guidAddress=follow(address,0x628)
    guid=managedString(memory,guidAddress)
    if guidAddress and not guid then return end
    name=managedString(memory,follow(address,0x620)) or defaultVillagerName(context,memory,address)
  end

  local values={}
  for _,spec in ipairs(stats) do
    local attribute
    if member or not spec.memberOnly then
      attribute=follow(spec.character and address or survival,spec.offset)
    end
    local class=follow(attribute,0)
    if class and follow(class,0x188)==context.base+0x35EA4C0
      and memory.integer(attribute+0x10)==spec.id
      and (spec.key~='health' or follow(address,0x150)==attribute) then
      local value=memory.float(attribute+0x28)
      local lower,upper=memory.float(attribute+0x40),memory.float(attribute+0x44)
      local ignoreLower,ignoreUpper=byte(attribute+0x48),byte(attribute+0x49)
      if finite(value) and finite(lower) and finite(upper)
        and (ignoreLower==0 or ignoreLower==1) and (ignoreUpper==0 or ignoreUpper==1)
        and (ignoreLower==1 or ignoreUpper==1 or lower&lt;=upper) then
        values[spec.key]={
          attribute=attribute,class=class,id=spec.id,offset=spec.offset,
          value=value,lower=lower,upper=upper,ignoreLower=ignoreLower,ignoreUpper=ignoreUpper,
        }
      end
    end
  end

  if memory.unityIdentity(address)~=identity or follow(address,ownerOffset)~=survival
    or memory.unityIdentity(survival)~=survivalIdentity or follow(address,0x38)~=context.runner
    or follow(survival,0x160)~=address or byte(address+0x194)~=0
    or (member and (follow(address,0x4C8)~=settlement
      or villagerIdAddress()~=idAddress
      or (idAddress and memory.integer(idAddress))~=persistentId
      or follow(address,0x628)~=guidAddress
      or managedString(memory,guidAddress)~=guid)) then return end

  -- Recyclable IDs are display data. A reassignment does not invalidate this villager.
  if idAddress then
    if memory.integer(idAddress+4)~=recyclableId then recyclableId=nil end
    if villagerIdAddress()~=idAddress then return end
  end
  return {
    id=('%X:%X:%X:%X:%s'):format(address,identity,survival,survivalIdentity,guid or ''),
    address=address,identity=identity,survival=survival,survivalIdentity=survivalIdentity,
    guid=guid,persistentId=persistentId,recyclableId=recyclableId,name=name,values=values,settlement=settlement,
  }
end

return editorTarget,stats

end)()
local deedsSnapshot = (function()
-- Installed build 25834809: DeedsDatabase._GetDeedProgressInternal 109F170,
-- Dictionary&lt;int,int[]&gt;.TryGetValue 2B8A320 and FindEntry 2B66520.
-- No game process access is performed unless a caller supplies its memory reader.
local function snapshot(memory,database)
  local ptr,int,byte=memory.pointer,memory.integer,memory.byte
  local function check(value,message) if not value then error(message,0) end return value end
  local reads={}
  local function capture(reader,address)
    local value=reader(address)
    check(value~=nil,'Unavailable deed data')
    reads[#reads+1]={reader=reader,address=address,value=value}
    return value
  end
  local function p(a)return capture(ptr,a)end
  local function n(a)return capture(int,a)end
  local function b(a)return capture(byte,a)end
  local function list(address)
    check(address~=0,'Missing deed list')
    local array,count,version=p(address+0x10),n(address+0x18),n(address+0x1C)
    check(array~=0 and count&gt;=0 and count&lt;=n(array+0x18),'Invalid deed list')
    local out={}
    for i=0,count-1 do out[#out+1]=p(array+0x20+i*8) end
    return out,{address=address,array=array,count=count,version=version}
  end
  local function text(address)
    if address==0 then return '' end
    local count=n(address+0x10)
    check(count&gt;=0,'Invalid deed text')
    if count==0 then return '' end
    local value=check(memory.string(address+0x14,count*2),'Unavailable deed text')
    reads[#reads+1]={reader=function(a)return memory.string(a,count*2)end,address=address+0x14,value=value}
    return value
  end
  check(database and database~=0,'Missing deeds database')
  local identity=p(database+0x10)
  check(identity~=0 and b(database+0xA8)==1,'Deeds database is not initialized')
  local deeds,deedList=list(p(database+0x40))
  local dictionary=p(database+0xB0)
  check(dictionary~=0,'Missing deeds progress dictionary')
  local entries=p(dictionary+0x18)
  local progress={}
  if entries~=0 then
    local capacity=n(entries+0x18)
    check(capacity&gt;=0,'Invalid progress entry array')
    for i=0,capacity-1 do
      local address=entries+0x20+i*24
      local hash=n(address)
      local value=p(address+0x10)
      if hash&gt;=0 and hash&lt;0x80000000 and value~=0 then
        local id=n(address+8)
        check(progress[id]==nil,'Duplicate deed progress ID')
        progress[id]=value
      end
    end
  end
  local out,ids={},{}
  for deedIndex,deed in ipairs(deeds)do
    check(deed~=0,'Missing deed asset')
    local deedIdentity=p(deed+0x10)
    check(deedIdentity~=0,'Deed asset is no longer alive')
    local id,tier=n(deed+0x18),n(deed+0x1C)
    check(not ids[id],'Duplicate deed ID');ids[id]=true
    local category=p(deed+0x20)
    -- A serialized uncategorized placeholder is present in both installed
    -- scene lists. It cannot belong to a category editor; keep original list
    -- indices for all following categorized deeds rather than rejecting them.
    if category~=0 then
    local conditions,conditionList=list(p(deed+0x48))
    local stored=progress[id]
    -- The game treats missing or mismatched progress arrays as all-zero progress.
    local valid=stored and n(stored+0x18)==#conditions
    local row={address=deed,identity=deedIdentity,index=deedIndex-1,id=id,tier=tier,name=text(p(deed+0x30)),
      conditionList=conditionList,
      category=category,categoryId=n(category+0x18),categoryName=text(p(category+0x28)),conditions={}}
    for index,condition in ipairs(conditions)do
      check(condition~=0,'Missing deed condition')
      local conditionClass=p(condition)
      check(conditionClass~=0,'Missing deed condition type')
      local maximum=n(condition+0x14)
      check(maximum&gt;=0,'Invalid deed maximum progress')
      row.conditions[index]={index=index-1,address=condition,class=conditionClass,maximum=maximum,
        progress=valid and n(stored+0x20+(index-1)*4) or 0}
    end
    out[#out+1]=row
    end
  end
  for _,read in ipairs(reads)do check(read.reader(read.address)==read.value,'Deed data changed while reading') end
  return {database=database,identity=identity,deeds=out,deedList=deedList,progressDictionary=dictionary}
end
return snapshot

end)()
local deedsEditorContext = (function()
-- Refresh one God's numeric progress without rereading localized strings.
local function refresh(memory,snapshot,categoryId)
  local reads={}
  local function check(ok,message)if not ok then error(message,0)end return ok end
  local function capture(fn,address)
    local value=fn(address);check(value~=nil,'Unavailable deed editor data')
    reads[#reads+1]={fn,address,value};return value
  end
  local function p(a)return capture(memory.pointer,a)end
  local function n(a)return capture(memory.integer,a)end
  local function b(a)return capture(memory.byte,a)end
  local db=snapshot.database
  check(p(db+0x10)==snapshot.identity and snapshot.identity~=0 and b(db+0xA8)==1,'Deeds database changed')
  local function list(expected)
    check(p(expected.address+0x10)==expected.array and n(expected.address+0x18)==expected.count
      and n(expected.address+0x1C)==expected.version and expected.count&lt;=n(expected.array+0x18),'Deed list changed')
  end
  check(p(db+0x40)==snapshot.deedList.address,'Deeds database list changed');list(snapshot.deedList)
  local dict=p(db+0xB0);check(dict~=0 and dict==snapshot.progressDictionary,'Deed progress dictionary changed')
  local entries=p(dict+0x18);local count=n(dict+0x20);n(dict+0x2C)
  check(count&gt;=0 and (entries~=0 or count==0),'Invalid deed dictionary')
  local progress={}
  if entries~=0 then
    check(count&lt;=n(entries+0x18),'Invalid deed dictionary count')
    for index=0,count-1 do
      local entry=entries+0x20+index*24;local hash=n(entry)
      if hash&gt;=0 and hash&lt;0x80000000 then
        local value=p(entry+0x10)
        if value~=0 then
          local id=n(entry+8);check(not progress[id],'Duplicate deed ID');progress[id]=value
        end
      end
    end
  end
  local out={database=db,identity=snapshot.identity,deedList=snapshot.deedList,progressDictionary=dict,deeds={}}
  for index,deed in ipairs(snapshot.deeds)do
    out.deeds[index]=deed
    if deed.categoryId==categoryId then
      check(p(snapshot.deedList.array+0x20+deed.index*8)==deed.address
        and p(deed.address+0x10)==deed.identity and n(deed.address+0x18)==deed.id,'Deed identity changed')
      check(p(deed.address+0x20)==deed.category and n(deed.category+0x18)==categoryId,'Deed category changed')
      check(n(deed.address+0x1C)==deed.tier,'Deed tier changed')
      check(p(deed.address+0x48)==deed.conditionList.address,'Deed conditions changed');list(deed.conditionList)
      local stored=progress[deed.id];local valid=stored and n(stored+0x18)==#deed.conditions
      local row={};for key,value in pairs(deed)do row[key]=value end;row.conditions={}
      for position,condition in ipairs(deed.conditions)do
        check(p(deed.conditionList.array+0x20+condition.index*8)==condition.address
          and p(condition.address)==condition.class and n(condition.address+0x14)==condition.maximum,'Deed condition changed')
        local c={};for key,value in pairs(condition)do c[key]=value end
        c.progress=valid and n(stored+0x20+condition.index*4) or 0
        row.conditions[position]=c
      end
      out.deeds[index]=row
    end
  end
  for _,read in ipairs(reads)do check(read[1](read[2])==read[3],'Deed data changed while refreshing')end
  return {snapshot=out,categoryId=categoryId,identity=('%X:%X:%d'):format(db,snapshot.identity,categoryId)}
end
return refresh

end)()
local deedsEditRequest = (function()
-- Build 25834809. Serialize a captured deed condition; no memory access or game calls.
-- The owner writes status +3C=1 only after submitting the entire request with status zero.
local function request(snapshot,deed,condition,value,moduleBase)
  local function check(ok,message)if not ok then error(message,0)end end
  local function integer(v)return type(v)=='number' and v==v and v%1==0 end
  local function pointer(v)return integer(v) and v&gt;=0x10000 and v&lt;0x800000000000 end
  local function signed(v)
    check(integer(v) and v&gt;=-0x80000000 and v&lt;=0xFFFFFFFF,'Invalid captured 32-bit value')
    return v&gt;=0x80000000 and v-0x100000000 or v
  end
  check(type(snapshot)=='table' and type(deed)=='table' and type(condition)=='table','Missing deed snapshot')
  check(pointer(moduleBase) and pointer(snapshot.database) and pointer(snapshot.identity),'Invalid database context')
  check(pointer(snapshot.progressDictionary),'Missing progress dictionary')
  local list,deedList=deed.conditionList,snapshot.deedList
  check(type(list)=='table' and type(deedList)=='table','Missing captured deed lists')
  check(integer(deed.index) and deed.index&gt;=0 and deed.index&lt;deedList.count
    and snapshot.deeds[deed.index+1]==deed,'Deed is not in this snapshot')
  check(integer(condition.index) and condition.index&gt;=0 and condition.index&lt;list.count
    and deed.conditions[condition.index+1]==condition,'Condition is not in this deed')
  check(integer(deed.categoryId) and deed.categoryId&gt;=0 and deed.categoryId&lt;=6,'Target is not a Gods favor category')
  check(integer(value) and value&gt;=0 and value&lt;=0x7FFFFFFF and value&lt;=condition.maximum,'Invalid deed progress')
  check(integer(condition.progress) and condition.progress&gt;=-0x80000000 and condition.progress&lt;=0x7FFFFFFF,'Invalid captured progress')
  for _,p in ipairs({deed.address,deed.identity,list.address,list.array,deedList.address,deedList.array,condition.class,condition.address})do
    check(pointer(p),'Invalid captured deed pointer')
  end
  local fields={
    {0x00,'I8',snapshot.database},{0x08,'I8',snapshot.identity},
    {0x10,'I8',deed.address},{0x18,'I8',deed.identity},
    {0x20,'I8',list.address},{0x28,'I8',list.array},
    {0x30,'i4',condition.index},{0x34,'i4',condition.progress},{0x38,'i4',value},{0x3C,'i4',0},
    {0x40,'i4',0},{0x44,'i4',0},
    {0x48,'I8',moduleBase+0x109F170},{0x50,'I8',moduleBase+0x109FDB0},
    {0x58,'I8',moduleBase+0x109D990},{0x60,'I8',moduleBase+0x109F4A0},
    {0x68,'I8',moduleBase+0x109EFD0},{0x70,'I8',moduleBase+0x109F940},{0x78,'I8',0},
    {0x80,'I8',snapshot.progressDictionary},{0x88,'I8',deedList.address},{0x90,'I8',deedList.array},
    {0x98,'i4',deed.index},{0x9C,'i4',signed(deedList.version)},
    {0xA0,'i4',signed(list.version)},{0xA4,'i4',0},
    {0xA8,'I8',condition.class},{0xB0,'I8',condition.address},{0xB8,'I8',0},
    {0xC0,'i4',signed(deed.id)},{0xC4,'i4',0},
  }
  local out=''
  for _,field in ipairs(fields)do
    check(#out==field[1],'Invalid deed request layout')
    out=out..string.pack('&lt;'..field[2],field[3])
  end
  check(#out==0xC8,'Invalid deed request size')
  return out
end
return request

end)()
local deedsEditorFields = (function()
-- CE field definitions for one runtime Gods' Favors category.
-- This module neither opens a window nor writes memory; its owner submits native edits.
local function fieldsFor(snapshot,categoryId,labels)
  local function check(value,message)if not value then error(message,0)end return value end
  local fields={}
  for _,deed in ipairs(snapshot.deeds)do
    if deed.categoryId==categoryId then
      local address,identity,id=deed.address,deed.identity,deed.id
      local groupName=deed.name~='' and deed.name or tostring(id)
      local label=labels and labels[address]
      if label then check(label.kind==4 and label.id==id and label.identity==identity,'Deed name identity changed')end
      local groupKey='deed:'..id
      local function current(ctx)
        if ctx._deedsIndexedSnapshot~=ctx.snapshot then
          local map={}
          for _,row in ipairs(ctx.snapshot.deeds)do check(not map[row.id],'Duplicate deed ID');map[row.id]=row end
          ctx._deedsIndexedSnapshot,ctx._deedsById=ctx.snapshot,map
        end
        local row=check(ctx._deedsById[id],'Deed is unavailable')
        check(row.address==address and row.identity==identity and row.categoryId==categoryId,'Deed identity changed')
        return row
      end
      local function add(en,ja,read,extra)
        local field={en=en,ja=ja,kind='integer',read=read,strict=true,
          category=groupKey,groupEn=label and label.en or groupName,groupJa=label and label.ja or groupName}
        for k,v in pairs(extra or {})do field[k]=v end
        fields[#fields+1]=field
      end
      add('ID','ID',function(ctx)return current(ctx).id end,{readOnly=true})
      add('Tier','段階',function(ctx)return current(ctx).tier end,{readOnly=true})
      for _,condition in ipairs(deed.conditions)do
        local index,conditionAddress,conditionClass=condition.index,condition.address,condition.class
        local function live(ctx)
          local c=check(current(ctx).conditions[index+1],'Deed condition is unavailable')
          check(c.index==index and c.address==conditionAddress and c.class==conditionClass,'Deed condition changed')
          return c
        end
        add(('Condition %d progress'):format(index+1),('条件%dの進捗'):format(index+1),
          function(ctx)return live(ctx).progress end,{min=0,max=condition.maximum,
            deedCondition={id=id,index=index,address=conditionAddress,class=conditionClass}})
        add(('Condition %d maximum'):format(index+1),('条件%dの最大値'):format(index+1),
          function(ctx)return live(ctx).maximum end,{readOnly=true})
      end
    end
  end
  return fields
end
return fieldsFor

end)()
local sprintCostCode = (function()
-- Generated from villager_sprint_cost_override_candidate.asm.
return function(moduleBase,cave)
  local code="\x9c\x50\x41\x52\x49\xba\x88\x77\x66\x55\x44\x33\x22\x11\x41\x83\x7a\x2c\x01\x75\x61\x49\x3b\x1a\x75\x5c\x48\x85\xdb\x74\x57\x48\x8b\x43\x10\x49\x3b\x42\x08\x75\x4d\x48\x8b\x43\x38\x49\x3b\x42\x10\x75\x43\x48\x85\xc0\x74\x3e\x83\xb8\x80\x01\x00\x00\x01\x75\x35\x48\x8b\x03\x49\x3b\x42\x18\x75\x2c\x80\xbb\x94\x01\x00\x00\x00\x75\x23\x48\x85\xc9\x74\x1e\x49\x3b\x4a\x20\x75\x18\x48\x3b\x8b\x40\x04\x00\x00\x75\x0f\xf3\x41\x0f\x10\x42\x28\x41\x5a\x58\x9d\xe9\x32\x11\xdc\xf9\xf0\x41\xff\x42\x30\x41\x5a\x58\x9d\xe8\xcc\x1b\x63\xfc\x9c\x41\x52\x49\xba\x88\x77\x66\x55\x44\x33\x22\x11\xf0\x41\xff\x4a\x30\x41\x5a\x9d\xe9\x0a\x11\xdc\xf9"
  local control=cave+0x220
  local getter=moduleBase+0x3631C50
  local continuation=moduleBase+0xDC11A8
  code=code:sub(1,6)..string.pack('&lt;I8',control)..code:sub(15)
  code=code:sub(1,114)..string.pack('&lt;i4',continuation-(cave+118))..code:sub(119)
  code=code:sub(1,128)..string.pack('&lt;i4',getter-(cave+132))..code:sub(133)
  code=code:sub(1,137)..string.pack('&lt;I8',control)..code:sub(146)
  code=code:sub(1,154)..string.pack('&lt;i4',continuation-(cave+158))..code:sub(159)
  return code
end

end)()
-- Candidate entry registration. The shared installer owns suspension, rollback and recovery.
local function registerVillagerSprintCost(emit)
  local signature={0xE8,0xA8,0x0A,0x87,0x02,0x48,0x8B,0x8B,0x48,0x05,0,0,0x0F,0x28,0xF0,0x48,0x85}
  local original={table.unpack(signature,1,5)}
  local function code(context,cave)
    local nativeCode=emit(context.base,cave)
    need(#nativeCode&lt;0x220-16,'Sprint override code exceeds its allocation.','ダッシュ消費の処理が確保範囲を超えています。')
    return nativeCode..string.rep('\0',0x220+0x34-#nativeCode)
  end
  local function idle(cave)
    need(readInteger(cave+0x250)==0,
      'A sprint cost calculation is still running. Retry the operation.',
      'ダッシュ時の消費量を計算中です。再試行してください。')
  end
  return entryFeature('villagerSprintCost',0xDC11A3,original,signature,soloContext,code,nil,0x34,idle,0x220)
end

-- Candidate controller for the member editor's sprint-cost row.
local function villagerSprintSelection(target)
  if not target or not target.settlement then return end
  local actor=target.address
  local identity=unityIdentity(actor)
  local runner=follow(actor,0x38)
  local class=follow(actor,0)
  local reference=follow(actor,0x440)
  local asset=reference and follow(reference,0x10)
  if not identity or identity~=(target.objectIdentity or target.identity) or not runner or not class
    or not asset or not unityIdentity(asset) then return end
  local value=readFloat(asset+0x18)
  if type(value)~='number' or value~=value or value&lt;0 or value==math.huge then return end
  return {actor=actor,identity=identity,runner=runner,class=class,reference=reference,asset=asset,value=value}
end

local function sameVillagerSprintSelection(left,right)
  return left and right and left.actor==right.actor and left.identity==right.identity
    and left.runner==right.runner and left.class==right.class and left.reference==right.reference
    and left.asset==right.asset
end

local function writeVillagerSprintCost(control,selection,value)
  local rounded=string.unpack('&lt;f',string.pack('&lt;f',value))
  need(value&gt;=0 and rounded&lt;math.huge and (value==0 or rounded&gt;0),
    'Enter a nonnegative sprint cost within the game numeric range.',
    'ダッシュ消費にはゲームで扱える0以上の値を入力してください。')
  local previous=need(bytes(control,0x30),'Cannot read sprint override state.','ダッシュ消費の設定を読み取れません。')
  need(#previous==0x30,'Incomplete sprint override state.','ダッシュ消費の設定を完全に読み取れません。')
  local payload=string.pack('&lt;I8I8I8I8I8fI4',selection.actor,selection.identity,selection.runner,
    selection.class,selection.reference,rounded,1)
  local nextBytes={payload:byte(1,#payload)}
  local function writeVerified(data)
    return writeBytes(control,data)==#data and equal(bytes(control,#data),data)
  end
  -- The caller holds the game suspension throughout publication and rollback.
  local ok,written=pcall(writeVerified,nextBytes)
  if not ok or not written then
    need(writeVerified(previous),'Sprint cost write rollback failed.','ダッシュ消費の設定を元に戻せません。')
    need(false,'Sprint cost could not be updated.','ダッシュ消費の設定を更新できません。')
  end
  return rounded
end

local function publishVillagerSprintCost(control,target,expected,value)
  local selection=villagerSprintSelection(target)
  need(sameVillagerSprintSelection(selection,expected) and selection.value==expected.value,
    'Sprint parameter changed. Refresh the member editor.',
    'ダッシュ消費の設定が変わりました。メンバーエディタで再取得してください。')
  return writeVillagerSprintCost(control,selection,value)
end

local function villagerSprintDisplay(feature,selection)
  if not ASKA.active.villagerSprintCost or ASKA.active.villagerSprintCost.cleanup then return selection.value end
  local control=feature.memberControl()
  local current=bytes(control,0x30)
  if not current or #current~=0x30 then return end
  local actor,identity,runner,class,reference,value,enabled=string.unpack('&lt;I8I8I8I8I8fI4',string.char(table.unpack(current)))
  if enabled==1 and actor==selection.actor and identity==selection.identity and runner==selection.runner
    and class==selection.class and reference==selection.reference then return value end
  return selection.value
end

local function registerFoodPreferenceInterval()
  local key="foodPreferenceInterval"
  local function emit(base,cave,site,getter)
    local code="\x9c\x50\x41\x52\x41\x53\x49\xba\x88\x77\x66\x55\x44\x33\x22\x11\x41\x83\x7a\x2c\x01\x75\x74\x4c\x8b\x9b\x00\x01\x00\x00\x4d\x85\xdb\x74\x68\x4d\x3b\x1a\x75\x63\x49\x39\x9b\x50\x05\x00\x00\x75\x5a\x49\x8b\x43\x10\x49\x3b\x42\x08\x75\x50\x49\x8b\x43\x38\x49\x3b\x42\x10\x75\x46\x48\x85\xc0\x74\x41\x83\xb8\x80\x01\x00\x00\x01\x75\x38\x49\x8b\x03\x49\x3b\x42\x18\x75\x2f\x41\x80\xbb\x94\x01\x00\x00\x00\x75\x25\x48\x85\xc9\x74\x20\x49\x3b\x4a\x20\x75\x1a\x48\x3b\x8b\xd8\x00\x00\x00\x75\x11\xf3\x41\x0f\x10\x42\x28\x41\x5b\x41\x5a\x58\x9d\xe9\x34\xd7\xde\xf9\xf0\x41\xff\x42\x30\x41\x5b\x41\x5a\x58\x9d\xe8\xb5\x1b\x63\xfc\x9c\x41\x52\x49\xba\x88\x77\x66\x55\x44\x33\x22\x11\xf0\x41\xff\x4a\x30\x41\x5a\x9d\xe9\x0a\xd7\xde\xf9"
    return code:sub(1,8)..string.pack('&lt;I8',cave+544)..code:sub(17,135)..string.pack('&lt;i4',base+site+5-(cave+139))..code:sub(140,151)..string.pack('&lt;i4',base+getter-(cave+155))..code:sub(156,160)..string.pack('&lt;I8',cave+544)..code:sub(169,177)..string.pack('&lt;i4',base+site+5-(cave+181))
  end
  local sites={}
  do
    local site,getter=0xded7ba,0x3631c50
    local signature={232,145,68,132,2,72,139,139,216,0,0,0}
    local original={table.unpack(signature,1,5)}
    sites[#sites+1]=entryFeature(key,site,original,signature,soloContext,function(context,cave)
      local code=emit(context.base,cave,site,getter)
      return code..string.rep('\0',596-#code)
    end,nil,0x34,function(cave) need(readInteger(cave+592)==0,
      'A food preference calculation is running. Retry the operation.',
      '食の好みを計算中です。再試行してください。')end,0x220)
  end
  do
    local site,getter=0xded7e0,0x3631bd0
    local signature={232,235,67,132,2,15,47,198,119,179,51,210}
    local original={table.unpack(signature,1,5)}
    sites[#sites+1]=entryFeature(key,site,original,signature,soloContext,function(context,cave)
      local code=emit(context.base,cave,site,getter)
      return code..string.rep('\0',596-#code)
    end,nil,0x34,function(cave) need(readInteger(cave+592)==0,
      'A food preference calculation is running. Retry the operation.',
      '食の好みを計算中です。再試行してください。')end,0x220)
  end
  local feature=groupedEntryFeatures(sites)
  feature.controls={sites[1].memberControl,sites[2].memberControl}
  return feature
end
local foodIntervalFeature=registerFoodPreferenceInterval()
ASKA.F.foodPreferenceInterval=foodIntervalFeature
local foodIntervalKey='scalar:foodPreferenceCheckInterval'

local function foodIntervalSelection(target)
  if not target or not target.settlement then return end
  local actor=target.address
  local identity=unityIdentity(actor)
  local runner=follow(actor,0x38)
  local class=follow(actor,0)
  local component=follow(actor,0x550)
  if not identity or identity~=(target.objectIdentity or target.identity) or not runner or not class
    or not component or follow(component,0x100)~=actor then return end
  local reference=follow(component,0xD8)
  local asset=reference and follow(reference,0x10)
  if not asset or not unityIdentity(asset) then return end
  local value=readFloat(asset+0x18)
  if type(value)~='number' or not (value&gt;0 and value&lt;math.huge) then return end
  local owner=string.pack('&lt;I8I8I8I8I8',actor,identity,runner,class,reference)
  return {owner=owner,component=component,asset=asset,reference=reference,value=value}
end

local function sameFoodInterval(left,right)
  return left and right and left.owner==right.owner and left.component==right.component and left.asset==right.asset
end

local function foodIntervalValue(selection)
  local active=ASKA.active.foodPreferenceInterval
  if not active then return selection.value end
  if active.cleanup then return end
  local first=bytes(foodIntervalFeature.controls[1](),0x30)
  local second=bytes(foodIntervalFeature.controls[2](),0x30)
  if not first or #first~=0x30 or not second or not equal(first,second) then return end
  local payload=string.char(table.unpack(first))
  local value,enabled=string.unpack('&lt;fI4',payload,41)
  if enabled==1 and payload:sub(1,40)==selection.owner then return value end
  return selection.value
end

-- Called while the target is suspended, including installation and rollback.
local function updateFoodInterval(selection,value)
  local rounded=string.unpack('&lt;f',string.pack('&lt;f',value))
  need(rounded&gt;0 and rounded&lt;math.huge,'Enter a finite positive interval.','正の有限な間隔を入力してください。')
  local key='foodPreferenceInterval'
  if ASKA.active[key] and ASKA.active[key].cleanup then ASKA.feature(key,false) end
  if not ASKA.active[key] then ASKA.feature(key,true) end
  local addresses={foodIntervalFeature.controls[1](),(foodIntervalFeature.controls[2]())}
  local previous={}
  for i,address in ipairs(addresses) do
    previous[i]=bytes(address,0x30)
    need(previous[i] and #previous[i]==0x30,'Cannot read food interval state.','確認間隔の状態を取得できません。')
  end
  local packed=selection.owner..string.pack('&lt;fI4',rounded,1)
  local payload={packed:byte(1,#packed)}
  local function writeVerified(address,data)
    return writeBytes(address,data)==#data and equal(bytes(address,#data),data)
  end
  for i,address in ipairs(addresses) do
    local ok,written=pcall(writeVerified,address,payload)
    if not ok or not written then
      local restored=true
      for index=i,1,-1 do
        local success,result=pcall(writeVerified,addresses[index],previous[index])
        restored=success and result and restored
      end
      if not restored then ASKA.feature(key,false) end
      need(false,'Food interval could not be updated.','確認間隔を更新できません。')
    end
  end
  return rounded
end

local characterEditKey='characterEditing'
local desiredItemKeyChars=0
local desiredItemKeyRecords=0
local function itemKeyAllocation()
  local layout=itemKeyWorkspace(desiredItemKeyChars,desiredItemKeyRecords)
  return layout.size,layout.capacity,layout
end
local characterEditData=0x400
local characterEditMailbox=characterEditData+0x20
local characterEditBusy=characterEditData+0x88
local characterEditSignature={0xE8,0x50,0x95,0x98,0x03,0x48,0x8B,0x0D,0xF9,0x9E,0x1C,0x05}
local characterEditOriginal={table.unpack(characterEditSignature,1,5)}

local function characterEditCode(context,cave,entry)
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',characterEditBusy-7)
  local originalCall=makeJump(cave+#code,context.base+0x4506750)
  code=code..string.char(0xE8)..originalCall:sub(2)
  local marker=string.pack('&lt;I8',0x1122334455667788)
  local first,last=deedsDispatchInstructions:find(marker,1,true)
  need(first,'Deed dispatcher address is unavailable.','寵愛編集の処理位置を取得できません。')
  local dispatcher=deedsDispatchInstructions:sub(1,first-1)..string.pack('&lt;I8',cave+0x500)..deedsDispatchInstructions:sub(last+1)
  local keyMarker=string.pack('&lt;I8',0x2233445566778899)
  first,last=dispatcher:find(keyMarker,1,true)
  need(first,'Item key dispatcher address is unavailable.','アイテム名取得の処理位置を取得できません。')
  dispatcher=dispatcher:sub(1,first-1)..string.pack('&lt;I8',cave+0xA00)..dispatcher:sub(last+1)
  local baseMarker=string.pack('&lt;I8',0x445566778899AABB)
  first,last=character_editScopeInstructions:find(baseMarker,1,true)
  need(first,'Base attribute dispatcher is unavailable.','基礎属性編集の処理位置を取得できません。')
  local characterScope=character_editScopeInstructions:sub(1,first-1)..string.pack('&lt;I8',cave+0xB00)
    ..character_editScopeInstructions:sub(last+1)
  code=code..string.char(0x50,0x56,0x48,0xBE)..string.pack('&lt;I8',cave+characterEditData)
    ..characterScope..dispatcher..string.char(0x5E,0x58)
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',characterEditBusy-#code-7)
  code=code..makeJump(cave+#code,entry+#characterEditOriginal)
  need(#code&lt;=characterEditData,'Character edit code exceeds its reserved range.','キャラクター編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',characterEditData-#code)
    ..string.pack('&lt;I8I8I8I8',context.player,context.identity,context.runner,context.base+0x35EA4C0)
    ..string.rep('\0',0x6C)
  local _,capacity,layout=itemKeyAllocation()
  code=code..string.rep('\0',0x490-#code)..string.pack('&lt;i4I4I8I8',capacity,layout.count,layout.recordsOffset,layout.size)
  need(#deedsTransactionInstructions&lt;=0x350,'Deed transaction exceeds its reserved range.','寵愛編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x500-#code)..deedsTransactionInstructions
  need(#itemKeyRequestInstructions&lt;=0x1B0,'Item key code exceeds its reserved range.','アイテム名取得の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x850-#code)..itemKeyRequestInstructions
  local batch=itemKeyBatchInstructions
  local batchMarker=string.pack('&lt;I8',0x33445566778899AA)
  local replacement=string.pack('&lt;I8',cave+0x850)
  local replacements=0
  batch=batch:gsub(batchMarker:gsub('(%W)','%%%1'),function()replacements=replacements+1;return replacement end)
  need(replacements==2 and #batch&lt;=0x100,'Invalid item key batch layout.','アイテム名一括取得の配置が不正です。')
  code=code..string.rep('\0',0xA00-#code)..batch
  need(#characterBaseEditInstructions&lt;=0x100,'Base attribute editor exceeds its reserved range.','基礎属性編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0xB00-#code)..characterBaseEditInstructions
  code=code..string.rep('\0',0xC00-#code)..string.rep('\0',0xC8)
  code=code..string.rep('\0',0xD00-#code)..string.rep('\0',0x58)
  need(#characterMilitiaEditInstructions&lt;=0x120,'Militia editor exceeds its reserved range.','民兵編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0xD60-#code)..characterMilitiaEditInstructions
  need(#characterScheduleEditInstructions&lt;=0xE0,'Schedule editor exceeds its reserved range.','行動予定編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0xE00-#code)..characterScheduleEditInstructions
  need(#characterParameterEditInstructions&lt;=0x900,'Parameter editor exceeds its reserved range.','パラメーター編集の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x1000-#code)..characterParameterEditInstructions
  return code..string.rep('\0',0x1900-#code)
end

local characterEditFeature=entryFeature(characterEditKey,0xB7D1FB,characterEditOriginal,characterEditSignature,
  soloContext,characterEditCode,nil,0x68,function(cave,verifiedCodeLength)
    local busyOffset=verifiedCodeLength==0x38C and 0x388 or characterEditBusy
    need(readInteger(cave+busyOffset)==0,
      'A character edit is finishing. Retry cleanup.','キャラクターの編集完了後に解除を再試行します。')
  end,characterEditMailbox)
characterEditFeature.recoveryRecord.extraCode={offset=0x500,length=0x700,
  ranges={{offset=0x500,length=0x700},{offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=#characterParameterEditInstructions}},
  primaryCodeLength=0xEF0,codeExtent=0x1900,
  previousRanges={[0xEF0]={{primaryCodeLength=0xEF0,codeExtent=0x1200,
    ranges={{offset=0x500,length=0x700},{offset=0xD60,length=#characterMilitiaEditInstructions},
      {offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=332}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1200,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=459}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1300,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=543}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1400,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=823}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1400,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=849}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1500,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1066}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1500,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1096}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1500,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1216}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1500,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1241}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1600,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1288}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1600,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1353}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1700,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1609}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1700,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1671}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1700,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1679}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1800,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=1943}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1900,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=2055}}},
    {primaryCodeLength=0xEF0,codeExtent=0x1900,ranges={{offset=0x500,length=0x700},
      {offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions},{offset=0x1000,length=2132}}}}},
  previous={[0xEF0]={ranges={{offset=0x500,length=0x700},{offset=0xD60,length=#characterMilitiaEditInstructions},{offset=0xE00,length=#characterScheduleEditInstructions}}},[0x9C8]={offset=0x500,length=773},[0xD58]={offset=0x500,length=0x500+#itemKeyBatchInstructions},
    [0xE80]={ranges={{offset=0x500,length=0x700},{offset=0xD60,length=138}}}}}
characterEditFeature.recoveryRecord.allocateSize=function()return (itemKeyAllocation())end
ASKA.F[characterEditKey]=characterEditFeature
function characterEditFeature.deedsControl()
  return characterEditFeature.memberControl()+0x7E0
end
function characterEditFeature.itemKeyControl()
  return characterEditFeature.memberControl()+0x8E0
end
function characterEditFeature.itemKeyBuffer()
  local mailbox=characterEditFeature.memberControl()
  return mailbox+0x1BE0,readInteger(mailbox+0x70)
end
function characterEditFeature.setItemKeyCapacity(count)
  need(not ASKA.active[characterEditKey],'Editing must be idle before resizing.','領域拡張の前に編集処理を停止する必要があります。')
  need(math.type(count)=='integer' and count&gt;=0 and count&lt;=0x7FFFFFFF,'Invalid key buffer size.','名称取得領域の大きさが不正です。')
  desiredItemKeyChars=math.max(desiredItemKeyChars,count)
end
function characterEditFeature.setItemKeyBatchCapacity(records,characters)
  need(not ASKA.active[characterEditKey],'Editing must be idle before resizing.','領域拡張の前に編集処理を停止する必要があります。')
  local layout=itemKeyWorkspace(characters,records)
  need(layout.count&gt;0,'A batch requires at least one record.','一括取得には取得対象が必要です。')
  -- Set both dimensions only after validation succeeds.
  desiredItemKeyRecords,desiredItemKeyChars=records,characters
end
function characterEditFeature.itemKeyWorkspace()
  local root=characterEditFeature.memberControl()-characterEditMailbox
  local capacity=readInteger(root+0x490)
  local count=readInteger(root+0x494)
  local offset=readQword(root+0x498)
  local size=readQword(root+0x4A0)
  local expected=itemKeyWorkspace(capacity,count)
  need(count&gt;0 and offset==expected.recordsOffset and size==expected.size,
    'The key workspace layout changed.','名称取得領域の配置が変わりました。')
  return {buffer=root+0x2000,records=root+offset,capacity=capacity,count=count,limit=root+size}
end
function characterEditFeature.ensureItemKeyWorkspace(records,characters)
  itemKeyWorkspace(characters,records) -- validate before suspending or changing state
  local result
  withTargetSuspended(function()
    if ASKA.active[characterEditKey] then
      need(not ASKA.active[characterEditKey].cleanup,'Editing cleanup is pending.','編集の解除処理が保留されています。')
      local mailbox=characterEditFeature.memberControl()
      local root=mailbox-characterEditMailbox
      local count,capacity=readInteger(root+0x494),readInteger(root+0x490)
      if count and capacity and count&gt;=records and capacity&gt;=characters then
        result=characterEditFeature.itemKeyWorkspace();return
      end
      -- Wait without disturbing installed code while another edit/API call owns it.
      if readInteger(root+characterEditBusy)~=0 or readInteger(mailbox)~=0
        or readInteger(root+0xC3C)~=0 or readInteger(root+0xD3C)==2 then return end
      if not pcall(verifyThreadsOutside,root,root+0x2000)then return end
      need(not ASKA.itemKeyRelocating,'Key workspace resize is already running.','名称取得領域の拡張処理中です。')
      ASKA.itemKeyRelocating=true
      local ok,reason=pcall(function()
        ASKA.feature(characterEditKey,false)
        characterEditFeature.setItemKeyBatchCapacity(records,characters)
        ASKA.feature(characterEditKey,true)
      end)
      ASKA.itemKeyRelocating=nil
      if not ok then error(reason,0)end
    else
      characterEditFeature.setItemKeyBatchCapacity(records,characters)
      ASKA.feature(characterEditKey,true)
    end
    result=characterEditFeature.itemKeyWorkspace()
  end)
  return result
end
local editorMemory={
  follow=follow, pointer=readQword, unityIdentity=unityIdentity, integer=readInteger,
  float=function(address) return readFloat(address) end,
  byte=function(address) return readBytes(address,1) end,
  cstring=function(address) return address and readString(address,96,false) end,
  string=function(address,length) return readString(address,length*2,true) end,
}

local sprintCostFeature=registerVillagerSprintCost(sprintCostCode)
ASKA.F.villagerSprintCost=sprintCostFeature
local sprintCostKey='scalar:memberSprintCost'

local function enrichCharacterTarget(context,target,labels)
  if not target or not characterVariableSnapshot then return target end
  -- Each registry verifies its own snapshot. An unavailable registry must not
  -- remove the actor or fields already validated independently.
  local variables=characterVariableSnapshot(context,editorMemory,target.address,labels) or {}
  local bases=characterBaseSnapshot(context,editorMemory,target.address,labels) or {}
  local known={}
  for _,info in pairs(target.values)do known[info.id]=true end
  for _,info in ipairs(variables)do
    if not known[info.id] then
      info.offset=0x10000+info.index
      target.values['attribute:'..info.id]=info
    end
  end
  for _,info in ipairs(bases)do
    local key='attribute:base:'..info.id
    info.offset=0x20000+info.index
    -- The villager creates and registers ID 19 before the name provider may be ready.
    -- Fall back to the installed English/Japanese language-pack values for that item.
    if info.id==19 and target.settlement and info.attribute==follow(target.address,0x560)
      and not (labels and labels[19]) then
      info.en='Happiness cap (base value)'
      info.ja='幸福度上限（基礎値）'
    end
    target.values[key]=info
  end
  local parameters=characterParameterSnapshot(context,editorMemory,target) or {}
  for _,info in ipairs(parameters)do
    info.offset=0x60000+info.index
    info.lower,info.upper=0,1
    info.ignoreLower,info.ignoreUpper=1,1
    if info.parameterType==2 then info.ignoreLower,info.ignoreUpper=0,0 end
    target.values['parameter:'..info.index]=info
  end
  if not target.settlement and target.address==context.player then
    local settings={
      {'damageFlashThreshold',0x32C,'Damage flash trigger (health ratio lost)','被ダメージ演出の発動しきい値（体力減少比率）'},
      {'lowHealthThreshold',0x330,'Low health effect threshold (health ratio)','低体力演出のしきい値（体力比率）'},
      {'lowHealthEffect',0x334,'Low health effect intensity','低体力演出の強さ'},
      {'coldTransitionTime',0x338,'Cold effect transition time (seconds)','寒さ演出の遷移時間（秒）'},
      {'navObstacleIdleTime',0x380,'Navigation obstacle stationary time (seconds)','移動障害物判定の静止時間（秒）'},
    }
    for index,setting in ipairs(settings) do
      local key,offset,en,ja=table.unpack(setting)
      local value=editorMemory.float(target.address+offset)
      if type(value)=='number' and value&gt;=0 and value&lt;math.huge then
        target.values['scalar:'..key]={id=0x7000000D+index,offset=0x7000A+index,attribute=target.address,
          value=value,lower=0,upper=0,ignoreLower=0,ignoreUpper=1,en=en,ja=ja}
      end
    end
    local movement=follow(target.address,0x3B8)
    local identity=movement and unityIdentity(movement)
    local value=identity and editorMemory.float(movement+0x2DC)
    if identity and follow(movement,0x38)==context.runner
      and follow(target.address,0x3B8)==movement and unityIdentity(movement)==identity then
      local flags={
        {'preventCameraLookForward',0xF8,'Prevent camera look-forward','カメラの前方追従を抑止'},
        {'forcedCrouch',0xFA,'Force crouch','しゃがみを強制'},
      }
      for index,flag in ipairs(flags) do
        local key,offset,en,ja=table.unpack(flag)
        local setting=editorMemory.byte(movement+offset)
        if setting==0 or setting==1 then
          target.values['scalar:'..key]={id=0x70000014+index,offset=0x70011+index,attribute=movement,
            movementIdentity=identity,value=setting,lower=0,upper=1,ignoreLower=0,ignoreUpper=0,
            parameterType=2,en=en,ja=ja}
        end
      end
    end
    local smoothing=identity and editorMemory.float(movement+0x130)
    if identity and follow(movement,0x38)==context.runner and type(smoothing)=='number'
      and smoothing&gt;=0 and smoothing&lt;math.huge
      and follow(target.address,0x3B8)==movement and unityIdentity(movement)==identity then
      target.values['scalar:commandSmoothing']={id=0x70000013,offset=0x70010,attribute=movement,
        movementIdentity=identity,value=smoothing,lower=0,upper=0,ignoreLower=0,ignoreUpper=1,
        en='Movement input smoothing multiplier',ja='移動入力の補間速度倍率'}
    end
    if identity and follow(movement,0x38)==context.runner and type(value)=='number'
      and value==value and value&gt;=0 and value&lt;math.huge
      and follow(target.address,0x3B8)==movement and unityIdentity(movement)==identity then
      target.values['scalar:jumpCooldown']={id=0x70000003,offset=0x70000,attribute=movement,
        movementIdentity=identity,value=value,lower=0,upper=0,ignoreLower=0,ignoreUpper=1,
        en='Jump cooldown (seconds)',ja='ジャンプ待機時間（秒）'}
    end
  end
  local multiplier=editorMemory.float(target.address+0xB8)
  local vitality=follow(target.address,0x130)
  local vitalityClass=follow(vitality,0)
  local stamina=target.values.energy
  local staminaStat=follow(target.address,0x138)
  local staminaClass=follow(staminaStat,0)
  if stamina and staminaClass and follow(staminaClass,0x178)==context.base+0x35DEDD0
    and follow(target.address,0x158)==stamina.attribute then
    local upperDelegate=follow(stamina.attribute,0x58)
    if upperDelegate and follow(upperDelegate,0x40)==target.address
      and follow(upperDelegate,0x18)==context.base+0xB41C80
      and (follow(stamina.class,0x218)==context.base+0x35E11F0 or follow(stamina.class,0x228)==context.base+0x35E11F0) then
      stamina.offset=0x70018
      stamina.ignoreUpper=1
    end
  end
  local survival=target.survival
  local attributeGetter=context.base+0x35DEDD0
  for _,binding in ipairs({{'food',0x78,0x90,0x70019},{'water',0x98,0xB0,0x7001A}}) do
    local key,offset,capOffset,selector=table.unpack(binding)
    local current=target.values[key]
    local cap=follow(survival,capOffset)
    local capClass=follow(cap,0)
    if current and capClass and follow(capClass,0x178)==attributeGetter
      and follow(survival,offset)==current.attribute then
      local upperDelegate=follow(current.attribute,0x58)
      if upperDelegate and follow(upperDelegate,0x40)==cap
        and follow(upperDelegate,0x18)==attributeGetter
        and (follow(current.class,0x218)==context.base+0x35E11F0 or follow(current.class,0x228)==context.base+0x35E11F0) then
        current.offset=selector
        current.ignoreUpper=1
      end
    end
  end
  local health=target.values.health
  if health and vitalityClass and follow(vitalityClass,0x178)==context.base+0x35DEDD0 then
    local upperDelegate=follow(health.attribute,0x58)
    if upperDelegate and follow(upperDelegate,0x40)==target.address
      and follow(upperDelegate,0x18)==context.base+0xB41D80
      and (follow(health.class,0x218)==context.base+0x35E11F0 or follow(health.class,0x228)==context.base+0x35E11F0) then
      health.offset=0x70017
      health.ignoreUpper=1
    end
  end
  local modifiers=follow(vitality,0x38)
  if vitalityClass and follow(vitalityClass,0x178)==context.base+0x35DEDD0
    and follow(vitalityClass,0x188)==context.base+0x35DF3E0
    and (not modifiers or editorMemory.integer(modifiers+0x18)==0)
    and editorMemory.integer(vitality+0x10)==10 and editorMemory.byte(vitality+0x34)==0 then
    local maximum=editorMemory.float(vitality+0x28)
    if type(maximum)=='number' and maximum&gt;0 and maximum&lt;math.huge and editorMemory.float(vitality+0x30)==maximum then
      target.values['scalar:maxHealth']={id=0x7000000D,offset=0x7000A,attribute=vitality,
        value=maximum,lower=0,upper=0,ignoreLower=0,ignoreUpper=1,
        en='Maximum health (without active modifiers)',ja='最大体力（補正なしの場合）'}
    end
  end
  local untargettable=editorMemory.byte(target.address+0xA0)
  if untargettable==0 or untargettable==1 then
    target.values['scalar:untargettable']={id=0x70000004,offset=0x70001,attribute=target.address,
      value=untargettable,lower=0,upper=1,ignoreLower=0,ignoreUpper=0,parameterType=2,
      en='Excluded from target checks (0/1)',ja='ターゲット候補から除外（0/1）'}
  end
  if type(multiplier)=='number'and multiplier==multiplier and multiplier&gt;=0 and multiplier&lt;math.huge then
    target.values['scalar:proficiencyGain']={id=0x70000001,offset=0x30000,attribute=target.address,
      value=multiplier,lower=0,upper=0,ignoreLower=0,ignoreUpper=1,
      -- The getter is verified; who receives any resulting XP is unresolved.
      en='proefficiencyMultiplier (game field)',ja='proefficiencyMultiplier（ゲーム内部値）'}
  end
  if target.settlement then
    local currentHappiness=target.values.happiness
    if currentHappiness then
      local class=currentHappiness.class
      local upperDelegate=follow(currentHappiness.attribute,0x58)
      local cap=follow(target.address,0x560)
      if cap and upperDelegate and follow(upperDelegate,0x40)==cap
        and follow(upperDelegate,0x18)==context.base+0x35DEDD0
        and (follow(class,0x218)==context.base+0x35E11F0 or follow(class,0x228)==context.base+0x35E11F0) then
        currentHappiness.offset=0x70016
        currentHappiness.ignoreUpper=1
      end
    end
    local sprint=villagerSprintSelection(target)
    if sprint then
      local value=villagerSprintDisplay(sprintCostFeature,sprint)
      if value~=nil then
        target.values[sprintCostKey]={id=0x7000001B,offset=0x70018,attribute=sprint.reference,
          value=value,sprint=sprint,en='Sprint stamina cost (while editing)',ja='ダッシュ時スタミナ消費（編集中）'}
      end
    end
    local interval=foodIntervalSelection(target)
    local intervalValue=interval and foodIntervalValue(interval)
    if intervalValue then
      target.values[foodIntervalKey]={id=0x7000001C,offset=0x70019,attribute=interval.reference,
        value=intervalValue,interval=interval,en='Food preference check interval (seconds, while editing)',
        ja='食の好みを確認する間隔（秒、編集中）'}
    end
    local home=follow(target.address,0x4F8)
    local happiness=follow(target.address,0x550)
    if home and unityIdentity(home) and happiness and unityIdentity(happiness)
      and follow(happiness,0x100)==target.address then
      local housingFields={
        {'scalar:homeComfort',0x110,145,'Home comfort (shared base value)','住居の快適度（共有基礎値）'},
        {'scalar:homeExterior',0x118,148,'Area desirability (shared base value)','エリアの好ましさ（共有基礎値）'},
      }
      for index,field in ipairs(housingFields) do
        local key,offset,id,en,ja=table.unpack(field)
        local attribute=follow(happiness,offset)
        local class=follow(attribute,0)
        local compute=follow(class,0x1F8)
        if class and follow(class,0x188)==context.base+0x35DF3E0
          and (compute==context.base+0x35E9AC0 or id==148 and compute==context.base+0x35DF480)
          and editorMemory.integer(attribute+0x10)==id then
          local value=editorMemory.float(attribute+0x30)
          if type(value)=='number' and value==value and math.abs(value)&lt;math.huge then
            target.values[key]={id=id,offset=0x70013+index,attribute=attribute,
              value=value,lower=0,upper=0,ignoreLower=1,ignoreUpper=1,en=en,ja=ja}
          end
        end
      end
    end
    local outpostOverride=editorMemory.byte(target.survival+0x199)
    if outpostOverride==0 or outpostOverride==1 then
      target.values['scalar:ignoreOutpostWhitelist']={id=0x70000014,offset=0x70011,attribute=target.survival,
        value=outpostOverride,lower=0,upper=1,ignoreLower=0,ignoreUpper=0,parameterType=2,
        en='Ignore outpost and whitelist (0/1)',ja='前哨基地と許可リストを無視（0/1）'}
    end
    local overrideFields={
      {'scheduleOverrideEnabled',target.address,0x468,'bool','Override schedule (0/1)','行動予定を上書き（0/1）'},
      {'scheduleOverrideMode',target.address,0x46C,'choice','Override mode (0 Work, 1 Sleep, 2 Leisure)','上書き行動（0 仕事、1 睡眠、2 自由時間）'},
      {'restOverrideEnabled',target.survival,0x19B,'bool','Force rest value (0/1)','休息値を固定（0/1）'},
      {'healthOverrideEnabled',target.survival,0x1A0,'bool','Force health ratio (0/1)','体力比率を固定（0/1）'},
      {'restOverrideValue',target.survival,0x19C,'float','Forced rest value','固定する休息値'},
      {'healthOverrideRatio',target.survival,0x1A4,'float','Forced health ratio (1 = max)','固定する体力比率（1＝最大）'},
      {'happinessOverrideEnabled',target.survival,0x1A8,'bool','Force happiness value (0/1)','幸福度を固定（0/1）'},
      {'happinessOverrideValue',target.survival,0x1AC,'float','Forced happiness value','固定する幸福度'},
    }
    for index,field in ipairs(overrideFields) do
      local key,object,offset,kind,en,ja=table.unpack(field)
      local getter=kind=='bool' and editorMemory.byte or kind=='choice' and editorMemory.integer or editorMemory.float
      local value=getter(object+offset)
      local upper=kind=='bool' and 1 or kind=='choice' and 2 or math.huge
      if type(value)=='number' and value&gt;=0 and value&lt;math.huge and value&lt;=upper then
        target.values['scalar:'..key]={id=0x70000004+index,offset=0x70001+index,attribute=object,
          value=value,lower=0,upper=upper,ignoreLower=0,ignoreUpper=kind=='float' and 1 or 0,
          parameterType=kind=='bool' and 2 or nil,en=en,ja=ja}
      end
    end
    local militia=editorMemory.byte(target.address+0x590)
    if militia==0 or militia==1 then
      target.values['scalar:militia']={id=0x70000002,offset=0x40000,attribute=target.address,
        value=militia,lower=0,upper=1,ignoreLower=0,ignoreUpper=0,
        en='Militia (0/1)',ja='民兵（0/1）'}
    end
    local schedule=editorMemory.pointer(target.address+0x660)
    if schedule and schedule&gt;=0x10000 and editorMemory.integer(schedule+0x18)==24 then
      local entries={}
      for index=0,23 do
        local value=editorMemory.integer(schedule+0x20+index*4)
        if value~=0 and value~=1 and value~=2 then entries=nil;break end
        entries[index]=value
      end
      if entries then
        for index=0,23 do
          target.values['schedule:'..index]={id=0x70000100+index,offset=0x50000+index,attribute=schedule,
            value=entries[index],lower=0,upper=2,ignoreLower=0,ignoreUpper=0,
            en=string.format('Schedule %02d:00 (0 work / 1 sleep / 2 leisure)',index),
            ja=string.format('行動予定 %02d:00（0仕事／1睡眠／2余暇）',index)}
        end
      end
    end
  end
  return target
end

local characterAssetLabels={
[10]={en="Vitality",ja="活力"},
[11]={en="Strength",ja="力"},
[12]={en="Dexterity",ja="腕きき"},
[13]={en="Intelligence",ja="知能"},
[14]={en="Stamina",ja="スタミナ"},
[15]={en="Stamina Regen",ja="スタミナ再生"},
[16]={en="Stun",ja="スタン"},
[17]={en="Stun",ja="スタン"},
[19]={en="Happiness cap",ja="幸福度上限"},
[100]={en="Heat",ja="熱"},
[101]={en="Hunger",ja="食欲"},
[102]={en="Thirst",ja="のどの渇き"},
[103]={en="Age",ja="年齢"},
[107]={en="Blessings",ja="恩恵"},
[108]={en="Sprint Discount",ja="ダッシュディスカウント"},
[110]={en="Rain",ja="雨"},
[111]={en="Blizzard",ja="吹雪"},
[120]={en="Cold Resistance",ja="寒さ知らず"},
[121]={en="Rain Protection",ja="雨対策"},
[122]={en="Wind Protection",ja="風対策"},
[123]={en="Snow Protection",ja="雪対策"},
[124]={en="Armor",ja="防具"},
[125]={en="Injury Chance",ja="ケガ発生率"},
[126]={en="Happiness Rate",ja="幸福度変化率"},
[130]={en="Sleep",ja="睡眠"},
[131]={en="Fatigue",ja="疲労"},
[140]={en="Dismantle Refund Ratio",ja="解体回収率"},
[141]={en="Destruction Refund Ratio",ja="解体回収率"},
[142]={en="Energy",ja="エネルギー"},
[143]={en="Repairs Threshold",ja="補修しきい値"},
[144]={en="Repairs Requirements Ratio",ja="Repair Requirements Ratio"},
[145]={en="Comfort",ja="快適"},
[146]={en="Defence Points:",ja="防御ポイント："},
[148]={en="Area Desirability",ja="エリアの好ましさ"},
[191]={en="Temperature",ja="温度"},
[192]={en="Warmth Change",ja="暖かさの変化"},
[300]={en="Wood Harvest",ja="伐採師"},
[301]={en="Stone Harvest",ja="採石師"},
[302]={en="Crafting",ja="ものづくり職人"},
[303]={en="Gathering",ja="採集"},
[304]={en="Building",ja="建築家"},
[305]={en="Firekeeping",ja="火守"},
[306]={en="Hunter",ja="狩猟"},
[307]={en="Skinning",ja="皮剥ぎ師"},
[308]={en="Fishing",ja="漁業"},
[309]={en="Blacksmith",ja="鍛冶屋"},
[310]={en="Carpentry",ja="大工仕事"},
[311]={en="Farming",ja="農作業"},
[312]={en="Melee Combat",ja="近接戦闘"},
[313]={en="Ranged Combat",ja="遠隔戦闘"},
[314]={en="Cooking",ja="調理"},
[315]={en="Shamanism",ja="シャーマニズム"},
[400]={en="Wood Harvest exp multiplier",ja="伐採経験値マルチプライヤー"},
[401]={en="Stone Harvest exp multiplier",ja="採石経験値マルチプライヤー"},
[402]={en="Crafting exp multiplier",ja="製作経験値マルチプライヤー"},
[403]={en="Gathering exp multiplier",ja="採集経験値マルチプライヤー"},
[404]={en="Building exp multiplier",ja="建設経験値マルチプライヤー"},
[405]={en="Firekeeping exp multiplier",ja="火守経験値マルチプライヤー"},
[406]={en="Hunting exp multiplier",ja="狩猟経験値マルチプライヤー"},
[407]={en="Skinning exp multiplier",ja="皮剥ぎ経験値マルチプライヤー"},
[408]={en="Fishing exp multiplier",ja="釣り経験値マルチプライヤー"},
[409]={en="Blacksmith exp multiplier",ja="鍛冶屋経験値マルチプライヤー"},
[410]={en="Carpentry exp multiplier",ja="大工仕事経験値マルチプライヤー"},
[411]={en="Farming exp multiplier",ja="農作業経験値マルチプライヤー"},
[412]={en="Melee Combat exp multiplier",ja="近接戦経験値マルチプライヤー"},
[413]={en="Ranged Combat exp multiplier",ja="遠隔戦経験値マルチプライヤー"},
[414]={en="Cooking exp multiplier",ja="調理経験値マルチプライヤー"},
[415]={en="Shamanic exp multiplier",ja="シャーマニック経験値マルチプライヤー"},
[500]={en="Not shown, but it's called Movement Multiplier",ja="表示されないが、移動マルチプライヤーと呼ばれる。"},
[502]={en="Bellows Drive",ja="ふいご動作"},
[1001]={en="Fuel",ja="燃料"},
[1002]={en="Base damage",ja="基本ダメージ"},
[1003]={en="Max Fuel",ja="最大燃料"},
[1004]={en="Critical Damage",ja="クリティカルダメージ"},
[1010]={en="Decay",ja="腐敗"},
[1011]={en="Decay Rate",ja="腐敗率"},
[1012]={en="Decay Protection",ja="腐敗対策"},
[1013]={en="Durability",ja="耐久性"},
[1020]={en="Cooked",ja="調理済み"},
[1021]={en="Max Cooked",ja="最大調理"},
[1022]={en="Cooking Fire",ja="調理の焚火"},
[1023]={en="Cooking Fire Multiplier",ja="調理の焚き火マルチプライヤー"},
[1024]={en="Debug",ja="Debug"},
[1025]={en="Debug",ja="Debug"},
[1026]={en="Debug",ja="Debug"},
[1027]={en="Debug",ja="Debug"},
[1028]={en="Debug",ja="Debug"},
[1029]={en="Debug",ja="Debug"},
[1030]={en="Color",ja="色"},
[1031]={en="Secondary color",ja="セカンダリ色"},
[1032]={en="Consolidation Ratio",ja="強化率"},
[1033]={en="Max Integrity",ja="最大完全性"},
[1038]={en="Caloric Power",ja="熱力"},
[1039]={en="Caloric Mass",ja="熱量"},
[1041]={en="Hot",ja="熱さ"},
[1083]={en="Fish Weight",ja="魚重量"},
[1206]={en="Breeding Rate",ja="繁殖率"},
[1207]={en="Breeding Cooldown",ja="繁殖クールダウン"},
[2200]={en="Health",ja="体力"},
[2201]={en="Energy",ja="エネルギー"},
[2202]={en="Stun",ja="スタン"},
[2203]={en="Rest",ja="休息"},
[2204]={en="Age",ja="年齢"},
[2205]={en="Raven Time",ja="カラスタイム"},
[2207]={en="Happiness",ja="幸福"},
[2210]={en="Warmth",ja="温かさ"},
[2211]={en="Water",ja="水"},
[2212]={en="Food",ja="食料"},
[2213]={en="Pet Food",ja="ペットの餌"},
[2220]={en="Wetness",ja="湿り度"},
[2221]={en="Snow",ja="雪"},
[2230]={en="Stone Cutting Expertise",ja="石切技術"},
[2231]={en="Wood Cutting Expertise",ja="木材伐採技術"},
[2232]={en="Skinning Expertise",ja="皮剥ぎ技術"},
[2233]={en="Fishing expertise",ja="釣り技術"},
[2234]={en="Building Expertise",ja="建設技術"},
[2235]={en="Ranged Combat Expertise",ja="遠隔戦"},
[2236]={en="Melee Combat Expertise",ja="近接戦技術"},
[2237]={en="Crafting Expertise",ja="製作技術"},
[2238]={en="Blacksmith Expertise",ja="鍛冶技術"},
[2239]={en="Carpentry Expertise",ja="大工技術"},
[2240]={en="Gathering Expertise",ja="採集技術"},
[2241]={en="Firekeeping Expertise",ja="火守技術"},
[2242]={en="Farming Expertise",ja="農作業技術"},
[2243]={en="Cooking Expertise",ja="調理技術"},
[2244]={en="Shamanic Expertise",ja="シャーマニック技術"},
[2294]={en="Forge Heat",ja="加熱炉熱"},
[2297]={en="Divine Power",ja="神の力"},
[2298]={en="Meteor Itch",ja="流星への熱望"},
[2303]={en="Lifetime",ja="寿命"}
}
local function characterTargets(members,wantedId)
  local scope=members and currentMembers()
  local context=members and scope and scope.context or soloContext()
  local targets={}
  if not context or (members and (not scope or not scope.settlement)) then return targets end
  local runtimeLabels=ASKA.attributeLabelsFor and ASKA.attributeLabelsFor(context)
    or attributeLabelsSnapshot and attributeLabelsSnapshot(context.base,editorMemory)
  local labels=setmetatable({}, {__index=function(_,id)
    return runtimeLabels and runtimeLabels[id] or characterAssetLabels[id]
  end})
  if not members then
    local target=enrichCharacterTarget(context,characterEditorSnapshot(context,editorMemory),labels)
    if target then targets[1]=target end
    return targets
  end
  context.villagerDefinitionClass=typeObject(context.base,0x5D3A9B0)
  local wantedAddress=wantedId and tonumber(tostring(wantedId):match('^(%x+):') or '',16)
  if wantedId and not wantedAddress then return targets end
  for _,member in ipairs(scope.members) do
    if not wantedAddress or member.address==wantedAddress then
    local target=enrichCharacterTarget(context,characterEditorSnapshot(context,editorMemory,member,scope.settlement),labels)
    if target then
      target.manager,target.population,target.memberClass=scope.manager,scope.population,context.villagerClass
      target.guidAddress=member.guidAddress
      targets[#targets+1]=target
    end
    end
  end
  return targets
end

local function dynamicCharacterFields(targets)
  local fields,known={},{}
  for _,target in ipairs(targets)do
    for key,info in pairs(target.values)do
      if (key:sub(1,10)=='attribute:'or key:sub(1,7)=='scalar:'or key:sub(1,9)=='schedule:'or key:sub(1,10)=='parameter:') and not known[key] then
        known[key]=true
        fields[#fields+1]={key=key,id=info.id,en=info.en,ja=info.ja,boolean=info.parameterType==2 or key=='scalar:militia'}
      end
    end
  end
  table.sort(fields,function(a,b)return a.id==b.id and a.key&lt;b.key or a.id&lt;b.id end)
  return fields
end
local characterGroups={
  vitals={'Vital and survival values','体力・生存'},
  variables={'Other current attributes','その他の現在値'},
  bases={'Base attributes','基礎属性'},
  movement={'Movement and animation','移動・アニメーション'},
  schedule={'Member schedule and assignments','メンバーの行動予定・配置'},
  overrides={'Member survival overrides','メンバーの生存値固定'},
  effects={'Player display and navigation settings','プレイヤーの演出・移動判定設定'},
  general={'Other character settings','その他のキャラクター設定'},
}
local function characterFieldGroup(key)
  if key:sub(1,15)=='attribute:base:' then return 'bases' end
  if key:sub(1,10)=='attribute:' then return 'variables' end
  if key:sub(1,10)=='parameter:' or key=='scalar:jumpCooldown' or key=='scalar:commandSmoothing'
    or key=='scalar:preventCameraLookForward' or key=='scalar:forcedCrouch' then return 'movement' end
  if key:sub(1,9)=='schedule:' or key:sub(1,23)=='scalar:scheduleOverride'
    or key=='scalar:ignoreOutpostWhitelist' or key=='scalar:militia' then return 'schedule' end
  if key:match('^scalar:%a+Override') then return 'overrides' end
  if key=='scalar:maxHealth' then return 'vitals' end
  if key=='scalar:damageFlashThreshold' or key=='scalar:lowHealthThreshold' or key=='scalar:lowHealthEffect'
    or key=='scalar:coldTransitionTime' or key=='scalar:navObstacleIdleTime' then return 'effects' end
  return key:sub(1,7)=='scalar:' and 'general' or 'vitals'
end
local function characterField(spec)
  local choices
  if spec.boolean then
    choices={{value=0,en='Off',ja='無効'},{value=1,en='On',ja='有効'}}
  elseif spec.key:sub(1,9)=='schedule:' or spec.key=='scalar:scheduleOverrideMode' then
    choices={{value=0,en='Work',ja='仕事'},{value=1,en='Sleep',ja='睡眠'},{value=2,en='Leisure',ja='余暇'}}
  end
  local group=characterFieldGroup(spec.key)
  local titles=characterGroups[group]
  return {en=spec.en,ja=spec.ja,kind='float',characterStat=spec.key,choices=choices,
    category='character:'..group,groupEn=titles[1],groupJa=titles[2],
    read=function(target)return need(target.values[spec.key],'Attribute is unavailable.','属性を取得できません。').value end,
    available=function(target)return target.values[spec.key]~=nil end}
end

local function registerCharacterEditor(key,members,en,ja)
  local fields={}
  for _,spec in ipairs(characterEditorStats) do
    fields[#fields+1]=characterField(spec)
  end
  ASKA.EDITORS[key]={
    en=en,ja=ja,fields=fields,
    fieldsFor=function(baseFields,target)
      local result={table.unpack(baseFields)}
      for _,spec in ipairs(dynamicCharacterFields(target and {target} or characterTargets(members)))do result[#result+1]=characterField(spec) end
      return result
    end,
    identityForRow=function(row)return row.targetIdentity end,
    columns=members and function()
      local columns={
        {key='displayId',title=ASKA.T('Persistent ID','永続ID'),numeric=true,width=135,missingText=ASKA.T('Unavailable','取得不可')},
        {key='en',title=ASKA.T('Name','名前'),width=200},
        {key='recyclableId',title=ASKA.T('Recyclable ID','再利用ID'),numeric=true,width=145,
          missingText=ASKA.T('Unavailable','取得不可')},
      }
      return columns
    end or nil,
    choose=members and function(title,rows)
      local columns=ASKA.EDITORS[key].columns()
      local originals={}
      for _,row in ipairs(rows) do originals[row.id]=row end
      for _,spec in ipairs(characterEditorStats) do
        columns[#columns+1]={key=spec.key,title=ASKA.T(spec.en,spec.ja),numeric=true,width=110}
      end
      for _,spec in ipairs(dynamicCharacterFields(rows))do
        columns[#columns+1]={key=spec.key,title=ASKA.T(spec.en,spec.ja),numeric=true,width=110}
      end
      local id=ASKA.Picker.show({title=title,rows=rows,columns=columns,multi=true,singleSelection=true,batch=false,sortIndex=2})
      return id and originals[id] or nil
    end or nil,
    rows=function()
      local rows={}
      for _,target in ipairs(characterTargets(members)) do
        local name=target.name
        local row={id=target.id,targetIdentity=target.id,displayId=target.persistentId,recyclableId=target.recyclableId,guid=target.guid,en=name or '',ja=name or '',values=target.values}
        for key,info in pairs(target.values) do row[key]=info.value end
        rows[#rows+1]=row
      end
      return rows
    end,
    context=function(id)
      for _,target in ipairs(characterTargets(members,id)) do
        if target.id==id then
          target.objectIdentity,target.identity=target.identity,target.id
          return target
        end
      end
    end,
  }
end
registerCharacterEditor('playerEditor',false,'Player editor','プレイヤーエディタ')
registerCharacterEditor('memberEditor',true,'Member editor','メンバーエディタ')

local closeBeforeSprintCost=ASKA.closeEditor
function ASKA.closeEditor(parent)
  if parent.ID==257 and ASKA.active.foodPreferenceInterval then ASKA.feature('foodPreferenceInterval',false) end
  if parent.ID==257 and ASKA.active.villagerSprintCost then ASKA.feature('villagerSprintCost',false) end
  return closeBeforeSprintCost(parent)
end


local pendingCharacterEdit, memberBatch
function ASKA.characterEditingInUse()return memberBatch~=nil or pendingCharacterEdit~=nil or ASKA.sessions[256]~=nil or ASKA.sessions[257]~=nil end
local previousCommit=ASKA.commit
local managedCharacterEdit

local function sameCharacterStat(stat,original)
  return stat and stat.attribute==original.attribute and stat.class==original.class
    and stat.manager==original.manager and stat.managerIdentity==original.managerIdentity
    and stat.movementIdentity==original.movementIdentity
end

local function publishCharacterEdit(handle,target,stat,before,value,request)
  local mailbox=characterEditFeature.memberControl()
  need(readInteger(mailbox)==0,'A character edit is pending.','前のキャラクター編集が完了していません。')
  need(unityIdentity(target.address)==target.objectIdentity,'Target changed.','対象の実体が変わりました。')
  if target.settlement then
    need(follow(target.address,0x628)==target.guidAddress,
      'Member identity changed.','メンバーの識別情報が変わりました。')
  end
  local version=stat.listVersion or stat.parameterType or 0
  if version&gt;=0x80000000 then version=version-0x100000000 end
  local attributeId=stat.id
  if attributeId&gt;=0x80000000 then attributeId=attributeId-0x100000000 end
  local data=string.pack('&lt;i4ffi4i4I8I8I8I8I8I8I8I8I8I8',
    stat.offset,before,value,attributeId,version,target.address,target.objectIdentity,target.survival,target.survivalIdentity,
    stat.attribute,target.settlement or 0,target.manager or 0,target.memberClass or 0,
    target.population or 0,stat.movementIdentity or target.guidAddress or 0)
  checkedWrite(handle,mailbox+4,{data:byte(1,#data)})
  pendingCharacterEdit=request
  local submitted,problem=pcall(checkedWrite,handle,mailbox,{1})
  if not submitted then
    local status=readInteger(mailbox)
    if status==0 then pendingCharacterEdit=nil end
    -- A verified published flag means the payload can already be consumed.
    if status~=1 then error(problem,0) end
  end
end

function ASKA.commit(info,value,before,queuedStat)
  local key=info.field.characterStat
  if not key then return previousCommit(info,value,before) end
  local session=info.session
  need(ASKA.sessions[session.parent.ID]==session and session.rows[info.mr.ID]==info,
    'Editor was closed.','エディタは閉じられています。')
  value=ASKA.normalized(info.field,value)
  if key==foodIntervalKey then
    local applied
    withTargetSuspended(function()
      local target=ASKA.checkContext(session)
      local stat=need(target.values[key],'Food interval is unavailable.','確認間隔を取得できません。')
      need(stat.value==before and (not queuedStat or sameFoodInterval(stat.interval,queuedStat.interval)),
        'Food interval changed. Refresh the member editor.','確認間隔の設定が変わりました。メンバーエディタで再取得してください。')
      applied=value==before and before or updateFoodInterval(stat.interval,value)
    end)
    ASKA.paintMirror(info,applied)
    return
  end
  if key==sprintCostKey then
    local applied
    withTargetSuspended(function()
      local target=ASKA.checkContext(session)
      local stat=need(target.values[key],'Sprint cost is unavailable.','ダッシュ消費を取得できません。')
      need(stat.value==before and (not queuedStat or sameVillagerSprintSelection(stat.sprint,queuedStat.sprint)),
        'Sprint parameter changed. Refresh the member editor.','ダッシュ消費の設定が変わりました。メンバーエディタで再取得してください。')
      if value==before then applied=before;return end
      if ASKA.active.villagerSprintCost and ASKA.active.villagerSprintCost.cleanup then ASKA.feature('villagerSprintCost',false) end
      if not ASKA.active.villagerSprintCost then ASKA.feature('villagerSprintCost',true) end
      applied=publishVillagerSprintCost(sprintCostFeature.memberControl(),target,stat.sprint,value)
    end)
    ASKA.paintMirror(info,applied)
    return
  end

  if info.field.choices then
    local listed=false
    for _,choice in ipairs(info.field.choices)do
      if choice.value==value then listed=true;break end
    end
    need(listed,'Choose a value from the list.','一覧から値を選択してください。')
  end
  if key=='scalar:militia'then need(value==0 or value==1,'Enter 0 or 1.','0または1を入力してください。')end
  if key:sub(1,9)=='schedule:'or key=='scalar:scheduleOverrideMode'then need(value==0 or value==1 or value==2,'Enter 0, 1 or 2.','0、1、2のいずれかを入力してください。')end
  value=string.unpack('&lt;f',string.pack('&lt;f',value))
  if key=='scalar:maxHealth'then need(value&gt;0,'Enter a positive maximum health.','最大体力には正の値を入力してください。')end
  need(value==value and math.abs(value)&lt;math.huge,
    'The value exceeds the supported numeric range.','入力値がゲームで扱える数値範囲を超えています。')
  if pendingCharacterEdit then
    local stat=queuedStat or need(ASKA.checkContext(session).values[key],
      'Attribute is unavailable.','属性を取得できません。')
    ASKA.queue[info.mr.ID]={info=info,value=value,before=before,characterStat=stat}
    return
  end
  if value==before then ASKA.paintMirror(info,before); return end
  if not ASKA.active[characterEditKey] then
    ASKA.feature(characterEditKey,true)
    managedCharacterEdit=true
  end
  need(not ASKA.active[characterEditKey].cleanup,'Character editing is being disabled.','キャラクター編集の解除処理中です。')
  withTargetSuspended(function(handle)
    local target=ASKA.checkContext(session)
    local stat=need(target.values[key],'Attribute is unavailable.','属性を取得できません。')
    need(not queuedStat or sameCharacterStat(stat,queuedStat),
      'The character attribute changed before the next edit. Refresh and retry.',
      '次の編集前にキャラクター属性が変わりました。値を再取得してから再試行してください。')
    need(stat.value==before,'Value changed in the game; refresh first.','ゲーム内で値が変化しました。再取得してください。')
    need(stat.parameterType~=2 or value==0 or value==1,'Enter 0 or 1.','0または1を入力してください。')
    need((stat.ignoreLower==1 or value&gt;=stat.lower) and (stat.ignoreUpper==1 or value&lt;=stat.upper),
      'The value is outside the game attribute bounds.','入力値がゲーム内の属性範囲を超えています。')
    publishCharacterEdit(handle,target,stat,before,value,{info=info,value=value,before=before,stat=stat})
  end)
end

local recoveryFields={
  {'health',true,0x70017},{'energy',true,0x70018},{'food',true,0x70019},{'water',true,0x7001A},
  {'warmth',true},{'rest',true},{'wetness',false},{'frost',false},
}
local expertiseTrainingCaps={
  [2230]=0x1.91b3400000000p+8, -- Moveset_HarvestGenericPickaxe
  [2231]=0x1.91b3400000000p+8, -- Moveset_HarvestGenericAxe
  [2232]=0x1.91b3400000000p+8, -- Moveset_HarvestHammer
  [2233]=0x1.3880000000000p+12, -- Moveset_Fishing
  [2234]=0x1.91b3400000000p+8, -- Moveset_Building
  [2235]=0x1.f401a20000000p+9, -- Moveset_CombatBows
  [2236]=0x1.91b3400000000p+8, -- Moveset_CombatAxe
  [2237]=0x1.3880000000000p+12, -- Moveset_Crafting
  [2238]=0x1.f400000000000p+9, -- Moveset_Bellows
  [2239]=0x1.91b3400000000p+8, -- Moveset_CarpenterBuck
  [2240]=0x1.3880000000000p+12, -- Moveset_Gather_Default
  [2241]=0x1.3880000000000p+12, -- Moveset_Firestarting
  [2242]=0x1.ed6c620000000p+9, -- Moveset_Planting
  [2243]=0x1.8000000000000p+3, -- Moveset_Cooking
  [2244]=0x1.fdda6a0000000p+7, -- Moveset_Heal_Shaman
}

local function memberBatchValue(target,job)
  local stat=target.values[job.key]
  if not stat then return end
  if job.skill then
    return stat.baseValue and math.max(stat.value,100) or nil
  end
  if job.expertise then
    local cap=job.expertise
    if stat.ignoreUpper==0 then
      -- A static game bound takes precedence over the asset-based training target.
      if follow(stat.attribute,0x58) then return end
      cap=math.min(cap,stat.upper)
    elseif stat.ignoreUpper~=1 then return end
    return math.max(stat.value,cap)
  end
  if job.dynamic and stat.offset==job.dynamic then
    -- The verified game setter computes and clamps to the live bound.
    if editorMemory.byte(stat.attribute+0x49)==0 then return 0x1.fffffep127,true end
    return
  end
  if job.upper and stat.ignoreUpper==0 and not follow(stat.attribute,0x58) then return stat.upper end
  if not job.upper and stat.ignoreLower==0 and not follow(stat.attribute,0x50) then return stat.lower end
end

local function finishMemberBatch(batch)
  memberBatch=nil
  if batch.refresh then pcall(batch.refresh,batch) end
  local en=('Updated %d fields. Already at target: %d. Skipped or rejected: %d.'):format(batch.changed,batch.same,batch.failed)
  local ja=('更新 %d 項目／設定済み %d 項目／適用不可 %d 項目'):format(batch.changed,batch.same,batch.failed)
  ASKA.msg(en,ja)
end

local function memberListToken()
  local scope=currentMembers(false)
  if not scope or not scope.settlement then return end
  return ('%s:%s:%X:%X'):format(ASKA.epoch,scope.token,scope.manager or 0,scope.population or 0)
end

local function memberListRows(definition)
  local token=memberListToken()
  if token then
    local rows=definition.rows()
    if memberListToken()==token then return rows,token end
  end
  return {},nil
end

local function advanceMemberBatch()
  local batch=memberBatch
  if not batch then return end
  -- Submit one write at a time, but consume several no-op or unavailable fields per tick.
  for _=1,4 do
    if batch.index&gt;#batch.jobs then finishMemberBatch(batch);return end
    local job=batch.jobs[batch.index]
    batch.index=batch.index+1
    local ok=pcall(withTargetSuspended,function(handle)
      if (batch.player and ASKA.sessions[256]~=batch.player)
        or (not batch.player and memberListToken()~=batch.token) then
        batch.failed=batch.failed+#batch.jobs-batch.index+2
        batch.index=#batch.jobs+1
        return
      end
      local target
      if batch.player then
        target=ASKA.checkContext(batch.player)
      else
        target=need(ASKA.EDITORS.memberEditor.context(job.id),'Villager is unavailable.','村人を取得できません。')
      end
      local value,clamped=memberBatchValue(target,job)
      if value==nil then batch.failed=batch.failed+1;return end
      local stat=target.values[job.key]
      if stat.value==value then batch.same=batch.same+1;return end
      publishCharacterEdit(handle,target,stat,stat.value,value,{batch=batch,value=value,before=stat.value,clamped=clamped})
    end)
    if pendingCharacterEdit then return end
    if not ok then batch.failed=batch.failed+1 end
  end
end

local function startMemberBatch(rows,maximize,refresh,token,player)
  need(not memberBatch,'A character action is running.','キャラクターへの一括操作を実行中です。')
  if not player then
    need(token and memberListToken()==token,'The member list is outdated. Refresh it first.',
      'メンバー一覧が古くなっています。再取得してください。')
  end
  local jobs={}
  for _,row in ipairs(rows) do
    if maximize then
      -- Character and Villager enumerate these 16 proficiency IDs in the installed DLL.
      for id=300,315 do jobs[#jobs+1]={id=row.id,key='attribute:base:'..id,skill=true} end
      -- Maximum per skill across installed movesets at normal proficiency.
      for id=2230,2244 do jobs[#jobs+1]={id=row.id,key='attribute:'..id,expertise=expertiseTrainingCaps[id]} end
    else
      for _,field in ipairs(recoveryFields) do
        jobs[#jobs+1]={id=row.id,key=field[1],upper=field[2],dynamic=field[3]}
      end
    end
  end
  if #jobs==0 then return end
  if not ASKA.active[characterEditKey] then
    ASKA.feature(characterEditKey,true)
    managedCharacterEdit=true
  end
  need(not ASKA.active[characterEditKey].cleanup,'Character editing is being disabled.','キャラクター編集の解除処理中です。')
  memberBatch={jobs=jobs,index=1,changed=0,same=0,failed=0,refresh=refresh,token=token,player=player}
end

function ASKA.playerEditorAction(maximize)
  local session=need(ASKA.sessions[256],'Open the player editor first.','プレイヤーエディタを開いてください。')
  need(session.key=='playerEditor' and session.live,'Player editor changed.','プレイヤーエディタが変化しました。')
  ASKA.checkContext(session)
  startMemberBatch({{id=session.id}},maximize,ASKA.refreshEditors,nil,session)
end

function ASKA.showMemberList()
  ASKA.require()
  local definition=ASKA.EDITORS.memberEditor
  local columns=definition.columns()
  columns[#columns+1]={key='guid',title='GUID',width=280,missingText=ASKA.T('Unavailable','取得不可')}
  for _,spec in ipairs(characterEditorStats) do
    if spec.key~='ravenLeft' then
      columns[#columns+1]={key=spec.key,title=ASKA.T(spec.en,spec.ja),numeric=true,width=110}
    end
  end
  local open=true
  local refreshOnCompletion
  local rows,token=memberListRows(definition)
  ASKA.Picker.show({title=ASKA.T('Member list','メンバー一覧'),rows=rows,
    columns=columns,multi=true,sortIndex=2,confirmOnly=true,alwaysAccept=true,configure=function(state)
    local list=state.list
    local popup=createPopupMenu(state.form)
    local targets,items={},{}
    list.PopupMenu=popup
    local function refresh()
      if not open or not ASKA.alive() then return end
      local refreshed,current=memberListRows(definition)
      if current~=token then
        targets={}
        state.lastId=nil
        list.ItemIndex=-1
        for i=0,#state.shown-1 do list.Items[i].Selected=false end
      end
      state.rows,token=refreshed,current
      state.render()
    end
    refreshOnCompletion=refresh
    state.accept.Caption=ASKA.T('Refresh','再取得')
    state.accept.OnClick=refresh
    state.cancel.Caption=ASKA.T('Close','閉じる')
    for index,labels in ipairs({{'Max all skills','最強'},{'Fully heal','全回復'}}) do
      local item=createMenuItem(popup)
      item.Caption=ASKA.T(labels[1],labels[2])
      item.Enabled=false
      item.OnClick=function()
        ASKA.userRun(function() startMemberBatch(targets,index==1,refresh,token) end)
      end
      popup.Items.add(item)
      items[#items+1]=item
    end
    list.OnMouseDown=function(sender,button,x,y)
      if button~='mbRight' and button~=1 then return end
      local clicked=sender.getItemAt(x,y)
      local row=clicked and state.shown[clicked.Index+1]
      targets={}
      if row then
        if not clicked.Selected then
          for i=0,#state.shown-1 do sender.Items[i].Selected=false end
          clicked.Selected=true
        end
        targets=ASKA.Picker.selectedRows(state,sender)
      end
      for _,item in ipairs(items) do item.Enabled=#targets&gt;0 and not memberBatch end
    end
  end})
  open=false
  if memberBatch and memberBatch.refresh==refreshOnCompletion then memberBatch.refresh=nil end
end

characterEditFeature.task=function()
  local mailbox=characterEditFeature.memberControl()
  local status=readInteger(mailbox)
  -- A failed status-byte write can leave the request unpublished.
  -- A cached terminal result still needs to finish the UI update.
  if status==0 and pendingCharacterEdit and not pendingCharacterEdit.terminal then
    if pendingCharacterEdit.batch then pendingCharacterEdit.batch.failed=pendingCharacterEdit.batch.failed+1 end
    pendingCharacterEdit=nil
  end
  if status==0 and not pendingCharacterEdit and memberBatch then advanceMemberBatch();return end
  if status==0 and not pendingCharacterEdit and managedCharacterEdit and not ASKA.sessions[256] and not ASKA.sessions[257]
    and not (ASKA.deedsEditingInUse and ASKA.deedsEditingInUse())
    and not (ASKA.itemKeysInUse and ASKA.itemKeysInUse()) then
    ASKA.feature(characterEditKey,false)
    return
  end
  local request=pendingCharacterEdit
  if request and request.terminal then
    status=request.terminal.status
  elseif status==3 or status==4 then
    if request then
      local actual
      if status==3 then
        actual=readFloat(mailbox+0x14)
        if type(actual)~='number' then return end
      end
      request.terminal={status=status,actual=actual}
    end
  else return end
  local actual=request and request.terminal and request.terminal.actual
  pcall(writeInteger,mailbox,0)
  need(readInteger(mailbox)==0,'Cannot clear the completed character request.','完了した編集要求を消去できません。')
  pendingCharacterEdit=nil
  if not request then return end
  if request.batch then
    local batch=request.batch
    if status~=3 or (request.clamped and (actual==request.value or actual~=actual or math.abs(actual)==math.huge))
      or (not request.clamped and actual~=request.value) then
      batch.failed=batch.failed+1
    elseif actual==request.before then
      batch.same=batch.same+1
    else
      batch.changed=batch.changed+1
    end
    advanceMemberBatch()
    return
  end
  local info=request.info
  local session=info.session
  if ASKA.sessions[session.parent.ID]==session and session.rows[info.mr.ID]==info then
    local ok,current,stat=pcall(function()
      local target=ASKA.checkContext(session)
      local stat=target.values[info.field.characterStat]
      return info.field.read(target),stat
    end)
    local queued=ASKA.queue[info.mr.ID]
    if queued and queued.info==info then
      if not ok or not sameCharacterStat(stat,request.stat)
        or (queued.characterStat and not sameCharacterStat(stat,queued.characterStat)) then
        ASKA.queue[info.mr.ID]=nil
        ASKA.msg('The character attribute changed before the next edit. Refresh and retry.',
          '次の編集前にキャラクター属性が変わりました。値を再取得してから再試行してください。')
      elseif status==3 and queued.before==request.before and actual==current then
        queued.before=current
      end
    end
    if ok then ASKA.paintMirror(info,current) end
  end
  if status==4 then
    ASKA.msg('Character edit was rejected. Refresh the values before retrying.',
      'キャラクターの編集が拒否されました。値を再取得してから再試行してください。')
  elseif actual~=request.value then
    ASKA.msg('The game applied a different value.','ゲーム側が別の値を適用しました。')
  end
end

local disableCharacterEditing=characterEditFeature.off
characterEditFeature.off=function()
  disableCharacterEditing()
  if not ASKA.itemKeyRelocating then
    pendingCharacterEdit=nil
    memberBatch=nil
    managedCharacterEdit=nil
  end
end

-- Reference SIS selectEditor/commit/closeEditor with game-thread deed transactions.
local favorBaseline
local deedMemory={pointer=function(a)return readQword(a)end,integer=readInteger,
  byte=function(a)return readBytes(a,1)end,string=function(a,n)return readString(a,n,true)end}
local function favorSnapshot()
  local base=ASKA.module().Address
  local class=typeObject(base,0x5D2E3F0)
  local database=need(singleton(class),'Gods favors are unavailable.','神々の寵愛を取得できません。')
  need(follow(database,0)==class,'Gods favors changed.','神々の寵愛の実体が変わりました。')
  local snapshot=deedsSnapshot(deedMemory,database)
  if ASKA.deedLabelsFor then
    snapshot.labels=need(ASKA.deedLabelsFor(soloContext()),
      'Deed language data changed. Reopen the editor.','功績の言語データが変わりました。エディタを開き直してください。')
  end
  return snapshot
end
local function favorIdentity(snapshot,id)return ('%X:%X:%d'):format(snapshot.database,snapshot.identity,id)end
ASKA.EDITORS.favors={en="Gods' Favors editor",ja='神々の寵愛エディタ',fields={},
  identityForRow=function(row)return row.targetIdentity end,
  rows=function()
    favorBaseline=favorSnapshot()
    local rows,seen={},{}
    for _,deed in ipairs(favorBaseline.deeds)do
      if deed.categoryId&gt;=0 and deed.categoryId&lt;=6 and not seen[deed.categoryId]then
        seen[deed.categoryId]=true
        local name=deed.categoryName~='' and deed.categoryName or tostring(deed.categoryId)
        local label=favorBaseline.labels and favorBaseline.labels[deed.category]
        if label then
          need(label.kind==5 and label.id==deed.categoryId and label.identity==readQword(deed.category+0x10),
            'Deed category changed.','功績カテゴリが変わりました。')
        end
        rows[#rows+1]={id=deed.categoryId,displayId=deed.categoryId,en=label and label.en or name,ja=label and label.ja or name,
          targetIdentity=favorIdentity(favorBaseline,deed.categoryId)}
      end
    end
    return rows
  end,
  context=function(id)
    if not favorBaseline then return end
    local class=typeObject(ASKA.module().Address,0x5D2E3F0)
    if singleton(class)~=favorBaseline.database or follow(favorBaseline.database,0)~=class then return end
    return deedsEditorContext(deedMemory,favorBaseline,id)
  end,
  fieldsFor=function(_,ctx)return deedsEditorFields(ctx.snapshot,ctx.categoryId,favorBaseline and favorBaseline.labels)end}
function ASKA.openFavorsEditor(parent)ASKA.openEditor(parent,'favors')end
local pendingDeedEdit,managedDeedRuntime
function ASKA.deedsEditingInUse()return pendingDeedEdit~=nil or ASKA.sessions[412]~=nil end
local previousDeedCommit=ASKA.commit
function ASKA.commit(info,value,before,queuedStat)
  if not info.field.deedCondition then return previousDeedCommit(info,value,before,queuedStat)end
  local session=info.session
  need(session.live and ASKA.sessions[session.parentId]==session and session.rows[info.id]==info,
    'Editor was closed.','エディタは閉じられています。')
  value=ASKA.normalized(info.field,value)
  if pendingDeedEdit and pendingDeedEdit.epoch~=ASKA.epoch then pendingDeedEdit=nil end
  if pendingDeedEdit then ASKA.queue[info.id]={info=info,value=value,before=before};return end
  local ctx=ASKA.checkContext(session)
  local current=info.field.read(ctx)
  need(current==before,'Value changed in the game; refresh first.','ゲーム内で値が変化しました。再取得してください。')
  if value==before then ASKA.paintMirror(info,current);return end
  if not ASKA.active[characterEditKey] then ASKA.feature(characterEditKey,true);managedDeedRuntime=true end
  need(not ASKA.active[characterEditKey].cleanup,'Editing is being disabled.','編集の解除処理中です。')
  withTargetSuspended(function(handle)
    ctx=ASKA.checkContext(session)
    need(info.field.read(ctx)==before,'Value changed in the game; refresh first.','ゲーム内で値が変化しました。再取得してください。')
    local deed
    for _,row in ipairs(ctx.snapshot.deeds)do if row.id==info.field.deedCondition.id then deed=row;break end end
    need(deed,'Deed is unavailable.','功績を取得できません。')
    local condition=need(deed.conditions[info.field.deedCondition.index+1],'Deed condition is unavailable.','功績の条件を取得できません。')
    local request=deedsEditRequest(ctx.snapshot,deed,condition,value,ASKA.module().Address)
    local address=characterEditFeature.deedsControl()
    need(readInteger(address+0x3C)==0,'A Gods favor edit is pending.','前の寵愛編集が完了していません。')
    checkedWrite(handle,address,{request:byte(1,#request)})
    pendingDeedEdit={info=info,value=value,before=before,epoch=ASKA.epoch}
    local submitted,problem=pcall(checkedWrite,handle,address+0x3C,{1,0,0,0})
    if not submitted then
      local status=readInteger(address+0x3C)
      if status==0 then pendingDeedEdit=nil end
      -- A reported short write with a verified complete flag still submitted this exact request.
      if status~=1 then error(problem,0)end
    end
  end)
end
local previousDeedTask=characterEditFeature.task
characterEditFeature.task=function()
  previousDeedTask()
  if not ASKA.active[characterEditKey] then managedDeedRuntime=nil;return end
  local address=characterEditFeature.deedsControl()
  local status=readInteger(address+0x3C)
  local request=pendingDeedEdit
  if request and request.terminal then status=request.terminal.status end
  if status==3 or status==4 or status==5 then
    local actual
    if request then
      if request.terminal then actual=request.terminal.actual
      else
        if status==3 or status==5 then
          actual=readInteger(address+0x40)
          if type(actual)~='number' then return end
        end
        request.terminal={status=status,actual=actual}
      end
    end
    pcall(writeInteger,address+0x3C,0)
    need(readInteger(address+0x3C)==0,'Cannot clear the completed Gods favor request.','完了した寵愛編集要求を消去できません。')
    pendingDeedEdit=nil
    if request then
      local info,session=request.info,request.info.session
      if session.live and ASKA.sessions[session.parentId]==session and session.rows[info.id]==info then
        local ok,current=pcall(function()return info.field.read(ASKA.checkContext(session))end)
        if ok then
          ASKA.paintMirror(info,current)
          local queued=ASKA.queue[info.id]
          if queued and queued.info==info and queued.before==request.before and actual==current then queued.before=current end
        else ASKA.msg(tostring(current),tostring(current))end
      end
      if status==4 then ASKA.msg('Gods favor edit was rejected. Refresh the values.','寵愛編集が拒否されました。値を再取得してください。')
      elseif status==5 then ASKA.msg('The game applied a different progress value.','ゲーム側が別の進捗値を適用しました。')end
    end
  end
  if managedDeedRuntime and not pendingDeedEdit and not ASKA.sessions[412]
    and not (ASKA.characterEditingInUse and ASKA.characterEditingInUse())
    and not (ASKA.itemKeysInUse and ASKA.itemKeysInUse()) then
    ASKA.feature(characterEditKey,false)
  end
end
local previousDeedOff=characterEditFeature.off
characterEditFeature.off=function()
  previousDeedOff()
  if not ASKA.itemKeyRelocating then pendingDeedEdit,managedDeedRuntime=nil,nil end
end
local previousDeedClose=ASKA.closeEditor
function ASKA.closeEditor(parent)
  if parent.ID==412 and pendingDeedEdit and pendingDeedEdit.epoch==ASKA.epoch then
    withTargetSuspended(function(handle)
      local address=characterEditFeature.deedsControl()
      if readInteger(address+0x3C)==1 then
        checkedWrite(handle,address+0x3C,{0,0,0,0});pendingDeedEdit=nil
      end
    end)
  end
  return previousDeedClose(parent)
end

-- The only periodic work here polls an explicit name-read request. It never
-- monitors or overwrites gameplay values. The shared game-thread hook does GetKey.
local catalogJob,catalogOwnedRuntime
local function discardCatalog(job,reason)
  if not job or job.cancelled then return end
  job.cancelled=true
  if catalogJob==job then catalogJob=nil end
  if job.failed and not ASKA.disarming then
    ASKA.defer(function()
      if ASKA.epoch==job.epoch and (ASKA.pickerGeneration or 0)==job.generation and not ASKA.disarming then job.failed(reason)end
    end)
  end
end
local function sameCatalogContext(job,cached)
  local current=soloContext()
  return current and ASKA.epoch==job.epoch and current.token==job.context.token
    and (ASKA.pickerGeneration or 0)==job.generation and not ASKA.disarming
    and (job.kind~=nil or (follow(follow(current.player,0x268),0x20)==job.collection
      and follow(job.collection,0x38)==job.manager and unityIdentity(job.manager)==job.managerIdentity
      and follow(job.manager,0x28)==job.itemDatabase))
    and (cached or not job.valid or job.valid())
end
local function writePayload(handle,address,payload)
  for offset=1,#payload,0x4000 do
    local part=payload:sub(offset,offset+0x3FFF)
    checkedWrite(handle,address+offset-1,{part:byte(1,#part)})
  end
end
local function writeCatalogStatus(handle,address,status)
  local ok,reason=pcall(checkedWrite,handle,address,{status,0,0,0})
  if not ok and readInteger(address)~=status then error(reason,0)end
end
local function catalogMemory(label)
  return {follow=follow,pointer=readQword,integer=readInteger,float=readFloat,
    word=function(a)return readSmallInteger(a,false)end,
    byte=function(a)return readBytes(a,1)end,
    cstring=function(a)return readString(a,96,false)end,label=label}
end
local function stepCatalog()
  local job=catalogJob
  if not job then return end
  if not sameCatalogContext(job)then discardCatalog(job);return end
  if not job.submitted then
    local workspace=characterEditFeature.ensureItemKeyWorkspace(#job.snapshot.targets,job.capacity)
    if not workspace then return end
    job.snapshot.validate();job.packs.validate()
    local tokenSlot=job.context.base+0x5D3FE78
    local token=need(follow(tokenSlot,0),'Item name token is not initialized.','アイテム名の取得準備ができていません。')
    need(readInteger(token+0x10)==4 and readString(token+0x14,8,true)=='name',
      'Item name token differs.','アイテム名の取得用文字列が一致しません。')
    local writes,controller=itemKeyBatchRequest(workspace,job.snapshot.targets,token,tokenSlot,32)
    local submitted=false
    withTargetSuspended(function(handle)
      need(sameCatalogContext(job),'World changed while reading item names.','名称取得中にワールドが変わりました。')
      local address=characterEditFeature.itemKeyControl()
      if readInteger(address+0x3C)==2 then return end
      local payload={};for _,write in ipairs(writes)do payload[#payload+1]=write.payload end
      writePayload(handle,workspace.records,table.concat(payload))
      writePayload(handle,address,controller)
      -- All records and output pointers are complete before making them visible.
      writeCatalogStatus(handle,address+0x3C,1)
      job.workspace,job.writes=workspace,writes
      submitted=true
    end)
    job.submitted=submitted
    return
  end
  local address=characterEditFeature.itemKeyControl()
  local status=readInteger(address+0x3C)
  if status==1 or status==2 then return end
  if status==5 then
    local index=need(readInteger(address+0x40),'Missing key resize index.','名称取得の拡張位置を取得できません。')
    need(index&gt;=0 and index&lt;#job.writes,'Invalid key resize index.','名称取得の拡張位置が不正です。')
    local needed=readInteger(job.writes[index+1].address+0x40)
    need(needed and needed&gt;job.capacity,'Invalid key resize size.','名称取得領域の拡張サイズが不正です。')
    job.capacity,job.submitted=needed,false
    return
  end
  need(status==3,'Item name request was rejected.','アイテム名の取得が拒否されました。')
  local keys={}
  for _,write in ipairs(job.writes)do
    need(readInteger(write.address+0x3C)==3,'An item name request is incomplete.','未完了のアイテム名取得があります。')
    local count=readInteger(write.address+0x40)
    need(count and count&gt;=0 and count&lt;=job.workspace.capacity,'Invalid item name length.','アイテム名の長さが不正です。')
    local key=count==0 and '' or readString(write.buffer,count*2,true)
    need(type(key)=='string','Cannot read an item localization key.','アイテムの名称キーを読み取れません。')
    keys[write.target.address]={kind=write.target.kind==3 and 'attribute' or write.target.kind==4 and 'deed'
      or write.target.kind==5 and 'deedCategory' or write.target.kind==6 and 'weather' or write.target.kind==0 and 'item' or 'category',
      key=key,identity=write.target.identity,status=3}
  end
  job.snapshot.validate();job.packs.validate()
  need(sameCatalogContext(job),'World changed while reading item names.','名称取得中にワールドが変わりました。')
  local catalog,lookup
  if job.kind=='attribute' then
    catalog=attributeLocalizationSnapshot(job.snapshot,keys,job.packs,itemLocalizationResolver)
  elseif job.kind=='deed' or job.kind=='weather' then
    catalog=deedLocalizationSnapshot(job.snapshot,keys,job.packs,itemLocalizationResolver)
  else
    local label=itemLocalizationResolver(job.packs,keys)
    catalog,lookup=runtimeItemCatalog(job.snapshot.database,catalogMemory(label))
  end
  withTargetSuspended(function(handle)
    need(sameCatalogContext(job),'World changed while reading item names.','名称取得中にワールドが変わりました。')
    writeCatalogStatus(handle,address+0x3C,0)
  end)
  catalogJob=nil
  if job.kind=='attribute' or job.kind=='deed' or job.kind=='weather' then
    local function labelsFor(context,refresh)
      if job.kind=='weather' and not context then context=soloContext()end
      if not context or context.token~=job.context.token or not sameCatalogContext(job,true)then return end
      local ok=pcall(function()
        job.snapshot.validate()
        if refresh or not job.packs.validateIdentity then job.packs.validate()else job.packs.validateIdentity()end
      end)
      if ok then return catalog end
    end
    if job.kind=='attribute' then ASKA.attributeLabelsFor=labelsFor
    elseif job.kind=='weather'then ASKA.weatherLabelsFor=labelsFor else ASKA.deedLabelsFor=labelsFor end
  else
    ASKA.inventoryItemLabels=function(info)
      if not sameCatalogContext(job)then return end
      return lookup[info]
    end
  end
  ASKA.defer(function()
    if sameCatalogContext(job)then job.callback(catalog,lookup)end
  end)
end
function ASKA.itemKeysInUse()return catalogJob~=nil end
function ASKA.withItemCatalog(callback,valid,failed,kind)
  ASKA.require()
  need(kind==nil or kind=='attribute' or kind=='deed' or kind=='weather','Unknown key catalog.','名称一覧の種類が不正です。')
  need(not catalogJob,'An item list is already being prepared.','アイテム一覧を準備中です。')
  local context=need(soloContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
  local collection,manager,managerIdentity,database
  if kind==nil then
    collection=follow(follow(context.player,0x268),0x20)
    manager=need(follow(collection,0x38),'Item database manager is unavailable.','アイテムデータベース管理が取得できません。')
    managerIdentity=need(unityIdentity(manager),'Item database manager was destroyed.','アイテムデータベース管理の実体が変わりました。')
    database=need(follow(manager,0x28),'Item database is unavailable.','アイテムデータベースが取得できません。')
  end
  local localization=singleton(typeObject(context.base,0x5D1E078))
  local packs=localizationPackSnapshot(localization,{
    pointer=readQword,integer=readInteger,string=function(a,n)return readString(a,n,true)end,
  },function(key)
    if kind=='attribute'then return key:sub(1,10)=='attribute.'end
    if kind=='deed'then return key:sub(1,5)=='deed.' or key:sub(1,13)=='deedCategory.'end
    if kind=='weather'then return key:sub(1,8)=='weather.'end
    return key:sub(1,5)=='item.' or key:sub(1,9)=='category.'
  end)
  local memory={
    pointer=readQword,follow=follow,integer=readInteger,byte=function(a)return readBytes(a,1)end,word=function(a)return readSmallInteger(a,false)end,
    cstring=function(a)return readString(a,96,false)end,
  }
  local snapshot
  if kind=='attribute'then
    local attributes=attributeLabelsSnapshot(context.base,editorMemory,true)
    need(attributes,'Attribute database is unavailable.','属性データベースを取得できません。')
    snapshot=attributeKeyTargets(attributes,context.base,memory)
  elseif kind=='weather'then
    snapshot=weatherKeyTargets(context.base,memory,weatherCatalog)
  elseif kind=='deed'then
    local deeds=need(singleton(typeObject(context.base,0x5D2E3F0)),
      'Deeds database is unavailable.','功績データベースを取得できません。')
    snapshot=deedKeyTargets(deeds,context.base,memory)
  else snapshot=itemKeyTargets(database,context.base,memory)end
  need(#snapshot.targets&gt;0,'The item database is empty.','アイテムデータベースが空です。')
  catalogJob={context=context,packs=packs,snapshot=snapshot,callback=callback,valid=valid,failed=failed,
    collection=collection,manager=manager,managerIdentity=managerIdentity,itemDatabase=database,kind=kind,
    epoch=ASKA.epoch,generation=ASKA.pickerGeneration or 0,capacity=math.max(1,packs.maxKeyLength)}
  if not ASKA.active[characterEditKey]then catalogOwnedRuntime=true end
  local ok,reason=pcall(stepCatalog)
  if not ok then discardCatalog(catalogJob,reason);error(reason,0)end
end
function ASKA.withAttributeLabels(callback,valid,failed)
  return ASKA.withItemCatalog(callback,valid,failed,'attribute')
end
function ASKA.withDeedLabels(callback,valid,failed)
  return ASKA.withItemCatalog(callback,valid,failed,'deed')
end
function ASKA.withWeatherLabels(callback,valid,failed)
  return ASKA.withItemCatalog(callback,valid,failed,'weather')
end
local previousCatalogTask=characterEditFeature.task
characterEditFeature.task=function()
  previousCatalogTask()
  if not ASKA.active[characterEditKey]then catalogOwnedRuntime=nil;return end
  local job=catalogJob
  local ok,reason=pcall(stepCatalog)
  if not ok then discardCatalog(job,reason);ASKA.msg(tostring(reason),tostring(reason))end
  if catalogOwnedRuntime and not catalogJob
    and not (ASKA.characterEditingInUse and ASKA.characterEditingInUse())
    and not (ASKA.deedsEditingInUse and ASKA.deedsEditingInUse())then
    ASKA.feature(characterEditKey,false)
  end
end
local previousCatalogOff=characterEditFeature.off
characterEditFeature.off=function()
  previousCatalogOff()
  if not ASKA.itemKeyRelocating then discardCatalog(catalogJob);catalogOwnedRuntime=nil end
end
local previousCatalogForget=ASKA.forgetProcess
function ASKA.forgetProcess()
  catalogJob,catalogOwnedRuntime=nil,nil
  ASKA.inventoryItemLabels=nil
  ASKA.attributeLabelsFor=nil
  ASKA.deedLabelsFor=nil
  ASKA.weatherLabelsFor=nil
  return previousCatalogForget()
end

-- Prepare independent game EN/JA labels before the existing native CT editor
-- opens. Reuse the serialized key broker and its main-thread request ownership.
do
  local requests={}
  local previousOpen=ASKA.openEditor
  function ASKA.openEditor(parent,key)
    if key~='playerEditor'and key~='memberEditor'and key~='favors'then return previousOpen(parent,key)end
    local id,epoch=parent.ID,ASKA.epoch
    local selected=ASKA.editorTargets and ASKA.editorTargets[id]
    local token={};requests[id]=token
    local function valid()
      local current=getAddressList().getMemoryRecordByID(id)
      return requests[id]==token and ASKA.epoch==epoch and not ASKA.disarming and current and current.Active
    end
    local function failed()
      if not valid()then return end
      requests[id]=nil
      local current=getAddressList().getMemoryRecordByID(id)
      if current and not ASKA.sessions[id]then current.Active=false end
    end
    local function open()
      if not valid()then return end
      requests[id]=nil
      local current=getAddressList().getMemoryRecordByID(id)
      ASKA.editorTargets=ASKA.editorTargets or {}
      local before=ASKA.editorTargets[id];ASKA.editorTargets[id]=selected
      local ok,reason=pcall(previousOpen,current,key)
      ASKA.editorTargets[id]=before
      if not ok then
        if ASKA.epoch==epoch and not ASKA.disarming and not ASKA.sessions[id]then current.Active=false end
        error(reason,0)
      end
    end
    ASKA.defer(function()
      if not valid()then return end
      local ok=ASKA.userRun(function()
        ASKA.require()
        local context=need(soloContext(),'No active solo world.','シングルプレイのワールドが準備できていません。')
        local labelsFor=key=='favors' and ASKA.deedLabelsFor or ASKA.attributeLabelsFor
        if labelsFor and labelsFor(context,true)then open();return end
        if key=='favors'then ASKA.withDeedLabels(open,valid,failed)else ASKA.withAttributeLabels(open,valid,failed)end
      end)
      if not ok then failed()end
    end)
  end
  local previousForget=ASKA.forgetProcess
  function ASKA.forgetProcess()
    requests={}
    return previousForget()
  end
end

end)()
do
local fireRefillInstructions = "\x9C\x50\x52\x41\x50\x41\x53\x4D\x8B\x1A\x4C\x39\x59\x38\x0F\x85\xDE\x00\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xD0\x00\x00\x00\x48\x8B\x81\x00\x01\x00\x00\x48\x85\xC0\x0F\x84\xC0\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xB3\x00\x00\x00\x4C\x39\x98\xB8\x00\x00\x00\x0F\x85\xA6\x00\x00\x00\x80\xB9\xC6\x00\x00\x00\x01\x0F\x84\x84\x00\x00\x00\x48\x8B\x41\x48\x48\x85\xC0\x0F\x84\x8C\x00\x00\x00\x80\x78\x04\x01\x0F\x85\x82\x00\x00\x00\x48\x8B\x81\x80\x00\x00\x00\x48\x85\xC0\x74\x76\x31\xD2\x4C\x8B\x40\x78\x4D\x85\xC0\x74\x1C\x49\x8B\x50\x18\x49\x83\xC0\x20\x48\x85\xD2\x74\x5E\x49\x8B\x00\x49\x83\xC0\x08\x48\xFF\xCA\x48\x85\xC0\x74\xEC\x4D\x8B\x5A\x08\x4C\x39\x58\x10\x75\xE2\x48\x8B\x40\x20\x48\x85\xC0\x74\xD9\x80\xB8\x86\x02\x00\x00\x00\x75\xD0\x48\x8B\x80\x08\x01\x00\x00\x48\x85\xC0\x74\xC4\x48\x8B\x40\x48\x48\x85\xC0\x74\xBB\x48\x39\x88\x80\x00\x00\x00\x75\xB2\x41\x5B\x41\x58\x5A\x58\x9D\x41\x5A\x0F\x28\xC3\xF3\x0F\x5F\xC1\xF3\x0F\x5C\xC1\xC3\x41\x5B\x41\x58\x5A\x58\x9D\x41\x5A"
local torchFuelInstructions = "\x9C\x50\x51\x52\x41\x50\x41\x53\x48\x8B\x47\x20\x48\x85\xC0\x0F\x84\xCE\x01\x00\x00\x81\x78\x18\x02\xA0\x40\x01\x0F\x85\xC1\x01\x00\x00\x49\x8B\x02\x4D\x8B\x5A\x08\x4C\x39\x58\x38\x0F\x85\xB0\x01\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xA2\x01\x00\x00\x48\x8B\x4F\x60\x48\x85\xC9\x0F\x84\x95\x01\x00\x00\x48\x39\x88\x60\x02\x00\x00\x0F\x84\x7C\x01\x00\x00\x4C\x8B\x41\x78\x4D\x85\xC0\x0F\x84\x7B\x01\x00\x00\x49\x8B\x88\x98\x00\x00\x00\x48\x85\xC9\x0F\x84\x6B\x01\x00\x00\x49\x8B\x42\x10\x4C\x8B\x18\x4D\x85\xDB\x0F\x84\x5B\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x51\x01\x00\x00\x48\x8B\x41\x18\x48\x83\xC1\x20\x48\x85\xC0\x0F\x84\x40\x01\x00\x00\x48\x8B\x11\x48\x83\xC1\x08\x48\xFF\xC8\x48\x85\xD2\x74\xE8\x4C\x39\x1A\x75\xE3\x4C\x39\x42\x40\x75\xDD\x48\x8B\x4F\x60\x48\x39\x8A\xB8\x04\x00\x00\x0F\x85\x15\x01\x00\x00\x48\x85\xD2\x0F\x84\x0C\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFC\x00\x00\x00\x41\xF6\xC3\x01\x0F\x85\xF2\x00\x00\x00\x4C\x39\x1A\x0F\x85\xE9\x00\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\xDB\x00\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xCD\x00\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\xBA\x00\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\xAA\x00\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x9D\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x90\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x83\x00\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x74\x77\x41\x80\x7B\x48\x00\x75\x70\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x74\x64\x4C\x39\x98\xE8\x01\x00\x00\x75\x5B\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x11\x49\x39\xC3\x75\x0C\x41\x5B\x41\x58\x5A\x59\x58\x9D\x41\xFF\x62\x18\x41\x5B\x41\x58\x5A\x59\x58\x9D"
local kilnSupplyInstructions = "\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x53\x84\xC0\x0F\x84\x28\x02\x00\x00\x80\xBB\x86\x02\x00\x00\x00\x0F\x85\x1B\x02\x00\x00\x80\xBB\x87\x02\x00\x00\x00\x0F\x85\x0E\x02\x00\x00\x48\x8B\x83\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xFE\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xF1\x01\x00\x00\x4D\x8B\x1A\x4C\x39\x98\xB8\x00\x00\x00\x0F\x85\xE1\x01\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xD3\x01\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x52\x30\x0F\x85\xC0\x01\x00\x00\x48\x81\xEC\xB0\x00\x00\x00\x4C\x89\x54\x24\x38\xF3\x0F\x7F\x44\x24\x50\xF3\x0F\x7F\x4C\x24\x60\xF3\x0F\x7F\x54\x24\x70\xF3\x0F\x7F\x9C\x24\x80\x00\x00\x00\xF3\x0F\x7F\xA4\x24\x90\x00\x00\x00\xF3\x0F\x7F\xAC\x24\xA0\x00\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x52\x08\x85\xC0\x0F\x85\x35\x01\x00\x00\x4C\x8B\x54\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x52\x10\x85\xC0\x0F\x8E\x1F\x01\x00\x00\x4C\x8B\x54\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x52\x18\x48\x85\xC0\x0F\x84\x08\x01\x00\x00\x80\x78\x24\x01\x0F\x85\xFE\x00\x00\x00\x48\x89\x44\x24\x40\x4C\x8B\x54\x24\x38\x49\x8B\x42\x40\x4D\x8B\x1A\x4C\x39\x58\x38\x0F\x85\xE3\x00\x00\x00\x48\x8B\x80\x68\x02\x00\x00\x48\x85\xC0\x0F\x84\xD3\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\xC6\x00\x00\x00\x80\x78\x60\x01\x0F\x85\xBC\x00\x00\x00\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xAF\x00\x00\x00\x48\x8B\x48\x28\x48\x85\xC9\x0F\x84\xA2\x00\x00\x00\x4C\x8B\x54\x24\x38\x41\x8B\x52\x34\x45\x31\xC0\x41\xFF\x52\x20\x48\x85\xC0\x0F\x84\x89\x00\x00\x00\x4C\x8B\x54\x24\x38\x41\x8B\x52\x34\x39\x50\x18\x75\x7B\x48\x89\x44\x24\x48\x48\x89\xC2\x48\x8B\x4C\x24\x40\x48\x8B\x01\x4C\x8B\x80\x50\x02\x00\x00\xFF\x90\x48\x02\x00\x00\x85\xC0\x7E\x5A\x4C\x8B\x54\x24\x38\x41\x3B\x42\x38\x41\x0F\x4F\x42\x38\x89\x44\x24\x30\x48\x8B\x4C\x24\x48\x48\x8B\x01\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x74\x2E\x4C\x8B\x54\x24\x38\x48\x8B\x4C\x24\x40\x48\x89\xC2\x44\x8B\x44\x24\x30\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x48\xC7\x44\x24\x28\x00\x00\x00\x00\x41\xFF\x52\x28\x4C\x8B\x54\x24\x38\xF3\x0F\x6F\x44\x24\x50\xF3\x0F\x6F\x4C\x24\x60\xF3\x0F\x6F\x54\x24\x70\xF3\x0F\x6F\x9C\x24\x80\x00\x00\x00\xF3\x0F\x6F\xA4\x24\x90\x00\x00\x00\xF3\x0F\x6F\xAC\x24\xA0\x00\x00\x00\x48\x81\xC4\xB0\x00\x00\x00\x41\xC7\x42\x30\x00\x00\x00\x00\x41\x5B\x41\x59\x41\x58\x5A\x59\x58\x9D"
local kilnCoalId, kilnCoalStack = 16830470, 5
local fuelScopeInstructions = "\x9C\x50\x41\x53\x48\x85\xD2\x0F\x84\x05\x02\x00\x00\x41\x80\x7A\x18\x03\x0F\x84\xA6\x01\x00\x00\x41\x80\x7A\x18\x00\x75\x36\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\xE0\x01\x00\x00\x4C\x39\x5E\x18\x0F\x85\xD6\x01\x00\x00\x49\x39\x83\x98\x01\x00\x00\x0F\x85\xC9\x01\x00\x00\x49\x8B\x83\xA0\x01\x00\x00\xE9\x22\x01\x00\x00\x48\x8B\x43\x18\x48\x85\xC0\x0F\x84\xB0\x01\x00\x00\x4D\x8B\x5A\x28\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xA0\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x96\x01\x00\x00\x4C\x39\x18\x0F\x85\x8D\x01\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x58\x38\x0F\x85\x7F\x01\x00\x00\x80\xB8\x94\x01\x00\x00\x00\x0F\x85\x72\x01\x00\x00\x80\xB8\x7C\x02\x00\x00\x01\x0F\x85\x65\x01\x00\x00\x4D\x8B\x1A\x4D\x8B\x9B\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\x52\x01\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\x42\x01\x00\x00\x4C\x39\x98\xD0\x04\x00\x00\x0F\x85\x35\x01\x00\x00\x4D\x8B\x1A\x4D\x8B\x9B\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x22\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x17\x01\x00\x00\x51\x48\x8B\x88\xC8\x04\x00\x00\x48\x85\xC9\x0F\x84\x05\x01\x00\x00\x4C\x39\x99\xE8\x01\x00\x00\x0F\x85\xF8\x00\x00\x00\x50\x41\x53\x49\x8B\x43\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xAB\x00\x00\x00\x48\x39\xC8\x0F\x85\xA2\x00\x00\x00\x58\x59\x48\x8B\x80\x80\x04\x00\x00\x48\x85\xC0\x0F\x84\x92\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x80\x78\x60\x01\x75\x7F\x41\x80\x7A\x18\x02\x74\x16\x4C\x8B\x5A\x10\x4D\x85\xDB\x74\x6F\x49\x39\x43\x28\x75\x69\x41\x80\x7A\x18\x00\x75\x07\x48\x39\xC1\x75\x5D\xEB\x38\x4C\x39\xD9\x75\x56\xEB\x31\x48\x8B\x87\x08\x01\x00\x00\x48\x85\xC0\x74\x48\x48\x8B\x40\x48\x48\x85\xC0\x74\x3F\x48\x8B\x80\x80\x00\x00\x00\x48\x85\xC0\x74\x33\x4D\x8B\x5A\x08\x4C\x39\x58\x38\x75\x29\x48\x39\x4A\x10\x75\x23\x41\x5B\x58\x44\x89\xC0\x41\x80\x7A\x18\x02\x74\x05\xB8\x01\x00\x00\x00\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x59\x41\x5B\x58\x9D"
-- FireStructure's fuel modifier returns a delta to VariableAttribute.Tick.
local fuelSignature={0x40,0x53,0x48,0x83,0xEC,0x40,0x80,0x3D,0x93,0x4D,0x53,0x05,0x00,0x48,0x8B,0xD9}
local fuelOriginal={table.unpack(fuelSignature,1,6)}

local function fuelCode(context,cave,entry)
  local data=0x200
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)
    ..fireRefillInstructions..string.char(table.unpack(fuelOriginal))
  code=code..makeJump(cave+#code,entry+#fuelOriginal)
  need(#code&lt;=data,'Fuel refill code exceeds its reserved range.','燃料補給処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)
    ..string.pack('&lt;I8I8',context.runner,context.base+0xBD20E0)
end

-- The equipped durability branch is the burn timer for the Simple Torch.
local torchSignature={0x48,0x8B,0x4D,0xE7,0x48,0x85,0xC9,0x0F,0x84,0xF7,0x08,0,0,0x48,0x8B,0x11}
local torchOriginal={table.unpack(torchSignature,1,7)}

local function torchFuelCode(context,cave,entry)
  local data=0x300
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)
    ..torchFuelInstructions..string.char(0x41,0x5A)..string.char(table.unpack(torchOriginal))
  code=code..makeJump(cave+#code,entry+#torchOriginal)
  local matched=cave+#code
  code=code..string.char(0x41,0x5A)..makeJump(matched+2,context.base+0xDAA464)
  need(#code&lt;=data,'Torch burn code exceeds its reserved range.','松明の燃焼処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)
    ..string.pack('&lt;I8I8I8I8',context.player,context.runner,context.base+0x5D3A260,matched)
end

local kilnSupplySignature={0x48,0x8B,0x5C,0x24,0x30,0x48,0x83,0xC4,0x20,0x5F,0xC3}
local kilnSupplyOriginal={table.unpack(kilnSupplySignature,1,5)}

local function kilnSupplyCode(context,cave,entry)
  local data=0x300
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)
    ..kilnSupplyInstructions..string.char(0x41,0x5A)..string.char(table.unpack(kilnSupplyOriginal))
  code=code..makeJump(cave+#code,entry+#kilnSupplyOriginal)
  need(#code&lt;=data,'Kiln supply code exceeds its reserved range.','窯の燃料補給処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)..string.pack('&lt;I8I8I8I8I8I8I4I4I4I4I8',
    context.runner,context.base+0xBD0650,context.base+0xBD06E0,context.base+0xE107C0,
    context.base+0x3658A10,context.base+0x36511E0,0,kilnCoalId,kilnCoalStack,0,context.player)
end


local function preserveInventoryUseSite(key,rva,callee,signature,mode,contextFor)
  local original={table.unpack(signature,1,5)}
  local function refuelCode(context,cave,entry)
    local data=0x300
    local busy=data+0x48
    local continuation=entry+5
    local guard=fuelScopeInstructions
    local jumpMarker=string.char(0xFF,0x25,0,0,0,0)..string.rep('\0',8)
    local jumpAt=guard:find(jumpMarker,1,true)
    need(jumpAt and not guard:find(jumpMarker,jumpAt+1,true),
      'Fuel continuation marker is invalid.','燃料処理の復帰位置が不正です。')
    local targetAt=jumpAt+6
    guard=guard:sub(1,targetAt-1)..string.pack('&lt;I8',continuation)..guard:sub(targetAt+8)
    local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+data)..guard
    code=code..string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',busy-#code-7)
    local call=makeJump(cave+#code,context.base+callee)
    code=code..string.char(0xE8)..call:sub(2)
    code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',busy-#code-7)
    code=code..makeJump(cave+#code,continuation)
    need(#code&lt;=data,'Fuel use code exceeds its reserved range.','燃料消費処理が確保範囲を超えています。')
    return code..string.rep('\0',data-#code)
      ..string.pack('&lt;I8I8I8I8',context.player,context.runner,0,mode)
      ..string.pack('&lt;I8I8',0,context.base+0x5D3A260)..string.rep('\0',0x20)
  end
  return entryFeature(key,rva,original,signature,contextFor or soloContext,refuelCode,nil,nil,function(cave)
    need(readInteger(cave+0x348)==0,'Fuel use is finishing. Retry cleanup.','燃料処理の完了後に解除を再試行します。')
  end)
end

ASKA.F.noFireFuel=groupedEntryFeatures({
  entryFeature('noFireFuel',0xAD2220,fuelOriginal,fuelSignature,soloContext,fuelCode,2),
  entryFeature('noFireFuel',0xDAA541,torchOriginal,torchSignature,soloContext,torchFuelCode,4),
  entryFeature('noFireFuel',0xBD0437,kilnSupplyOriginal,kilnSupplySignature,soloContext,kilnSupplyCode,nil,nil,function(cave)
    need(readInteger(cave+0x330)==0,'Kiln supply is finishing. Retry cleanup.','窯への燃料補給が完了した後に解除を再試行します。')
  end),
  preserveInventoryUseSite('noFireFuel',0xCD0C29,0x366E540,{0xE8,0x12,0xD9,0x99,0x02,0x48,0x8B,0x16,0x48,0x8B,0xCE},0),
  preserveInventoryUseSite('noFireFuel',0xD46FDC,0x3654750,{0xE8,0x6F,0xD7,0x90,0x02,0x40,0x38,0x2D,0x38,0x11,0x2C,0x05},1),
  preserveInventoryUseSite('noFireFuel',0xBD2664,0x3654750,{0xE8,0xE7,0x20,0xA8,0x02,0x41,0x83,0xEE,0x01,0x0F,0x89,0xDD,0xFD,0xFF,0xFF},3),
})


local settlementItemsKey='preserveSettlementItems'
ASKA.F[settlementItemsKey]=groupedEntryFeatures({
  ASKA.F[settlementItemsKey],
  preserveInventoryUseSite(settlementItemsKey,0xD30329,0x366E540,{0xE8,0x12,0xE2,0x93,0x02,0x33,0xD2,0x48,0x8B,0xCB},2,settlementItemContext),
  preserveInventoryUseSite(settlementItemsKey,0xD3036E,0x366E6A0,{0xE8,0x2D,0xE3,0x93,0x02,0x33,0xD2,0x48,0x8B,0xCB},2,settlementItemContext),
  preserveInventoryUseSite(settlementItemsKey,0xD30894,0x366E540,{0xE8,0xA7,0xDC,0x93,0x02,0x48,0x8B,0x0D,0x60,0x68,0x01,0x05},2,settlementItemContext),
  preserveInventoryUseSite(settlementItemsKey,0xD4002D,0x366E6A0,{0xE8,0x6E,0xE6,0x92,0x02,0x48,0x8B,0x4B,0x38,0xC7,0x45,0x77,0xF2},2,settlementItemContext),
})

end
do
local cookingScopeInstructions = "\x50\x51\x52\x41\x53\x48\x8B\x47\x48\x48\x85\xC0\x74\x7A\x31\xD2\x48\x8B\x48\x78\x48\x85\xC9\x74\x1C\x48\x8B\x51\x18\x48\x83\xC1\x20\x48\x85\xD2\x74\x62\x48\x8B\x01\x48\x83\xC1\x08\x48\xFF\xCA\x48\x85\xC0\x74\xEC\x4C\x8B\x58\x10\x4D\x3B\x5A\x08\x74\x0C\x4D\x3B\x5A\x10\x74\x06\x4D\x3B\x5A\x18\x75\xD6\x48\x8B\x40\x20\x48\x85\xC0\x74\xCD\x48\x8B\x80\x98\x01\x00\x00\x48\x85\xC0\x74\xC1\x80\xB8\x40\x01\x00\x00\x01\x75\xB8\x4D\x8B\x1A\x4C\x39\x98\xB8\x00\x00\x00\x75\xAC\x41\x83\xBB\x80\x01\x00\x00\x01\x75\x09\x41\x5B\x5A\x59\x58\x41\xFF\x62\x20\x41\x5B\x5A\x59\x58"
local villagerCraftScopeInstructions = "\x50\x52\x41\x53\x48\x8B\x53\x18\x48\x85\xD2\x0F\x84\x0D\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xFD\x00\x00\x00\x41\xF6\xC3\x01\x0F\x85\xF3\x00\x00\x00\x4C\x39\x1A\x0F\x85\xEA\x00\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\xDC\x00\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xCE\x00\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\xBB\x00\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\xAB\x00\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x9E\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x91\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x84\x00\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x74\x78\x41\x80\x7B\x48\x00\x75\x71\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x74\x65\x4C\x39\x98\xE8\x01\x00\x00\x75\x5C\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x12\x49\x39\xC3\x75\x0D\x41\x5B\x5A\x58\xF3\x0F\x11\x43\x30\x41\xFF\x62\x18\x41\x5B\x5A\x58"
local villagerBuildScopeInstructions = "\x50\x52\x41\x53\x48\x8B\x56\x18\x48\x85\xD2\x0F\x84\x1F\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\x0F\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x05\x01\x00\x00\x4C\x39\x1A\x0F\x85\xFC\x00\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\xEE\x00\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xE0\x00\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\xCD\x00\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\xBD\x00\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\xB0\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\xA3\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x96\x00\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x86\x00\x00\x00\x41\x80\x7B\x48\x00\x75\x7F\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x74\x73\x4C\x39\x98\xE8\x01\x00\x00\x75\x6A\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x20\x49\x39\xC3\x75\x1B\x48\x8B\x44\x24\x10\x8B\x90\x98\x00\x00\x00\xFF\xCA\x81\xFA\xFE\xFF\x7F\x7F\x77\x06\xFF\xC2\x89\x54\x24\x54\x41\x5B\x5A\x58"
local villagerMaterialsScopeInstructions = "\x9C\x50\x52\x41\x53\x41\x80\x7A\x20\x00\x75\x05\x4C\x89\xC2\xEB\x46\x41\x80\x7A\x20\x01\x74\x37\x41\x80\x7A\x20\x03\x74\x2A\x41\x80\x7A\x20\x04\x74\x14\x41\x80\x7A\x20\x05\x74\x12\x41\x80\x7A\x20\x06\x74\x10\x48\x8B\x57\x48\xEB\x1D\x4C\x89\xEA\xEB\x18\x4C\x89\xE2\xEB\x13\x48\x89\xFA\xEB\x0E\x48\x8B\x57\x38\xEB\x08\x48\x8B\x94\x24\x00\x02\x00\x00\x48\x85\xD2\x0F\x84\x09\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xF9\x00\x00\x00\x41\xF6\xC3\x01\x0F\x85\xEF\x00\x00\x00\x4C\x39\x1A\x0F\x85\xE6\x00\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\xD8\x00\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\xCA\x00\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\xB7\x00\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\xA7\x00\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x9A\x00\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x8D\x00\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x80\x00\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x74\x74\x41\x80\x7B\x48\x00\x75\x6D\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x74\x61\x4C\x39\x98\xE8\x01\x00\x00\x75\x58\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x0E\x49\x39\xC3\x75\x09\x41\x5B\x5A\x58\x9D\x41\xFF\x62\x18\x41\x5B\x5A\x58\x9D"
local anvilFacesInstructions = "\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x53\x4D\x39\xBE\xE8\x01\x00\x00\x0F\x85\x01\x01\x00\x00\xF0\x41\xFF\x02\x48\x81\xEC\xA0\x00\x00\x00\x4C\x89\x54\x24\x20\xF3\x0F\x7F\x44\x24\x40\xF3\x0F\x7F\x4C\x24\x50\xF3\x0F\x7F\x54\x24\x60\xF3\x0F\x7F\x5C\x24\x70\xF3\x0F\x7F\xA4\x24\x80\x00\x00\x00\xF3\x0F\x7F\xAC\x24\x90\x00\x00\x00\xC7\x44\x24\x28\x00\x04\x00\x00\x4D\x39\xBE\xE8\x01\x00\x00\x75\x7C\x8B\x44\x24\x28\x3B\x45\x94\x74\x61\x48\xC7\x44\x24\x30\x00\x00\x00\x00\x4C\x89\xF9\x48\x8D\x54\x24\x28\x4C\x8D\x44\x24\x30\x48\x8B\x01\x4C\x8B\x88\x30\x03\x00\x00\xFF\x90\x28\x03\x00\x00\x84\xC0\x74\x37\x48\x8B\x4C\x24\x30\x48\x85\xC9\x74\x2D\x48\x8B\x01\x48\x8B\x90\x80\x01\x00\x00\xFF\x90\x78\x01\x00\x00\x0F\x57\xC9\x0F\x2F\xC1\x76\x15\x48\x8B\x4C\x24\x30\x48\x8B\x01\x4C\x8B\x80\x90\x01\x00\x00\xFF\x90\x88\x01\x00\x00\xFF\x44\x24\x28\x81\x7C\x24\x28\x06\x04\x00\x00\x0F\x8C\x7B\xFF\xFF\xFF\x4C\x8B\x54\x24\x20\xF3\x0F\x6F\x44\x24\x40\xF3\x0F\x6F\x4C\x24\x50\xF3\x0F\x6F\x54\x24\x60\xF3\x0F\x6F\x5C\x24\x70\xF3\x0F\x6F\xA4\x24\x80\x00\x00\x00\xF3\x0F\x6F\xAC\x24\x90\x00\x00\x00\x48\x81\xC4\xA0\x00\x00\x00\xF0\x41\xFF\x0A\x41\x5B\x41\x59\x41\x58\x5A\x59\x58\x9D\x41\x5A"
local buildRequestSupplyInstructions = "\x80\x3E\x01\x0F\x85\xFD\x00\x00\x00\x49\x39\x3B\x0F\x85\xF4\x00\x00\x00\x49\x8B\x43\x08\x48\x39\x47\x10\x0F\x85\xE6\x00\x00\x00\x80\xBB\xD4\x00\x00\x00\x00\x0F\x85\xD9\x00\x00\x00\x81\xBB\xA8\x00\x00\x00\x00\x00\x80\x3F\x0F\x83\xC9\x00\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\xBE\x00\x00\x00\x48\x8B\x43\x70\x48\x85\xC0\x0F\x84\xB1\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\xA4\x00\x00\x00\x48\x8B\x90\x58\x01\x00\x00\x48\x85\xD2\x0F\x84\x94\x00\x00\x00\x49\x8B\x43\x10\x48\x8B\x80\x90\x02\x00\x00\x48\x85\xC0\x0F\x84\x80\x00\x00\x00\x80\x78\x48\x00\x75\x7A\x48\x39\x82\xE8\x01\x00\x00\x75\x71\x50\x48\x8B\x40\x40\x48\x85\xC0\x74\x22\x83\x78\x18\x00\x7C\x30\x74\x1A\x48\x8B\x40\x10\x48\x85\xC0\x74\x25\x83\x78\x18\x00\x7E\x1F\x48\x8B\x40\x20\x48\x85\xC0\x74\x16\xEB\x0D\x48\x8B\x04\x24\x48\x8B\x40\x38\x48\x85\xC0\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x2A\x48\x39\xD0\x75\x25\xF0\x41\xFF\x43\x20\x48\x89\xD9\x31\xD2\x48\x83\xEC\x20\x41\xFF\x53\x18\x48\x83\xC4\x20\x49\xBB\x94\x98\x74\x88\x39\x03\x18\x16\xF0\x41\xFF\x4B\x20"
local crockpotMaterialsInstructions = "\x4D\x85\xDB\x0F\x84\xE1\x00\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\xD6\x00\x00\x00\x49\x8B\x83\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xC6\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xB9\x00\x00\x00\x49\x8B\x0A\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xA9\x00\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\x9C\x00\x00\x00\x48\x85\xD2\x0F\x84\x93\x00\x00\x00\x48\x83\x7A\x10\x00\x0F\x84\x88\x00\x00\x00\x48\x8B\x82\xD0\x00\x00\x00\x48\x85\xC0\x74\x7C\x48\x83\x78\x10\x00\x74\x75\x41\x80\x7A\x18\x01\x75\x30\x4D\x85\xC0\x74\x69\x49\x39\x50\x20\x75\x63\x41\x80\x78\x59\x01\x75\x5C\x49\x8B\x40\x60\x48\x85\xC0\x74\x53\x48\x8B\x40\x10\x48\x85\xC0\x74\x4A\x8B\x48\x20\x85\xC9\x78\x43\x3B\x48\x28\x75\x3E\x48\x8B\x02\x48\x85\xC0\x74\x36\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x74\x2B\x4C\x8B\x80\xC8\x00\x00\x00\x4D\x85\xC0\x74\x1F\x49\x8B\x42\x08\x4C\x8B\x08\x4D\x85\xC9\x74\x13\x4D\x39\x08\x74\x0A\x49\x83\xC0\x08\xFF\xC9\x75\xF3\xEB\x04\x41\xFF\x62\x10"
local craftingScopeInstructions = "\x9C\x50\x41\x53\x4C\x8B\x5B\x70\x4D\x85\xDB\x0F\x84\xC4\x00\x00\x00\x41\x80\x7A\x14\x00\x75\x09\x49\x39\xFB\x0F\x85\xB4\x00\x00\x00\x4D\x8B\x5B\x20\x4D\x85\xDB\x0F\x84\xA7\x00\x00\x00\x49\x8B\x02\x48\x8B\x80\x90\x02\x00\x00\x48\x85\xC0\x0F\x84\x94\x00\x00\x00\x80\x78\x48\x00\x0F\x85\x8A\x00\x00\x00\x51\x49\x8B\x8B\x58\x01\x00\x00\x48\x85\xC9\x74\x7C\x48\x39\x81\xE8\x01\x00\x00\x75\x73\x50\x4C\x8B\x58\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x2A\x49\x39\xCB\x75\x25\x59\x48\x39\x4B\x40\x75\x1F\x41\x80\x7A\x14\x00\x75\x0A\xC7\x83\xA8\x00\x00\x00\x00\x00\x80\x3F\x41\x5B\x58\x9D\xB8\x01\x00\x00\x00\x41\xFF\x62\x08\x59\x41\x5B\x58\x9D"
-- PlayerCraftInteractionSession.Update, after the active blueprint has been verified.
local craftSignature={0x0F,0x2F,0x43,0x34,0x0F,0x86,0x45,0x01,0,0,0x33,0xD2,0x48,0x8B,0xCB}
local craftOriginal={table.unpack(craftSignature,1,10)}

local function craftAgentCode(context,loadAgent,cave,matched,destination)
  local restore=string.char(0x41,0x5B,0x41,0x5A,0x9D)
  local prologue=string.char(0x9C,0x41,0x52,0x41,0x53)..loadAgent
    .. string.char(0x49,0xBB)..string.pack('&lt;I8',context.agent)
    .. string.char(0x4D,0x39,0xDA)
  local identity=string.char(0x49,0xBB)..string.pack('&lt;I8',context.agentIdentity)
    .. string.char(0x4D,0x39,0x5A,0x10)
  if destination then
    matched=matched..makeJump(cave+#prologue+2+#identity+2+#restore+#matched,destination)
  end
  return prologue..string.char(0x75,#identity+2+#restore+#matched)
    .. identity..string.char(0x75,#restore+#matched)..restore..matched..restore
end

local function instantCraftCode(context,cave,entry)
  local loadAgent=string.char(0x4C,0x8B,0x53,0x18)
  local code=craftAgentCode(context,loadAgent,cave,'',entry+#craftOriginal)..string.char(table.unpack(craftOriginal,1,4))
  local wait=context.base+0xC9A6E1
  code=code..string.char(0x0F,0x86)..string.pack('&lt;i4',wait-(cave+#code+6))
  return code..makeJump(cave+#code,entry+#craftOriginal)
end

-- CookingProcess.Run reaches this comparison only while a valid recipe is running.
local cookingSignature={0x0F,0x2F,0x05,0xC2,0x0A,0x9C,0x03,0x0F,0x83,0x78,0x02,0,0,0x48,0x89,0x5C,0x24,0x60}
local cookingOriginal={table.unpack(cookingSignature,1,13)}

local function instantCookingCode(context,cave,entry)
  local data=0x100
  local success=context.base+0xFF9368
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)..cookingScopeInstructions
  -- The matched branch lands at a stub that restores R10 and enters the game's completion path.
  code=code..string.char(0x41,0x5A)
  local originalLimit=context.base+0x49B9BAC
  code=code..string.char(0x0F,0x2F,0x05)..string.pack('&lt;i4',originalLimit-(cave+#code+7))
  code=code..string.char(0x0F,0x83)..string.pack('&lt;i4',success-(cave+#code+6))
  code=code..makeJump(cave+#code,entry+#cookingOriginal)
  local matched=cave+#code
  code=code..string.char(0x41,0x5A)..makeJump(matched+2,success)
  need(#code&lt;=data,'Cooking code exceeds its reserved range.','調理処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)..string.pack('&lt;I8I8I8I8I8',
    context.runner,context.base+0xD76670,context.base+0xBC7570,context.base+0xBCC1D0,matched)
end

local villagerCraftSignature={0x0F,0x2F,0x43,0x34,0xF3,0x0F,0x11,0x43,0x30,0x0F,0x86,0xDE,0,0,0,0x33,0xD2,0x48,0x8B,0xCB}
local villagerCraftOriginal={table.unpack(villagerCraftSignature,1,15)}

local function instantVillagerCraftCode(context,cave,entry)
  local data=0x200
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)..villagerCraftScopeInstructions
    ..string.char(0x41,0x5A)..string.char(table.unpack(villagerCraftOriginal,1,9))
  local wait=context.base+0xD2C5B8
  code=code..string.char(0x0F,0x86)..string.pack('&lt;i4',wait-(cave+#code+6))
  code=code..makeJump(cave+#code,entry+#villagerCraftOriginal)
  local matched=cave+#code
  code=code..string.char(0x41,0x5A)..makeJump(matched+2,entry+#villagerCraftOriginal)
  need(#code&lt;=data,'Villager crafting code exceeds its reserved range.','住人のクラフト処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)..string.pack('&lt;I8I8I8I8',
    context.player,context.runner,context.base+0x5D3A260,matched)
end

ASKA.F.instantCraft=groupedEntryFeatures({
  entryFeature('instantCraft',0xC9A592,craftOriginal,craftSignature,playerAgentContext,instantCraftCode,4),
  entryFeature('instantCraft',0xFF90E3,cookingOriginal,cookingSignature,playerAgentContext,instantCookingCode,7),
  entryFeature('instantCraft',0xD2C4CB,villagerCraftOriginal,villagerCraftSignature,playerAgentContext,instantVillagerCraftCode,4),
})

local noMaterialsKey='noCraftMaterials'
local requirementsSignature={0x48,0x89,0x5C,0x24,0x08,0x48,0x89,0x74,0x24,0x10,0x48,0x89,0x7C,0x24,0x18,0x41}
local requirementsOriginal={table.unpack(requirementsSignature,1,5)}
local ownedRequirementsSignature={0x48,0x89,0x5C,0x24,0x08,0x48,0x89,0x74,0x24,0x10,0x57,0x48,0x83,0xEC,0x20,0x80}
local blueprintPartsSignature={0x48,0x89,0x5C,0x24,0x08,0x48,0x89,0x6C,0x24,0x10,0x48,0x89,0x74,0x24,0x18,0x48}

local function blueprintMaterialContext()
  local context=playerAgentContext()
  if not context then return end
  local inventory=follow(context.player,0x268)
  local collection=follow(inventory,0x20)
  if not collection or readBytes(collection+0x60,1)~=1 then return end
  context.collection=collection
  return context
end

local function noBlueprintPartsCode(context,cave,entry)
  -- BlueprintInfo receives the player's ItemCollection in RDX.
  local code=string.char(0x9C,0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',context.collection)
    ..string.char(0x4C,0x39,0xD2,0x75,0x09,0x41,0x5A,0x9D,0xB8,1,0,0,0,0xC3)
    ..string.char(0x41,0x5A,0x9D)..string.char(table.unpack(requirementsOriginal))
  return code..makeJump(cave+#code,entry+#requirementsOriginal)
end

local function withVillagerMaterials(context,cave,playerCode,original,matched,mode)
  local data=0x200
  local code=playerCode..string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)
    ..villagerMaterialsScopeInstructions..string.char(0x41,0x5A)
  code=code..original(cave+#code)
  local onMatch=cave+#code
  code=code..string.char(0x41,0x5A)..matched(onMatch+2)
  need(#code&lt;=data,'Villager materials code exceeds its reserved range.','住人の素材処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)..string.pack('&lt;I8I8I8I8B',
    context.player,context.runner,context.base+0x5D3A260,onMatch,mode)
end

local function noRequirementsCode(context,cave,entry)
  local allow=string.char(0xB8,1,0,0,0,0xC3)
  local playerCode=craftAgentCode(context,string.char(0x4D,0x8B,0xD0),cave,allow)
  local original=string.char(table.unpack(requirementsOriginal))
  return withVillagerMaterials(context,cave,playerCode,function(address)
    return original..makeJump(address+#original,entry+#requirementsOriginal)
  end,function() return allow end,0)
end

local consumeSignature={0x48,0x85,0xDB,0x0F,0x84,0xA0,0x09,0x00,0x00,0x45,0x33,0xC0,0x48,0x8B,0xD3}
local consumeOriginal={table.unpack(consumeSignature,1,9)}

local function noConsumeCode(context,cave,entry)
  -- Saved flags and two registers add 24 bytes to the original frame displacement.
  local loadAgent=string.char(0x4C,0x8B,0x94,0x24,0xF0,0x01,0,0)
  local skipMaterials=context.base+0xBB6187
  local playerCode=craftAgentCode(context,loadAgent,cave,'',skipMaterials)
  local invalid=context.base+0xBB6996
  return withVillagerMaterials(context,cave,playerCode,function(address)
    local test=string.char(table.unpack(consumeOriginal,1,3))
    local branch=test..string.char(0x0F,0x84)..string.pack('&lt;i4',invalid-(address+#test+6))
    return branch..makeJump(address+#branch,entry+#consumeOriginal)
  end,function(address) return makeJump(address,skipMaterials) end,1)
end

-- After checking carried materials, the AI decides whether it can promise one craft.
local promiseSignature={0x85,0xC0,0xB8,0x01,0,0,0,0x7F,0x03,0x41,0x8B,0xC6,0x89,0x47,0x38}
local promiseOriginal={table.unpack(promiseSignature,1,7)}

local function noMaterialsPromiseCode(context,cave,entry)
  local original=string.char(table.unpack(promiseOriginal))
  return withVillagerMaterials(context,cave,'',function(address)
    return original..makeJump(address+#original,entry+#promiseOriginal)
  end,function(address)
    local one=string.char(0xB8,1,0,0,0)
    return one..makeJump(address+#one,context.base+0x976F32)
  end,2)
end

-- The crafter fetch quest contains outstanding recipe ingredients.
local fetchSignature={0x48,0x8B,0x4B,0x28,0x48,0x85,0xC9,0x0F,0x84,0xAE,0,0,0,0x48,0x8B,0x89}
local fetchOriginal={table.unpack(fetchSignature,1,7)}

local function noMaterialsFetchCode(context,cave,entry)
  local original=string.char(table.unpack(fetchOriginal))
  return withVillagerMaterials(context,cave,'',function(address)
    return original..makeJump(address+#original,entry+#fetchOriginal)
  end,function(address) return makeJump(address,context.base+0xA556AD) end,3)
end

-- DyeingInteraction overrides the crafting completion and consumes a separate manifest.
local dyeSupplySignature={0x48,0x85,0xDB,0x0F,0x84,0x7C,0x03,0,0,0x45,0x33,0xC0,0x48,0x8B,0xD3}
local dyeSupplyOriginal={table.unpack(dyeSupplySignature,1,9)}

local function noDyeSuppliesCode(context,cave,entry)
  local result=context.base+0xBC9DF7
  local missing=context.base+0xBCA002
  local playerCode=craftAgentCode(context,string.char(0x4D,0x8B,0xD5),cave,'',result)
  return withVillagerMaterials(context,cave,playerCode,function(address)
    local test=string.char(table.unpack(dyeSupplyOriginal,1,3))
    local branch=test..string.char(0x0F,0x84)..string.pack('&lt;i4',missing-(address+#test+6))
    return branch..makeJump(address+#branch,entry+#dyeSupplyOriginal)
  end,function(address) return makeJump(address,result) end,4)
end

-- The anvil transfers working pieces first, then debits a separate supplies manifest.
local anvilSupplySignature={0x48,0x85,0xDB,0x0F,0x84,0xF8,0x01,0x00,0x00,0x45,0x33,0xC0,0x48,0x8B,0xD3}
local anvilSupplyOriginal={table.unpack(anvilSupplySignature,1,9)}

local function noAnvilSuppliesCode(context,cave,entry)
  local result=context.base+0xB8E4A4
  local missing=context.base+0xB8E53B
  local playerCode=craftAgentCode(context,string.char(0x4D,0x8B,0xD4),cave,'',result)
  return withVillagerMaterials(context,cave,playerCode,function(address)
    local test=string.char(table.unpack(anvilSupplyOriginal,1,3))
    local branch=test..string.char(0x0F,0x84)..string.pack('&lt;i4',missing-(address+#test+6))
    return branch..makeJump(address+#branch,entry+#anvilSupplyOriginal)
  end,function(address) return makeJump(address,result) end,5)
end

-- Positive-quantity parts normally move out of inventory. Use the anvil's existing
-- generated-piece path and pass the actual recipe quantity to its AddItem call.
local anvilParts=(function()
  local anvilPartSignature={0x85,0xC0,0x7F,0x6A,0x49,0x8B,0x86,0x50,0x01,0x00,0x00,0x48,0x85,0xC0}
  local anvilPartOriginal={table.unpack(anvilPartSignature,1,11)}

  local function noAnvilPartCode(context,cave,entry)
    local loadContainer=string.char(table.unpack(anvilPartOriginal,5))
    local function createPart(address)
      return loadContainer..makeJump(address+#loadContainer,entry+#anvilPartOriginal)
    end
    local playerCode=craftAgentCode(context,string.char(0x4D,0x8B,0xD4),cave,loadContainer,entry+#anvilPartOriginal)
    return withVillagerMaterials(context,cave,playerCode,function(address)
      local test=string.char(0x85,0xC0,0x0F,0x8F)..string.pack('&lt;i4',context.base+0xB8E23B-(address+8))
      return test..createPart(address+#test)
    end,createPart,5)
  end

  local anvilQuantitySignature={0x45,0x8D,0x41,0x02,0x48,0x8B,0xD0,0x48,0x8B,0xCE,0xE8,0xB3,0x2F,0xAC,0x02}
  local anvilQuantityOriginal={table.unpack(anvilQuantitySignature,1,7)}

  local function noAnvilQuantityCode(context,cave,entry)
    local function proceed(code,address)
      return code..makeJump(address+#code,entry+#anvilQuantityOriginal)
    end
    local original=string.char(table.unpack(anvilQuantityOriginal))
    -- Match ItemInfoQuantity.get_quantity: positive override, otherwise default.
    local quantity=string.char(0x44,0x8B,0x43,0x18,0x45,0x85,0xC0,0x7F,0x04,0x44,0x8B,0x43,0x1C,
      0x45,0x85,0xC0,0x7F,0x04,0x45,0x8D,0x41,0x02,0x48,0x8B,0xD0)
    local playerCode=craftAgentCode(context,string.char(0x4D,0x8B,0xD4),cave,quantity,entry+#anvilQuantityOriginal)
    return withVillagerMaterials(context,cave,playerCode,function(address)
      return proceed(original,address)
    end,function(address) return proceed(quantity,address) end,5)
  end

  return groupedEntryFeatures({
    entryFeature(noMaterialsKey,0xB8E1CD,anvilPartOriginal,anvilPartSignature,playerAgentContext,noAnvilPartCode,2),
    entryFeature(noMaterialsKey,0xB8E21E,anvilQuantityOriginal,anvilQuantitySignature,playerAgentContext,noAnvilQuantityCode,4),
  })
end)()

local function buildSupplySite(rva,signature,queryOnly)
  local original={table.unpack(signature,1,5)}
  local function buildSupplyCode(context,cave,entry)
    local control,busy=0x200,0x210
    local code=string.char(0x49,0xBA)..string.pack('&lt;I8',cave+control)..craftingScopeInstructions
    code=code..string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',busy-#code-7)
    local call=makeJump(cave+#code,context.base+0x3653CE0)
    code=code..string.char(0xE8)..call:sub(2)
    code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',busy-#code-7)
    code=code..makeJump(cave+#code,entry+5)
    need(#code&lt;=control,'Building supply code exceeds its reserved range.','建築資材の消費処理が確保範囲を超えています。')
    return code..string.rep('\0',control-#code)..string.pack('&lt;I8I8I4B',context.player,entry+5,0,queryOnly and 1 or 0)
  end
  return entryFeature(noMaterialsKey,rva,original,signature,playerAgentContext,buildSupplyCode,nil,nil,function(cave)
    need(readInteger(cave+0x210)==0,'A build supply check is finishing. Retry cleanup.','建築資材の確認が完了してから解除を再試行します。')
  end)
end

local resupplyExistingPart=(function()
  local signature={0x80,0x3E,0,0x48,0x8B,0x8B,0xC0,0,0,0,0x0F,0x85,0xE2,0,0,0}
  local original={table.unpack(signature,1,10)}
  local function resupplyCode(context,cave,entry)
    local control=string.pack('&lt;I8',cave+0x200)
    local guard=buildRequestSupplyInstructions
    local first,last=guard:find(string.pack('&lt;I8',0x1618033988749894),1,true)
    need(first,'Cannot locate the building supply control.','建築資材の制御領域を特定できません。')
    guard=guard:sub(1,first-1)..control..guard:sub(last+1)
    local code=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53,0x49,0xBB)
      ..control..guard..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
      ..string.char(table.unpack(original))
    code=code..makeJump(cave+#code,entry+#original)
    need(#code&lt;=0x200,'Build supply code exceeds its reserved range.','建築資材の処理が確保範囲を超えています。')
    return code..string.rep('\0',0x200-#code)..string.pack('&lt;I8I8I8I8I4',context.agent,context.agentIdentity,
      context.player,context.base+0xB28A30,0)
  end
  return entryFeature(noMaterialsKey,0xB2ABB0,original,signature,playerAgentContext,resupplyCode,3,nil,function(cave)
    need(readInteger(cave+0x220)==0,'A build supply check is finishing. Retry cleanup.','建築資材の確認が完了してから解除を再試行します。')
  end)
end)()

ASKA.F[noMaterialsKey]=groupedEntryFeatures({
  entryFeature(noMaterialsKey,0xBB5FED,consumeOriginal,consumeSignature,playerAgentContext,noConsumeCode,3),
  entryFeature(noMaterialsKey,0xBB5910,requirementsOriginal,requirementsSignature,playerAgentContext,noRequirementsCode),
  entryFeature(noMaterialsKey,0xBB52A0,requirementsOriginal,ownedRequirementsSignature,playerAgentContext,noRequirementsCode),
  entryFeature(noMaterialsKey,0x367EEB0,requirementsOriginal,blueprintPartsSignature,blueprintMaterialContext,noBlueprintPartsCode),
  entryFeature(noMaterialsKey,0x976F26,promiseOriginal,promiseSignature,playerAgentContext,noMaterialsPromiseCode,2),
  entryFeature(noMaterialsKey,0xA5561D,fetchOriginal,fetchSignature,playerAgentContext,noMaterialsFetchCode,4),
  entryFeature(noMaterialsKey,0xBC9C7D,dyeSupplyOriginal,dyeSupplySignature,playerAgentContext,noDyeSuppliesCode,3),
  entryFeature(noMaterialsKey,0xB8E33A,anvilSupplyOriginal,anvilSupplySignature,playerAgentContext,noAnvilSuppliesCode,3),
  anvilParts,
  buildSupplySite(0xB28AFC,{0xE8,0xDF,0xB1,0xB2,0x02,0x84,0xC0,0x75,0x32,0x48,0x8B,0x4B,0x40},false),
  buildSupplySite(0xB2A687,{0xE8,0x54,0x96,0xB2,0x02,0x84,0xC0,0x74,0x08,0xB0,0x01},true),
  buildSupplySite(0xB2A582,{0xE8,0x59,0x97,0xB2,0x02,0x84,0xC0,0x75,0xC7,0x48,0x8B,0x4B,0x40},true),
  resupplyExistingPart,
})

-- The player's hammer animation submits a delta to RequestAddBuildVolume.
local buildSignature={0x48,0x8B,0xC8,0x48,0x8D,0x55,0xDB,0x45,0x33,0xC0,0xE8,0x20,0xB1,0xE2,0xFF}
local buildOriginal={table.unpack(buildSignature,1,7)}

local function instantBuildCode(context,cave,entry)
  local original=string.char(table.unpack(buildOriginal))
  -- Read positive finite target volume and use it as a delta. The game clamps to target.
  -- RDX is overwritten by the original LEA, and XOR R8D at the return site overwrites flags.
  local fill=string.char(0x8B,0x90,0x98,0,0,0,0xFF,0xCA,0x81,0xFA,0xFE,0xFF,0x7F,0x7F,
    0x77,0x05,0xFF,0xC2,0x89,0x55,0xDB)
  local code=craftAgentCode(context,string.char(0x4C,0x8B,0x57,0x18),cave,fill..original,entry+#buildOriginal)
    .. original
  return code..makeJump(cave+#code,entry+#buildOriginal)
end

local villagerBuildSignature={0x48,0x8B,0xC8,0x48,0x8D,0x54,0x24,0x34,0x45,0x33,0xC0,0xE8,0xFC,0x54,0xD9,0xFF}
local villagerBuildOriginal={table.unpack(villagerBuildSignature,1,8)}

local function instantVillagerBuildCode(context,cave,entry)
  local data=0x200
  local code=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+data)..villagerBuildScopeInstructions
    ..string.char(0x41,0x5A)..string.char(table.unpack(villagerBuildOriginal))
  code=code..makeJump(cave+#code,entry+#villagerBuildOriginal)
  need(#code&lt;=data,'Villager building code exceeds its reserved range.','住人の建築処理が確保範囲を超えています。')
  return code..string.rep('\0',data-#code)
    ..string.pack('&lt;I8I8I8',context.player,context.runner,context.base+0x5D3A260)
end

ASKA.F.instantBuild=groupedEntryFeatures({
  entryFeature('instantBuild',0xC937F1,buildOriginal,buildSignature,playerAgentContext,instantBuildCode,3),
  entryFeature('instantBuild',0xD29414,villagerBuildOriginal,villagerBuildSignature,playerAgentContext,instantVillagerBuildCode,3),
})

ASKA.F.instantCraft=(function()
  local signature={0x44,0x0F,0x2F,0xE0,0x76,0x04,0x44,0x0F,0x28,0xE0,0x48,0x8B,0x4D,0xE0}
  local original={table.unpack(signature,1,6)}
  local activeOffset=0x230
  local facesOffset=0x240
  local function instantAnvilCode(context,cave,entry)
    local full=entry+#original
    local resume=context.base+0xB8D2C7
    local faces=cave+facesOffset
    local playerCode=craftAgentCode(context,string.char(0x4C,0x8B,0xD7),cave,'',faces)
    local code=withVillagerMaterials(context,cave,playerCode,function(address)
      local compare=string.char(table.unpack(original,1,4))
      local branch=compare..string.char(0x0F,0x86)..string.pack('&lt;i4',resume-(address+#compare+6))
      return branch..makeJump(address+#branch,full)
    end,function(address) return makeJump(address,faces) end,6)
    need(#code&lt;=activeOffset,'Anvil data overlaps its activity counter.','金床処理のデータと実行中カウンターが重なっています。')
    local helper=string.char(0x41,0x52,0x49,0xBA)..string.pack('&lt;I8',cave+activeOffset)..anvilFacesInstructions
    return code..string.rep('\0',facesOffset-#code)..helper..makeJump(faces+#helper,full)
  end
  return groupedEntryFeatures({
    ASKA.F.instantCraft,
    entryFeature('instantCraft',0xB8D2BD,original,signature,playerAgentContext,instantAnvilCode,4,nil,function(cave)
      need(readInteger(cave+activeOffset)==0,'Anvil shaping is finishing. Retry cleanup.','金床の加工が完了した後に解除を再試行します。')
    end),
  })
end)()

;(function()
local previousMaterials = ASKA.F[noMaterialsKey]
local legacyStart=#ASKA.nativeRecoverySites+1
local crockpotResultInstructions = "\x4D\x39\x5F\x20\x75\x2E\x41\x80\x7F\x59\x01\x75\x27\x4D\x8B\x5F\x60\x4D\x85\xDB\x74\x1E\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x15\x41\x8B\x4B\x20\x41\x3B\x4B\x28\x75\x0B\x41\x5B\x9D\x8B\x88\xD8\x00\x00\x00\xEB\x0B\x41\x5B\x9D\x8B\x88\xD8\x00\x00\x00\x29\xF1"
local crockpotButtonInstructions = "\x48\x8B\x87\x70\x01\x00\x00\x48\x85\xC0\x74\x3C\x48\x8B\x80\x70\x02\x00\x00\x48\x85\xC0\x74\x30\x80\xB8\x40\x01\x00\x00\x01\x75\x27\x4C\x39\x98\xB8\x00\x00\x00\x75\x1E\x41\x83\xBB\x80\x01\x00\x00\x01\x75\x14\x58\x41\x5B\x9D\xB0\x01\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x58\x41\x5B\x9D"
-- Legacy public055 hook variants, registered for restoration only.
local selectedCrockpotRecipe
local crockpotStartSignature={0x4D,0x8B,0xC7,0x41,0x0F,0xB6,0xD4,0x49,0x8B,0xCE,0xE8,0xB0,0x18,0,0}
local crockpotStartOriginal={table.unpack(crockpotStartSignature,1,7)}
local crockpotResultSignature={0x8B,0x88,0xD8,0,0,0,0x2B,0xCE,0x89,0x4B,0x30,0x48,0x8B,0x17}
local crockpotResultOriginal={table.unpack(crockpotResultSignature,1,8)}
local crockpotButtonSignature={0x45,0x84,0xFF,0x41,0x0F,0xB6,0xC4,0x41,0x0F,0x94,0xC6,0x44,0x0B,0xF0}
local crockpotButtonOriginal={table.unpack(crockpotButtonSignature,1,7)}

local function resolveCookingRecipe(context,selected)
  local collection=follow(follow(context.player,0x268),0x20)
  local database=follow(follow(collection,0x38),0x28)
  local list=follow(follow(database,0x20),0x18)
  local array=follow(list,0x10)
  local count=list and readInteger(list+0x18)
  local capacity=array and readInteger(array+0x18)
  local recipe=count and capacity and count&lt;=capacity and selected.index&lt;count
    and follow(array,0x20+selected.index*8)
  local result=follow(recipe,0xD0)
  need(unityIdentity(database) and unityIdentity(recipe) and result
    and readInteger(recipe+0x18)==selected.id and readInteger(result+0x18)==selected.result,
    'Cannot verify the selected cooking recipe.','選択した調理レシピを照合できません。')
  return recipe
end

local function resolveCrockpotRecipe(context)
  return resolveCookingRecipe(context,selectedCrockpotRecipe)
end

local function crockpotStartCode(context,cave,entry)
  local recipe=resolveCrockpotRecipe(context)
  local original=string.char(table.unpack(crockpotStartOriginal))
  local inject=string.char(0x49,0xB8)..string.pack('&lt;I8',recipe)..original:sub(4)
  local code=craftAgentCode(context,string.char(0x49,0x89,0xFA),cave,inject,entry+#original)..original
  return code..makeJump(cave+#code,entry+#original)
end

local function crockpotRecipeBranch(rva,signature,branchOpcode,comparison,recipeCheck,acceptedRva,originalRva)
  local original={table.unpack(signature,1,#comparison+6)}
  return entryFeature(noMaterialsKey,rva,original,signature,playerAgentContext,function(context,cave,entry)
    local recipe=resolveCrockpotRecipe(context)
    local restore=string.char(0x41,0x5B,0x9D)
    local code=string.char(0x9C,0x41,0x53,0x49,0xBB)..string.pack('&lt;I8',recipe)
      ..recipeCheck..string.char(0x75,#restore+5)..restore
    code=code..makeJump(cave+#code,context.base+acceptedRva)..restore..comparison
    local originalTarget=context.base+originalRva
    code=code..string.char(0x0F,branchOpcode)..string.pack('&lt;i4',originalTarget-(cave+#code+6))
    return code..makeJump(cave+#code,entry+#original)
  end,#comparison)
end

local function crockpotResultCode(context,cave,entry)
  local recipe=resolveCrockpotRecipe(context)
  local code=string.char(0x9C,0x41,0x53,0x49,0xBB)..string.pack('&lt;I8',recipe)..crockpotResultInstructions
  return code..makeJump(cave+#code,entry+#crockpotResultOriginal)
end

local function crockpotButtonCode(context,cave,entry)
  local code=string.char(0x9C,0x41,0x53,0x50,0x49,0xBB)..string.pack('&lt;I8',context.runner)
    ..crockpotButtonInstructions:sub(1,-13)..string.pack('&lt;I8',context.base+0xBC5032)
    ..crockpotButtonInstructions:sub(-4)..string.char(table.unpack(crockpotButtonOriginal))
  return code..makeJump(cave+#code,entry+#crockpotButtonOriginal)
end

local crockpotSites=groupedEntryFeatures({
  entryFeature(noMaterialsKey,0xBC6611,crockpotStartOriginal,crockpotStartSignature,playerAgentContext,crockpotStartCode,3),
  crockpotRecipeBranch(0xBC801A,{0x85,0xC0,0x0F,0x84,0xEB,0x05,0,0,0x40,0x84,0xFF},
    0x84,string.char(0x85,0xC0),string.char(0x4C,0x39,0xDB),0xBC8022,0xBC860D),
  crockpotRecipeBranch(0xBC8188,{0x83,0x78,0x18,0x01,0x0F,0x8E,0x7B,0x04,0,0,0x48,0x8B,0x0D},
    0x8E,string.char(0x83,0x78,0x18,0x01),string.char(0x4C,0x39,0xDF),0xBC8192,0xBC860D),
  -- R14 is the newly created recipe and its +0x20 points to the blueprint.
  crockpotRecipeBranch(0xBC82F8,{0x3B,0xF8,0x0F,0x8D,0x4D,0x01,0,0,0xE8,0x9B,0xC9,0x1D,0},
    0x8D,string.char(0x3B,0xF8),string.char(0x4D,0x39,0x5E,0x20),0xBC844D,0xBC844D),
  entryFeature(noMaterialsKey,0xBC7D00,crockpotResultOriginal,crockpotResultSignature,playerAgentContext,crockpotResultCode,6),
  entryFeature(noMaterialsKey,0xBC5095,crockpotButtonOriginal,crockpotButtonSignature,playerAgentContext,crockpotButtonCode,3),
})
local baseMaterials=ASKA.F[noMaterialsKey]
ASKA.F[noMaterialsKey]=groupedEntryFeatures({
  baseMaterials,
  {on=function() if selectedCrockpotRecipe then crockpotSites.on() end end,off=crockpotSites.off},
})

local forgeRequestInstructions = "\x41\x83\x3B\x01\x0F\x85\x22\x01\x00\x00\x4C\x8B\x53\x18\x4D\x3B\x53\x08\x0F\x85\x14\x01\x00\x00\x4D\x85\xD2\x0F\x84\x0B\x01\x00\x00\x49\x8B\x4A\x10\x49\x3B\x4B\x10\x0F\x85\xFD\x00\x00\x00\x48\x85\xC0\x0F\x84\xF4\x00\x00\x00\x48\x3B\x43\x20\x0F\x85\xEA\x00\x00\x00\x48\x8B\x88\x70\x01\x00\x00\x48\x85\xC9\x0F\x84\xDA\x00\x00\x00\x48\x8B\x89\x70\x02\x00\x00\x48\x85\xC9\x0F\x84\xCA\x00\x00\x00\x80\xB9\x40\x01\x00\x00\x01\x0F\x85\xBD\x00\x00\x00\x48\x8B\x89\xB8\x00\x00\x00\x49\x3B\x4B\x18\x0F\x85\xAC\x00\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\x9F\x00\x00\x00\x48\x8B\x88\x58\x01\x00\x00\x48\x85\xC9\x0F\x84\x8F\x00\x00\x00\x48\x8B\x49\x68\x48\x85\xC9\x0F\x84\x82\x00\x00\x00\x83\x79\x18\x00\x75\x7C\x49\x89\x43\x28\x41\xC7\x03\x02\x00\x00\x00\x48\x89\xC1\x31\xD2\x48\x83\xEC\x20\x41\xFF\x53\x30\x48\x83\xC4\x20\x49\xBB\x94\x98\x74\x88\x39\x03\x18\x16\x49\x8B\x43\x28\x49\xC7\x43\x28\x00\x00\x00\x00\xBA\x04\x00\x00\x00\x48\x8B\x80\x58\x01\x00\x00\x48\x85\xC0\x74\x36\x48\x8B\x40\x68\x48\x85\xC0\x74\x2D\x83\x78\x18\x01\x75\x27\x48\x8B\x40\x10\x48\x85\xC0\x74\x1E\x83\x78\x18\x01\x72\x18\x48\x8B\x40\x20\x48\x85\xC0\x74\x0F\x48\x8B\x40\x20\x49\x3B\x43\x20\x75\x05\xBA\x03\x00\x00\x00\x41\x89\x13"
local forgeMatchInstructions = "\x41\x83\x3B\x02\x75\x21\x4D\x39\x73\x28\x75\x1B\x49\x39\x5B\x20\x74\x04\x31\xC0\xEB\x11\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x5B\x9D"
local forgeIngredientsInstructions = "\x41\x83\x3B\x02\x75\x2A\x4D\x39\x73\x28\x75\x24\x48\x85\xFF\x74\x1F\x4D\x8B\x5B\x20\x4C\x39\x5F\x20\x75\x15\xC6\x47\x59\x01\x41\x5B\x9D\xFF\x25\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x5B\x9D"
-- Legacy public055 hook variants, registered for restoration only.
local forgeData=0x200
local forgeInputSignature={0x48,0x8B,0xB8,0xB8,0x01,0,0,0x39,0xB1,0xE4,0,0,0,0x75,0x05}
local forgeInputOriginal={table.unpack(forgeInputSignature,1,7)}

local function forgeInputCode(context,cave,entry)
  local marker=string.pack('&lt;I8',0x1618033988749894)
  local first,last=forgeRequestInstructions:find(marker,1,true)
  need(first,'Cannot locate the forge request block.','鍛冶炉の要求領域を特定できません。')
  local control=string.pack('&lt;I8',cave+forgeData)
  local guard=forgeRequestInstructions:sub(1,first-1)..control..forgeRequestInstructions:sub(last+1)
  local code=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53,0x49,0xBB)..control..guard
    ..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
    ..string.char(table.unpack(forgeInputOriginal))
  code=code..makeJump(cave+#code,entry+#forgeInputOriginal)
  need(#code&lt;=forgeData,'Forge code exceeds its reserved range.','鍛冶炉の処理が確保範囲を超えています。')
  return code..string.rep('\0',forgeData-#code)..string.pack('&lt;I8I8I8I8I8I8I8',
    0,context.agent,context.agentIdentity,context.runner,0,0,context.base+0xBCC6C0)
end

local forgeInput=entryFeature(noMaterialsKey,0xCAE792,forgeInputOriginal,forgeInputSignature,playerAgentContext,forgeInputCode,nil,
  0x38,function(cave)
    need(readInteger(cave+forgeData)~=2,'A forge request is running. Retry cleanup.','鍛冶炉処理の完了後に解除を再試行します。')
  end,forgeData)

local function forgeRefreshSite(rva,signature,guard,matchedRva,branchCondition,lastInstruction)
  local original={table.unpack(signature,1,4+#lastInstruction)}
  return entryFeature(noMaterialsKey,rva,original,signature,playerAgentContext,function(context,cave,entry)
    local control=forgeInput.memberControl()
    local destination=context.base+matchedRva
    local code=string.char(0x9C,0x41,0x53,0x49,0xBB)..string.pack('&lt;I8',control)
      ..guard:sub(1,-12)..string.pack('&lt;I8',destination)..guard:sub(-3)
      ..string.char(table.unpack(original,1,2))
    code=code..string.char(0x0F,branchCondition)..string.pack('&lt;i4',destination-(cave+#code+6))..lastInstruction
    return code..makeJump(cave+#code,entry+#original)
  end,2)
end

local forgeInstalledEpoch
local inputOn,inputOff=forgeInput.on,forgeInput.off
forgeInput.on=function()
  inputOn()
  forgeInstalledEpoch=ASKA.epoch
end
forgeInput.off=function()
  inputOff()
  forgeInstalledEpoch=nil
end
local materialsAndForge=groupedEntryFeatures({
  ASKA.F[noMaterialsKey],forgeInput,
  forgeRefreshSite(0xBCC8B5,{0x85,0xC0,0x7F,0x1D,0x49,0x8B,0x86,0xE8,0,0,0,0xFF,0xC7,0x44,0x8B,0xC7},
    forgeMatchInstructions,0xBCC8D6,0x8F,string.char(0x49,0x8B,0x86,0xE8,0,0,0)),
  forgeRefreshSite(0xBCC981,{0x3B,0xF0,0x7D,0x6B,0x48,0x85,0xFF,0x0F,0x84,0xAA,0x02,0,0,0x33,0xD2},
    forgeIngredientsInstructions,0xBCC9F0,0x8D,string.char(0x48,0x85,0xFF)),
})
local materialsAndForgeOff=materialsAndForge.off
materialsAndForge.off=function()
  if forgeInstalledEpoch and forgeInstalledEpoch==ASKA.epoch then
    withTargetSuspended(function(handle)
      local address=forgeInput.memberControl()
      local state=readInteger(address)
      need(state==0 or state==1 or state==3 or state==4,
        'A forge request is running. Retry cleanup.','鍛冶炉処理の完了後に解除を再試行します。')
      if state~=0 then checkedWrite(handle,address,{0,0,0,0}) end
    end)
  end
  materialsAndForgeOff()
  materialsAndForge.task=nil
end
ASKA.F[noMaterialsKey]=materialsAndForge


ASKA.F[noMaterialsKey]=previousMaterials
for index=legacyStart,#ASKA.nativeRecoverySites do
local spec=ASKA.nativeRecoverySites[index]
spec.recoveryOnly=true
spec.feature.recoveryOnly=true
spec.feature.on=function()ASKA.err('Legacy hooks can only be restored.','旧版の処理は復元専用です。')end
end
end)()
;(function()
-- Use the recipe passed/chosen by the game. Never choose or substitute a dish.
-- Caller supplies the already assembled crockpotMaterialsInstructions.
local crockpotSave=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
local crockpotRestore=string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
local function naturalPotCode(context,cave,entry,potLoad,recipeLoad,mode,ordinary,matched)
  local control=0x200
  local prologue=crockpotSave..potLoad..recipeLoad
    ..(mode==1 and string.char(0x4D,0x89,0xF8)or'')
    ..string.char(0x49,0xBA)..string.pack('&lt;I8',cave+control)
  local code=prologue..crockpotMaterialsInstructions..crockpotRestore
  code=code..ordinary(cave+#code)
  local accepted=cave+#code
  code=code..crockpotRestore..matched(accepted+#crockpotRestore)
  need(#code&lt;=control,'Crockpot materials code exceeds its reserved range.','鍋の素材処理が確保範囲を超えています。')
  local payload=string.pack('&lt;I8I8I8B',context.runner,context.base+0x5D18F78,accepted,mode)
  return code..string.rep('\0',control-#code)..payload
end
local function naturalPotBranch(rva,signature,comparisonSize,condition,originalTarget,acceptedTarget,potLoad,recipeLoad,mode)
  local original={table.unpack(signature,1,comparisonSize+6)}
  local function makeCode(context,cave,entry)
    return naturalPotCode(context,cave,entry,potLoad,recipeLoad,mode,function(address)
      local code=string.char(table.unpack(original,1,comparisonSize))
      code=code..string.char(0x0F,condition)..string.pack('&lt;i4',context.base+originalTarget-(address+#code+6))
      return code..makeJump(address+#code,entry+#original)
    end,function(address)return makeJump(address,context.base+acceptedTarget)end)
  end
  return entryFeature(noMaterialsKey,rva,original,signature,playerAgentContext,makeCode,comparisonSize)
end
local naturalPotSites={
  -- Keep the separate active-recipe/busy checks. Only waive missing ingredients.
  naturalPotBranch(0xBC6199,{0x85,0xC0,0x0F,0x84,0xD9,0x04,0,0,0x45,0x84,0xE4,0x74,0x64,0x33,0xD2,0x49},
    2,0x84,0xBC667A,0xBC61A1,string.char(0x4D,0x89,0xF3),string.char(0x4C,0x89,0xFA),0),
  naturalPotBranch(0xBC6316,{0x83,0x78,0x18,1,0x0F,0x8E,0,3,0,0,0x33,0xD2,0x4D,0x89,0xAE,0xA0},
    4,0x8E,0xBC6620,0xBC6320,string.char(0x4D,0x89,0xF3),string.char(0x4C,0x89,0xFA),0),
  naturalPotBranch(0xBC801A,{0x85,0xC0,0x0F,0x84,0xEB,5,0,0,0x40,0x84,0xFF},
    2,0x84,0xBC860D,0xBC8022,string.char(0x4D,0x89,0xFB),string.char(0x48,0x89,0xDA),0),
  naturalPotBranch(0xBC8188,{0x83,0x78,0x18,1,0x0F,0x8E,0x7B,4,0,0,0x48,0x8B,0x0D},
    4,0x8E,0xBC860D,0xBC8192,string.char(0x4D,0x89,0xFB),string.char(0x48,0x89,0xFA),0),
  naturalPotBranch(0xBC82F8,{0x3B,0xF8,0x0F,0x8D,0x4D,1,0,0,0xE8,0x9B,0xC9,0x1D,0},
    2,0x8D,0xBC844D,0xBC844D,string.char(0x4D,0x89,0xFB),string.char(0x49,0x8B,0x56,0x20),0),
  -- Skip the independent completion-time consumption loop only for a recipe
  -- whose ingredient selection is empty; populated normal recipes remain normal.
  naturalPotBranch(0xBC7750,{0x41,0x3B,0x46,0x18,0x0F,0x8D,0xBE,1,0,0,0x4C,0x8B,5,0x77,0x8E,0x10},
    4,0x8D,0xBC7918,0xBC7918,string.char(0x49,0x89,0xFB),string.char(0x49,0x8B,0x57,0x20),1),
}
naturalPotSites[#naturalPotSites+1]=naturalPotBranch(0xBC623B,
  {0x83,0xF8,1,0x0F,0x8E,3,4,0,0,0x48,0x8B,0x0D,0x0D,0xF5,0x0F,5},
  3,0x8E,0xBC6647,0xBC6244,string.char(0x4D,0x89,0xF3),string.char(0x4C,0x89,0xFA),0)
-- The native menu independently disables cooking when the ingredient storage
-- is empty. A valid game-selected recipe is required to waive that UI gate.
local function naturalPotButton(rva,signature)
  local original={table.unpack(signature,1,6)}
  return entryFeature(noMaterialsKey,rva,original,signature,playerAgentContext,function(context,cave,entry)
    local load=string.char(0x4C,0x8B,0x9B,0x28,0x02,0,0,0x33,0xD2,
      0x4D,0x85,0xDB,0x74,0x07,0x49,0x8B,0x93,0xA0,0x01,0,0)
    local ordinary=string.char(table.unpack(original))
    return naturalPotCode(context,cave,entry,load,'',0,function(address)
      return ordinary..makeJump(address+#ordinary,entry+6)
    end,function(address)
      local code=string.char(0xB0,1)..ordinary
      return code..makeJump(address+#code,entry+6)
    end)
  end,3)
end
naturalPotSites[#naturalPotSites+1]=naturalPotButton(0x122201E,
  {0x45,0x33,0xC0,0x0F,0xB6,0xD0,0x48,0x8B,0xCF,0xE8,0x54,0x98,0x2E,0x03,0x48,0x8B})
naturalPotSites[#naturalPotSites+1]=naturalPotButton(0x122204D,
  {0x45,0x33,0xC0,0x0F,0xB6,0xD0,0x48,0x8B,0xCF,0xE8,0xE5,0x69,0x6B,0x03,0x48,0x8B})
local baseNaturalMaterials=ASKA.F[noMaterialsKey]
table.insert(naturalPotSites,1,baseNaturalMaterials)
ASKA.F[noMaterialsKey]=groupedEntryFeatures(naturalPotSites)

end)()
end
do
;(function()
local terraform_autoScopeInstructions = "\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x28\x49\x89\xD4\x49\x89\xCD\x48\x85\xD2\x0F\x84\x1A\x04\x00\x00\x49\x3B\x0C\x24\x0F\x85\x10\x04\x00\x00\x48\x85\xC9\x0F\x84\x07\x04\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\xFA\x03\x00\x00\x49\x3B\x44\x24\x08\x0F\x85\xEF\x03\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\xE2\x03\x00\x00\x49\x8B\x44\x24\x10\x48\x85\xC0\x0F\x84\xD4\x03\x00\x00\x48\x39\x41\x38\x0F\x85\xCA\x03\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xBD\x03\x00\x00\x48\x8B\x99\x90\x02\x00\x00\x48\x85\xDB\x0F\x84\xAD\x03\x00\x00\x80\x7B\x48\x00\x0F\x85\xA3\x03\x00\x00\x48\x8B\x43\x40\x48\x85\xC0\x0F\x84\x96\x03\x00\x00\x8B\x48\x18\x85\xC9\x0F\x88\x8B\x03\x00\x00\x74\x2D\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\x7C\x03\x00\x00\x3B\x4A\x18\x0F\x8F\x73\x03\x00\x00\x41\x8B\x44\x24\x30\x39\xC8\x72\x07\x31\xC0\x41\x89\x44\x24\x30\x48\x8B\x74\xC2\x20\xEB\x04\x48\x8B\x73\x38\x48\x85\xF6\x0F\x84\x26\x03\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x1B\x03\x00\x00\x48\x39\x9E\xE8\x01\x00\x00\x0F\x85\x0E\x03\x00\x00\x4C\x8B\x76\x48\x4D\x85\xF6\x0F\x84\x01\x03\x00\x00\x49\x83\x7E\x10\x00\x0F\x84\xF6\x02\x00\x00\x49\x39\xB6\x30\x01\x00\x00\x0F\x85\xE9\x02\x00\x00\x49\x8B\x86\x20\x01\x00\x00\x48\x85\xC0\x0F\x84\xD9\x02\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xCC\x02\x00\x00\x49\x8B\x54\x24\x10\x48\x39\x90\xB8\x00\x00\x00\x0F\x85\xBA\x02\x00\x00\x49\x8B\x86\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xAA\x02\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\x9F\x02\x00\x00\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\x92\x02\x00\x00\x3B\x4A\x18\x0F\x8F\x89\x02\x00\x00\x41\x8B\x44\x24\x34\x39\xC8\x0F\x83\x7C\x02\x00\x00\x48\x8B\x44\xC2\x20\x48\x85\xC0\x0F\x84\x4C\x02\x00\x00\x80\x78\x10\x00\x0F\x85\x42\x02\x00\x00\x4C\x39\x70\x18\x0F\x85\x38\x02\x00\x00\x4C\x8B\x78\x20\x4D\x85\xFF\x0F\x84\x2B\x02\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x20\x02\x00\x00\x49\x8B\x44\x24\x18\x48\x85\xC0\x0F\x84\x5D\x02\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x51\x02\x00\x00\x41\xF6\xC0\x01\x0F\x85\x47\x02\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\xF0\x01\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x2B\x02\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xD4\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xC4\x01\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\xB9\x01\x00\x00\x49\x8B\x87\x98\x00\x00\x00\x48\x85\xC0\x0F\x84\xA9\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x9E\x01\x00\x00\x80\xB8\x98\x01\x00\x00\x00\x0F\x85\x91\x01\x00\x00\x80\xB8\xD0\x01\x00\x00\x00\x0F\x85\x84\x01\x00\x00\x48\x39\xB0\x58\x01\x00\x00\x0F\x85\x77\x01\x00\x00\x49\x8B\x87\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x67\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x5C\x01\x00\x00\x80\xB8\x90\x00\x00\x00\x01\x0F\x85\x4F\x01\x00\x00\x49\x8B\x4C\x24\x10\x48\x39\x48\x38\x0F\x85\x40\x01\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x30\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x23\x01\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\x16\x01\x00\x00\x49\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x0F\x84\x06\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xFB\x00\x00\x00\x4C\x39\x78\x78\x0F\x85\xF1\x00\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\xE1\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xD6\x00\x00\x00\x41\x8B\x47\x54\x85\xC0\x0F\x8E\xCA\x00\x00\x00\x41\x8B\x4F\x58\x85\xC9\x0F\x8E\xBE\x00\x00\x00\x0F\xAF\xC1\x0F\x80\xB5\x00\x00\x00\x49\x8B\x57\x48\x48\x85\xD2\x0F\x84\xA8\x00\x00\x00\x3B\x42\x18\x0F\x85\x9F\x00\x00\x00\x49\x8B\x8F\xF8\x00\x00\x00\x48\x85\xC9\x0F\x84\x8F\x00\x00\x00\x3B\x41\x18\x0F\x8F\x86\x00\x00\x00\x49\x8B\x8F\x00\x01\x00\x00\x48\x85\xC9\x74\x7A\x3B\x41\x18\x7F\x75\x4D\x39\x7C\x24\x40\x75\x0B\x49\x8B\x47\x10\x49\x39\x44\x24\x48\x74\x17\x4D\x89\x7C\x24\x40\x49\x8B\x47\x10\x49\x89\x44\x24\x48\x41\xC7\x44\x24\x38\x00\x00\x00\x00\xBD\x08\x00\x00\x00\x41\x8B\x7C\x24\x38\x49\x8B\x47\x48\x3B\x78\x18\x73\x39\x8D\x4F\x01\x41\x89\x4C\x24\x38\x80\x7C\x38\x20\x00\x74\x24\x4C\x89\xF9\x89\xFA\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x75\x13\x49\x8B\x8F\xE8\x00\x00\x00\x89\xFA\x45\x31\xC0\x41\xFF\x54\x24\x28\xEB\x51\xFF\xCD\x75\xBB\xEB\x4B\x41\xFF\x44\x24\x34\x41\xC7\x44\x24\x38\x00\x00\x00\x00\x49\xC7\x44\x24\x40\x00\x00\x00\x00\x49\xC7\x44\x24\x48\x00\x00\x00\x00\xEB\x29\x41\xFF\x44\x24\x30\x41\xC7\x44\x24\x34\x00\x00\x00\x00\x41\xC7\x44\x24\x38\x00\x00\x00\x00\x49\xC7\x44\x24\x40\x00\x00\x00\x00\x49\xC7\x44\x24\x48\x00\x00\x00\x00\x48\x83\xC4\x28\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3"
-- Confirmed TerraformingGrid projects registered to the player's own settlement.
-- Normal game terrain APIs run in PlayerCharacter.Update; no CE polling timer.
local controlOffset=0x900
local helperOffset=0x100
local signature={0xE8,0xF8,0x31,0x9B,0x03,0xF3,0x0F,0x10,0x15,0x68,0xCA,0xE3,0x03,0x4C,0x8D,0x83,0xA8,0x03,0,0,0x33}
local original={table.unpack(signature,1,5)}
local function autoTerraformCode(context,cave,entry)
  local control=cave+controlOffset
  -- Count the original call and all subsequent terrain APIs as in-flight even
  -- when RIP is outside this allocation, before permitting restoration/free.
  local code=string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',control+0x3C-(cave+7))
  local call=makeJump(cave+#code,context.base+0x4530390)
  code=code..string.char(0xE8)..call:sub(2)
  code=code..string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
    ..string.char(0x48,0x89,0xD9,0x48,0xBA)..string.pack('&lt;I8',control)
    ..string.char(0x48,0xB8)..string.pack('&lt;I8',cave+helperOffset)
    -- deltaTime returns in XMM0; keep it across every terrain/game API call.
    ..string.char(0x48,0x83,0xEC,0x30,0x0F,0x11,0x44,0x24,0x20,0xFF,0xD0,
      0x0F,0x10,0x44,0x24,0x20,0x48,0x83,0xC4,0x30)
    ..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',control+0x3C-(cave+#code+7))
  code=code..makeJump(cave+#code,entry+5)
  need(#code&lt;=helperOffset and helperOffset+#terraform_autoScopeInstructions&lt;=controlOffset,
    'Terraforming code exceeds its reserved range.','大地改造の処理が確保範囲を超えています。')
  code=code..string.rep('\0',helperOffset-#code)..terraform_autoScopeInstructions
  return code..string.rep('\0',controlOffset-#code)
    ..string.pack('&lt;I8I8I8I8I8I8',context.player,context.identity,context.runner,
      context.base+0x5D059D0,context.base+0xB234F0,context.base+0xD7FA80)
    ..string.rep('\0',0x20)
end
local feature=entryFeature('autoTerraform',0xB7D193,original,signature,soloContext,autoTerraformCode,
  nil,0x50,function(cave)
    need(readInteger(cave+controlOffset+0x3C)==0,
      'Terrain processing is finishing. Retry cleanup.','大地改造の処理完了後に解除を再試行してください。')
  end,controlOffset)
feature.recoveryRecord.extraCode={offset=helperOffset,length=#terraform_autoScopeInstructions}

feature.recoveryRecord.recoveryOnly=true
feature.recoveryOnly=true
feature.on=function()ASKA.err('Legacy hooks can only be restored.','旧版の処理は復元専用です。')end
end)()
;(function()
local terraform_autoScopeInstructions = "\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x28\x49\x89\xD4\x49\x89\xCD\x48\x85\xD2\x0F\x84\x84\x04\x00\x00\x41\xC7\x44\x24\x50\x01\x00\x00\x00\x49\x3B\x0C\x24\x0F\x85\x71\x04\x00\x00\x48\x85\xC9\x0F\x84\x68\x04\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x5B\x04\x00\x00\x49\x3B\x44\x24\x08\x0F\x85\x50\x04\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\x43\x04\x00\x00\x49\x8B\x44\x24\x10\x48\x85\xC0\x0F\x84\x35\x04\x00\x00\x48\x39\x41\x38\x0F\x85\x2B\x04\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\x1E\x04\x00\x00\x41\xC7\x44\x24\x50\x02\x00\x00\x00\x48\x8B\x99\x90\x02\x00\x00\x48\x85\xDB\x0F\x84\x05\x04\x00\x00\x80\x7B\x48\x00\x0F\x85\xFB\x03\x00\x00\x41\xC7\x44\x24\x50\x03\x00\x00\x00\x48\x8B\x43\x40\x48\x85\xC0\x74\x3C\x8B\x48\x18\x85\xC9\x0F\x88\xDE\x03\x00\x00\x74\x2F\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\xCF\x03\x00\x00\x3B\x4A\x18\x0F\x8F\xC6\x03\x00\x00\x41\x8B\x44\x24\x30\x39\xC8\x72\x09\x74\x0E\x31\xC0\x41\x89\x44\x24\x30\x48\x8B\x74\xC2\x20\xEB\x04\x48\x8B\x73\x38\x48\x85\xF6\x0F\x84\x77\x03\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x6C\x03\x00\x00\x48\x39\x9E\xE8\x01\x00\x00\x0F\x85\x5F\x03\x00\x00\x41\xC7\x44\x24\x50\x04\x00\x00\x00\x4C\x8B\x76\x48\x4D\x85\xF6\x0F\x84\x49\x03\x00\x00\x49\x83\x7E\x10\x00\x0F\x84\x3E\x03\x00\x00\x49\x39\xB6\x30\x01\x00\x00\x0F\x85\x31\x03\x00\x00\x49\x8B\x86\x20\x01\x00\x00\x48\x85\xC0\x0F\x84\x21\x03\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x14\x03\x00\x00\x49\x8B\x54\x24\x10\x48\x39\x90\xB8\x00\x00\x00\x0F\x85\x02\x03\x00\x00\x41\xC7\x44\x24\x50\x05\x00\x00\x00\x49\x8B\x86\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xE9\x02\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\xDE\x02\x00\x00\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\xD1\x02\x00\x00\x3B\x4A\x18\x0F\x8F\xC8\x02\x00\x00\x41\x8B\x44\x24\x34\x39\xC8\x0F\x83\xBB\x02\x00\x00\x48\x8B\x44\xC2\x20\x48\x85\xC0\x0F\x84\x8B\x02\x00\x00\x80\x78\x10\x00\x0F\x85\x81\x02\x00\x00\x4C\x39\x70\x18\x0F\x85\x77\x02\x00\x00\x4C\x8B\x78\x20\x4D\x85\xFF\x0F\x84\x6A\x02\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x5F\x02\x00\x00\x41\xC7\x44\x24\x50\x06\x00\x00\x00\x49\x8B\x44\x24\x18\x48\x85\xC0\x0F\x84\x93\x02\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x87\x02\x00\x00\x41\xF6\xC0\x01\x0F\x85\x7D\x02\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\x26\x02\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x61\x02\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x0A\x02\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xFA\x01\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\xEF\x01\x00\x00\x49\x8B\x87\x98\x00\x00\x00\x48\x85\xC0\x0F\x84\xDF\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xD4\x01\x00\x00\x80\xB8\x98\x01\x00\x00\x00\x0F\x85\xC7\x01\x00\x00\x80\xB8\xD0\x01\x00\x00\x00\x0F\x85\xBA\x01\x00\x00\x48\x39\xB0\x58\x01\x00\x00\x0F\x85\xAD\x01\x00\x00\x41\xC7\x44\x24\x50\x07\x00\x00\x00\x49\x8B\x87\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x94\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x89\x01\x00\x00\x80\xB8\x90\x00\x00\x00\x01\x0F\x85\x7C\x01\x00\x00\x49\x8B\x4C\x24\x10\x48\x39\x48\x38\x0F\x85\x6D\x01\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x5D\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x50\x01\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\x43\x01\x00\x00\x41\xC7\x44\x24\x50\x08\x00\x00\x00\x49\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x0F\x84\x2A\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x1F\x01\x00\x00\x4C\x39\x78\x78\x0F\x85\x15\x01\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x05\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xFA\x00\x00\x00\x41\x8B\x47\x54\x85\xC0\x0F\x8E\xEE\x00\x00\x00\x41\x8B\x4F\x58\x85\xC9\x0F\x8E\xE2\x00\x00\x00\x0F\xAF\xC1\x0F\x80\xD9\x00\x00\x00\x49\x8B\x57\x48\x48\x85\xD2\x0F\x84\xCC\x00\x00\x00\x3B\x42\x18\x0F\x85\xC3\x00\x00\x00\x49\x8B\x8F\xF8\x00\x00\x00\x48\x85\xC9\x0F\x84\xB3\x00\x00\x00\x3B\x41\x18\x0F\x8F\xAA\x00\x00\x00\x49\x8B\x8F\x00\x01\x00\x00\x48\x85\xC9\x0F\x84\x9A\x00\x00\x00\x3B\x41\x18\x0F\x8F\x91\x00\x00\x00\x4D\x39\x7C\x24\x40\x75\x0B\x49\x8B\x47\x10\x49\x39\x44\x24\x48\x74\x17\x4D\x89\x7C\x24\x40\x49\x8B\x47\x10\x49\x89\x44\x24\x48\x41\xC7\x44\x24\x38\x00\x00\x00\x00\x41\xC7\x44\x24\x50\x09\x00\x00\x00\xBD\x08\x00\x00\x00\x41\x8B\x7C\x24\x38\x49\x8B\x47\x48\x3B\x78\x18\x73\x4C\x8D\x4F\x01\x41\x89\x4C\x24\x38\x80\x7C\x38\x20\x00\x74\x37\x4C\x89\xF9\x89\xFA\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x75\x26\x49\x8B\x8F\xE8\x00\x00\x00\x89\xFA\x45\x31\xC0\x41\xC7\x44\x24\x50\x0A\x00\x00\x00\x49\xFF\x44\x24\x60\x41\xFF\x54\x24\x28\x41\x88\x44\x24\x54\xEB\x51\xFF\xCD\x75\xA8\xEB\x4B\x41\xFF\x44\x24\x34\x41\xC7\x44\x24\x38\x00\x00\x00\x00\x49\xC7\x44\x24\x40\x00\x00\x00\x00\x49\xC7\x44\x24\x48\x00\x00\x00\x00\xEB\x29\x41\xFF\x44\x24\x30\x41\xC7\x44\x24\x34\x00\x00\x00\x00\x41\xC7\x44\x24\x38\x00\x00\x00\x00\x49\xC7\x44\x24\x40\x00\x00\x00\x00\x49\xC7\x44\x24\x48\x00\x00\x00\x00\x48\x83\xC4\x28\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3"
local terraformCompletionInstructions = "\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x28\x49\x89\xD4\x48\x89\x4C\x24\x20\x48\x85\xD2\x0F\x84\x4E\x03\x00\x00\x49\x8B\x0C\x24\x48\x85\xC9\x0F\x84\x41\x03\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x34\x03\x00\x00\x49\x3B\x44\x24\x08\x0F\x85\x29\x03\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\x1C\x03\x00\x00\x49\x8B\x44\x24\x10\x48\x85\xC0\x0F\x84\x0E\x03\x00\x00\x48\x39\x41\x38\x0F\x85\x04\x03\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xF7\x02\x00\x00\x48\x8B\x99\x90\x02\x00\x00\x48\x85\xDB\x0F\x84\xE7\x02\x00\x00\x80\x7B\x48\x00\x0F\x85\xDD\x02\x00\x00\x45\x31\xED\x48\x8B\x43\x40\x48\x85\xC0\x75\x0B\x45\x85\xED\x0F\x85\xC8\x02\x00\x00\xEB\x42\x8B\x48\x18\x85\xC9\x0F\x88\xBB\x02\x00\x00\x75\x0B\x45\x85\xED\x0F\x85\xB0\x02\x00\x00\xEB\x2A\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\xA1\x02\x00\x00\x3B\x4A\x18\x0F\x8F\x98\x02\x00\x00\x44\x89\xE8\x39\xC8\x0F\x87\x8D\x02\x00\x00\x74\x07\x48\x8B\x74\xC2\x20\xEB\x04\x48\x8B\x73\x38\x48\x85\xF6\x0F\x84\x6F\x02\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x64\x02\x00\x00\x48\x39\x9E\xE8\x01\x00\x00\x0F\x85\x57\x02\x00\x00\x4C\x8B\x76\x48\x4D\x85\xF6\x0F\x84\x4A\x02\x00\x00\x49\x83\x7E\x10\x00\x0F\x84\x3F\x02\x00\x00\x49\x39\xB6\x30\x01\x00\x00\x0F\x85\x32\x02\x00\x00\x49\x8B\x86\x20\x01\x00\x00\x48\x85\xC0\x0F\x84\x22\x02\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x15\x02\x00\x00\x49\x8B\x54\x24\x10\x48\x39\x90\xB8\x00\x00\x00\x0F\x85\x03\x02\x00\x00\x31\xFF\x49\x8B\x86\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\xE6\x01\x00\x00\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\xD9\x01\x00\x00\x3B\x4A\x18\x0F\x8F\xD0\x01\x00\x00\x89\xF8\x39\xC8\x0F\x83\xC6\x01\x00\x00\x48\x8B\x44\xC2\x20\x48\x85\xC0\x0F\x84\xB1\x01\x00\x00\x80\x78\x10\x00\x0F\x85\xA7\x01\x00\x00\x4C\x39\x70\x18\x0F\x85\x9D\x01\x00\x00\x4C\x8B\x78\x20\x4D\x85\xFF\x0F\x84\x90\x01\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x85\x01\x00\x00\x49\x8B\x44\x24\x18\x48\x85\xC0\x0F\x84\x86\x01\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x7A\x01\x00\x00\x41\xF6\xC0\x01\x0F\x85\x70\x01\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\x55\x01\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x54\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x39\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x29\x01\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\x1E\x01\x00\x00\x49\x8B\x87\x98\x00\x00\x00\x48\x85\xC0\x0F\x84\x0E\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x03\x01\x00\x00\x80\xB8\x98\x01\x00\x00\x00\x0F\x85\xF6\x00\x00\x00\x80\xB8\xD0\x01\x00\x00\x00\x0F\x85\xE9\x00\x00\x00\x48\x39\xB0\x58\x01\x00\x00\x0F\x85\xDC\x00\x00\x00\x49\x8B\x87\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xCC\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xC1\x00\x00\x00\x80\xB8\x90\x00\x00\x00\x01\x0F\x85\xB4\x00\x00\x00\x49\x8B\x4C\x24\x10\x48\x39\x48\x38\x0F\x85\xA5\x00\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x88\x00\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x75\x7F\x49\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x74\x73\x48\x83\x78\x10\x00\x74\x6C\x4C\x39\x78\x78\x75\x66\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x74\x5A\x48\x83\x78\x10\x00\x74\x53\x41\x8B\x47\x54\x85\xC0\x7E\x4B\x41\x8B\x4F\x58\x85\xC9\x7E\x43\x0F\xAF\xC1\x70\x3E\x49\x8B\x57\x48\x48\x85\xD2\x74\x35\x3B\x42\x18\x75\x30\x49\x8B\x8F\xF8\x00\x00\x00\x48\x85\xC9\x74\x24\x3B\x41\x18\x7F\x1F\x49\x8B\x8F\x00\x01\x00\x00\x48\x85\xC9\x74\x13\x3B\x41\x18\x7F\x0E\x4C\x3B\x7C\x24\x20\x75\x07\xB8\x01\x00\x00\x00\xEB\x11\xFF\xC7\xE9\xFF\xFD\xFF\xFF\x41\xFF\xC5\xE9\x26\xFD\xFF\xFF\x31\xC0\x48\x83\xC4\x28\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3"
-- Confirmed TerraformingGrid projects registered to the player's own settlement.
-- Normal game terrain APIs run in PlayerCharacter.Update; no CE polling timer.
local controlOffset=0x900
local helperOffset=0x100
local signature={0x48,0x89,0xB4,0x24,0x80,0,0,0,0x33,0xD2,0x48,0x8B,0xCB,0x0F,0x29,0x74,0x24,0x60}
local original={table.unpack(signature,1,8)}
local function autoTerraformCode(context,cave,entry)
  local control=cave+controlOffset
  -- Replay the original RSI save and run before the cold-volume null branch.
  -- Keep terrain APIs in-flight even when RIP is outside this allocation.
  local code=string.char(table.unpack(original))..string.char(0x9C)
  code=code..string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',control+0x3C-(cave+#code+7))
  code=code..string.char(0xF0,0x48,0xFF,0x05)..string.pack('&lt;i4',control+0x58-(cave+#code+8))
  code=code..string.char(0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
    ..string.char(0x48,0x89,0xD9,0x48,0xBA)..string.pack('&lt;I8',control)
    ..string.char(0x48,0xB8)..string.pack('&lt;I8',cave+helperOffset)
    -- Keep the incoming XMM0 across every terrain/game API call.
    ..string.char(0x48,0x83,0xEC,0x30,0x0F,0x11,0x44,0x24,0x20,0xFF,0xD0,
      0x0F,0x10,0x44,0x24,0x20,0x48,0x83,0xC4,0x30)
    ..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58)
  code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',control+0x3C-(cave+#code+7))
  code=code..string.char(0x9D)
  code=code..makeJump(cave+#code,entry+8)
  need(#code&lt;=helperOffset and helperOffset+#terraform_autoScopeInstructions&lt;=controlOffset,
    'Terraforming code exceeds its reserved range.','大地改造の処理が確保範囲を超えています。')
  code=code..string.rep('\0',helperOffset-#code)..terraform_autoScopeInstructions
  return code..string.rep('\0',controlOffset-#code)
    ..string.pack('&lt;I8I8I8I8I8I8',context.player,context.identity,context.runner,
      context.base+0x5D059D0,context.base+0xB234F0,context.base+0xD7FA80)
    ..string.rep('\0',0x40)
end
local feature=entryFeature('autoTerraform',0xB7D149,original,signature,soloContext,autoTerraformCode,
  nil,0x70,function(cave)
    need(readInteger(cave+controlOffset+0x3C)==0,
      'Terrain processing is finishing. Retry cleanup.','大地改造の処理完了後に解除を再試行してください。')
  end,controlOffset)
feature.recoveryRecord.extraCode={offset=helperOffset,length=#terraform_autoScopeInstructions}

-- IsCellLeveled normally treats five tool operations as completion regardless
-- of height. While auto-working a registered owned area, retain its ordinary
-- height/error test instead. Never change the stored operation counter.
local completionSignature={0x42,0x83,0x7C,0x80,0x20,0x05,0x0F,0x8D,0xCB,0,0,0,
  0xF3,0x0F,0x10,0xA9,0x08,0x01,0,0}
local completionOriginal={table.unpack(completionSignature,1,6)}
local function completionCode(context,cave,entry)
  local restore=string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
  local prefix=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
    ..string.char(0x48,0xBA)..string.pack('&lt;I8',cave+0x500)
    ..string.char(0x48,0xB8)..string.pack('&lt;I8',cave+0x100)
    ..string.char(0x48,0x83,0xEC,0x20,0xFF,0xD0,0x48,0x83,0xC4,0x20,0x84,0xC0)
  local owned=restore..makeJump(cave+#prefix+2+#restore,entry+12)
  local code=prefix..string.char(0x74,#owned)..owned..restore..string.char(table.unpack(completionOriginal))
  code=code..makeJump(cave+#code,entry+6)
  need(#code&lt;=0x100 and 0x100+#terraformCompletionInstructions&lt;=0x500,
    'Terrain completion code exceeds its reserved range.','大地改造の完了判定処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x100-#code)..terraformCompletionInstructions
  return code..string.rep('\0',0x500-#code)
    ..string.pack('&lt;I8I8I8I8',context.player,context.identity,context.runner,context.base+0x5D059D0)
end
local completionFeature=entryFeature('autoTerraform',0xB23533,completionOriginal,completionSignature,
  soloContext,completionCode,nil,0x20,nil,0x500)
completionFeature.recoveryRecord.extraCode={offset=0x100,length=#terraformCompletionInstructions}
completionFeature.recoveryRecord.extraCode.previous={[0x520]={offset=0x100,length=887}}

for _,v in ipairs({feature,completionFeature})do v.recoveryRecord.recoveryOnly=true;v.recoveryOnly=true;v.on=function()ASKA.err('Legacy hooks can only be restored.','旧版の処理は復元専用です。')end end
end)()
local terraformLivePlayerGuardInstructions = "\x4D\x8B\x9C\x24\xE0\x00\x00\x00\x4D\x85\xDB\x0F\x84\x90\x00\x00\x00\x49\x8B\x83\x40\x3E\xD6\x05\x48\x85\xC0\x0F\x84\x80\x00\x00\x00\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x74\x48\x8B\x00\x48\x85\xC0\x74\x6C\x48\x83\x78\x10\x00\x74\x65\x48\x8B\x40\x30\x48\x85\xC0\x74\x5C\x48\x83\x78\x10\x00\x74\x55\x4D\x8B\x9B\xB0\x40\xD6\x05\x4C\x39\x18\x75\x49\x80\x78\x60\x01\x75\x43\x48\x8B\x40\x50\x49\x3B\x04\x24\x75\x39\x48\x85\xC0\x74\x34\x4D\x8B\x5C\x24\x08\x4C\x39\x58\x10\x75\x29\x4D\x8B\x5C\x24\x10\x4C\x39\x58\x38\x75\x1E\x4D\x85\xDB\x74\x19\x41\x83\xBB\x80\x01\x00\x00\x01\x75\x0F\x80\xB8\x94\x01\x00\x00\x00\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3"
local terraformCaptureInstructions = "\x53\x56\x57\x41\x54\x48\x83\xEC\x28\x49\x89\xD4\x80\x7A\x68\x01\x0F\x85\x8E\x01\x00\x00\x83\x7A\x6C\x01\x0F\x85\x84\x01\x00\x00\x48\xB8\xBB\xAA\x99\x88\x77\x66\x55\x44\xFF\xD0\x85\xC0\x0F\x84\x70\x01\x00\x00\x48\x85\xC9\x0F\x84\x67\x01\x00\x00\x48\x89\xCB\x48\x8B\x71\x10\x48\x85\xF6\x0F\x84\x57\x01\x00\x00\x48\x8B\x02\x48\x8B\x80\x90\x02\x00\x00\x48\x85\xC0\x0F\x84\x44\x01\x00\x00\x80\x78\x48\x00\x0F\x85\x3A\x01\x00\x00\x48\x8B\x91\x58\x01\x00\x00\x48\x85\xD2\x0F\x84\x2A\x01\x00\x00\x48\x39\x82\xE8\x01\x00\x00\x0F\x85\x1D\x01\x00\x00\x31\xD2\x41\xFF\x94\x24\x90\x00\x00\x00\x89\xC7\x49\x8B\x54\x24\x70\x48\x85\xD2\x74\x14\x39\x7A\x20\x75\x0A\x48\x39\x72\x28\x0F\x84\xF8\x00\x00\x00\x48\x8B\x12\xEB\xE7\x49\x8B\x9C\x24\x88\x00\x00\x00\x48\x85\xDB\x74\x0E\x48\x8B\x43\x10\x49\x89\x84\x24\x88\x00\x00\x00\xEB\x4D\x31\xC9\xBA\x00\x10\x00\x00\x41\xB8\x00\x30\x00\x00\x41\xB9\x04\x00\x00\x00\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x9F\x00\x00\x00\x48\x89\xC3\x49\x8B\x84\x24\x80\x00\x00\x00\x48\x89\x43\x08\x49\x89\x9C\x24\x80\x00\x00\x00\x4C\x89\x63\x18\x48\xB8\x41\x4B\x54\x52\x51\x4E\x30\x31\x48\x89\x43\x48\x48\xC7\x03\x00\x00\x00\x00\x48\xC7\x43\x10\x00\x00\x00\x00\x89\x7B\x20\x48\x89\x73\x28\x48\xC7\x43\x30\x00\x00\x00\x00\x48\xC7\x43\x38\x00\x00\x00\x00\x48\xC7\x43\x40\x00\x00\x00\x00\x48\xC7\x43\x50\x00\x00\x00\x00\x49\x8B\x44\x24\x78\x48\x85\xC0\x74\x05\x48\x89\x18\xEB\x05\x49\x89\x5C\x24\x70\x41\xC7\x84\x24\xC0\x00\x00\x00\x00\x00\x00\x00\x49\x89\x5C\x24\x78\x49\xFF\x84\x24\xB0\x00\x00\x00\x49\xFF\x84\x24\xB8\x00\x00\x00\x41\xC7\x44\x24\x50\x01\x00\x00\x00\xEB\x15\x41\xC7\x84\x24\xC0\x00\x00\x00\x01\x00\x00\x00\x41\xC7\x44\x24\x50\x0B\x00\x00\x00\x48\x83\xC4\x28\x41\x5C\x5F\x5E\x5B\xC3"
local terraformUpdateWrapper = "\x48\x89\xB4\x24\x80\x00\x00\x00\x9C\x50\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\x80\x78\x68\x01\x75\x51\x48\x83\x78\x70\x00\x74\x4A\xF0\xFF\x40\x3C\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x83\xEC\x30\x0F\x11\x44\x24\x20\x48\x89\xD9\x48\x89\xC2\x48\xB8\x88\x77\x66\x55\x44\x33\x22\x11\xFF\xD0\x0F\x10\x44\x24\x20\x48\x83\xC4\x30\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xF0\xFF\x48\x3C\x58\x9D"
local terraformDesignationWrapper = "\x41\x54\x48\x83\xEC\x38\x48\x8B\x44\x24\x60\x48\x89\x44\x24\x20\x49\xBC\x99\x88\x77\x66\x55\x44\x33\x22\xF0\x41\xFF\x44\x24\x3C\x41\x80\x7C\x24\x68\x01\x75\x05\x41\xFF\x44\x24\x6C\x41\xFF\x92\x58\x02\x00\x00\x41\xC7\x44\x24\x6C\x00\x00\x00\x00\xF0\x41\xFF\x4C\x24\x3C\x48\x83\xC4\x38\x41\x5C"
local terraformBuildWrapper = "\x41\x54\x48\x83\xEC\x40\x48\x8B\x44\x24\x70\x48\x89\x44\x24\x20\x48\x8B\x44\x24\x78\x48\x89\x44\x24\x28\x48\x8B\x84\x24\x80\x00\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\xBC\x99\x88\x77\x66\x55\x44\x33\x22\xF0\x41\xFF\x44\x24\x3C\x41\x80\x7C\x24\x68\x01\x75\x16\x41\x83\x7C\x24\x6C\x00\x75\x0E\x41\xFF\x44\x24\x6C\x48\xC7\x44\x24\x38\x01\x00\x00\x00\xE8\x1A\x00\x00\x00\x48\x83\x7C\x24\x38\x00\x74\x05\x41\xFF\x4C\x24\x6C\xF0\x41\xFF\x4C\x24\x3C\x48\x83\xC4\x40\x41\x5C\xC3\x48\x89\x5C\x24\x08\x49\xBB\xCC\xBB\xAA\x99\x88\x77\x66\x55\x41\xFF\xE3"
local terraformCreatedWrapper = "\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x83\xEC\x30\x0F\x11\x44\x24\x20\x48\x89\xC1\x48\xBA\x99\x88\x77\x66\x55\x44\x33\x22\xF0\xFF\x42\x3C\x48\xB8\x88\x77\x66\x55\x44\x33\x22\x11\xFF\xD0\x48\xBA\x99\x88\x77\x66\x55\x44\x33\x22\xF0\xFF\x4A\x3C\x0F\x10\x44\x24\x20\x48\x83\xC4\x30\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D"
local terraformCompletionInstructions = "\x31\xC0\x80\x7A\x68\x01\x75\x2E\x4C\x8B\x42\x70\x48\x85\xC9\x74\x25\x4C\x8B\x49\x10\x4D\x85\xC0\x74\x1C\x49\x39\x48\x30\x75\x11\x4D\x39\x48\x38\x75\x0B\x4D\x85\xC9\x74\x0B\xB8\x01\x00\x00\x00\xC3\x4D\x8B\x00\xEB\xDF\xC3"
local terraform_autoScopeInstructions = "\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x28\x49\x89\xD4\x49\x89\xCD\x48\x85\xD2\x0F\x84\xFB\x04\x00\x00\x41\x80\x7C\x24\x68\x01\x0F\x85\xEF\x04\x00\x00\x49\x83\x7C\x24\x70\x00\x0F\x84\xE3\x04\x00\x00\x41\xC7\x44\x24\x50\x07\x00\x00\x00\x49\x3B\x0C\x24\x0F\x85\xD0\x04\x00\x00\x48\xB8\xBB\xAA\x99\x88\x77\x66\x55\x44\xFF\xD0\x85\xC0\x0F\x84\xBC\x04\x00\x00\x48\x85\xC9\x0F\x84\xB3\x04\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\xA6\x04\x00\x00\x49\x3B\x44\x24\x08\x0F\x85\x9B\x04\x00\x00\x80\xB9\x94\x01\x00\x00\x00\x0F\x85\x8E\x04\x00\x00\x49\x8B\x44\x24\x10\x48\x85\xC0\x0F\x84\x80\x04\x00\x00\x48\x39\x41\x38\x0F\x85\x76\x04\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\x69\x04\x00\x00\x4D\x8B\x74\x24\x70\x41\x8B\x4E\x20\x31\xD2\x41\xFF\x94\x24\x98\x00\x00\x00\x48\x85\xC0\x0F\x84\xF8\x03\x00\x00\x48\x89\xC3\x48\x8B\x40\x10\x49\x3B\x46\x28\x0F\x85\xE7\x03\x00\x00\x80\xBB\x98\x01\x00\x00\x00\x0F\x85\xDA\x03\x00\x00\x80\xBB\xD0\x01\x00\x00\x00\x0F\x85\xCD\x03\x00\x00\x48\x8B\xB3\x58\x01\x00\x00\x48\x85\xF6\x0F\x84\xBD\x03\x00\x00\x49\x8B\x85\x90\x02\x00\x00\x48\x85\xC0\x0F\x84\x02\x04\x00\x00\x80\x78\x48\x00\x0F\x85\xF8\x03\x00\x00\x48\x39\x86\xE8\x01\x00\x00\x0F\x85\x96\x03\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x94\x24\xA0\x00\x00\x00\x48\x85\xC0\x0F\x84\x56\x03\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\x75\x03\x00\x00\x48\x8B\x50\x10\x48\x85\xD2\x0F\x84\x3E\x03\x00\x00\x3B\x4A\x18\x0F\x8F\x35\x03\x00\x00\x4D\x8B\x44\x24\x18\x4D\x8B\x00\x4D\x85\xC0\x0F\x84\x24\x03\x00\x00\x41\xF6\xC0\x01\x0F\x85\x99\x03\x00\x00\x45\x0F\xB6\x88\x30\x01\x00\x00\x45\x85\xC9\x0F\x84\x09\x03\x00\x00\x31\xFF\x39\xCF\x0F\x83\x29\x03\x00\x00\x4C\x8B\x7C\xFA\x20\xFF\xC7\x4D\x85\xFF\x74\xEC\x49\x8B\x07\x44\x38\x88\x30\x01\x00\x00\x72\xE0\x48\x8B\x80\xC8\x00\x00\x00\x4E\x39\x44\xC8\xF8\x75\xD2\x49\x83\x7F\x10\x00\x0F\x84\xF8\x02\x00\x00\x49\x39\x9F\x98\x00\x00\x00\x0F\x85\xEB\x02\x00\x00\x49\x8B\x47\x10\x4D\x39\x7E\x30\x75\x06\x49\x39\x46\x38\x74\x10\x4D\x89\x7E\x30\x49\x89\x46\x38\x49\xC7\x46\x40\x00\x00\x00\x00\x4D\x89\x7C\x24\x40\x49\x89\x44\x24\x48\x41\xC7\x44\x24\x50\x07\x00\x00\x00\x49\x8B\x87\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x7E\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x73\x02\x00\x00\x80\xB8\x90\x00\x00\x00\x01\x0F\x85\x66\x02\x00\x00\x49\x8B\x4C\x24\x10\x48\x39\x48\x38\x0F\x85\x57\x02\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\x47\x02\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x3A\x02\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\x2D\x02\x00\x00\x41\xC7\x44\x24\x50\x08\x00\x00\x00\x49\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x0F\x84\x14\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x09\x02\x00\x00\x4C\x39\x78\x78\x0F\x85\xFF\x01\x00\x00\x48\x8B\x80\x88\x00\x00\x00\x48\x85\xC0\x0F\x84\xEF\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xE4\x01\x00\x00\x41\x8B\x47\x54\x85\xC0\x0F\x8E\xD8\x01\x00\x00\x41\x8B\x4F\x58\x85\xC9\x0F\x8E\xCC\x01\x00\x00\x0F\xAF\xC1\x0F\x80\xC3\x01\x00\x00\x49\x8B\x57\x48\x48\x85\xD2\x0F\x84\xB6\x01\x00\x00\x3B\x42\x18\x0F\x85\xAD\x01\x00\x00\x49\x8B\x8F\xF8\x00\x00\x00\x48\x85\xC9\x0F\x84\x9D\x01\x00\x00\x3B\x41\x18\x0F\x8F\x94\x01\x00\x00\x49\x8B\x8F\x00\x01\x00\x00\x48\x85\xC9\x0F\x84\x84\x01\x00\x00\x3B\x41\x18\x0F\x8F\x7B\x01\x00\x00\x41\x80\xBC\x24\xE8\x00\x00\x00\x01\x75\x27\x41\x8B\x84\x24\xF8\x00\x00\x00\x41\x39\x46\x54\x74\x19\x41\x89\x46\x54\x41\xC7\x46\x40\x00\x00\x00\x00\x41\xC7\x46\x44\x00\x00\x00\x00\x41\xC6\x46\x50\x00\x41\xC7\x44\x24\x50\x09\x00\x00\x00\xBD\x08\x00\x00\x00\x41\x8B\x7E\x40\x49\x8B\x47\x48\x3B\x78\x18\x0F\x83\x08\x01\x00\x00\x8D\x4F\x01\x41\x89\x4E\x40\x41\x80\xBC\x24\xE8\x00\x00\x00\x01\x75\x28\x41\x80\x7E\x50\x00\x75\x21\x49\x8B\x84\x24\xF0\x00\x00\x00\x48\x85\xC0\x74\x14\x41\xC7\x46\x44\x01\x00\x00\x00\x4C\x89\xF9\x89\xFA\xFF\xD0\xE9\x6F\x01\x00\x00\x49\x8B\x47\x48\x41\x80\xBC\x24\xE8\x00\x00\x00\x01\x75\x5D\x80\x7C\x38\x20\x00\x75\x45\x49\x8B\x84\x24\xE0\x00\x00\x00\x48\x05\xF0\x45\xAC\x00\x41\x8A\x97\xC4\x00\x00\x00\x88\x54\x24\x20\x41\xC6\x87\xC4\x00\x00\x00\x01\x4C\x89\xF9\x89\xFA\x45\x31\xC0\xFF\xD0\x8A\x54\x24\x20\x41\x88\x97\xC4\x00\x00\x00\x84\xC0\x74\x69\x49\x8B\x47\x48\xC6\x44\x38\x20\x01\xEB\x07\x41\x80\x7E\x50\x01\x75\x0A\x41\xC7\x46\x44\x01\x00\x00\x00\xEB\x20\x80\x7C\x38\x20\x00\x74\x46\x4C\x89\xF9\x89\xFA\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x75\x3D\x41\xC7\x46\x44\x01\x00\x00\x00\x49\x8B\x8F\xE8\x00\x00\x00\x89\xFA\x45\x31\xC0\x41\xC7\x44\x24\x50\x0A\x00\x00\x00\x49\xFF\x44\x24\x60\x41\xFF\x54\x24\x28\x41\x88\x44\x24\x54\x84\xC0\x74\x3C\xE9\xB6\x00\x00\x00\x41\xC7\x46\x44\x01\x00\x00\x00\xFF\xCD\x0F\x85\xEC\xFE\xFF\xFF\xE9\xA1\x00\x00\x00\x41\x83\x7E\x44\x00\x74\x3E\x41\xC7\x46\x40\x00\x00\x00\x00\x41\xC7\x46\x44\x00\x00\x00\x00\x41\x80\x7E\x50\x02\x73\x04\x41\xFE\x46\x50\x49\x8B\x06\x48\x85\xC0\x74\x77\x49\x8B\x54\x24\x78\x49\x89\x44\x24\x70\x49\xC7\x06\x00\x00\x00\x00\x4C\x89\x32\x4D\x89\x74\x24\x78\xEB\x5C\x49\xFF\x44\x24\x58\xEB\x08\x49\xFF\x84\x24\xC8\x00\x00\x00\x49\x8B\x06\x49\x89\x44\x24\x70\x48\x85\xC0\x75\x12\x49\xC7\x44\x24\x78\x00\x00\x00\x00\x41\xC7\x44\x24\x50\x00\x00\x00\x00\x49\xFF\x8C\x24\xB8\x00\x00\x00\x49\x8B\x84\x24\x88\x00\x00\x00\x49\x89\x46\x10\x4D\x89\xB4\x24\x88\x00\x00\x00\x49\xC7\x44\x24\x40\x00\x00\x00\x00\x49\xC7\x44\x24\x48\x00\x00\x00\x00\x48\x83\xC4\x28\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3"
-- New targets are captured inside the game's final designation/creation call.
-- No pre-existing project scan, CE work timer or managed-reference queue.
local controlOffset=0xD00
local function relocate(code,control,helper,liveHelper)
  local function replace(from,to)
    local marker=string.pack('&lt;I8',from)
    local first=1
    while true do
      local pos=code:find(marker,first,true)
      if not pos then break end
      code=code:sub(1,pos-1)..string.pack('&lt;I8',to)..code:sub(pos+8);first=pos+8
    end
  end
  replace(0x2233445566778899,control)
  if helper then replace(0x1122334455667788,helper)end
  if liveHelper then replace(0x445566778899AABB,liveHelper)end
  return code
end
local function putQ(address,value)
  local data=string.pack('&lt;I8',value)
  need(writeBytes(address,{data:byte(1,#data)})==#data and readQword(address)==value,
    'Cannot update terrain queue ownership.','大地改造の処理待ち情報を更新できません。')
end
local function putEnabled(control,value)
  need(writeBytes(control+0x68,{value})==1 and bytes(control+0x68,1)[1]==value,
    'Cannot change terrain waiting state.','大地改造の待機状態を変更できません。')
end
local function idle(cave)
  need(readInteger(cave+controlOffset+0x3C)==0,
    'Terrain placement or work is finishing. Retry cleanup.','エリア確定・大地改造の処理完了後に解除を再試行してください。')
end
local function validNode(node,control)
  return math.type(node)=='integer' and node&gt;=0x10000 and node%0x1000==0
    and readQword(node+0x18)==control and readQword(node+0x48)==0x31304E5152544B41
end
local function alreadyFree(handle,node)
  local scratch=native('kernel32.VirtualAlloc',0,0x1000,0x3000,4)
  need(scratch and scratch~=0,'Cannot check released terrain memory.','大地改造の解放済み領域を確認できません。')
  local ok,result=pcall(function()
    return native('kernel32.VirtualQueryEx',handle,node,scratch,0x30)==0x30
      and readIntegerLocal(scratch+0x20)==0x10000
  end)
  native('kernel32.VirtualFree',scratch,0,0x8000)
  return ok and result
end
local function releaseNodes(cave,handle)
  local control=cave+controlOffset
  idle(cave);putEnabled(control,0)
  putQ(control+0x70,0);putQ(control+0x78,0);putQ(control+0x88,0)
  -- Revisions 186–192 used the release journal slot for the clear toggle.
  -- A real release node is a page-aligned allocation. Only recognize the
  -- obsolete value when the exact old worker instruction is present.
  if readQword(control+0xD0)==1 and readQword(control+0xD8)==0
    and equal(bytes(cave+0x45A,9),{0x41,0x80,0xBC,0x24,0xD0,0,0,0,1}) then
    putQ(control+0xD0,0)
  end
  local seen={}
  while true do
    local pending=readQword(control+0xD0)
    local node=pending~=0 and pending or readQword(control+0x80)
    if node==0 then break end
    need(node and not seen[node],'Terrain queue ownership contains a cycle.','大地改造の領域情報が循環しています。')
    seen[node]=true
    local following
    if pending~=0 then
      following=readQword(control+0xD8)
      local head=readQword(control+0x80)
      need(head==node or head==following,'Terrain release ownership changed.','大地改造の解放情報が変化しています。')
    else
      need(validNode(node,control),'Unknown terrain queue allocation.','大地改造の領域所有権を確認できません。')
      following=readQword(node+8)
      putQ(control+0xD8,following);putQ(control+0xD0,node)
    end
    putQ(control+0x80,following)
    if validNode(node,control)then
      need(native('kernel32.VirtualFreeEx',handle,node,0,0x8000)==1,
        'Cannot release terrain queue memory. Retry cleanup.','大地改造の処理待ち領域を解放できません。解除を再試行してください。')
    else
      need(pending~=0 and alreadyFree(handle,node),
        'Terrain release cannot be verified.','大地改造の領域解放を確認できません。')
    end
    putQ(control+0xD0,0);putQ(control+0xD8,0)
  end
end
local signature={0x48,0x89,0xB4,0x24,0x80,0,0,0,0x33,0xD2,0x48,0x8B,0xCB,0x0F,0x29,0x74,0x24,0x60}
local original={table.unpack(signature,1,8)}
local function autoTerraformCode(context,cave,entry)
  local control=cave+controlOffset
  local worker=relocate(terraform_autoScopeInstructions,control,nil,cave+0x900)
  local capture=relocate(terraformCaptureInstructions,control,nil,cave+0x900)
  local code=relocate(terraformUpdateWrapper,control,cave+0x100)
  code=code..makeJump(cave+#code,entry+8)
  need(#code&lt;=0x100 and #terraform_autoScopeInstructions&lt;=0x540 and #terraformCaptureInstructions&lt;=0x1C0
    and #terraformCompletionInstructions&lt;=0x100 and #terraformLivePlayerGuardInstructions&lt;=0x400,'Terrain code exceeds its reserved range.','大地改造の処理が確保範囲を超えています。')
  code=code..string.rep('\0',0x100-#code)..worker
  code=code..string.rep('\0',0x640-#code)..capture
  code=code..string.rep('\0',0x800-#code)..terraformCompletionInstructions
  code=code..string.rep('\0',0x900-#code)..terraformLivePlayerGuardInstructions
  code=code..string.rep('\0',controlOffset-#code)
  local data=string.rep('\0',0x100)
  local function q(offset,value)data=data:sub(1,offset)..string.pack('&lt;I8',value)..data:sub(offset+9)end
  q(0,context.player);q(8,context.identity);q(0x10,context.runner);q(0x18,context.base+0x5D059D0)
  q(0xE0,context.base)
  q(0x20,context.base+0xB234F0);q(0x28,context.base+0xD7FA80)
  q(0x90,context.base+0x4522FB0);q(0x98,context.base+0x4522AC0);q(0xA0,context.base+0xB02A10)
  q(0xA8,need(getAddressSafe('kernel32.VirtualAlloc'),'Cannot resolve terrain queue allocation.','大地改造の処理待ち領域の確保先を取得できません。'))
  return code..data
end
local feature=entryFeature('autoTerraform',0xB7D149,original,signature,soloContext,autoTerraformCode,
  nil,0x100,idle,controlOffset)
feature.recoveryRecord.extraCode={offset=0x100,length=0xC00}
feature.recoveryRecord.beforeRestore=releaseNodes
local function shared()
  local control=feature.memberControl()
  return control,control-controlOffset
end
local function auxiliaryIdle(cave,offset)
  local control=readQword(cave+offset)
  need(control and control&gt;=0x10000 and control%0x1000==controlOffset
    and readInteger(control+0x3C)==0,
    'Terrain callback is finishing. Retry cleanup.','大地改造の呼び出し完了後に解除を再試行してください。')
end
local marker=string.pack('&lt;I8',0x2233445566778899)
local designationControlOffset=assert(terraformDesignationWrapper:find(marker,1,true))-1
local createdControlOffset=assert(terraformCreatedWrapper:find(marker,1,true))-1
local designationOriginal={0x41,0xFF,0x92,0x58,0x02,0,0}
local designationSignature={0x41,0xFF,0x92,0x58,0x02,0,0,0xE9,0x25,0x02,0,0,0x83,0xF9,0x06}
local designation=entryFeature('autoTerraform',0xA7397D,designationOriginal,designationSignature,soloContext,
  function(context,cave,entry)
    local control=shared()
    local code=relocate(terraformDesignationWrapper,control)
    return code..makeJump(cave+#code,entry+7)
  end,nil,nil,function(cave)auxiliaryIdle(cave,designationControlOffset)end)
local createdOriginal={0x48,0x8B,0x0D,0xCD,0xAC,0x1C,0x05}
local createdSignature={0x48,0x8B,0x0D,0xCD,0xAC,0x1C,0x05,0xE8,0x58,0x46,0xD3,0,0x48,0x85,0xC0}
local created=entryFeature('autoTerraform',0xB59A9C,createdOriginal,createdSignature,soloContext,
  function(context,cave,entry)
    local control,root=shared()
    local code=relocate(terraformCreatedWrapper,control,root+0x640)
      ..string.char(0x48,0xB9)..string.pack('&lt;I8',context.base+0x5D24770)
      ..string.char(0x48,0x8B,0x09)
    return code..makeJump(cave+#code,entry+7)
  end,nil,nil,function(cave)auxiliaryIdle(cave,createdControlOffset)end)
local completionOriginal={0x42,0x83,0x7C,0x80,0x20,0x05}
local completionSignature={0x42,0x83,0x7C,0x80,0x20,0x05,0x0F,0x8D,0xCB,0,0,0,0xF3,0x0F,0x10,0xA9,0x08,0x01,0,0}
local completion=entryFeature('autoTerraform',0xB23533,completionOriginal,completionSignature,soloContext,
  function(context,cave,entry)
    local control,root=shared()
    local restore=string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
    local prefix=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
      ..string.char(0x48,0xBA)..string.pack('&lt;I8',control)..string.char(0xF0,0xFF,0x42,0x3C)
      ..string.char(0x48,0xB8)..string.pack('&lt;I8',root+0x800)
      ..string.char(0x48,0x83,0xEC,0x20,0xFF,0xD0,0x48,0x83,0xC4,0x20,0xF0,0xFF,0x4A,0x3C,0x84,0xC0)
    local owned=restore..makeJump(cave+#prefix+2+#restore,entry+12)
    local code=prefix..string.char(0x74,#owned)..owned..restore..string.char(table.unpack(completionOriginal))
    return code..makeJump(cave+#code,entry+6)
  end,nil,nil,function(cave)auxiliaryIdle(cave,14)end)
-- Bracket all final StructureBuilder.Build calls; nested dynamic placement keeps its existing token.
local buildControlOffset=assert(terraformBuildWrapper:find(marker,1,true))-1
local buildOriginal={0x48,0x89,0x5C,0x24,0x08}
local buildSignature={0x48,0x89,0x5C,0x24,0x08,0x48,0x89,0x6C,0x24,0x10,0x48,0x89,0x74,0x24,0x18,0x48}
local building=entryFeature('autoTerraform',0xB59690,buildOriginal,buildSignature,soloContext,
  function(context,cave,entry)
    local control=shared()
    local code=relocate(terraformBuildWrapper,control)
    local target=string.pack('&lt;I8',0x5566778899AABBCC)
    local index=assert(code:find(target,1,true))
    return code:sub(1,index-1)..string.pack('&lt;I8',entry+5)..code:sub(index+8)
  end,nil,nil,function(cave)auxiliaryIdle(cave,buildControlOffset)end)

;(function()
  -- Run the original area geometry and resource destruction. Extend eligibility
  -- only for natural objects once both game functions have resolved their descriptor.
  local clearKey='autoTerraformClear'
  local clearOwner,descriptorFilter,instanceFilter,silentDestroy
  local clearThreadOffset=0x100
  local function clearContext()
    local parent=ASKA.active.autoTerraform
    if not parent or parent.starting or parent.cleanup then return end
    local context=soloContext()
    if context and parent.boundary==context.token then return context end
  end
  local function clearSignature(rva,signature,makeCode,controlSize,checkIdle)
    local size=rva==0xD7FD25 and 5 or (rva==0xEB1E33 and 6 or 8)
    local original={table.unpack(signature,1,size)}
    return entryFeature(clearKey,rva,original,signature,clearContext,makeCode,
      size&gt;5 and 4 or nil,controlSize,checkIdle,controlSize and clearThreadOffset or nil)
  end
  local function replaceImmediate(code,marker,value)
    local offset=assert(code:find(string.pack('&lt;I8',marker),1,true))
    return code:sub(1,offset-1)..string.pack('&lt;I8',value)..code:sub(offset+8)
  end
  local clearWrapper="\x49\xBB\x88\x77\x66\x55\x44\x33\x22\x11\x4C\x39\x9C\x24\xB8\x00\x00\x00\x0F\x85\x8F\x00\x00\x00\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x49\x83\x3A\x00\x75\x7F\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x89\x1A\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xD3\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x49\xC7\x02\x00\x00\x00\x00\x85\xC0\x74\x43\x48\x8B\x8B\x88\x00\x00\x00\x48\x85\xC9\x74\x37\x31\xD2\x45\x31\xC0\x49\xBB\xEE\xDD\xCC\xBB\xAA\x99\x88\x77\x41\xFF\xD3\x48\x8B\x4B\x78\x48\x85\xC9\x74\x0F\x31\xD2\x49\xBB\xFF\xEE\xDD\xCC\xBB\xAA\x99\x88\x41\xFF\xD3\x49\xBB\xDD\xCC\xBB\xAA\x99\x88\x77\x66\x41\xFF\xE3\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\x53\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3"
  local clearCell="\x53\x56\x57\x41\x54\x41\x55\x48\x81\xEC\x90\x00\x00\x00\x49\xBB\x0B\xDE\xBC\x9A\x78\x56\x34\x12\x41\xFF\x43\x04\x48\x89\xCB\x48\x89\xD6\x44\x89\x44\x24\x58\x44\x89\x4C\x24\x60\x45\x31\xE4\x48\x85\xF6\x0F\x84\x14\x04\x00\x00\x8B\x84\x24\xE0\x00\x00\x00\x66\x0F\x6E\xC0\xB8\x35\xFA\x8E\x3C\x66\x0F\x6E\xC8\xF3\x0F\x59\xC1\xC7\x44\x24\x70\x00\x00\x00\x00\xF3\x0F\x11\x44\x24\x74\xC7\x44\x24\x78\x00\x00\x00\x00\x48\x8D\x8C\x24\x80\x00\x00\x00\x48\x8D\x54\x24\x70\x45\x31\xC0\x48\xB8\xDD\xCC\xBB\xAA\x99\x88\x77\x66\xFF\xD0\x0F\x10\x00\x0F\x29\x84\x24\x80\x00\x00\x00\x4C\x8B\xAB\xB8\x00\x00\x00\x4D\x85\xED\x0F\x84\xAF\x03\x00\x00\x48\xB9\x88\x77\x66\x55\x44\x33\x22\x11\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x48\xB9\x88\x77\x66\x55\x44\x33\x22\x11\x48\x8B\x09\x48\xB8\xAA\x99\x88\x77\x66\x55\x44\x33\xFF\xD0\x48\x85\xC0\x0F\x84\x77\x03\x00\x00\x48\x89\x44\x24\x68\x48\xB9\x07\xDE\xBC\x9A\x78\x56\x34\x12\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x48\xB9\x03\xDE\xBC\x9A\x78\x56\x34\x12\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\xC7\x44\x24\x5C\x00\x00\xA0\x43\xC6\x44\x24\x52\x00\x45\x8B\x45\x18\x41\xFF\x45\x1C\x41\xC7\x45\x18\x00\x00\x00\x00\x45\x85\xC0\x7E\x15\x49\x8B\x4D\x10\x31\xD2\x45\x31\xC9\x48\xB8\x04\xDE\xBC\x9A\x78\x56\x34\x12\xFF\xD0\x48\x8B\x4C\x24\x68\x4C\x89\xEA\x49\x89\xF0\x4C\x8D\x8C\x24\x80\x00\x00\x00\x48\x8D\x44\x24\x58\x48\x89\x44\x24\x20\xC7\x44\x24\x28\x02\x00\x00\x00\x48\xC7\x44\x24\x30\x00\x00\x00\x00\x66\xC7\x44\x24\x38\x00\x04\x8A\x44\x24\x52\x88\x44\x24\x40\x48\xC7\x44\x24\x48\x00\x00\x00\x00\x41\x8B\x45\x1C\x89\x44\x24\x54\x48\xB8\xEE\xDD\xCC\xBB\xAA\x99\x88\x77\xFF\xD0\x8B\x44\x24\x54\x49\xBB\x0B\xDE\xBC\x9A\x78\x56\x34\x12\x41\xFF\x43\x0C\x41\x3B\x45\x1C\x75\x14\x41\xFF\x43\x14\x41\x83\x7D\x18\x00\x0F\x85\x8E\x02\x00\x00\xE9\x4C\x02\x00\x00\x41\x8B\x7D\x18\x41\x01\x7B\x18\xFF\xCF\x0F\x88\x3C\x02\x00\x00\x4C\x89\xE9\x89\xFA\x49\xB8\x01\xDE\xBC\x9A\x78\x56\x34\x12\x4D\x8B\x00\x48\xB8\x02\xDE\xBC\x9A\x78\x56\x34\x12\xFF\xD0\x48\x85\xC0\x0F\x84\x0D\x02\x00\x00\x48\x8B\x48\x10\x48\x85\xC9\x0F\x84\x00\x02\x00\x00\x48\xBA\x03\xDE\xBC\x9A\x78\x56\x34\x12\x48\x8B\x12\x48\x39\x11\x0F\x84\x76\x01\x00\x00\x48\xBA\x07\xDE\xBC\x9A\x78\x56\x34\x12\x48\x8B\x12\x48\x39\x11\x0F\x85\xD4\x01\x00\x00\x80\x7C\x24\x52\x00\x74\x63\x8B\x51\x38\x44\x0F\xB7\xC2\x41\x83\xF8\x05\x0F\x87\xBC\x01\x00\x00\xC1\xEA\x10\x83\xFA\x0E\x0F\x87\xB0\x01\x00\x00\x44\x8B\x51\x3C\x41\x83\xFA\x3F\x0F\x87\xA2\x01\x00\x00\x45\x6B\xC0\x1E\x6B\xD2\x02\x44\x01\xC2\x45\x89\xD0\x41\xC1\xE8\x05\x44\x01\xC2\x4C\x8D\x1D\x40\x02\x00\x00\x41\x0F\xB6\x14\x13\x4C\x8D\x1D\xD8\x01\x00\x00\x41\x83\xE2\x1F\x45\x0F\xA3\x14\x93\x0F\x83\x6C\x01\x00\x00\xEB\x00\x49\xBB\x0B\xDE\xBC\x9A\x78\x56\x34\x12\x41\xFF\x43\x08\x48\x8B\x50\x48\x48\x85\xD2\x0F\x84\x94\x01\x00\x00\x4C\x8B\x42\x10\x4D\x85\xC0\x0F\x84\x87\x01\x00\x00\x41\xF6\x40\x44\x08\x0F\x84\xD0\x00\x00\x00\x48\x89\x44\x24\x70\x48\xB9\x08\xDE\xBC\x9A\x78\x56\x34\x12\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x48\x8B\x54\x24\x70\x44\x8B\x4A\x30\x4C\x8B\x42\x48\x4D\x85\xC0\x0F\x84\x4B\x01\x00\x00\x4D\x8B\x40\x10\x4D\x85\xC0\x0F\x84\x3E\x01\x00\x00\x48\xB9\x08\xDE\xBC\x9A\x78\x56\x34\x12\x48\x8B\x09\x48\x85\xC9\x0F\x84\x28\x01\x00\x00\x48\x8B\x89\xB8\x00\x00\x00\x48\x85\xC9\x0F\x84\x18\x01\x00\x00\x48\x8B\x49\x08\x48\x85\xC9\x0F\x84\x0B\x01\x00\x00\x48\xB8\x09\xDE\xBC\x9A\x78\x56\x34\x12\x48\x89\x44\x24\x20\x48\xB8\x0A\xDE\xBC\x9A\x78\x56\x34\x12\x48\x89\x44\x24\x28\x41\x8B\x45\x1C\x89\x44\x24\x54\xE8\x08\x02\x00\x00\x85\xC0\x0F\x88\xD8\x00\x00\x00\x48\xBA\x0B\xDE\xBC\x9A\x78\x56\x34\x12\x01\x02\x8B\x4C\x24\x54\x41\x3B\x4D\x1C\x0F\x85\xBE\x00\x00\x00\x41\x01\xC4\xEB\x74\x80\x7C\x24\x52\x00\x75\x6D\x83\x78\x78\x00\x75\x67\x48\x89\x44\x24\x70\x48\x89\xC1\x4C\x8B\x10\x49\x8B\x92\xD0\x01\x00\x00\x41\xFF\x92\xC8\x01\x00\x00\x84\xC0\x75\x4A\x48\x8B\x44\x24\x70\xC6\x44\x24\x50\x01\xC6\x44\x24\x51\x02\x48\x89\xC1\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x51\x4C\x8B\x10\x4D\x8B\x8A\x00\x02\x00\x00\x41\xFF\x92\xF8\x01\x00\x00\x48\x8B\x4C\x24\x70\x4C\x8B\x11\x49\x8B\x92\xD0\x01\x00\x00\x41\xFF\x92\xC8\x01\x00\x00\x84\xC0\x74\x48\x41\xFF\xC4\xFF\xCF\x0F\x89\xC4\xFD\xFF\xFF\x80\x7C\x24\x52\x00\x75\x0A\xC6\x44\x24\x52\x01\xE9\xF3\xFC\xFF\xFF\x48\x89\xF1\x48\x8D\x54\x24\x58\x4C\x8D\x84\x24\x80\x00\x00\x00\x49\xB9\x05\xDE\xBC\x9A\x78\x56\x34\x12\x48\xB8\x06\xDE\xBC\x9A\x78\x56\x34\x12\xFF\xD0\x85\xC0\x78\x02\xEB\x06\x41\xBC\xFF\xFF\xFF\xFF\x44\x89\xE0\x48\x81\xC4\x90\x00\x00\x00\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\x04\x1C\x6C\x21\x00\x00\x00\x00\x04\xF8\x93\x20\x02\x00\x00\x00\x38\x00\x00\x00\x90\x00\x00\x00\xC0\x08\x00\x00\xA2\x29\x04\x00\x80\x43\x00\x00\x34\x02\x00\x00\x5C\x08\x00\x00\x7E\x08\x00\x00\x31\x00\x00\x00\x16\x00\x00\x00\x04\x0C\x14\x08\x04\xF8\x90\x20\x02\x02\x00\x00\x00\x08\x00\x00\x80\x40\x00\x00\x00\x02\x00\x00\x04\x1C\x28\x21\xF4\x21\x00\x00\x38\x04\x00\x00\x00\x01\x02\x01\x03\x01\x01\x01\x01\x01\x01\x01\x04\x01\x05\x01\x06\x01\x07\x01\x01\x01\x03\x01\x08\x01\x09\x01\x0A\x01\x0B\x01\x0C\x01\x01\x01\x0D\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x0E\x01\x0F\x01\x03\x01\x01\x01\x01\x01\x01\x01\x10\x01\x01\x01\x11\x01\x0F\x01\x01\x01\x03\x01\x12\x01\x13\x01\x0A\x01\x14\x01\x03\x01\x01\x01\x01\x01\x0A\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x15\x01\x03\x01\x01\x01\x0A\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x16\x01\x03\x01\x01\x01\x0A\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x30\x48\x89\xCB\x48\x89\xD6\x4C\x89\xC7\x45\x89\xCC\xB8\xFF\xFF\xFF\xFF\x48\x85\xDB\x0F\x84\x0F\x01\x00\x00\x48\x85\xF6\x0F\x84\x06\x01\x00\x00\x4C\x8B\x6E\x18\x4D\x85\xED\x0F\x84\xF9\x00\x00\x00\x48\x83\xBC\x24\x80\x00\x00\x00\x00\x0F\x84\xEA\x00\x00\x00\x48\x83\xBC\x24\x88\x00\x00\x00\x00\x0F\x84\xDB\x00\x00\x00\x48\x89\xF1\x48\x89\xFA\x45\x89\xE0\xE8\xD9\x00\x00\x00\x85\xC0\x0F\x84\x81\x00\x00\x00\x48\x8B\x47\x10\x48\x85\xC0\x0F\x84\xB3\x00\x00\x00\x8B\x40\x08\x85\xC0\x0F\x8E\xA8\x00\x00\x00\x89\x44\x24\x20\x48\x89\xD9\x48\x89\xF2\x45\x31\xC0\xFF\x94\x24\x80\x00\x00\x00\x48\x8B\x47\x10\x48\x85\xC0\x0F\x84\x87\x00\x00\x00\x8B\x4C\x24\x20\xFF\xC9\x39\x48\x08\x75\x7C\x48\x8B\x47\x38\x48\x85\xC0\x74\x73\x39\x48\x08\x75\x6E\x85\xC9\x74\x14\x48\x8B\x00\x48\x85\xC0\x74\x62\xFF\xC9\x44\x39\x24\x88\x74\x5A\x85\xC9\x75\xF4\x48\x89\xD9\x4C\x89\xEA\x45\x31\xC0\xFF\x94\x24\x88\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x44\x48\x8B\x46\x48\x48\x85\xC0\x74\x36\x48\x39\x78\x10\x75\x30\xF6\x47\x44\x08\x74\x2A\x48\x8B\x47\x38\x48\x85\xC0\x74\x21\x8B\x48\x08\x85\xC9\x78\x1A\x74\x14\x48\x8B\x00\x48\x85\xC0\x74\x10\xFF\xC9\x44\x39\x24\x88\x74\x08\x85\xC9\x75\xF4\x31\xC0\xEB\x05\xB8\xFF\xFF\xFF\xFF\x48\x83\xC4\x30\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\x31\xC0\x48\x85\xC9\x74\x47\x48\x85\xD2\x74\x42\x44\x39\x41\x30\x75\x3C\x4C\x8B\x49\x48\x4D\x85\xC9\x74\x33\x49\x39\x51\x10\x75\x2D\xF6\x42\x44\x08\x74\x27\x4C\x63\x51\x28\x4D\x85\xD2\x78\x1E\x4C\x8B\x5A\x38\x4D\x85\xDB\x74\x15\x45\x3B\x53\x08\x7D\x0F\x4D\x8B\x1B\x4D\x85\xDB\x74\x07\x47\x39\x04\x93\x0F\x94\xC0\xC3"
  local clearCellOffset=0x1000
  local clearInvalidOffset=0x520
  local clearInvalid="\x53\x56\x57\x48\x83\xEC\x70\x48\x89\xCB\x89\xD6\x31\xC0\x83\x7B\x54\x00\x0F\x8E\x1B\x01\x00\x00\x83\x7B\x58\x00\x0F\x8E\x11\x01\x00\x00\x48\x8B\xBB\xE8\x00\x00\x00\x48\x85\xFF\x0F\x84\x01\x01\x00\x00\x48\x83\xBF\x88\x00\x00\x00\x00\x0F\x84\xF3\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x0F\x84\xE6\x00\x00\x00\x8B\x41\x18\x89\x44\x24\x30\x48\x89\xF9\x31\xD2\x48\xB8\x88\x77\x66\x55\x44\x33\x22\x11\xFF\xD0\x48\x85\xC0\x0F\x84\xC5\x00\x00\x00\x48\x89\xC2\x48\x8D\x4C\x24\x50\x45\x31\xC0\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x0F\x10\x00\x0F\x29\x44\x24\x50\x48\x8D\x4C\x24\x60\x48\x8D\x54\x24\x50\x45\x31\xC0\x48\xB8\xAA\x99\x88\x77\x66\x55\x44\x33\xFF\xD0\xF3\x0F\x10\x40\x04\xB8\xE1\x2E\x65\x42\x66\x0F\x6E\xC8\xF3\x0F\x59\xC1\xF3\x0F\x11\x44\x24\x34\x48\x8D\x4C\x24\x40\x48\x89\xDA\x41\x89\xF0\x45\x31\xC9\x48\xB8\xBB\xAA\x99\x88\x77\x66\x55\x44\xFF\xD0\x48\x89\xC2\x48\x8B\x8F\x88\x00\x00\x00\x48\x85\xC9\x74\x4C\x49\xBA\xCC\xBB\xAA\x99\x88\x77\x66\x55\x49\x83\x3A\x00\x75\x3C\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x89\x1A\x44\x8B\x44\x24\x30\x45\x89\xC1\x8B\x44\x24\x34\x89\x44\x24\x20\x48\xB8\xDD\xCC\xBB\xAA\x99\x88\x77\x66\xFF\xD0\x49\xBA\xCC\xBB\xAA\x99\x88\x77\x66\x55\x49\xC7\x02\x00\x00\x00\x00\xEB\x05\xB8\xFF\xFF\xFF\xFF\x48\x83\xC4\x70\x5F\x5E\x5B\xC3"
  local function bindAll(code,marker,value)
    local packed=string.pack('&lt;I8',marker)
    need(code:find(packed,1,true),'Unknown clear routine relocation.','除去処理の参照位置を確認できません。')
    repeat
      code=replaceImmediate(code,marker,value)
    until not code:find(packed,1,true)
    return code
  end
  local colliderEntrySignatures={
    {0x45F1D20,{0x48,0x89,0x5C,0x24,0x10,0x48,0x89,0x6C,0x24,0x18,0x48,0x89,0x74,0x24,0x20,0x57}},
    {0x188ED60,{0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x30,0x48,0x83,0x7A,0x38,0x00,0x48}},
    {0x45EA9A0,{0x40,0x53,0x48,0x83,0xEC,0x20,0x80,0x3D,0x25,0x7E,0xA3,0x01,0x00,0x48,0x8B,0xD9}},
    {0x4507BC0,{0x40,0x53,0x48,0x83,0xEC,0x20,0x80,0x3D,0x8A,0x7E,0xB1,0x01,0x00,0x48,0x8B,0xD9}},
    {0x4525400,{0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x20,0x80,0x3D,0x0F,0xA9,0xAF,0x01}},
  }
  local function clearWrapperCode(context,cave,entry)
    local _,root=shared()
    local levelCall="\x41\xFF\x54\x24\x28"
    local call=assert(terraform_autoScopeInstructions:find(levelCall,1,true))
    assert(not terraform_autoScopeInstructions:find(levelCall,call+1,true))
    local code=bindAll(clearWrapper,0x1122334455667788,root+0x100+call-1+#levelCall)
    code=bindAll(code,0x2233445566778899,cave+clearThreadOffset)
    code=bindAll(code,0x33445566778899AA,context.base+0xF412D0)
    code=bindAll(code,0x445566778899AABB,entry+5)
    code=bindAll(code,0x66778899AABBCCDD,context.base+0xD7FD70)
    code=bindAll(code,0x778899AABBCCDDEE,context.base+0x4506750)
    code=bindAll(code,0x8899AABBCCDDEEFF,context.base+0xB23620)
    need(equal(bytes(context.base+0xEBBE00,16),{0x40,0x53,0x56,0x41,0x54,0x48,0x83,0xEC,0x60,0x80,0x3D,0x7F,0xCE,0x14,0x05,0x00}),'Terrain removal code mismatch.','地形除外処理の命令が一致しません。')
    need(equal(bytes(context.base+0xEBC590,16),{0x48,0x89,0x5C,0x24,0x08,0x57,0x48,0x83,0xEC,0x20,0x80,0x3D,0xF6,0xC6,0x14,0x05}),'Terrain removal code mismatch.','地形除外処理の命令が一致しません。')
    local cell=clearCell
    local references={
      [0x1122334455667788]=0x5D24E90, -- ResourceManager singleton metadata
      [0x2233445566778899]=0x5D0020, -- initialize IL2CPP metadata
      [0x33445566778899AA]=0x188E100, -- fetch singleton


      [0x66778899AABBCCDD]=0x45118A0, -- Quaternion.Internal_FromEulerRad
      [0x778899AABBCCDDEE]=0xE08530, -- ResourceManager.GetAllInstancesList
      [0x123456789ABCDE01]=0x5CDF070, -- List item metadata
      [0x123456789ABCDE02]=0x1EB1690, -- List get_Item
      [0x123456789ABCDE03]=0x5CFD9B8, -- InventoryItemDescriptor type
      [0x123456789ABCDE04]=0x31DEC90, -- Array.Clear
      [0x123456789ABCDE07]=0x5CE77C0, -- BiomeItemDescriptor type
      [0x123456789ABCDE08]=0x5CE78E8, -- BiomeItemInstance type
      [0x123456789ABCDE09]=0xEBBE00, -- RemoveInstanceDataSilent
      [0x123456789ABCDE0A]=0xEBC590, -- SetDirty
    }
    for marker,rva in pairs(references)do cell=bindAll(cell,marker,context.base+rva) end
    cell=bindAll(cell,0x123456789ABCDE05,cave+0xA00)
    cell=bindAll(cell,0x123456789ABCDE0B,cave+0xA80)
    cell=bindAll(cell,0x123456789ABCDE06,cave+0x700)
    local invalid=clearInvalid
    local invalidReferences={
      [0x1122334455667788]=context.base+0x4507D40,
      [0x2233445566778899]=context.base+0x4536910,
      [0x33445566778899AA]=context.base+0x4511EF0,
      [0x445566778899AABB]=context.base+0xAC4950,
      [0x5566778899AABBCC]=cave+clearThreadOffset,
      [0x66778899AABBCCDD]=cave+clearCellOffset,
    }
    for marker,address in pairs(invalidReferences)do invalid=bindAll(invalid,marker,address) end
    return code..string.rep('\0',clearThreadOffset-#code)..string.rep('\xFF',8)
      ..string.rep('\0',clearInvalidOffset-clearThreadOffset-8)..invalid
      ..string.rep('\0',0x700-clearInvalidOffset-#invalid).."\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x60\x4C\x89\xCB\x48\x89\xCE\x48\x89\x4C\x24\x50\x48\x89\xD7\x4D\x89\xC4\x48\x8B\x4B\x40\xFF\x13\x48\x8B\x4B\x58\xFF\x13\x48\x8B\x4B\x48\xFF\x13\x48\x8B\x4B\x48\x48\x8B\x09\x48\x85\xC9\x0F\x84\xB6\x01\x00\x00\x83\xB9\xE4\x00\x00\x00\x00\x75\x03\xFF\x53\x50\xB8\x00\x00\x00\x3F\x66\x0F\x6E\xC8\xF3\x0F\x10\x07\xF3\x0F\x59\xC1\xF3\x0F\x11\x44\x24\x30\xF3\x0F\x10\x47\x04\xF3\x0F\x59\xC1\xF3\x0F\x11\x44\x24\x34\xF3\x0F\x10\x47\x08\xF3\x0F\x59\xC1\xF3\x0F\x11\x44\x24\x38\x48\x89\xF1\x48\x8D\x54\x24\x30\x4D\x89\xE0\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x4F\x01\x00\x00\x48\x89\xC7\x31\xF6\x48\x3B\x77\x18\x0F\x83\x40\x01\x00\x00\x48\x8B\x4C\xF7\x20\x48\xFF\xC6\xFF\x43\x60\x48\x89\xDA\xFF\x53\x38\x48\x85\xC0\x74\xE0\x49\x89\xC5\xFF\x43\x68\x48\x8B\x48\x10\x48\x85\xC9\x74\xD1\x48\x8B\x09\x48\x8B\x53\x58\x48\x3B\x0A\x75\x08\xFF\x43\x6C\xE9\xBC\x00\x00\x00\x48\x8B\x53\x40\x48\x3B\x0A\x75\xB4\x83\x78\x78\x00\x75\xAE\x4C\x89\xEA\x49\x8B\x45\x00\x4C\x8B\x80\x50\x02\x00\x00\x48\x8D\x4C\x24\x44\xFF\x90\x48\x02\x00\x00\x48\x85\xC0\x74\x90\x4C\x8B\x54\x24\x50\xF3\x0F\x10\x00\xF3\x0F\x10\x48\x08\xF3\x41\x0F\x5C\x02\xF3\x41\x0F\x5C\x4A\x08\xF3\x41\x0F\x10\x54\x24\x04\x0F\x28\xDA\xF3\x0F\x59\xD2\xF3\x0F\x58\xD2\xF3\x41\x0F\x59\x5C\x24\x0C\xF3\x0F\x58\xDB\xB8\x00\x00\x80\x3F\x66\x0F\x6E\xE0\xF3\x0F\x5C\xE2\x0F\x28\xD0\xF3\x0F\x59\xC4\xF3\x0F\x59\xD3\xF3\x0F\x59\xE1\xF3\x0F\x59\xCB\xF3\x0F\x5C\xC1\xF3\x0F\x58\xD4\xB8\xFF\xFF\xFF\x7F\x66\x0F\x6E\xC8\x0F\x54\xC1\x0F\x54\xD1\x0F\x2E\x44\x24\x30\x0F\x8A\x18\xFF\xFF\xFF\x0F\x87\x12\xFF\xFF\xFF\x0F\x2E\x54\x24\x38\x0F\x8A\x07\xFF\xFF\xFF\x0F\x87\x01\xFF\xFF\xFF\x4C\x89\xE9\x48\x8B\x01\x48\x8B\x90\xD0\x01\x00\x00\xFF\x90\xC8\x01\x00\x00\x84\xC0\x74\x08\xFF\x43\x70\xE9\xE2\xFE\xFF\xFF\x66\xC7\x44\x24\x40\x01\x02\x4C\x89\xE9\x48\x8D\x54\x24\x40\x4C\x8D\x44\x24\x41\x48\x8B\x01\x4C\x8B\x88\x00\x02\x00\x00\xFF\x43\x64\xFF\x90\xF8\x01\x00\x00\xE9\xB6\xFE\xFF\xFF\x48\x83\xC4\x60\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3"
      ..string.rep('\0',0x920-0x700-512).."\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xD6\x48\x89\xCF\x48\x85\xC9\x74\x3C\x48\x8B\x4E\x08\xFF\x16\x48\x89\xF9\xE8\x38\x00\x00\x00\x48\x85\xC0\x75\x2B\x48\x89\xF9\x31\xD2\xFF\x56\x18\x48\x85\xC0\x74\x1C\x48\x89\xC3\x48\x89\xC1\x31\xD2\x45\x31\xC0\xFF\x56\x10\x84\xC0\x74\x0A\x48\x89\xD9\xE8\x0C\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3\x48\x83\xEC\x28\x31\xD2\xFF\x56\x20\x48\x85\xC0\x74\x39\x48\x89\xC1\x48\x8B\x56\x08\x48\x8B\x12\xFF\x56\x28\x48\x89\xC3\x48\x85\xC0\x74\x24\x48\x89\xC1\x31\xD2\x45\x31\xC0\xFF\x56\x10\x84\xC0\x74\x15\x48\x89\xD9\x48\x8B\x03\x48\x8B\x90\x20\x02\x00\x00\xFF\x90\x18\x02\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\xC3"
      ..string.rep('\0',0xA00-0x920-166)
      ..string.pack('&lt;I8I8I8I8I8I8I8I8I8I8I8I8',context.base+0x5D0020,context.base+0x5D3ADE0,
          context.base+0x4525400,context.base+0x45EA9A0,context.base+0x4507BC0,context.base+0x188ED60,
          context.base+0x45F1D20,cave+0x920,context.base+0x5CFD9B8,context.base+0x5D58F38,
          context.base+0x5D0360,context.base+0x5CE77C0)..string.rep('\0',clearCellOffset-0xA60)..cell
  end
  local function requireClearIdle(address)
    local thread=readQword(address)
    need(thread==0 or thread==-1,'Terrain resource clearing is finishing.','地形・素材の破壊処理が完了していません。')
  end
  clearOwner=clearSignature(0xD7FD25,{0xE8,0xA6,0x15,0x1C,0,0x48,0x8B,0x8B,0x88,0,0,0,0x48,0x85,0xC9,0x74},
    clearWrapperCode,8,function(cave)requireClearIdle(cave+clearThreadOffset)end)
  clearOwner.recoveryRecord.allocateSize=function()return 0x2000 end
  clearOwner.recoveryRecord.extraCode={
    ranges={{offset=0x200,length=0x860},{offset=clearCellOffset,length=#clearCell}},
    primaryCodeLength=0xA60,codeExtent=clearCellOffset+#clearCell,
    previous={[0xA60]={offset=0x200,length=0x860},[0x200+565]={offset=0x200,length=565},[0x200+786]={offset=0x200,length=786},[0x500+313]={offset=0x200,length=0x500-0x200+313}},
  }
  local function clearFilter(code)
    return function()
      return replaceImmediate(code,0x2233445566778899,clearOwner.memberControl())
    end
  end
  descriptorFilter=clearSignature(0xF4DAE1,{0x0F,0xB6,0x43,0x54,0x48,0x83,0xC4,0x20,0x5B,0xC3},
    clearFilter("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x75\x07\xB8\x01\x00\x00\x00\xEB\x04\x0F\xB6\x43\x54\x48\x83\xC4\x20\x5B\xC3"))
  local previousDescriptor={}
  for field,value in pairs(descriptorFilter.recoveryRecord) do previousDescriptor[field]=value end
  previousDescriptor.signature={0x0F,0xB6,0x43,0x54,0x48,0x83,0xC4,0x20,0x5B,0xC3,0x32,0xC0,0x48,0x83,0xC4,0x20}
  instanceFilter=clearSignature(0xEB26ED,{0x0F,0xB6,0x40,0x54,0x48,0x83,0xC4,0x20,0x5B,0xC3,0xE8,0xD4,0xDB,0x71,0xFF,0xCC},
    clearFilter("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x75\x07\xB8\x01\x00\x00\x00\xEB\x04\x0F\xB6\x40\x54\x48\x83\xC4\x20\x5B\xC3"))
  -- Preserve the game's silent-destruction continuation and skip drop callbacks.
  silentDestroy=clearSignature(0xEB1E33,{0x41,0x80,0x3E,0,0x75,0x13,0x48,0x8B,0x03,0x48,0x8B,0xCB,0x48,0x8B,0x90,0xC0},
    function(context)
      local code=replaceImmediate("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x74\x13\x41\x80\x3E\x00\x75\x0D\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0xEB1E39)
      return replaceImmediate(code,0x445566778899AABB,context.base+0xEB1E4C)
    end)
  -- Some field tools serialize radius zero, which skips the resource search.
  -- Once enabled, RunOnArea still uses its native oriented box for the cell.
  local radiusGate={0x0F,0x86,0xF8,0x01,0,0,0x48,0x8B,0x0D,0xA9,0x55,0xE0,0x04,0x49,0x8B,0xBF}
  local resourceSearch=entryFeature(clearKey,0xF41B4A,{table.unpack(radiusGate,1,6)},radiusGate,clearContext,
    function(context)
      local code=replaceImmediate("\x9C\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x74\x10\x9D\x77\x0E\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3\x9D\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0xF41D48)
      return replaceImmediate(code,0x445566778899AABB,context.base+0xF41B50)
    end)
  -- Use native footprint overlap but exclude the heightmap blend margin in X/Z.
  -- X/Y are in XMM0 and Z is in ECX until the original size-vector writes.
  local queryFlags={0x44,0x88,0x64,0x24,0x40,0x89,0x4C,0x24,0x68,0xB9,0,4,0,0,0x66,0x89}
  local resourceFootprint=entryFeature(clearKey,0xF41C85,{table.unpack(queryFlags,1,5)},queryFlags,clearContext,
    function(context)
      local code=replaceImmediate("\x9C\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x74\x08\x9D\x44\x88\x64\x24\x40\xEB\x10\x9D\xC6\x44\x24\x40\x01\xF3\x41\x0F\x10\xC5\x66\x44\x0F\x7E\xF1\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      return replaceImmediate(code,0x445566778899AABB,context.base+0xF41C8A)
    end)
  -- The native method skips its whole resource search when terrain propagation
  -- is disabled. Only bypass that gate during the scoped automatic clearance.
  -- The later network propagation check still reads the original tool option.
  local propagationGate={0x45,0x38,0x67,0x71,0x0F,0x84,0x3F,0x02,0,0,0xF3,0x41,0x0F,0x10,0x47,0x20}
  local searchWithoutPropagation=entryFeature(clearKey,0xF41B36,{table.unpack(propagationGate,1,10)},
    propagationGate,clearContext,function(context)
      local code=replaceImmediate("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x74\x13\x45\x38\x67\x71\x74\x0D\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0xF41D7F)
      return replaceImmediate(code,0x445566778899AABB,context.base+0xF41B40)
    end,4)
  -- Search even when levelling is rejected, then return the original result
  -- before any terrain application. Ground inventory items use the same query.
  local clearAfterRejectedLevelSignature={0x85,0xc0,0x0f,0x85,0x80,0xfa,0xff,0xff,0x48,0x8b,0x0d,0x12,0x56,0xe0,0x04,0x49}
  local clearAfterRejectedLevel=entryFeature(clearKey,0xF41ADF,{table.unpack(clearAfterRejectedLevelSignature,1,8)},
    clearAfterRejectedLevelSignature,clearContext,function(context)
      local code=replaceImmediate("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x75\x06\x89\x44\x24\x54\xEB\x11\x85\xC0\x74\x0D\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0xF41567)
      code=replaceImmediate(code,0x445566778899AABB,context.base+0xF41AE7)
      return code
    end)
  local returnRejectedLevelSignature={0x45,0x38,0x67,0x71,0x74,0x31,0x48,0x8b,0x15,0xeb,0x6e,0xde,0x04,0x48,0x8d,0x4d}
  local returnRejectedLevel=entryFeature(clearKey,0xF41D48,{table.unpack(returnRejectedLevelSignature,1,6)},
    returnRejectedLevelSignature,clearContext,function(context)
      local code=replaceImmediate("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x75\x15\x8B\x44\x24\x54\x85\xC0\x74\x0D\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x41\xFF\xE3\x45\x38\x67\x71\x74\x0D\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3\x49\xBB\xCC\xBB\xAA\x99\x88\x77\x66\x55\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0xF41567)
      code=replaceImmediate(code,0x445566778899AABB,context.base+0xF41D4E)
      code=replaceImmediate(code,0x5566778899AABBCC,context.base+0xF41D7F)
      return code
    end)
  local droppedDescriptorSignature={0x32,0xc0,0x48,0x83,0xc4,0x20,0x5b,0xc3,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc}
  local droppedDescriptor=entryFeature(clearKey,0xF4DAEB,{table.unpack(droppedDescriptorSignature,1,6)},
    droppedDescriptorSignature,clearContext,function(context)
      local code=replaceImmediate("\x49\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x39\x1A\x75\x1B\x48\x85\xDB\x74\x16\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x4D\x8B\x1B\x4C\x39\x1B\x75\x04\xB0\x01\xEB\x02\x30\xC0\x48\x83\xC4\x20\x5B\xC3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0x5CFD9B8)
      return code
    end)
  local silentAreaDestroySignature={0x48,0x8d,0x54,0x24,0x50,0x48,0x8b,0xc8,0x4d,0x8b,0x8a,0x00,0x02,0x00,0x00,0x41}
  local silentAreaDestroy=entryFeature(clearKey,0xF41D2D,{table.unpack(silentAreaDestroySignature,1,5)},
    silentAreaDestroySignature,clearContext,function(context)
      local code=replaceImmediate("\x48\xBA\x99\x88\x77\x66\x55\x44\x33\x22\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4C\x39\x1A\x75\x26\x49\xBB\xAA\x99\x88\x77\x66\x55\x44\x33\x4D\x8B\x1B\x48\x8B\x48\x10\x48\x85\xC9\x74\x10\x4C\x39\x19\x75\x06\x83\x78\x78\x00\x75\x17\xC6\x44\x24\x50\x01\x48\x8D\x54\x24\x50\x49\xBB\xBB\xAA\x99\x88\x77\x66\x55\x44\x41\xFF\xE3\x49\xBB\xCC\xBB\xAA\x99\x88\x77\x66\x55\x41\xFF\xE3",0x2233445566778899,clearOwner.memberControl())
      code=replaceImmediate(code,0x33445566778899AA,context.base+0x5CFD9B8)
      code=replaceImmediate(code,0x445566778899AABB,context.base+0xF41D32)
      code=replaceImmediate(code,0x5566778899AABBCC,context.base+0xF41D43)
      return code
    end)
  -- The clearance wrapper publishes its thread only for the automatic level call.
  local levelDepthSignature={0x0F,0x2F,0xC6,0x72,0x25,0x41,0x0F,0x28,0xF2,0xBD,0x03,0x00,0x00,0x00,0xEB,0x1A}
  local levelDepth=entryFeature(clearKey,0xF435F9,{table.unpack(levelDepthSignature,1,5)},
    levelDepthSignature,clearContext,function(context)
      local code=replaceImmediate("\x41\x52\x41\x53\x49\xBA\x88\x77\x66\x55\x44\x33\x22\x11\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x85\xDB\x74\x05\x4D\x39\x1A\x74\x0F\x41\x5B\x41\x5A\x0F\x2F\xC6\x72\x0A\xFF\x25\x0A\x00\x00\x00\x41\x5B\x41\x5A\xFF\x25\x08\x00\x00\x00\x99\x88\x77\x66\x55\x44\x33\x22\xAA\x99\x88\x77\x66\x55\x44\x33",0x1122334455667788,clearOwner.memberControl())
      code=replaceImmediate(code,0x2233445566778899,context.base+0xF435FE)
      return replaceImmediate(code,0x33445566778899AA,context.base+0xF43623)
    end,3)
  local levelPlaneSignature={0xF3,0x41,0x0F,0x59,0xF8,0x41,0x0F,0x2F,0xF9,0xF3,0x0F,0x58,0xF7,0x77,0x4D,0x44}
  local levelPlane=entryFeature(clearKey,0xF435B8,{table.unpack(levelPlaneSignature,1,9)},
    levelPlaneSignature,clearContext,function(context)
      local code=replaceImmediate("\x41\x52\x41\x53\x49\xBA\x88\x77\x66\x55\x44\x33\x22\x11\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x85\xDB\x74\x1F\x4D\x39\x1A\x75\x1A\x45\x0F\x2E\xE1\x72\x14\x45\x0F\x2E\xE3\x77\x0E\x41\x0F\x28\xF4\x41\x5B\x41\x5A\xFF\x25\x13\x00\x00\x00\x41\x5B\x41\x5A\xF3\x41\x0F\x59\xF8\x41\x0F\x2F\xF9\xFF\x25\x08\x00\x00\x00\x99\x88\x77\x66\x55\x44\x33\x22\xAA\x99\x88\x77\x66\x55\x44\x33",0x1122334455667788,clearOwner.memberControl())
      code=replaceImmediate(code,0x2233445566778899,context.base+0xF43623)
      return replaceImmediate(code,0x33445566778899AA,context.base+0xF435C1)
    end,5)
  local levelTypeSignature={0x80,0x7B,0x3C,0x00,0x89,0x44,0x24,0x58,0x74,0x2B,0x33,0xD2,0x8B,0xC8,0xE8,0x71}
  local levelType=entryFeature(clearKey,0xF43A4C,{table.unpack(levelTypeSignature,1,10)},
    levelTypeSignature,clearContext,function(context)
      local code=replaceImmediate("\x89\x44\x24\x58\x41\x52\x41\x53\x49\xBA\x88\x77\x66\x55\x44\x33\x22\x11\x41\xBB\x48\x00\x00\x00\x65\x4D\x8B\x1B\x4D\x85\xDB\x74\x05\x4D\x39\x1A\x74\x10\x41\x5B\x41\x5A\x80\x7B\x3C\x00\x74\x0A\xFF\x25\x0A\x00\x00\x00\x41\x5B\x41\x5A\xFF\x25\x08\x00\x00\x00\xAA\x99\x88\x77\x66\x55\x44\x33\x99\x88\x77\x66\x55\x44\x33\x22",0x1122334455667788,clearOwner.memberControl())
      code=replaceImmediate(code,0x2233445566778899,context.base+0xF43A81)
      return replaceImmediate(code,0x33445566778899AA,context.base+0xF43A56)
    end,4)
  for _,legacy in ipairs({silentDestroy,resourceSearch,resourceFootprint,
    clearAfterRejectedLevel,returnRejectedLevel,silentAreaDestroy}) do
    legacy.recoveryOnly=true
    legacy.recoveryRecord.recoveryOnly=true
    legacy.on=function() ASKA.err('Legacy hooks can only be restored.','旧版の処理は復元専用です。') end
  end
  recoverySites[#recoverySites+1]=previousDescriptor
  ASKA.F[clearKey]={
    boundary=clearOwner.boundary,
    on=function()
      local context=need(clearContext(),'Terrain clearance session is unavailable.')
    for _,binding in ipairs(colliderEntrySignatures) do
      local rva,signature=binding[1],binding[2]
      need(equal(bytes(context.base+rva,#signature),signature),
        ('Terrain collider dependency differs at RVA 0x%X.'):format(rva),
        ('地形衝突検索の依存先が一致しません（RVA 0x%X）。'):format(rva))
    end
      clearOwner.on();descriptorFilter.on();instanceFilter.on();droppedDescriptor.on();searchWithoutPropagation.on();levelDepth.on();levelPlane.on();levelType.on()
      withTargetSuspended(function(handle)
        local marker=clearOwner.memberControl()
        local control=shared()
        putQ(control+0xF0,marker-clearThreadOffset+clearInvalidOffset)
        checkedWrite(handle,marker,{0,0,0,0,0,0,0,0})
        local prior=need(readInteger(control+0xF8),'Cannot read clearance pass.','除去巡回番号を取得できません。')
        local generation=string.pack('&lt;I4',((prior+1)&amp;0xFFFFFFFF))
        checkedWrite(handle,control+0xF8,{generation:byte(1,4)})
        checkedWrite(handle,control+0xE8,{1})
      end)
    end,
    off=function()
      if clearOwner.retainedAllocation() then
        withTargetSuspended(function(handle)
          local address=clearOwner.memberControl()
          requireClearIdle(address)
          checkedWrite(handle,address,{255,255,255,255,255,255,255,255})
          local control=shared()
          checkedWrite(handle,control+0xE8,{0})
          putQ(control+0xF0,0)
        end)
      end
      levelType.off();levelPlane.off();levelDepth.off();silentAreaDestroy.off();droppedDescriptor.off();returnRejectedLevel.off();clearAfterRejectedLevel.off()
      searchWithoutPropagation.off();resourceFootprint.off();resourceSearch.off();silentDestroy.off();instanceFilter.off();descriptorFilter.off();clearOwner.off()
    end,
  }

end)()

-- The two Terrain Level Field templates serialize maxNumberOfTiles=25.
-- Change the resolved limit in the ray preview and the widget, preserving the asset.
local areaLimits=(function()
  local function terrainLimitSite(rva,signature,instructions)
    return entryFeature('autoTerraform',rva,{table.unpack(signature,1,7)},signature,soloContext,
      function(_,cave,entry)
        return instructions..makeJump(cave+#instructions,entry+7)
      end)
  end
  local previewLimit=terrainLimitSite(0xA73058,
    {0x41,0x8B,0x8F,0x90,1,0,0,0x0F,0xAF,0xC3,0x3B,0xC1,0x7E,8,0x85,0xC9,0x0F},
    "\x41\x8B\x8F\x90\x01\x00\x00\x9C\x83\xF9\x19\x75\x19\x41\x81\x7F\x18\x1E\x40\xC1\x00\x74\x0A\x41\x81\x7F\x18\x4A\x40\xC1\x00\x75\x05\xB9\x64\x00\x00\x00\x9D")
  local widgetLimit=terrainLimitSite(0xA72531,
    {0x41,0x8B,0x86,0x90,1,0,0,0x48,0x8D,0x55,0xCF,0x48,0x8B,0x0D,0xE5,0x37,0x5B},
    "\x41\x8B\x86\x90\x01\x00\x00\x9C\x83\xF8\x19\x75\x19\x41\x81\x7E\x18\x1E\x40\xC1\x00\x74\x0A\x41\x81\x7E\x18\x4A\x40\xC1\x00\x75\x05\xB8\x64\x00\x00\x00\x9D")
  return groupedEntryFeatures({previewLimit,widgetLimit})
end)()
local heightLimits=(function()
  local function replaceImmediate(code,marker,value)
    local offset=assert(code:find(string.pack('&lt;I8',marker),1,true))
    return code:sub(1,offset-1)..string.pack('&lt;I8',value)..code:sub(offset+8)
  end
  local function heightSite(rva,size,resume,signature,instructions)
    return entryFeature('autoTerraform',rva,{table.unpack(signature,1,size)},signature,soloContext,
      function(context)
        local code=replaceImmediate(instructions,0x1122334455667788,context.base+resume)
        if rva==0xA745F3 then code=replaceImmediate(code,0x2233445566778899,context.base+0xA745F9)end
        return code
      end,({[0xA745D4]=2,[0xA745F3]=4,[0xB242F4]=3})[rva])
  end
  return groupedEntryFeatures({
    heightSite(0xA745D4,5,0xA745D9,{0x84,0xC0,0x0F,0x44,0xCE,0x89,0x4D,0x20,0x48,0x8B,0x8F,0xB0,0x00,0x00,0x00,0x48},"\x50\x48\x8B\x87\xB8\x00\x00\x00\x48\x85\xC0\x74\x1B\x48\x8B\x40\x60\x48\x85\xC0\x74\x12\x81\x78\x18\x1E\x40\xC1\x00\x74\x11\x81\x78\x18\x4A\x40\xC1\x00\x74\x08\x58\x84\xC0\x0F\x44\xCE\xEB\x01\x58\xFF\x25\x00\x00\x00\x00\x88\x77\x66\x55\x44\x33\x22\x11"),
    heightSite(0xA745F3,6,0xA74601,{0x0F,0x2F,0x47,0x74,0x76,0x08,0x89,0x75,0x20,0xE9,0x00,0x01,0x00,0x00,0x8B,0x75},"\x50\x48\x8B\x87\xB8\x00\x00\x00\x48\x85\xC0\x74\x1B\x48\x8B\x40\x60\x48\x85\xC0\x74\x12\x81\x78\x18\x1E\x40\xC1\x00\x74\x1E\x81\x78\x18\x4A\x40\xC1\x00\x74\x15\x58\x0F\x2F\x47\x74\x76\x0F\xFF\x25\x00\x00\x00\x00\x99\x88\x77\x66\x55\x44\x33\x22\x58\xFF\x25\x00\x00\x00\x00\x88\x77\x66\x55\x44\x33\x22\x11"),
    heightSite(0xB242F4,7,0xB242FB,{0x0F,0x2F,0xC1,0x41,0x0F,0x97,0xC7,0x45,0x84,0xFF,0x74,0x24,0x48,0x8B,0x0D,0xC9},"\x50\x48\x8B\x87\x98\x00\x00\x00\x48\x85\xC0\x74\x20\x48\x8B\x40\x48\x48\x85\xC0\x74\x17\x81\x78\x48\x1E\x40\xC1\x00\x74\x09\x81\x78\x48\x4A\x40\xC1\x00\x75\x05\x41\xB7\x01\xEB\x07\x0F\x2F\xC1\x41\x0F\x97\xC7\x58\xFF\x25\x00\x00\x00\x00\x88\x77\x66\x55\x44\x33\x22\x11"),
  })
end)()
local grouped={boundary=feature.boundary}
-- Keep the optional task contract without creating terrain status rows.
grouped.task=function()end
grouped.on=function()
  -- Root enabled byte is published last; partial installation cannot capture work.
  feature.on();completion.on();created.on();designation.on();building.on()
  areaLimits.on();heightLimits.on()
  withTargetSuspended(function()local control=shared();putEnabled(control,1)end)

end
grouped.off=function()
  if ASKA.active.autoTerraformClear then
    ASKA.feature('autoTerraformClear',false)
    local record=getAddressList().getMemoryRecordByID(417)
    if record and record.Active then record.Active=false end
  end
  local ok,control=pcall(feature.memberControl)
  if ok then withTargetSuspended(function()putEnabled(control,0);idle(control-controlOffset)end)end
  -- Never release the shared root after failure to remove an auxiliary hook.
  heightLimits.off();areaLimits.off()
  building.off();designation.off();created.off();completion.off()
  if ok then withTargetSuspended(function(handle)releaseNodes(control-controlOffset,handle)end)end
  feature.off()

end
ASKA.F.autoTerraform=grouped

end
do
local instant_summonScopeInstructions = "\x45\x31\xC9\x49\x8B\x42\x20\x48\x85\xC0\x0F\x84\x9A\x01\x00\x00\x4C\x8B\x98\x40\x3E\xD6\x05\x4D\x85\xDB\x0F\x84\x8A\x01\x00\x00\x4D\x8B\x9B\xB8\x00\x00\x00\x4D\x85\xDB\x0F\x84\x7A\x01\x00\x00\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\x6E\x01\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\x63\x01\x00\x00\x4D\x8B\x5B\x30\x4D\x85\xDB\x0F\x84\x56\x01\x00\x00\x49\x83\x7B\x10\x00\x0F\x84\x4B\x01\x00\x00\x48\x8B\x80\xB0\x40\xD6\x05\x49\x39\x03\x0F\x85\x3B\x01\x00\x00\x41\x80\x7B\x60\x01\x0F\x85\x30\x01\x00\x00\x4D\x8B\x5B\x50\x4D\x3B\x1A\x0F\x85\x23\x01\x00\x00\x49\x8B\x02\x48\x85\xC0\x0F\x84\x17\x01\x00\x00\x49\x8B\x4A\x08\x48\x39\x48\x10\x0F\x85\x09\x01\x00\x00\x49\x8B\x52\x10\x48\x39\x50\x38\x0F\x85\xFB\x00\x00\x00\x83\xBA\x80\x01\x00\x00\x01\x0F\x85\xEE\x00\x00\x00\x48\x39\x53\x38\x0F\x85\xE4\x00\x00\x00\x48\x83\x7B\x10\x00\x0F\x84\xD9\x00\x00\x00\x4C\x8B\x83\xF8\x00\x00\x00\x4D\x85\xC0\x0F\x84\xC9\x00\x00\x00\x49\x39\x90\xB8\x00\x00\x00\x0F\x85\xBC\x00\x00\x00\x41\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xAE\x00\x00\x00\x4C\x8B\x43\x48\x4D\x85\xC0\x0F\x84\xA1\x00\x00\x00\x41\x83\x78\x04\x01\x0F\x85\x96\x00\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x86\x00\x00\x00\x41\x80\x7B\x48\x00\x75\x7F\x41\x53\x49\x8B\x4B\x40\x48\x85\xC9\x74\x22\x83\x79\x18\x00\x7C\x30\x74\x1A\x48\x8B\x49\x10\x48\x85\xC9\x74\x25\x83\x79\x18\x00\x7E\x1F\x48\x8B\x49\x20\x48\x85\xC9\x74\x16\xEB\x0D\x48\x8B\x0C\x24\x48\x8B\x49\x38\x48\x85\xC9\x74\x07\x48\x8D\x64\x24\x08\xEB\x07\x48\x8D\x64\x24\x08\xEB\x37\x48\x85\xC9\x74\x32\x48\x83\x79\x10\x00\x74\x2B\x4C\x39\x99\xE8\x01\x00\x00\x75\x22\x4C\x8B\x43\x78\x4D\x85\xC0\x74\x19\x49\x83\x78\x10\x00\x74\x12\x49\x39\x88\x58\x01\x00\x00\x75\x09\x41\xB9\x01\x00\x00\x00\x0F\x57\xF6"
-- Complete only an already-pending summon at the player's own settlement core.
-- The game's weather callback retains activation, spawning and pending reset.
local signature={0xF3,0x0F,0x5F,0xF7,0x48,0x85,0xC0,0x0F,0x84,0xAF,0x01,0,0,0x8B,0x48,0x04}
local original={table.unpack(signature,1,7)}
local function code(context,cave,entry)
  local data=0x300
  local bytes=string.char(table.unpack(original,1,4))
    ..string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
    ..string.char(0x49,0xBA)..string.pack('&lt;I8',cave+data)..instant_summonScopeInstructions
    ..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
    ..string.char(table.unpack(original,5,7))
  bytes=bytes..makeJump(cave+#bytes,entry+#original)
  need(#bytes&lt;=data,'Summoning code exceeds its reserved range.','召喚処理が確保範囲を超えています。')
  return bytes..string.rep('\0',data-#bytes)..string.pack('&lt;I8I8I8I8I8',context.player,context.identity,context.runner,0,context.base)
end
local weatherFeature=entryFeature('instantVikingSummon',0xC1F7F7,original,signature,soloContext,code,nil,0x28,nil,0x300)

local activationSignature={0x0F,0x28,0x7C,0x24,0x30,0x0F,0x28,0x74,0x24,0x40,0x44,0x0F,0x28,0x44,0x24,0x20}
local activationOriginal={table.unpack(activationSignature,1,5)}
local function activationCode(context,cave,entry)
  local data=0x300
  local call=string.char(0x48,0x81,0xEC,0x80,0,0,0)
  for register=0,5 do call=call..string.char(0x0F,0x11,0x44+register*8,0x24,0x20+register*0x10)end
  call=call..string.char(0x33,0xD2,0x48,0x8B,0xCB,0x48,0xB8)..string.pack('&lt;I8',context.base+0xC1F710)..string.char(0xFF,0xD0)
  for register=0,5 do call=call..string.char(0x0F,0x10,0x44+register*8,0x24,0x20+register*0x10)end
  call=call..string.char(0x48,0x81,0xC4,0x80,0,0,0)
  local bytes=string.char(0x9C,0x50,0x51,0x52,0x41,0x50,0x41,0x51,0x41,0x52,0x41,0x53)
    ..string.char(0x49,0xBA)..string.pack('&lt;I8',cave+data)
    ..string.char(0xF0,0x41,0xFF,0x42,0x18)..instant_summonScopeInstructions
    ..string.char(0x45,0x85,0xC9,0x0F,0x84)..string.pack('&lt;i4',#call)..call
    ..string.char(0x49,0xBA)..string.pack('&lt;I8',cave+data)..string.char(0xF0,0x41,0xFF,0x4A,0x18)
    ..string.char(0x41,0x5B,0x41,0x5A,0x41,0x59,0x41,0x58,0x5A,0x59,0x58,0x9D)
    ..string.char(table.unpack(activationOriginal))
  bytes=bytes..makeJump(cave+#bytes,entry+#activationOriginal)
  need(#bytes&lt;=data,'Summoning code exceeds its reserved range.','召喚処理が確保範囲を超えています。')
  return bytes..string.rep('\0',data-#bytes)..string.pack('&lt;I8I8I8i4i4I8',context.player,context.identity,context.runner,0,0,context.base)
end
local activationFeature=entryFeature('instantVikingSummon',0xC1C6AE,activationOriginal,activationSignature,soloContext,activationCode,nil,0x28,
  function(cave)need(readInteger(cave+0x318)==0,'Summoning is finishing. Retry cleanup.','召喚処理の完了後に解除を再試行してください。')end,0x300)
ASKA.F.instantVikingSummon=groupedEntryFeatures({weatherFeature,activationFeature})

end

;(function()
local memberNameWrapperInstructions = "\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x81\xEC\x88\x00\x00\x00\xF3\x0F\x7F\x44\x24\x20\xF3\x0F\x7F\x4C\x24\x30\xF3\x0F\x7F\x54\x24\x40\xF3\x0F\x7F\x5C\x24\x50\xF3\x0F\x7F\x64\x24\x60\xF3\x0F\x7F\x6C\x24\x70\x49\xBB\x88\x77\x66\x55\x44\x33\x22\x11\xF0\x41\xFF\x83\x88\x00\x00\x00\x48\xBA\x88\x77\x66\x55\x44\x33\x22\x11\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xFF\xD0\x49\xBB\x88\x77\x66\x55\x44\x33\x22\x11\xF0\x41\xFF\x8B\x88\x00\x00\x00\xF3\x0F\x6F\x44\x24\x20\xF3\x0F\x6F\x4C\x24\x30\xF3\x0F\x6F\x54\x24\x40\xF3\x0F\x6F\x5C\x24\x50\xF3\x0F\x6F\x64\x24\x60\xF3\x0F\x6F\x6C\x24\x70\x48\x81\xC4\x88\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D"
local memberNameTransactionInstructions = "\x53\x56\x57\x41\x54\x48\x83\xEC\x28\x48\x89\xD6\x48\x89\xCB\x48\x39\x4E\x30\x0F\x85\x04\x03\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x56\x20\x0F\x85\xEF\x02\x00\x00\x48\x8B\x3E\x48\x85\xFF\x0F\x84\xDC\x02\x00\x00\x48\x39\xDF\x0F\x84\xD3\x02\x00\x00\x4C\x8B\x46\x18\x49\x8B\x80\x40\x3E\xD6\x05\x48\x85\xC0\x0F\x84\xBF\x02\x00\x00\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x0F\x84\xAF\x02\x00\x00\x48\x8B\x00\x48\x85\xC0\x0F\x84\xA3\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x98\x02\x00\x00\x48\x8B\x40\x30\x48\x85\xC0\x0F\x84\x8B\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x80\x02\x00\x00\x49\x8B\x88\xB0\x40\xD6\x05\x48\x85\xC9\x0F\x84\x70\x02\x00\x00\x48\x39\x08\x0F\x85\x67\x02\x00\x00\x80\x78\x60\x01\x0F\x85\x5D\x02\x00\x00\x48\x39\x78\x50\x0F\x85\x53\x02\x00\x00\x49\x8B\x88\x78\xEF\xD5\x05\x48\x85\xC9\x0F\x84\x43\x02\x00\x00\x48\x39\x0F\x0F\x85\x3A\x02\x00\x00\x48\x8B\x46\x08\x48\x39\x47\x10\x0F\x85\x2C\x02\x00\x00\x48\x8B\x46\x10\x48\x85\xC0\x0F\x84\x1F\x02\x00\x00\x48\x39\x47\x38\x0F\x85\x15\x02\x00\x00\x48\x39\x43\x38\x0F\x85\x0B\x02\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xFE\x01\x00\x00\x48\x8B\x46\x38\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x48\x39\x43\x10\x0F\x85\xE7\x01\x00\x00\x48\x8B\x46\x40\x48\x39\x03\x0F\x85\xDA\x01\x00\x00\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\xCD\x01\x00\x00\x48\x8B\x46\x48\x48\x39\x83\x28\x06\x00\x00\x0F\x85\xBC\x01\x00\x00\x48\x8B\x46\x60\x48\x39\x83\xD0\x04\x00\x00\x0F\x85\xAB\x01\x00\x00\x48\x8B\x56\x50\x48\x85\xD2\x0F\x84\x9E\x01\x00\x00\x48\x39\x93\xC8\x04\x00\x00\x0F\x85\x91\x01\x00\x00\x48\x8B\x46\x58\x48\x85\xC0\x0F\x84\x84\x01\x00\x00\x48\x39\x87\x90\x02\x00\x00\x0F\x85\x77\x01\x00\x00\x80\x78\x48\x00\x0F\x85\x6D\x01\x00\x00\x50\x48\x8B\x48\x40\x48\x85\xC9\x74\x22\x83\x79\x18\x00\x7C\x30\x74\x1A\x48\x8B\x49\x10\x48\x85\xC9\x74\x25\x83\x79\x18\x00\x7E\x1F\x48\x8B\x49\x20\x48\x85\xC9\x74\x16\xEB\x0D\x48\x8B\x0C\x24\x48\x8B\x49\x38\x48\x85\xC9\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\x23\x01\x00\x00\x48\x39\xD1\x0F\x85\x1A\x01\x00\x00\x48\x8B\x46\x68\x48\x85\xC0\x0F\x84\x0D\x01\x00\x00\x48\x39\x83\x90\x04\x00\x00\x0F\x85\x00\x01\x00\x00\x48\x8B\x4E\x70\x48\x85\xC9\x0F\x84\xF3\x00\x00\x00\x48\x39\x48\x10\x0F\x85\xE9\x00\x00\x00\x48\x39\x98\x60\x01\x00\x00\x0F\x85\xDC\x00\x00\x00\x66\x81\xB8\x6B\x01\x00\x00\x01\x01\x0F\x85\xCD\x00\x00\x00\x48\x8B\x46\x78\x48\x39\x83\x20\x06\x00\x00\x0F\x85\xBC\x00\x00\x00\x44\x8B\x66\x24\x41\x83\xFC\x20\x0F\x87\xAE\x00\x00\x00\x31\xC9\x31\xD2\x44\x39\xE1\x73\x50\x0F\xB7\x84\x4E\x00\x01\x00\x00\x85\xC0\x0F\x84\x95\x00\x00\x00\x67\x44\x8D\x80\x00\x28\xFF\xFF\x41\x81\xF8\x00\x08\x00\x00\x73\x24\x41\x81\xF8\x00\x04\x00\x00\x73\x7B\xFF\xC1\x44\x39\xE1\x73\x74\x0F\xB7\x84\x4E\x00\x01\x00\x00\x2D\x00\xDC\x00\x00\x3D\x00\x04\x00\x00\x73\x60\xFF\xC2\x83\xFA\x10\x77\x59\xFF\xC1\xEB\xAB\x3B\x56\x28\x75\x50\x48\x8D\x8E\x00\x01\x00\x00\x44\x89\xE2\x48\x8B\x46\x18\x48\x05\x90\xAC\x62\x00\xFF\xD0\x48\x85\xC0\x74\x35\x48\x89\x86\x80\x00\x00\x00\x48\x89\xD9\x48\x89\xC2\x45\x31\xC0\x48\x8B\x46\x18\x48\x05\x60\x03\xDC\x00\xFF\xD0\x48\x8B\x86\x80\x00\x00\x00\x48\x39\x83\x20\x06\x00\x00\x75\x09\xC7\x46\x20\x03\x00\x00\x00\xEB\x07\xC7\x46\x20\x04\x00\x00\x00\x48\x83\xC4\x28\x41\x5C\x5F\x5E\x5B\xC3"
local memberNameInput=(function()
-- NetworkString&lt;16&gt; stores Unicode scalar values, not UTF16 units or UTF8 bytes.
-- Return validated UTF16LE payload, unit count and scalar count; no target access.
return function(value)
  if type(value)~='string'then return nil,'type'end
  if #value&gt;64 then return nil,'length'end
  local units,scalars={},0
  local ok,reason=pcall(function()
    for _,cp in utf8.codes(value)do
      if cp==0 then error('nul',0)end
      if cp&gt;=0xD800 and cp&lt;=0xDFFF or cp&gt;0x10FFFF then error('unicode',0)end
      scalars=scalars+1
      if scalars&gt;16 then error('length',0)end
      if cp&lt;=0xFFFF then units[#units+1]=string.pack('&lt;I2',cp)
      else
        local pair=cp-0x10000
        units[#units+1]=string.pack('&lt;I2I2',0xD800+(pair&gt;&gt;10),0xDC00+(pair&amp;0x3FF))
      end
    end
  end)
  if not ok then
    if reason~='nul'and reason~='length'and reason~='unicode'then reason='unicode'end
    return nil,reason
  end
  local payload=table.concat(units)
  return payload,#payload//2,scalars
end

end)()
local memberNameImage=(function()
-- Portable private hook image. The mutable request is separate from both code blocks.
return function(context,cave,entry,wrapper,transaction,makeJump,original)
  local function need(ok,message)if not ok then error(message,0)end end
  for _,key in ipairs({'base','player','identity','runner'})do
    need(math.type(context[key])=='integer'and context[key]&gt;0,'Invalid member name context')
  end
  need(cave%0x1000==0 and #original==8 and #transaction&lt;=0x400,'Invalid member name image layout')
  local function patch(bytes,marker,value,count)
    local pattern=string.pack('&lt;I8',marker):gsub('(%W)','%%%1')
    local replacements=0
    bytes=bytes:gsub(pattern,function()replacements=replacements+1;return string.pack('&lt;I8',value)end)
    need(replacements==count,'Member name code marker differs')
    return bytes
  end
  wrapper=patch(wrapper,0x1122334455667788,cave+0x500,3)
  wrapper=patch(wrapper,0x2233445566778899,cave+0x100,1)
  wrapper=wrapper..original
  wrapper=wrapper..makeJump(cave+#wrapper,entry+#original)
  need(#wrapper&lt;=0x100,'Member name wrapper exceeds its reserved range')
  local image=wrapper..string.rep('\0',0x100-#wrapper)..transaction
  image=image..string.rep('\0',0x500-#image)
    ..string.pack('&lt;I8I8I8I8',context.player,context.identity,context.runner,context.base)
    ..string.rep('\0',0x160)
  return image,{controlOffset=0x500,busyOffset=0x588,codeOffset=0x100,codeLength=#transaction,size=0x680}
end

end)()
-- Private transaction feature, activated only by the member name editor.
local signature={0x40,0x53,0x41,0x56,0x48,0x83,0xEC,0x58,0x80,0x3D,0x7F,0x76,0x24,0x05,0x00,0x48}
local original={table.unpack(signature,1,8)}
local function contextForName()
  local scope=currentMembers(false)
  if not scope or not scope.settlement then return end
  local context=scope.context
  context.scope=scope;context.token=scope.token
  return context
end
local function image(context,cave,entry)
  return memberNameImage(context,cave,entry,memberNameWrapperInstructions,memberNameTransactionInstructions,
    makeJump,string.char(table.unpack(original)))
end
local feature=entryFeature('memberNameEditing',0xDC0E40,original,signature,contextForName,image,nil,0x180,
  function(cave)
    need(readInteger(cave+0x588)==0,'A member name change is finishing. Retry cleanup.','名前変更の完了後に解除を再試行してください。')
  end,0x500)
feature.recoveryRecord.extraCode={offset=0x100,length=#memberNameTransactionInstructions,
  previous={[0x680]={offset=0x100,length=654}}}
ASKA.F.memberNameEditing=feature
local pendingName
local stopName=feature.off
feature.off=function()
  stopName()
  pendingName=nil
end
local definition=ASKA.EDITORS.memberEditor
local previousContext=definition.context
definition.context=function(id)
  local target=previousContext(id)
  if not target then return end
  local pointer=follow(target.address,0x620)or 0
  local value=''
  if pointer~=0 then
    local length=readInteger(pointer+0x10)
    if type(length)~='number'or length&lt;0 or length&gt;256 then return target end
    value=readString(pointer+0x14,length*2,true)
    if type(value)~='string'then return target end
  end
  target.memberName,target.memberNamePointer=value,pointer
  return target
end
local nameField={en='Custom name',ja='名前の変更',kind='string',maxLength=1024,memberName=true,
  available=function(target)return type(target.memberName)=='string'end,
  read=function(target)return need(target.memberName,'Name is unavailable.','名前を取得できません。')end}
local previousFields=definition.fieldsFor
definition.fieldsFor=function(fields,target)
  local result=previousFields(fields,target)
  result[#result+1]=nameField
  return result
end
local previousCommit=ASKA.commit
function ASKA.commit(info,value,before,queuedStat)
  if not info.field.memberName then return previousCommit(info,value,before,queuedStat)end
  local session=info.session
  need(ASKA.sessions[session.parent.ID]==session and session.rows[info.mr.ID]==info,
    'Editor was closed.','エディタは閉じられています。')
  value=ASKA.normalized(info.field,value)
  local payload,units,scalars=memberNameInput(value)
  need(payload,'Use a valid name of at most 16 Unicode characters without NUL.',
    'NULを含まない、16文字以内の有効な名前を入力してください。')
  need(not pendingName,'A member name change is pending.','前の名前変更が完了していません。')
  if value==before then ASKA.paintMirror(info,before);return end
  if not ASKA.active.memberNameEditing then ASKA.feature('memberNameEditing',true)end
  need(not ASKA.active.memberNameEditing.cleanup,'Name editing is being disabled.','名前変更の解除処理中です。')
  withTargetSuspended(function(handle)
    local target=ASKA.checkContext(session)
    need(target.settlement and target.memberName==before,'Name or target changed. Refresh first.','名前または対象が変化しました。再取得してください。')
    local context=need(contextForName(),'Member data is unavailable.','メンバー情報を取得できません。')
    local control=feature.memberControl()
    need(readQword(control)==context.player and readQword(control+8)==context.identity
      and readQword(control+0x10)==context.runner and readQword(control+0x18)==context.base,
      'Name editing context changed.','名前編集の対象状態が変化しました。')
    need(readInteger(control+0x20)==0 and readInteger(control+0x88)==0,
      'A member name change is pending.','前の名前変更が完了していません。')
    local data=string.pack('&lt;i4i4i4I8I8I8I8I8I8I8I8I8I8I8',units,scalars,0,
      target.address,target.objectIdentity,target.memberClass,target.guidAddress,target.settlement,
      target.manager,target.population,target.survival,target.survivalIdentity,target.memberNamePointer,0)
    checkedWrite(handle,control+0x24,{data:byte(1,#data)})
    local input=payload..string.rep('\0',64-#payload)
    checkedWrite(handle,control+0x100,{input:byte(1,#input)})
    -- Keep the request if publication changes memory but reports an error.
    pendingName={info=info,value=value}
    checkedWrite(handle,control+0x20,{1,0,0,0})
  end)
end
feature.task=function()
  local request=pendingName
  if not request then ASKA.feature('memberNameEditing',false);return end
  if not request.terminal then
    local ok,reason=pcall(withTargetSuspended,function()
      local control=feature.memberControl()
      if readInteger(control+0x88)~=0 then return end
      local status=readInteger(control+0x20)
      if status==0 and request.observed then status=request.observed end
      if status==3 or status==4 then request.observed=status end
      local session=request.info.session
      local live=ASKA.sessions[session.parent.ID]==session and session.rows[request.info.mr.ID]==request.info
      if status==1 and not live then status=4 end
      if status==0 then status=4 end
      if status~=3 and status~=4 then return end
      pcall(writeInteger,control+0x20,0)
      need(readInteger(control+0x20)==0,'Cannot clear the name result.','名前変更の結果を消去できません。')
      request.terminal=status
    end)
    if not ok then
      if not request.reported then ASKA.msg(tostring(reason),tostring(reason));request.reported=true end
      return
    end
  end
  if not request.terminal then return end
  -- Direct cleanup retries retain a terminal result even if the entry was restored.
  if not pcall(feature.off)then return end
  ASKA.feature('memberNameEditing',false)
  local info=request.info;local session=info.session
  local live=ASKA.sessions[session.parent.ID]==session and session.rows[info.mr.ID]==info
  if live then
    local ok,actual=pcall(function()return info.field.read(ASKA.checkContext(session))end)
    if ok then ASKA.paintMirror(info,actual)end
    if request.terminal==4 then
      ASKA.msg('Name change was rejected. Refresh before retrying.','名前変更が拒否されました。再取得してから再試行してください。')
    elseif ok and actual~=request.value then
      ASKA.msg('The game applied a different name.','ゲーム側が別の名前を適用しました。')
    end
  end
end

end)()

do
local forgeUpdateWrapperInstructions = "\x48\x89\x5C\x24\x10\x9C\x50\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\x80\xB8\xC0\x00\x00\x00\x02\x0F\x85\x95\x00\x00\x00\x48\x83\xB8\xA8\x00\x00\x00\x00\x0F\x84\x87\x00\x00\x00\x48\x83\xB8\xB0\x00\x00\x00\x00\x74\x7D\xF0\xFF\x40\x18\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x81\xEC\x88\x00\x00\x00\x0F\x11\x44\x24\x20\x0F\x11\x4C\x24\x30\x0F\x11\x54\x24\x40\x0F\x11\x5C\x24\x50\x0F\x11\x64\x24\x60\x0F\x11\x6C\x24\x70\x48\x8B\x90\xA8\x00\x00\x00\xFF\x90\xB0\x00\x00\x00\x0F\x10\x44\x24\x20\x0F\x10\x4C\x24\x30\x0F\x10\x54\x24\x40\x0F\x10\x5C\x24\x50\x0F\x10\x64\x24\x60\x0F\x10\x6C\x24\x70\x48\x81\xC4\x88\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x48\xB8\x99\x88\x77\x66\x55\x44\x33\x22\xF0\xFF\x48\x18\x58\x9D"
-- Independent forge owner/dispatch entry. It does not borrow the character
-- editor hook, so item-name workspace changes cannot move its owner anchor.
local key='forgeRuntimeDispatch'
local controlOffset=0x400
local original={0x48,0x89,0x5C,0x24,0x10}
local signature={0x48,0x89,0x5C,0x24,0x10,0x57,0x48,0x83,0xEC,0x70,0x80,0x3D,0x65,0xA3,0x48,0x05,0}
local function ownerMatches(cave,context)
  local control=cave+controlOffset
  return readQword(control)==context.player and readQword(control+8)==context.identity
    and readQword(control+0x10)==context.runner
end
local function emptyAndIdle(cave)
  local control=cave+controlOffset
  need(readInteger(control+0x18)==0,'Forge callback is finishing. Retry cleanup.','鍛冶炉の呼出し完了後に解除を再試行してください。')
  local anchor=bytes(control+0xA8,0x58)
  need(anchor and #anchor==0x58 and string.char(table.unpack(anchor))==string.rep('\0',0x58),
    'Forge runtime still owns this update entry.','鍛冶炉の処理領域を解放するまで呼出し入口を保持します。')
end
local function code(context,cave,entry)
  local marker=string.pack('&lt;I8',0x2233445566778899)
  local value=forgeUpdateWrapperInstructions
  local first,replacements=1,0
  while true do
    local pos=value:find(marker,first,true)
    if not pos then break end
    value=value:sub(1,pos-1)..string.pack('&lt;I8',cave+controlOffset)..value:sub(pos+8)
    first=pos+8;replacements=replacements+1
  end
  need(replacements==2,'Forge update layout differs.','鍛冶炉の呼出し配置が一致しません。')
  value=value..makeJump(cave+#value,entry+5)
  need(#value&lt;=controlOffset,'Forge update code exceeds its reserved range.','鍛冶炉の呼出し処理が確保範囲を超えています。')
  return value..string.rep('\0',controlOffset-#value)
    ..string.pack('&lt;I8I8I8',context.player,context.identity,context.runner)..string.rep('\0',0xE8)
end
local feature=entryFeature(key,0xB7D120,original,signature,soloContext,code,nil,0x100,emptyAndIdle,controlOffset)
local enable,disable=feature.on,feature.off
local adopting=false
feature.on=function()
  if adopting then return feature.retainExisting(adopting)end
  withTargetSuspended(function()
    local installed,control=pcall(feature.memberControl)
    if installed then emptyAndIdle(control-controlOffset)end
    enable()
  end)
end
feature.off=function()
  withTargetSuspended(function()
    local installed,control=pcall(feature.memberControl)
    -- Check BEFORE restoring the entry: pending recipes still need callbacks.
    if installed then emptyAndIdle(control-controlOffset)end
    disable()
  end)
end
local function discover(previousWorld)
  ASKA.require()
  local entry=ASKA.module().Address+0xB7D120
  if equal(bytes(entry,#signature),signature) then return end
  local result
  withTargetSuspended(function()
    local context=need(soloContext(),'Player data is not ready.','プレイヤーデータの準備ができていません。')
    local entry=context.base+0xB7D120
    local current=bytes(entry,#signature)
    if equal(current,signature)then return end
    local cave=recoverableSite(feature.recoveryRecord,context.base,entry,current)
    if not ownerMatches(cave,context)then
      need(previousWorld==true,'Retained forge update belongs to another player.','残留した鍛冶炉の呼出しは別のプレイヤー情報です。')
      local raw=bytes(cave+controlOffset+0xA8,0x58)
      local descriptor=raw and feature.decodeAnchor and feature.decodeAnchor(string.char(table.unpack(raw)))
      need(descriptor and descriptor.flags==1 and descriptor.effectivePhase&gt;=1 and descriptor.effectivePhase&lt;=6
        and ownerMatches(cave,descriptor),'Previous-world forge update ownership differs.','以前のワールドの鍛冶炉所有情報を照合できません。')
    end
    result={control=cave+controlOffset,root=cave,epoch=ASKA.epoch,owned=true,retained=true}
  end)
  return result
end
function feature.acquireOwner(previousWorld)
  local retained=discover(previousWorld)
  if not ASKA.active[key]then
    if retained then
      local saved=string.char(table.unpack(bytes(retained.control,0x100)))
      adopting=function(cave)
        return cave==retained.root and string.char(table.unpack(bytes(cave+controlOffset,0x100)))==saved
      end
    else adopting=false end
    local ok,reason=pcall(ASKA.feature,key,true)
    adopting=false
    if not ok then error(reason,0)end
  end
  local control=feature.memberControl()
  return {control=control,root=control-controlOffset,epoch=ASKA.epoch,owned=true,retained=retained~=nil}
end
feature.discoverOwner=discover
function feature.releaseOwner(owner)
  local retained=feature.retainedAllocation()
  need(retained and owner and owner.control==retained.cave+controlOffset and owner.epoch==retained.epoch,
    'Forge update ownership changed.','鍛冶炉の呼出し所有情報が変化しました。')
  ASKA.feature(key,false);return true
end
ASKA.F[key]=feature
ASKA.forgeDispatchOwner=feature

end

do
local ForgeModules={}
ForgeModules.manifest=(function()
-- Prototype immutable runtime record. Not installed/adopted by public CT.
-- The expected spec MUST be regenerated from trusted build/context, never accepted
-- from this self-checksummed header. verify() is read-only, not authorization to free.
local MAGIC,VERSION,SIZE='ASKAFG01',1,144
local function need(ok,msg)if not ok then error(msg,0)end return ok end
local function checksum(bytes)
 local sum=2166136261
 for i=1,#bytes do sum=((sum ~ bytes:byte(i))*16777619)&amp;0xFFFFFFFF end
 return sum
end
local function canonical(spec)
 need(type(spec.build)=='string'and #spec.build==32,'Invalid forge build identity')
 for _,key in ipairs({'base','root','size','generation','player','identity','runner','villager','recipe','forge'})do
  need(math.type(spec[key])=='integer'and spec[key]&gt;0,'Invalid forge manifest field: '..key)
 end
 need(spec.root&gt;=0x10000 and spec.root&lt;0x800000000000 and spec.root%0x1000==0
  and spec.size&gt;=0x2000 and spec.size%0x1000==0 and spec.root+spec.size&lt;0x800000000000,
  'Invalid forge runtime allocation')
 need(type(spec.blocks)=='table'and #spec.blocks&gt;0 and type(spec.plans)=='table'and #spec.plans&gt;0,'Incomplete forge manifest')
 local parts,previous={},0
 for _,block in ipairs(spec.blocks)do
  need(math.type(block.offset)=='integer'and type(block.bytes)=='string'and #block.bytes&gt;0
   and block.offset&gt;=previous and block.offset+#block.bytes&lt;=spec.size
   and(block.offset+#block.bytes&lt;=0xF00 or block.offset&gt;=0x1000),'Invalid forge immutable block')
  parts[#parts+1]=string.pack('&lt;I8I8',block.offset,#block.bytes)..block.bytes
  previous=block.offset+#block.bytes
 end
 for _,plan in ipairs(spec.plans)do
  need(math.type(plan.address)=='integer'and type(plan.original)=='string'and #plan.original&gt;=5
   and type(plan.patch)=='string'and #plan.patch==#plan.original
   and type(plan.signature)=='string'and plan.signature:sub(1,#plan.original)==plan.original,
   'Invalid forge manifest entry')
  parts[#parts+1]=string.pack('&lt;I8I4I4',plan.address,#plan.original,#plan.signature)..plan.original..plan.patch..plan.signature
 end
 return table.concat(parts)
end
local function encode(spec)
 local payload=string.pack('&lt;c8I4I4I8I8I8I8I8I8I8I8I8I8I4I4c32I4',
  MAGIC,VERSION,SIZE,spec.base,spec.root,spec.size,spec.generation,spec.player,spec.identity,spec.runner,
  spec.villager,spec.recipe,spec.forge,#spec.blocks,#spec.plans,spec.build,checksum(canonical(spec)))
 need(#payload==SIZE-4,'Forge manifest layout mismatch')
 return payload..string.pack('&lt;I4',checksum(payload))
end
local function verifyImage(read,spec)
 local expected=encode(spec)
 need(read(spec.root+0xF00,SIZE)==expected,'Forge runtime manifest differs')
 for _,block in ipairs(spec.blocks)do
  need(read(spec.root+block.offset,#block.bytes)==block.bytes,'Forge immutable runtime code differs')
 end
 return true
end
local function verify(read,spec)
 verifyImage(read,spec)
 local function value(offset,format,size)
  local bytes=read(spec.root+offset,size)
  need(type(bytes)=='string'and #bytes==size,'Incomplete forge dynamic state')
  return string.unpack(format,bytes)
 end
 local enabled,status=value(0xE0,'&lt;i4',4),value(0xE8,'&lt;i4',4)
 local busy,retiring,scope=value(0x80,'&lt;i4',4),value(0xE4,'&lt;i4',4),value(0x188,'&lt;i4',4)
 local pointer,capacity,request=value(0x90,'&lt;I8',8),value(0x98,'&lt;i4',4),value(0x9C,'&lt;i4',4)
 need((enabled==0 or enabled==1)and status&gt;=0 and status&lt;=4 and busy&gt;=0 and retiring&gt;=0 and scope&gt;=0,'Invalid forge dynamic counters')
 need(capacity&gt;=0 and request&gt;=0 and(capacity==0 and pointer==0 or capacity&gt;0 and pointer&gt;=0x10000 and pointer&lt;0x800000000000 and pointer%8==0),'Invalid forge dynamic ledger header')
 local manualState,manualRetained=0,false
 local closeBusy=0
 if spec.size&gt;=0x22000 then
  closeBusy=value(0x1B318,'&lt;i4',4)
  local mismatch=value(0x1B28C,'&lt;I4',4)
  need(closeBusy&gt;=0 and (mismatch==0 or mismatch==1),'Invalid forge thread/close state')
 end
 if spec.size&gt;=0x1C000 then
  manualState=value(0x1B200,'&lt;i4',4)
  local sessionHandle,ownerHandle=value(0x1B230,'&lt;I8',8),value(0x1B238,'&lt;I8',8)
  local sequence,result,reserved=value(0x1B228,'&lt;I8',8),value(0x1B240,'&lt;i4',4),value(0x1B244,'&lt;i4',4)
  manualRetained=sessionHandle~=0 or ownerHandle~=0
  need(manualState&gt;=0 and manualState&lt;=9 and sequence&gt;=0 and result&gt;=0 and result&lt;=2
   and (spec.size&gt;=0x1E000 and reserved&gt;=0 or reserved==0),
   'Invalid manual request state')
  need(not manualRetained or manualState==2 or manualState==8,'Untracked manual request references')
 end
 return {root=spec.root,size=spec.size,generation=spec.generation,ledger=pointer,capacity=capacity,requested=request,
  enabled=enabled,status=status,manualState=manualState,manualRetained=manualRetained,
  quiescent=busy==0 and retiring==0 and scope==0 and closeBusy==0 and manualState~=2 and not manualRetained}
end
return {size=SIZE,encode=encode,verifyImage=verifyImage,verify=verify}

end)()
ForgeModules.image=(function()
-- Isolated candidate selector; old images are explicit cleanup-only.
local previous=(function()
-- Generated by export_forge_bundle_image.py; uninstalled portable forge prototype.
-- Native instructions/entry contracts are from the locally analyzed build.
local runtimeSize=139264
local templates={
{name="forge_ledger_grow",offset=512,bytes="\x53\x57\x41\x54\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x0F\x84\xA6\x01\x00\x00\x83\xBB\x80\x00\x00\x00\x01\x0F\x85\x99\x01\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\x8C\x01\x00\x00\x85\xD2\x0F\x8E\x84\x01\x00\x00\x89\xD7\x4C\x8B\xA3\x90\x00\x00\x00\x49\x81\xFC\x80\x00\x01\x00\x0F\x82\x6E\x01\x00\x00\x49\x81\xEC\x80\x00\x00\x00\x49\xF7\xC4\xFF\x0F\x00\x00\x0F\x85\x5A\x01\x00\x00\x48\xB8\x41\x53\x4B\x41\x46\x4C\x30\x31\x49\x39\x04\x24\x0F\x85\x46\x01\x00\x00\x4D\x39\x64\x24\x08\x0F\x85\x3B\x01\x00\x00\x48\xB8\x00\x10\x00\x00\x38\x00\x00\x00\x49\x39\x44\x24\x10\x0F\x85\x26\x01\x00\x00\x49\x81\x7C\x24\x18\x80\x00\x00\x00\x0F\x85\x17\x01\x00\x00\x49\x83\x7C\x24\x20\x70\x0F\x85\x0B\x01\x00\x00\x49\x81\x7C\x24\x28\xFF\xFF\xFF\x7F\x0F\x85\xFC\x00\x00\x00\x49\x39\x5C\x24\x30\x0F\x85\xF1\x00\x00\x00\x48\x8B\x83\xA0\x00\x00\x00\x49\x39\x44\x24\x38\x0F\x85\xDF\x00\x00\x00\x48\x8B\x03\x49\x39\x44\x24\x40\x0F\x85\xD1\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x49\x39\x44\x24\x48\x0F\x85\xBF\x00\x00\x00\x48\x8B\x43\x08\x49\x39\x44\x24\x50\x0F\x85\xB0\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x85\xC0\x0F\x8E\xA2\x00\x00\x00\x39\xC7\x0F\x8E\x80\x00\x00\x00\xBF\x01\x00\x00\x00\x39\xD7\x73\x11\x81\xFF\x00\x00\x00\x40\x73\x04\x01\xFF\xEB\xF0\xBF\xFF\xFF\xFF\x7F\x48\x8B\x83\x90\x01\x00\x00\x48\x85\xC0\x74\x74\x48\x8B\x00\x48\x85\xC0\x74\x6C\x89\xFA\x48\x6B\xD2\x70\x48\x81\xC2\x7F\x10\x00\x00\x48\x81\xE2\x00\xF0\xFF\xFF\x4C\x89\xE1\x41\xB8\x00\x10\x00\x00\x41\xB9\x04\x00\x00\x00\xFF\xD0\x4C\x39\xE0\x75\x42\x83\xBB\xE0\x00\x00\x00\x01\x75\x39\x49\x8D\x84\x24\x80\x00\x00\x00\x48\x39\x83\x90\x00\x00\x00\x75\x28\x3B\xBB\x98\x00\x00\x00\x7E\x06\x89\xBB\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0E\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5C\x5F\x5B\xC3",relocations={}},
{name="forge_recipe_preflight",offset=4096,bytes="\x48\x85\xC9\x0F\x84\xB5\x00\x00\x00\x48\x85\xD2\x0F\x84\xAC\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xA1\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x96\x00\x00\x00\x48\x83\x7A\x28\x00\x0F\x84\x8B\x00\x00\x00\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x7F\x45\x8B\x48\x18\x45\x85\xC9\x7E\x76\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x66\x48\x8B\x41\x10\x48\x85\xC0\x74\x5D\x48\x83\x78\x10\x00\x74\x56\x48\x8B\x00\x48\x85\xC0\x74\x4E\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x1F\x48\x3B\x42\x28\x74\x19\x48\x83\x7A\x38\x00\x74\x06\x48\x3B\x42\x38\x74\x0C\x48\x2D\x80\x15\x00\x00\x48\x3B\x42\x28\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\x94\x44\x89\xD8\xC3\x31\xC0\xC3",relocations={}},
{name="forge_task_recipe_scope",offset=8192,bytes="\x48\x85\xC9\x0F\x84\xFC\x01\x00\x00\x4D\x85\xC0\x0F\x84\xF3\x01\x00\x00\x4D\x89\xC2\x49\x83\x3A\x00\x0F\x84\xE6\x01\x00\x00\x49\x83\x7A\x08\x00\x0F\x84\xDB\x01\x00\x00\x49\x83\x7A\x10\x00\x0F\x84\xD0\x01\x00\x00\x49\x83\x7A\x18\x00\x0F\x84\xC5\x01\x00\x00\x48\x8B\x51\x38\x48\x85\xD2\x0F\x84\xB8\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xA8\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x9E\x01\x00\x00\x4C\x39\x1A\x0F\x85\x95\x01\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\x87\x01\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\x79\x01\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\x66\x01\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\x56\x01\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x49\x01\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x3C\x01\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x2F\x01\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x1F\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x14\x01\x00\x00\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x0F\x84\x04\x01\x00\x00\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\xF7\x00\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xAA\x00\x00\x00\x49\x39\xC3\x0F\x85\xA1\x00\x00\x00\x4C\x8B\x49\x60\x4D\x85\xC9\x0F\x84\x94\x00\x00\x00\x41\x83\xB9\x88\x00\x00\x00\x00\x0F\x8E\x86\x00\x00\x00\x49\x8B\x41\x68\x48\x85\xC0\x74\x7D\x48\x8B\x50\x20\x48\x85\xD2\x74\x74\x48\x83\x7A\x10\x00\x74\x6D\x49\x8B\x41\x48\x48\x85\xC0\x74\x64\x48\x39\x50\x10\x75\x5E\x44\x8B\x58\x18\x45\x85\xDB\x7F\x04\x44\x8B\x58\x1C\x45\x85\xDB\x7E\x4C\x49\x8B\x42\x18\x48\x85\xC0\x74\x43\x4C\x8B\x00\x4D\x85\xC0\x74\x3B\x41\xF6\xC0\x01\x75\x35\x48\x8B\x02\x48\x85\xC0\x74\x2D\x45\x0F\xB6\x98\x30\x01\x00\x00\x45\x85\xDB\x74\x20\x44\x38\x98\x30\x01\x00\x00\x72\x17\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0B\x4E\x39\x44\xD8\xF8\x75\x04\x48\x89\xD0\xC3\x31\xC0\xC3",relocations={}},
{name="forge_task_station_scope",offset=12288,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x30\x49\x89\xCC\x4D\x89\xC5\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x85\xC9\x0F\x84\x91\x01\x00\x00\x4D\x85\xC0\x0F\x84\x88\x01\x00\x00\xF0\x41\xFF\x85\x88\x01\x00\x00\xC7\x44\x24\x20\x01\x00\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x6A\x01\x00\x00\x49\x83\x7D\x20\x00\x0F\x84\x5F\x01\x00\x00\x49\x83\x7D\x30\x00\x0F\x84\x54\x01\x00\x00\x41\xFF\x55\x20\x48\x85\xC0\x0F\x84\x47\x01\x00\x00\x48\x89\xC3\x49\x8B\x55\x48\x48\x85\xD2\x0F\x84\x37\x01\x00\x00\x48\x8B\x42\x30\x48\x85\xC0\x0F\x84\x2A\x01\x00\x00\x48\x89\xD9\xFF\xD0\x85\xC0\x0F\x84\x1D\x01\x00\x00\x49\x8B\x45\x28\x48\x85\xC0\x0F\x84\x10\x01\x00\x00\x4C\x8B\x38\x4D\x85\xFF\x0F\x84\x04\x01\x00\x00\x41\xF6\xC7\x01\x0F\x85\xFA\x00\x00\x00\x41\x0F\xB6\x87\x30\x01\x00\x00\x85\xC0\x0F\x84\xEA\x00\x00\x00\x49\x8B\x44\x24\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xD8\x00\x00\x00\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xC8\x00\x00\x00\x8B\x78\x18\x85\xFF\x0F\x8E\xBD\x00\x00\x00\x48\x8B\x70\x10\x48\x85\xF6\x0F\x84\xB0\x00\x00\x00\x3B\x7E\x18\x0F\x8F\xA7\x00\x00\x00\x48\x83\xC6\x20\x85\xFF\x0F\x84\x9B\x00\x00\x00\x48\x8B\x06\x48\x83\xC6\x08\xFF\xCF\x48\x85\xC0\x74\xEA\x4C\x8B\x70\x78\x4D\x85\xF6\x74\xE1\x49\x83\x7E\x10\x00\x74\xDA\x49\x8B\x06\x48\x85\xC0\x74\xD2\x41\x0F\xB6\x8F\x30\x01\x00\x00\x38\x88\x30\x01\x00\x00\x72\xC2\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\xB6\x4C\x39\x7C\xC8\xF8\x75\xAF\x49\x8B\x86\x98\x01\x00\x00\x48\x85\xC0\x74\xA3\x80\xB8\x40\x01\x00\x00\x01\x75\x9A\x49\x8B\x4D\x08\x48\x39\x88\xB8\x00\x00\x00\x75\x8D\x4C\x89\xF1\x48\x89\xDA\x45\x31\xC0\x41\xFF\x55\x30\x84\xC0\x0F\x84\x78\xFF\xFF\xFF\x4C\x89\xE1\x4D\x89\xE8\x41\xFF\x55\x20\x48\x39\xD8\x75\x0C\x41\x83\xBD\xE0\x00\x00\x00\x01\x75\x02\xEB\x02\x31\xC0\x83\x7C\x24\x20\x00\x74\x08\xF0\x41\xFF\x8D\x88\x01\x00\x00\x48\x83\xC4\x30\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_factory",offset=16384,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xFD\x01\x00\x00\x48\x85\xD2\x0F\x84\xF4\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xE8\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xDB\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xAE\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xA1\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x8E\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x81\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x73\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x60\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x45\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x38\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x2A\x01\x00\x00\x39\xC6\x0F\x8D\x18\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x14\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xF1\x00\x00\x00\x0F\x88\xFC\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xED\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xE2\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xB6\xFE\xFF\xFF\xFF\xC6\xE9\xAF\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_internal_recipe_scope",offset=20480,bytes="\x31\xC0\x48\x85\xC9\x0F\x84\x8E\x00\x00\x00\x80\x79\x59\x01\x0F\x85\x84\x00\x00\x00\x4C\x8B\x41\x60\x4D\x85\xC0\x74\x7B\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x72\x45\x8B\x58\x20\x45\x85\xDB\x78\x69\x45\x8B\x50\x28\x45\x85\xD2\x78\x60\x45\x39\xDA\x7F\x5B\x45\x29\xD3\x7E\x56\x48\x85\xD2\x74\x51\x44\x39\x5A\x18\x75\x4B\x4C\x8B\x4A\x10\x4D\x85\xC9\x74\x42\x45\x3B\x59\x18\x7F\x3C\x45\x31\xD2\x4F\x8B\x44\xD1\x20\x4D\x85\xC0\x74\x2F\x41\x8B\x48\x18\x85\xC9\x7E\x27\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x1E\x49\x83\x78\x10\x00\x75\x17\x49\x83\x78\x18\x00\x75\x10\x41\x39\x48\x30\x7C\x0A\x41\xFF\xC2\x45\x39\xDA\x72\xC9\xB0\x01\xC3",relocations={}},
{name="forge_recipe_register",offset=24576,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\xBA\x04\x00\x00\x48\x85\xD2\x0F\x84\xB1\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA2\x04\x00\x00\x41\xFF\x54\x24\x20\x48\x85\xC0\x0F\x84\x94\x04\x00\x00\x48\x89\xC3\x49\x39\x45\x30\x0F\x85\x87\x04\x00\x00\x49\x8B\x46\x38\x49\x39\x45\x38\x0F\x85\x79\x04\x00\x00\x4D\x8B\x7D\x18\x4D\x85\xFF\x0F\x84\x6C\x04\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x61\x04\x00\x00\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x44\x24\x28\x48\x85\xC0\x0F\x84\x4A\x04\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x3E\x04\x00\x00\x41\xF6\xC0\x01\x0F\x85\x34\x04\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\x28\x04\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x18\x04\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x0C\x04\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xFC\x03\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\xF1\x03\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xE1\x03\x00\x00\x48\x89\x44\x24\x30\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xCF\x03\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xBD\x03\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xAC\x03\x00\x00\x48\x89\x44\x24\x38\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\x97\x03\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\x8C\x03\x00\x00\x48\x8B\x40\x10\x48\x85\xC0\x0F\x84\x7F\x03\x00\x00\x3B\x48\x18\x0F\x8F\x76\x03\x00\x00\x31\xD2\x39\xCA\x0F\x8D\x6C\x03\x00\x00\x4C\x8B\x44\xD0\x20\xFF\xC2\x4D\x85\xC0\x74\xEC\x4D\x39\x78\x78\x75\xE6\x49\x8B\xAF\x58\x01\x00\x00\x48\x85\xED\x0F\x84\x4A\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xB6\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x18\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x06\x03\x00\x00\x0F\x85\x0C\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\xF1\x02\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xE2\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xD2\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xBF\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xAE\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\x96\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\x89\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x74\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x53\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x29\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x10\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDA\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xCE\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC5\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB7\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9B\x01\x00\x00\x49\x8B\x40\x08\x49\x3B\x84\x24\x88\x00\x00\x00\x0F\x85\x89\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x49\x8B\x84\x24\x88\x00\x00\x00\x48\x39\x46\x10\x0F\x85\x6F\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x65\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x4C\x89\xF1\x4D\x89\xE0\x41\xFF\x54\x24\x20\x48\x39\xD8\x0F\x85\x43\x01\x00\x00\x4D\x39\x7D\x18\x0F\x85\x39\x01\x00\x00\x49\x39\x5D\x30\x0F\x85\x2F\x01\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\x0E\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x01\x01\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xEF\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xE2\x00\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x3B\x44\x24\x38\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_recipe_resolve",offset=28672,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\xD9\x00\x00\x00\x48\x85\xD2\x0F\x84\xD0\x00\x00\x00\x48\x83\xBE\xB8\x00\x00\x00\x00\x0F\x84\xC2\x00\x00\x00\x8B\x03\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xB2\x00\x00\x00\x41\x89\xC5\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x0F\x85\x9E\x00\x00\x00\x48\x8B\x46\x08\x48\x39\x43\x48\x0F\x85\x90\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x0F\x84\x83\x00\x00\x00\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x78\x48\x39\x43\x08\x75\x72\x48\x89\xC7\x48\x8B\x4B\x60\x48\x85\xC9\x74\x66\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x5B\x48\x39\x43\x18\x75\x55\x49\x89\xC4\x44\x39\x2B\x75\x4D\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x75\x40\x48\x8B\x46\x08\x48\x39\x43\x48\x75\x36\x48\x8B\x47\x10\x48\x85\xC0\x74\x2D\x48\x39\x43\x10\x75\x27\x49\x8B\x44\x24\x20\x48\x85\xC0\x74\x1D\x48\x39\x43\x20\x75\x17\x48\x8B\x40\x10\x48\x85\xC0\x74\x0E\x48\x39\x43\x28\x75\x08\x48\x89\xF8\x4C\x89\xE2\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_retire",offset=32768,bytes="\x53\x56\x57\x48\x83\xEC\x20\x4C\x89\xC3\x4D\x85\xC0\x0F\x84\x53\x01\x00\x00\xF0\xFF\x83\xE4\x00\x00\x00\x48\x85\xC9\x0F\x84\x38\x01\x00\x00\x48\x85\xD2\x0F\x84\x2F\x01\x00\x00\x4D\x85\xC0\x0F\x84\x26\x01\x00\x00\x83\x7A\x30\x00\x0F\x85\x1C\x01\x00\x00\x48\x83\x7A\x10\x00\x0F\x85\x11\x01\x00\x00\x49\x83\xB8\xB0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x45\x8B\x88\x98\x00\x00\x00\x45\x85\xC9\x0F\x8E\xF3\x00\x00\x00\x4D\x8B\x90\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xE3\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xC5\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xBB\x00\x00\x00\x49\x39\x52\x18\x0F\x85\xB1\x00\x00\x00\x4C\x8B\x59\x10\x4D\x85\xDB\x0F\x84\xB1\x00\x00\x00\x4D\x39\x5A\x10\x0F\x85\x9A\x00\x00\x00\x4C\x8B\x5A\x20\x4D\x85\xDB\x0F\x84\x9A\x00\x00\x00\x4D\x39\x5A\x20\x0F\x85\x83\x00\x00\x00\x4D\x8B\x5B\x10\x4D\x85\xDB\x0F\x84\x83\x00\x00\x00\x4D\x39\x5A\x28\x75\x70\x4D\x8B\x58\x08\x4D\x39\x5A\x48\x75\x66\x4D\x8B\x98\xA0\x00\x00\x00\x4D\x39\x5A\x50\x75\x59\x41\xBB\x03\x00\x00\x00\xF0\x45\x0F\xB1\x1A\x74\x0B\x83\xF8\x02\x0F\x84\x6D\xFF\xFF\xFF\xEB\x41\x4C\x89\xD6\x48\x8B\x4E\x60\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x48\x8B\x4E\x40\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x49\x89\xF2\x31\xC0\xB9\x0D\x00\x00\x00\x49\x89\x04\xCA\xFF\xC9\x75\xF8\x41\xC7\x02\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x0F\x49\x83\xC2\x70\x41\xFF\xC9\x0F\x85\x1D\xFF\xFF\xFF\x31\xC0\xF0\xFF\x8B\xE4\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_cancel",offset=36864,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x28\x48\x89\xCB\x48\x89\xD5\x4D\x89\xC4\x48\x85\xC9\x0F\x84\x96\x01\x00\x00\x48\x85\xD2\x0F\x84\x8D\x01\x00\x00\x4D\x85\xC0\x0F\x84\x84\x01\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x77\x01\x00\x00\x49\x3B\x44\x24\x30\x0F\x85\x6C\x01\x00\x00\x48\x8B\x42\x20\x49\x3B\x44\x24\x38\x0F\x85\x5D\x01\x00\x00\x48\x85\xC0\x0F\x84\x54\x01\x00\x00\x48\x8B\x48\x10\x49\x3B\x4C\x24\x40\x0F\x85\x45\x01\x00\x00\x48\x85\xC9\x0F\x84\x3C\x01\x00\x00\x80\x7D\x59\x01\x0F\x85\x32\x01\x00\x00\x83\x7D\x30\x00\x0F\x8E\x28\x01\x00\x00\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x18\x01\x00\x00\x48\x39\x45\x10\x0F\x85\x0E\x01\x00\x00\x48\x8B\x83\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xFE\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xF1\x00\x00\x00\x49\x8B\x4C\x24\x48\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xD6\x00\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\xC9\x00\x00\x00\x48\x8B\x7D\x48\x48\x85\xFF\x0F\x84\xBC\x00\x00\x00\x48\x8B\x77\x78\x48\x85\xF6\x74\x25\x8B\x4E\x18\x85\xC9\x0F\x8E\xA8\x00\x00\x00\x48\x83\xC6\x20\x85\xC9\x0F\x84\x9C\x00\x00\x00\x48\x8B\x3E\x48\x83\xC6\x08\xFF\xC9\x48\x85\xFF\x74\xEA\x49\x8B\x44\x24\x28\x48\x39\x47\x10\x75\x06\x48\x39\x5F\x20\x74\x07\x48\x85\xF6\x75\xD4\xEB\x76\x48\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x74\x68\x49\x89\xC5\x48\x8B\x48\x10\x48\x85\xC9\x74\x5C\x8B\x41\x20\x85\xC0\x78\x55\x8B\x51\x28\x85\xD2\x78\x4E\x39\xC2\x7F\x4A\x39\xD0\x74\x1E\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x74\x37\x48\x89\xC2\x48\x89\xE9\x41\xFF\x54\x24\x10\x84\xC0\x74\x28\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x18\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x20\x83\x7D\x30\x00\x75\x0E\x48\x83\x7D\x10\x00\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_recipe_cancel_owned",offset=40960,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x70\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\x36\x01\x00\x00\x48\x85\xD2\x0F\x84\x2D\x01\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x1F\x01\x00\x00\x48\x83\xBE\xC8\x00\x00\x00\x00\x0F\x84\x11\x01\x00\x00\x48\x83\xBE\xD0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x48\x83\xBE\xD8\x00\x00\x00\x00\x0F\x84\xF5\x00\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x0F\xB1\x8E\x80\x00\x00\x00\x0F\x85\xE4\x00\x00\x00\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x0F\x84\xC1\x00\x00\x00\x48\x85\xD2\x0F\x84\xB8\x00\x00\x00\x48\x89\xC7\x49\x89\xD4\x41\x83\x7C\x24\x30\x00\x75\x08\x49\x83\x7C\x24\x10\x00\x74\x7E\x48\x8B\x86\xD8\x00\x00\x00\xB9\x05\x00\x00\x00\x48\x8B\x14\xC8\x48\x89\x54\xCC\x20\xFF\xC9\x79\xF3\x48\x83\xBE\xE0\x01\x00\x00\x00\x74\x1D\x48\x8B\x07\x48\x85\xC0\x74\x77\x48\x8B\x80\xB8\x03\x00\x00\x48\x3B\x86\xE0\x01\x00\x00\x75\x05\x48\x89\x44\x24\x48\x48\x8B\x43\x10\x48\x89\x44\x24\x50\x48\x8B\x43\x20\x48\x89\x44\x24\x58\x48\x8B\x43\x28\x48\x89\x44\x24\x60\x48\x8B\x46\x08\x48\x89\x44\x24\x68\x48\x89\xF9\x4C\x89\xE2\x4C\x8D\x44\x24\x20\xFF\x96\xC8\x00\x00\x00\x85\xC0\x74\x29\x83\x3B\x00\x74\x13\x48\x89\xF9\x4C\x89\xE2\x49\x89\xF0\xFF\x96\xD0\x00\x00\x00\x85\xC0\x74\x11\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x13\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\x31\xC0\xEB\x05\xB8\x02\x00\x00\x00\x48\x83\xC4\x70\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_cancel_all",offset=45056,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x75\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x75\x62\x44\x8B\xA3\x98\x00\x00\x00\x45\x85\xE4\x78\x56\x74\x4D\x48\x8B\xB3\x90\x00\x00\x00\x48\x85\xF6\x74\x48\x48\x83\xBB\xF0\x00\x00\x00\x00\x74\x3E\x31\xFF\x45\x31\xED\x8B\x06\x85\xC0\x74\x1C\x83\xF8\x02\x77\x11\x48\x89\xF1\x48\x89\xDA\xFF\x93\xF0\x00\x00\x00\x83\x3E\x00\x74\x06\x41\xBD\x01\x00\x00\x00\x48\x83\xC6\x70\xFF\xC7\x44\x39\xE7\x7C\xD3\x45\x85\xED\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_fetch_material_gate",offset=49152,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x21\x48\x8B\x45\x40\x48\x85\xC0\x74\x18\xC7\x40\x10\x0A\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xA5\x6B\x91\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x49\x8B\x4F\x60\x48\x85\xC9\xE9\x16\x71\x91\xF9",relocations={{17,8,"root",0,-1},{27,8,"root",12288,-1},{79,4,"base",9579512,83},{103,4,"base",9580929,107}}},
{name="forge_return_material_gate",offset=53248,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x83\x78\x18\x00\x75\x3D\x48\x89\xF1\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x17\x48\x39\x47\x30\x75\x11\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC7\x89\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x83\x78\x18\x00\x0F\x84\x25\x8B\x94\xF9\xE9\xAC\x89\x94\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",12288,-1},{75,4,"base",9787926,79},{97,4,"base",9788298,101},{102,4,"base",9787926,106}}},
{name="forge_return_register_gate",offset=57344,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x85\xFF\x74\x48\x48\x8B\x47\x28\x48\x85\xC0\x74\x3F\x83\x78\x18\x00\x75\x39\x48\x83\xBC\x24\xB8\x00\x00\x00\x00\x74\x2E\x48\x89\xF1\x48\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x60\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x83\xF8\x02\x74\x30\x83\xF8\x01\x74\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x85\xFF\x0F\x84\xCB\x7E\x94\xF9\xE9\xBF\x7C\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x1C\x7A\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\x44\x24\x78\xC7\x40\x10\x0A\x00\x00\x00\xE9\xF8\x7C\x94\xF9",relocations={{51,8,"root",0,-1},{61,8,"root",24576,-1},{106,4,"base",9789241,110},{111,4,"base",9788722,115},{128,4,"base",9788064,132},{157,4,"base",9788825,161}}},
{name="forge_owned_ingredient_scope",offset=61440,bytes="\x48\x85\xC9\x0F\x84\x70\x01\x00\x00\x48\x85\xD2\x0F\x84\x67\x01\x00\x00\x4D\x85\xC0\x0F\x84\x5E\x01\x00\x00\x4D\x85\xC9\x0F\x84\x55\x01\x00\x00\x83\x7A\x30\x00\x0F\x8E\x4B\x01\x00\x00\x48\x8B\x81\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x3B\x01\x00\x00\x48\x39\x42\x10\x0F\x85\x31\x01\x00\x00\x48\x8B\x81\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\x21\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x14\x01\x00\x00\x4D\x8B\x51\x08\x4D\x85\xD2\x0F\x84\x07\x01\x00\x00\x4C\x39\x90\xB8\x00\x00\x00\x0F\x85\xFA\x00\x00\x00\x41\x83\xBA\x80\x01\x00\x00\x01\x0F\x85\xEC\x00\x00\x00\x45\x8B\x99\x98\x00\x00\x00\x45\x85\xDB\x0F\x8E\xDC\x00\x00\x00\x4D\x8B\x91\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xCC\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xAE\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xA4\x00\x00\x00\x49\x39\x52\x18\x0F\x85\x9A\x00\x00\x00\x49\x83\x7A\x40\x00\x0F\x84\x9C\x00\x00\x00\x49\x83\x7A\x60\x00\x0F\x84\x91\x00\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x84\x00\x00\x00\x49\x39\x42\x10\x75\x7E\x48\x8B\x42\x20\x48\x85\xC0\x74\x75\x49\x39\x42\x20\x75\x6F\x48\x8B\x40\x10\x48\x85\xC0\x74\x66\x49\x39\x42\x28\x75\x60\x48\x8B\x81\x58\x01\x00\x00\x49\x39\x42\x30\x75\x53\x48\x8B\x81\x98\x01\x00\x00\x49\x39\x42\x58\x75\x46\x49\x8B\x41\x08\x49\x39\x42\x48\x75\x3C\x49\x8B\x81\xA0\x00\x00\x00\x48\x85\xC0\x74\x30\x49\x39\x42\x50\x75\x2A\x49\x8B\x81\xD8\x00\x00\x00\x48\x85\xC0\x74\x1E\x48\x8B\x40\x10\x48\x85\xC0\x74\x15\x48\x89\xD1\x4C\x89\xC2\xFF\xE0\x49\x83\xC2\x70\x41\xFF\xCB\x0F\x85\x34\xFF\xFF\xFF\x31\xC0\xC3",relocations={}},
{name="forge_completion_consume_gate",offset=65536,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\x89\xF8\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x3B\x47\x18\x0F\x8D\xD8\xC2\xBB\xF9\xE9\x64\xC2\xBB\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC2\xC2\xBB\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{72,4,"base",12370724,76},{77,4,"base",12370613,81},{94,4,"base",12370724,98}}},
{name="forge_completion_retire_gate",offset=69632,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\xBC\x24\x08\x01\x00\x00\xE9\x47\xB6\xBB\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{69,4,"base",12371600,73}}},
{name="forge_player_cleanup_dispatch",offset=73728,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xD3\x48\x89\xCE\x48\x85\xD2\x0F\x84\x04\x02\x00\x00\x48\x85\xC9\x0F\x84\xFB\x01\x00\x00\x48\x39\x33\x75\x3E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x32\x48\x39\x46\x10\x75\x2C\x48\x8B\x43\x08\x48\x39\x46\x38\x75\x22\x48\x83\xBB\xF0\x01\x00\x00\x00\x74\x18\x48\x8B\x8B\xF8\x01\x00\x00\x48\x85\xC9\x74\x0C\x83\x79\x08\x00\x75\x06\xFF\x93\xF0\x01\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x41\x83\x38\x01\x75\x3C\x83\xBB\xE0\x00\x00\x00\x01\x75\x33\x48\x39\x33\x75\x2E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x22\x48\x39\x46\x10\x75\x1C\x48\x83\xBB\xD0\x01\x00\x00\x00\x74\x12\x48\x8B\x8B\xD8\x01\x00\x00\x48\x85\xC9\x74\x06\xFF\x93\xD0\x01\x00\x00\x48\x89\xF1\x83\xBB\x8C\x01\x00\x00\x00\x0F\x84\xB5\x00\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x39\x0B\x0F\x85\x9F\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x8F\x00\x00\x00\x48\x39\x41\x10\x0F\x85\x85\x00\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x74\x7C\x48\x39\x41\x38\x75\x76\x83\xB8\x80\x01\x00\x00\x01\x75\x6D\x83\xBB\x80\x00\x00\x00\x00\x75\x64\x83\xBB\xE4\x00\x00\x00\x00\x75\x5B\x83\xBB\x88\x01\x00\x00\x00\x75\x52\x48\x83\xBB\x90\x00\x00\x00\x00\x74\x48\x8B\x83\x8C\x01\x00\x00\x85\xC0\x7E\x3E\x3D\xFF\xFF\xFF\x7F\x74\x07\x8D\x50\xFF\x85\xD0\x75\x30\x3B\x83\x98\x00\x00\x00\x7E\x06\x89\x83\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0A\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xC7\x83\x8C\x01\x00\x00\x00\x00\x00\x00\x83\xBB\xE8\x00\x00\x00\x01\x0F\x85\x99\x00\x00\x00\x48\x39\x0B\x0F\x85\x90\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x70\x48\x39\x41\x10\x75\x6A\x48\x8B\x43\x08\x48\x85\xC0\x74\x61\x48\x39\x41\x38\x75\x5B\x83\xB8\x80\x01\x00\x00\x01\x75\x52\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x48\x83\xBB\x80\x00\x00\x00\x00\x75\x53\x83\xBB\xE4\x00\x00\x00\x00\x75\x4A\x83\xBB\x88\x01\x00\x00\x00\x75\x41\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x8B\xE8\x00\x00\x00\x75\x2D\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x85\xC0\x74\x0C\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xEB\x14\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="manual_cooking_scope",offset=77824,bytes="\x53\x56\x57\x48\x89\xCE\x48\x89\xD3\x48\x85\xC9\x0F\x84\x3B\x01\x00\x00\x48\x85\xD2\x0F\x84\x32\x01\x00\x00\x83\x7E\x28\x02\x0F\x85\x28\x01\x00\x00\x48\x8B\x0B\x48\x85\xC9\x0F\x84\x1C\x01\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\x0F\x01\x00\x00\x48\x39\x41\x10\x0F\x85\x05\x01\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x0F\x84\xF8\x00\x00\x00\x48\x39\x41\x38\x0F\x85\xEE\x00\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE1\x00\x00\x00\x48\x8B\x4E\x18\x48\x85\xC9\x0F\x84\xD4\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xC9\x00\x00\x00\x48\x8B\x03\x48\x39\x81\x98\x01\x00\x00\x0F\x85\xB9\x00\x00\x00\x48\x39\x88\x98\x01\x00\x00\x0F\x85\xAC\x00\x00\x00\x48\x8B\x53\x28\xE8\xAE\x00\x00\x00\x85\xC0\x0F\x84\x9B\x00\x00\x00\x4C\x8B\x46\x18\x4D\x8B\x88\x68\x02\x00\x00\x4D\x85\xC9\x0F\x84\x87\x00\x00\x00\x41\x80\xB9\x40\x01\x00\x00\x01\x75\x7D\x48\x8B\x43\x08\x49\x39\x81\xB8\x00\x00\x00\x75\x70\x48\x8B\x7E\x20\x48\x85\xFF\x74\x67\x48\x83\x7F\x10\x00\x74\x60\x4C\x39\x8F\x98\x01\x00\x00\x75\x57\x48\x89\xF9\x48\x8B\x53\x20\xE8\x56\x00\x00\x00\x85\xC0\x75\x10\x48\x89\xF9\x48\x8B\x53\x18\xE8\x46\x00\x00\x00\x85\xC0\x74\x37\x48\x83\xBF\x58\x01\x00\x00\x00\x74\x2D\x48\x8B\x47\x50\x48\x85\xC0\x74\x24\x8B\x50\x18\x85\xD2\x7E\x1D\x48\x8B\x40\x10\x48\x85\xC0\x74\x14\x3B\x50\x18\x7F\x0F\x31\xC9\x48\x39\x74\xC8\x20\x74\x0A\xFF\xC1\x39\xD1\x7C\xF3\x31\xC0\xEB\x03\x48\x89\xF8\x5F\x5E\x5B\xC3\x31\xC0\x48\x85\xD2\x74\x43\x4C\x8B\x1A\x4D\x85\xDB\x74\x3B\x41\xF6\xC3\x01\x75\x35\x4C\x8B\x11\x4D\x85\xD2\x74\x2D\x41\x0F\xB6\x8B\x30\x01\x00\x00\x85\xC9\x74\x21\x41\x38\x8A\x30\x01\x00\x00\x72\x18\x4D\x8B\x92\xC8\x00\x00\x00\x4D\x85\xD2\x74\x0C\x4D\x39\x5C\xCA\xF8\x75\x05\xB8\x01\x00\x00\x00\xC3",relocations={}},
{name="manual_cooking_recipe_scope",offset=81920,bytes="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\xC1\x01\x00\x00\x4D\x85\xC0\x0F\x84\xB8\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\xAD\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\xA2\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x97\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x8C\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x80\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\x6C\x01\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\x5B\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x4F\x01\x00\x00\xF6\xC2\x01\x0F\x85\x46\x01\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\x39\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x2A\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x1E\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x0E\x01\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x03\x01\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x0F\x84\xEF\x00\x00\x00\x48\x8B\x93\x80\x00\x00\x00\x48\x85\xD2\x74\x65\x48\x89\xF9\xE8\xEE\x00\x00\x00\x85\xC0\x74\x59\x48\x89\xE9\x48\x8B\x93\x88\x00\x00\x00\xE8\xDB\x00\x00\x00\x85\xC0\x0F\x84\xC0\x00\x00\x00\x48\x8B\x85\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xB0\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xA5\x00\x00\x00\x83\xBD\xD8\x00\x00\x00\x00\x0F\x8E\x98\x00\x00\x00\x48\x8B\x43\x60\x48\x85\xC0\x74\x0A\x83\x78\x44\x00\x0F\x85\x85\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x40\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_current_session",offset=86016,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x31\xFF\x31\xED\x48\x85\xC9\x0F\x84\xA4\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x99\x01\x00\x00\x48\x8B\x03\x48\x85\xC0\x0F\x84\x8D\x01\x00\x00\x48\x8B\x53\x10\x48\x85\xD2\x0F\x84\x80\x01\x00\x00\x48\x39\x50\x10\x0F\x85\x76\x01\x00\x00\x48\x8B\xB0\x98\x01\x00\x00\x48\x85\xF6\x0F\x84\x66\x01\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x5B\x01\x00\x00\x48\x39\x86\x98\x01\x00\x00\x0F\x85\x4E\x01\x00\x00\x48\x8B\x43\x28\x48\x85\xC0\x0F\x84\x41\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x35\x01\x00\x00\xF6\xC2\x01\x0F\x85\x2C\x01\x00\x00\x48\x8B\x06\x48\x85\xC0\x0F\x84\x20\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x11\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x05\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF5\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\xEA\x00\x00\x00\x48\x8B\x86\x88\x02\x00\x00\x48\x85\xC0\x0F\x84\xDA\x00\x00\x00\x44\x8B\x68\x18\x45\x85\xED\x0F\x8E\xCD\x00\x00\x00\x4C\x8B\x60\x10\x4D\x85\xE4\x0F\x84\xC0\x00\x00\x00\x45\x3B\x6C\x24\x18\x0F\x8F\xB5\x00\x00\x00\x45\x31\xF6\x4B\x8B\x44\xF4\x20\x48\x85\xC0\x0F\x84\x90\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x85\x00\x00\x00\x48\x89\x44\x24\x28\x48\x8B\x40\x50\x48\x85\xC0\x74\x77\x8B\x50\x18\x85\xD2\x0F\x88\x80\x00\x00\x00\x74\x6A\x4C\x8B\x78\x10\x4D\x85\xFF\x74\x75\x41\x3B\x57\x18\x7F\x6F\x89\x54\x24\x20\xC7\x44\x24\x24\x00\x00\x00\x00\x8B\x54\x24\x24\x49\x8B\x4C\xD7\x20\x48\x85\xC9\x74\x33\x48\x39\x71\x18\x75\x2D\x48\x89\x4C\x24\x30\x48\x89\xDA\xFF\x53\x30\x48\x85\xC0\x74\x1D\x48\x3B\x44\x24\x28\x75\x38\x48\x85\xFF\x74\x09\x48\x3B\x7C\x24\x30\x75\x2C\xEB\x08\x48\x8B\x7C\x24\x30\x48\x89\xC5\xFF\x44\x24\x24\x8B\x54\x24\x24\x3B\x54\x24\x20\x7C\xB1\x41\xFF\xC6\x45\x39\xEE\x0F\x8C\x56\xFF\xFF\xFF\x48\x89\xF8\x48\x89\xEA\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="manual_cooking_selected_recipe",offset=90112,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x45\x89\xC5\x4D\x89\xCE\x48\x85\xDB\x0F\x84\x98\x00\x00\x00\x4D\x85\xF6\x0F\x84\x8F\x00\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x7B\x58\x00\x74\x7D\xFF\x53\x30\x48\x85\xC0\x74\x75\x48\x89\xC7\x48\x8B\x6B\x38\x48\x85\xED\x74\x69\x48\x8B\x6D\x00\x48\x85\xED\x74\x60\x40\xF6\xC5\x01\x75\x5A\x48\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x74\x17\x48\x83\x78\x10\x00\x74\x10\x48\x8B\x48\x18\xE8\x51\x00\x00\x00\x72\x3C\x48\x85\xC0\x75\x13\x48\x8B\x8F\xE0\x00\x00\x00\xE8\x3E\x00\x00\x00\x72\x29\x48\x85\xC0\x74\x24\x49\x89\xC0\x48\x89\xF1\x48\x89\xDA\xFF\x53\x58\x48\x85\xC0\x74\x13\x48\x39\xFA\x75\x0E\x4C\x39\x70\x10\x75\x08\x44\x39\x68\x18\x75\x02\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x70\x44\x8B\x51\x18\x45\x85\xD2\x78\x67\x74\x61\x4C\x8B\x59\x10\x4D\x85\xDB\x74\x5C\x45\x3B\x53\x18\x7F\x56\x31\xD2\x49\x8B\x44\xD3\x20\x48\x85\xC0\x74\x4A\x4C\x39\x70\x10\x75\x39\x44\x39\x68\x18\x75\x33\x48\x8B\x08\x48\x85\xC9\x74\x36\x44\x0F\xB6\x85\x30\x01\x00\x00\x45\x85\xC0\x74\x29\x44\x38\x81\x30\x01\x00\x00\x72\x15\x48\x8B\x89\xC8\x00\x00\x00\x48\x85\xC9\x74\x14\x4A\x39\x6C\xC1\xF8\x75\x02\xF8\xC3\xFF\xC2\x44\x39\xD2\x7C\xB0\x31\xC0\xF8\xC3\x31\xC0\xF9\xC3",relocations={}},
{name="manual_cooking_register",offset=94208,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x87\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x78\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x69\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x58\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x44\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x90\x80\x00\x00\x00\x48\x85\xD2\x74\x28\x4C\x89\xF9\xE8\x81\x07\x00\x00\x85\xC0\x74\x1C\x4C\x89\xF1\x48\x89\xDA\x4D\x8B\x84\x24\xA8\x01\x00\x00\x49\x83\xC0\x70\xE8\xA0\x04\x00\x00\xE9\x8A\x04\x00\x00\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\x89\xCE\x49\x89\xD6\x4D\x89\xC4\x48\x85\xC9\x0F\x84\x91\x02\x00\x00\x48\x85\xD2\x0F\x84\x88\x02\x00\x00\x4D\x85\xC0\x0F\x84\x7F\x02\x00\x00\x4D\x8B\x6C\x24\x38\x4D\x85\xED\x0F\x84\x71\x02\x00\x00\x41\x83\xBD\x88\x01\x00\x00\x01\x0F\x85\x63\x02\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x55\x02\x00\x00\x49\x83\x3C\x24\x00\x0F\x84\x4A\x02\x00\x00\x49\x83\x7C\x24\x08\x00\x0F\x84\x3E\x02\x00\x00\x49\x83\x7C\x24\x20\x00\x0F\x84\x32\x02\x00\x00\x49\x83\x7C\x24\x28\x00\x0F\x84\x26\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x1A\x02\x00\x00\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\x08\x02\x00\x00\x48\x89\xC3\x48\x89\xC1\x49\x8B\x54\x24\x10\xE8\x0B\x02\x00\x00\x85\xC0\x0F\x84\xF0\x01\x00\x00\x4C\x89\xF1\x49\x8B\x54\x24\x18\xE8\xF6\x01\x00\x00\x85\xC0\x0F\x84\xDB\x01\x00\x00\x49\x8B\x6E\x10\x48\x85\xED\x0F\x84\xCE\x01\x00\x00\x49\x8B\x86\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xBE\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xB3\x01\x00\x00\x41\x83\xBE\xD8\x00\x00\x00\x00\x0F\x8E\xA5\x01\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\x98\x01\x00\x00\x48\x89\x44\x24\x40\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x83\x01\x00\x00\x48\x89\x44\x24\x38\x49\x8B\x85\xA0\x00\x00\x00\x48\x89\x44\x24\x30\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x95\x80\x00\x00\x00\x0F\x85\x55\x01\x00\x00\x48\x89\xD9\x4C\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x0F\x84\x30\x01\x00\x00\x48\x8B\x4C\x24\x38\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x0F\x88\x1C\x01\x00\x00\x0F\x85\x0F\x01\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x08\x01\x00\x00\x48\x8B\x44\x24\x30\x49\x39\x85\xA0\x00\x00\x00\x0F\x85\xF6\x00\x00\x00\x49\x39\x6E\x10\x0F\x85\xEC\x00\x00\x00\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x0F\x85\xDD\x00\x00\x00\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x0F\x85\xCB\x00\x00\x00\x48\x89\xF1\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x39\xD8\x0F\x85\xB6\x00\x00\x00\x48\x8B\x56\x18\x48\x85\xD2\x0F\x84\xA9\x00\x00\x00\x48\x89\xD9\x41\xB8\x01\x00\x00\x00\x4D\x89\xF1\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x48\xC7\x44\x24\x28\x00\x00\x00\x00\x41\xFF\x54\x24\x30\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x75\x7B\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x75\x6D\x48\x89\xC1\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x7E\x5F\x48\x8B\x44\x24\x38\x48\x8B\x40\x68\x48\x85\xC0\x74\x51\x83\x78\x18\x01\x75\x4B\x48\x8B\x40\x10\x48\x85\xC0\x74\x42\x83\x78\x18\x01\x7C\x3C\x4C\x8B\x78\x20\x4D\x85\xFF\x74\x33\x4C\x89\xF9\x49\x8B\x54\x24\x40\xE8\x4F\x00\x00\x00\x85\xC0\x74\x22\x4D\x39\x77\x20\x75\x1C\x41\x83\x7F\x30\x00\x7E\x15\x41\x80\x7F\x59\x01\x75\x0E\xB8\x02\x00\x00\x00\xEB\x09\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x41\xC7\x85\x80\x00\x00\x00\x00\x00\x00\x00\xEB\x09\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_request_dispatch",offset=98304,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x48\x85\xC9\x0F\x84\x18\x03\x00\x00\x4C\x8B\x6B\x28\x4D\x85\xED\x0F\x84\x0B\x03\x00\x00\x41\x83\x7D\x00\x01\x0F\x85\x00\x03\x00\x00\x4C\x8B\x23\x4D\x85\xE4\x0F\x84\xF4\x02\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x94\x24\x88\x01\x00\x00\x0F\x85\xDD\x02\x00\x00\x41\x83\xBC\x24\x80\x00\x00\x00\x00\x0F\x85\xC2\x02\x00\x00\x41\x83\xBC\x24\xE4\x00\x00\x00\x00\x0F\x85\xB3\x02\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x41\x0F\xB1\x55\x00\x0F\x85\x9D\x02\x00\x00\x41\xC7\x45\x40\x00\x00\x00\x00\x49\x8B\x45\x28\x48\x89\x44\x24\x20\xBD\x08\x00\x00\x00\x49\x83\x7D\x30\x00\x0F\x85\x78\x02\x00\x00\x49\x83\x7D\x38\x00\x0F\x85\x6D\x02\x00\x00\xBD\x07\x00\x00\x00\x41\x8B\x45\x44\x85\xC0\x0F\x88\x5C\x02\x00\x00\x89\x44\x24\x28\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x49\x02\x00\x00\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x0F\x85\x37\x02\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x26\x02\x00\x00\x49\x39\x45\x18\x0F\x85\x1C\x02\x00\x00\x49\x8B\x14\x24\x48\x85\xD2\x0F\x84\x0F\x02\x00\x00\x48\x39\x42\x10\x0F\x85\x05\x02\x00\x00\x49\x8B\x44\x24\x08\x48\x85\xC0\x0F\x84\xF7\x01\x00\x00\x48\x39\x42\x38\x0F\x85\xED\x01\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE0\x01\x00\x00\x48\x8B\x4B\x20\x48\x85\xC9\x0F\x84\xD3\x01\x00\x00\x49\x8B\x14\x24\x48\x39\x11\x0F\x85\xC6\x01\x00\x00\x48\x39\x41\x08\x0F\x85\xBC\x01\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x39\x41\x10\x0F\x85\xAA\x01\x00\x00\x48\x83\x7B\x08\x00\x0F\x84\x9F\x01\x00\x00\x48\x83\x7B\x10\x00\x0F\x84\x94\x01\x00\x00\x48\x83\x7B\x18\x00\x0F\x84\x89\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x7E\x01\x00\x00\x48\x83\x7B\x38\x00\x0F\x84\x73\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x68\x01\x00\x00\xFF\x53\x08\xBD\x06\x00\x00\x00\x48\x85\xC0\x0F\x84\x57\x01\x00\x00\x48\x85\xD2\x0F\x84\x4E\x01\x00\x00\x49\x89\xC6\x49\x89\xD7\xBD\x07\x00\x00\x00\x49\x8B\x45\x10\x49\x39\x47\x10\x0F\x85\x35\x01\x00\x00\xBD\x05\x00\x00\x00\x4C\x89\xF1\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\x1F\x01\x00\x00\x49\x89\x45\x30\x4C\x89\xF9\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\xE2\x00\x00\x00\x49\x89\x45\x38\x49\x8B\x4D\x30\xFF\x53\x40\x4C\x39\xF0\x0F\x85\xCE\x00\x00\x00\x49\x8B\x4D\x38\xFF\x53\x40\x4C\x39\xF8\x0F\x85\xBE\x00\x00\x00\x4C\x89\xF1\x48\x8B\x53\x20\x45\x8B\x45\x04\x4D\x8B\x4D\x08\xFF\x53\x10\x48\x85\xC0\x0F\x84\xA3\x00\x00\x00\x4C\x39\xFA\x0F\x85\x9A\x00\x00\x00\x48\x89\xC7\xBD\x07\x00\x00\x00\x48\x8B\x47\x10\x49\x3B\x45\x08\x0F\x85\x84\x00\x00\x00\x8B\x47\x18\x41\x3B\x45\x04\x75\x7B\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x75\x6D\x49\x8B\x84\x24\x70\x01\x00\x00\x49\x39\x45\x18\x75\x5F\x49\x8B\x14\x24\x48\x39\x42\x10\x75\x55\x49\x8B\x45\x28\x48\x3B\x44\x24\x20\x75\x4A\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x75\x3F\x41\x8B\x45\x44\x3B\x44\x24\x28\x75\x35\x49\x8B\x45\x10\x49\x39\x47\x10\x75\x2B\xBD\x05\x00\x00\x00\x4C\x89\xF1\x48\x89\xFA\x4D\x89\xE0\xFF\x53\x18\x41\x89\x45\x40\x83\xF8\x02\x74\x0C\x83\xF8\x01\x75\x0C\xBD\x04\x00\x00\x00\xEB\x05\xBD\x03\x00\x00\x00\x49\x8B\x4D\x38\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x38\x00\x00\x00\x00\x49\x8B\x4D\x30\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x30\x00\x00\x00\x00\x41\x89\x6D\x00\x41\xC7\x84\x24\x88\x01\x00\x00\x00\x00\x00\x00\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="cooking_completion_consume_gate",offset=102400,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x4D\x89\xF0\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1B\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x41\x3B\x46\x18\x0F\x8D\x39\xD8\xD5\xF9\xE9\x98\xD7\xD5\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x23\xD8\xD5\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{73,4,"base",14116998,77},{78,4,"base",14116842,82},{95,4,"base",14116998,99}}},
{name="cooking_completion_retire_gate",offset=106496,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x81\xC4\x40\x01\x00\x00\xE9\xDB\xCC\xD5\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{68,4,"base",14118179,72}}},
{name="manual_cooking_zero_preflight",offset=114688,bytes="\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_zero_factory",offset=118784,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x45\x02\x00\x00\x48\x85\xD2\x0F\x84\x3C\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x30\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x39\x02\x00\x00\x85\xC0\x0F\x84\x1E\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xE4\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xE7\x01\x00\x00\x85\xC0\x0F\x84\xCC\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xBF\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xB1\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x9E\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x9A\x01\x00\x00\x85\xC0\x0F\x84\x7F\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x69\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x5C\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x4E\x01\x00\x00\x39\xC6\x0F\x8D\x3C\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x38\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x26\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\x09\x01\x00\x00\x0F\x88\x14\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\x05\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xFA\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xE9\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x78\xFE\xFF\xFF\xFF\xC6\xE9\x71\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="forge_shutdown_dispatch",offset=122880,bytes="\x53\x56\x48\x83\xEC\x28\x48\x89\xD3\x48\x85\xC9\x0F\x84\x43\x01\x00\x00\x48\x85\xD2\x0F\x84\x3A\x01\x00\x00\x48\x8B\x42\x08\x48\x85\xC0\x0F\x84\x2D\x01\x00\x00\x48\x39\x81\xB8\x00\x00\x00\x0F\x85\x20\x01\x00\x00\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x15\xBA\x09\x00\x00\x00\xB8\x01\x00\x00\x00\x48\x8B\xB3\xC8\x01\x00\x00\xF0\x0F\xB1\x16\x8B\x83\xE8\x00\x00\x00\x83\xF8\x04\x0F\x87\xDF\x00\x00\x00\x85\xC0\x74\x05\x83\xF8\x04\x75\x0D\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\xE8\x00\x00\x00\x45\x85\xC0\x0F\x84\xB9\x00\x00\x00\x45\x85\xC9\x0F\x84\xB0\x00\x00\x00\x45\x39\xC8\x0F\x85\xA7\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x0F\x85\x9A\x00\x00\x00\x83\xBB\xE4\x00\x00\x00\x00\x0F\x85\x8D\x00\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\x88\x01\x00\x00\x75\x7C\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x18\x83\x38\x02\x74\x50\x83\x38\x08\x74\x4B\x48\x83\x78\x30\x00\x75\x44\x48\x83\x78\x38\x00\x75\x3D\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x33\xC7\x83\xE8\x00\x00\x00\x02\x00\x00\x00\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x83\xF8\x01\x75\x1B\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x2B\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x03\x00\x00\x00\xEB\x10\xB8\x02\x00\x00\x00\xEB\x09\xB8\x03\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x5E\x5B\xC3",relocations={}},
{name="forge_thread_capture",offset=126976,bytes="\x53\x48\x83\xEC\x30\x48\x89\xCB\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x8B\x01\x48\x85\xC0\x74\x78\x48\x8B\x00\x48\x85\xC0\x74\x70\xFF\xD0\x85\xC0\x74\x6A\x89\x44\x24\x20\x83\x7B\x08\x00\x75\x48\x48\x8B\x43\x30\x48\x85\xC0\x74\x57\x48\x83\x7B\x10\x00\x74\x50\xB9\x01\x00\x00\x00\x31\xC0\x48\x8B\x53\x30\xF0\x0F\xB1\x8A\x88\x01\x00\x00\x75\x3B\x48\x8B\x4B\x18\xFF\x53\x10\x48\x8B\x4B\x20\xFF\x53\x10\x48\x8B\x4B\x28\xFF\x53\x10\x48\x8B\x53\x30\xC7\x82\x88\x01\x00\x00\x00\x00\x00\x00\x8B\x54\x24\x20\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x30\x5B\xC3",relocations={}},
{name="forge_shutdown_entry",offset=131072,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x31\xFF\x48\x85\xD2\x74\x40\x48\x83\x3B\x00\x74\x3A\x48\x83\x7B\x10\x00\x74\x33\x48\x8B\x43\x08\x48\x85\xC0\x74\x17\x8B\x78\x08\x48\x8B\x00\x48\x85\xC0\x74\x0C\x48\x8B\x00\x48\x85\xC0\x74\x04\xFF\xD0\xEB\x02\x31\xC0\x41\x89\xC0\x41\x89\xF9\x48\x89\xF1\x48\x8B\x13\xFF\x53\x10\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_close_wrapper",offset=135168,bytes="\x48\x89\x5C\x24\x08\x9C\x50\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\xA1\x00\x00\x00\x80\x38\x02\x0F\x85\x98\x00\x00\x00\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x83\x38\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x78\x10\x00\x74\x7D\x48\x83\x78\x28\x00\x74\x76\xF0\xFF\x40\x18\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x81\xEC\x88\x00\x00\x00\x0F\x11\x44\x24\x20\x0F\x11\x4C\x24\x30\x0F\x11\x54\x24\x40\x0F\x11\x5C\x24\x50\x0F\x11\x64\x24\x60\x0F\x11\x6C\x24\x70\x48\x89\xC2\xFF\x50\x28\x0F\x10\x44\x24\x20\x0F\x10\x4C\x24\x30\x0F\x10\x54\x24\x40\x0F\x10\x5C\x24\x50\x0F\x10\x64\x24\x60\x0F\x10\x6C\x24\x70\x48\x81\xC4\x88\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\xF0\xFF\x48\x18\x58\x9D\xE9\xEF\x7E\x02\xFA",relocations={{9,8,"root",111360,-1},{41,8,"root",111360,-1},{179,8,"root",111360,-1},{194,4,"base",17076149,198}}},
}
local controlTemplate="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x60\xA2\xD3\x85\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\x00\x20\x00\x87\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\x00\x40\x00\x87\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x20\x3D\xDA\x80\x01\x00\x00\x00\xE0\x11\x65\x83\x01\x00\x00\x00\x48\x79\xD3\x85\x01\x00\x00\x00\x80\x02\x5D\x80\x01\x00\x00\x00\x40\xA0\xA0\x80\x01\x00\x00\x00\xD0\x49\xDA\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x04\x00\x00\x00\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00\x00\x70\x00\x87\x01\x00\x00\x00\x00\x90\x00\x87\x01\x00\x00\x00\x00\x80\x00\x87\x01\x00\x00\x00\x40\x01\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xA0\x00\x87\x01\x00\x00\x00\x00\x30\x00\x87\x01\x00\x00\x00\x40\xAD\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x80\x0F\x68\x83\x01\x00\x00\x00\xD0\x3C\x68\x83\x01\x00\x00\x00\x80\x15\x68\x83\x01\x00\x00\x00\xF0\xC0\xD9\x80\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\xF0\xA2\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x20\x42\x68\x83\x01\x00\x00\x00\x00\x50\x00\x87\x01\x00\x00\x00\xA0\x3D\x68\x83\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x00\xB0\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x92\x9B\x84\x01\x00\x00\x00\x00\x02\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\x80\x01\x87\x01\x00\x00\x00\x00\xB1\x01\x87\x01\x00\x00\x00\x70\x66\xD7\x80\x01\x00\x00\x00\x00\xD0\x01\x87\x01\x00\x00\x00\x00\xF0\x01\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00"
local controlRelocations={
{0,"player",0},
{8,"runner",0},
{16,"villager",0},
{24,"recipe",0},
{32,"root",8192},
{40,"forge",0},
{48,"base",14108880},
{56,"base",56962544},
{64,"root",16384},
{72,"root",256},
{80,"base",14302496},
{88,"base",56955360},
{96,"base",97745224},
{104,"base",6095488},
{112,"base",10526784},
{120,"base",14305744},
{136,"base",12370384},
{160,"generation",0},
{168,"base",6464432},
{176,"base",6201520},
{184,"base",6201712},
{192,"root",28672},
{200,"root",36864},
{208,"root",32768},
{216,"root",320},
{240,"root",40960},
{248,"root",12288},
{256,"base",14200128},
{264,"base",14306464},
{272,"base",57151360},
{280,"base",57162960},
{288,"base",57152896},
{296,"base",14270704},
{304,"root",4096},
{312,"base",14197488},
{320,"base",14306464},
{328,"base",57164320},
{336,"root",20480},
{344,"base",57163168},
{352,"base",14303312},
{360,"base",12370384},
{368,"identity",0},
{376,"root",45056},
{400,"base",77304376},
{408,"root",512},
{416,"root",81920},
{424,"root",110592},
{432,"root",86016},
{440,"root",90112},
{448,"root",94208},
{456,"root",111104},
{464,"root",98304},
{472,"root",110848},
{480,"base",14116464},
{488,"root",118784},
{496,"root",126976},
{504,"root",111232},
}
local dataTemplates={
{offset=110592,bytes="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x38\x2E\xD1\x85\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x12\xD6\x85\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\xC0\x01\x87\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\xD0\x5F\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00",relocations={{0,"player",0},{8,"runner",0},{16,"identity",0},{24,"base",97594936},{32,"forge",0},{40,"base",97915600},{48,"root",77824},{56,"recipe",0},{64,"base",14108880},{72,"root",256},{80,"root",4096},{88,"root",81920},{96,"root",111104},{104,"root",114688},{112,"root",77824},{120,"root",110592},{128,"base",97619232},{136,"base",97619832},{144,"base",14108880},{152,"base",56962544},{160,"base",12345296},{168,"root",0},{176,"base",97619528}}},
{offset=110848,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",86016},{16,"root",90112},{24,"root",94208},{32,"root",110592},{40,"root",111104},{48,"base",6464432},{56,"base",6201520},{64,"base",6201712}}},
{offset=111232,bytes="\x90\x92\x9B\x84\x01\x00\x00\x00",relocations={{0,"base",77304464}}},
{offset=111248,bytes="\x20\x00\x5D\x80\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00",relocations={{0,"base",6094880},{8,"base",97619232},{16,"base",97619832},{24,"base",97619528},{32,"root",0}}},
{offset=111360,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00\x00\xE0\x01\x87\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",111232},{16,"root",122880}}},
{offset=111392,bytes="\xF0\xB3\x01\x87\x01\x00\x00\x00\x00\x00\x02\x87\x01\x00\x00\x00",relocations={{0,"root",111600},{8,"root",131072}}},
}
local entryTemplates={
{name="fetch",rva=9580922,helperOffset=49152,original="\x49\x8B\x4F\x60\x48\x85\xC9",signature="\x49\x8B\x4F\x60\x48\x85\xC9\x0F\x84\x84\x02\x00\x00\x33\xD2\xE8\xB2\xA7\x12\x00\x48\x8B\x4F"},
{name="returnMaterials",rva=9787916,helperOffset=53248,original="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00",signature="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x16\x05\x00\x00\x48\x8B\x0D"},
{name="returnRegister",rva=9788713,helperOffset=57344,original="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00",signature="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00\x48\x8B\x0D\xC7\x13\x3F\x05\x48\x8B\x77\x18\x39\x99\xE4\x00\x00"},
{name="consume",rva=12370608,helperOffset=65536,original="\x3B\x47\x18\x7D\x6F",signature="\x3B\x47\x18\x7D\x6F\x33\xD2\x49\x8B\xCF\xE8\x01\x45\x24\x00\x4C\x8B\x05\x4A\xAB\x10"},
{name="retire",rva=12371592,helperOffset=69632,original="\x48\x8B\xBC\x24\x08\x01\x00\x00",signature="\x48\x8B\xBC\x24\x08\x01\x00\x00\x48\x8B\xB4\x24\x00\x01\x00\x00\x48\x8B\x9C\x24\xF0\x00\x00\x00"},
{name="cookingConsume",rva=14116832,helperOffset=102400,original="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00",signature="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00\x4C\x8B\x05\x1F\x06\xF6\x04\x8B\xD3\x49\x8B\xCE\xE8\x95\xAE\x13"},
{name="cookingRetire",rva=14118172,helperOffset=106496,original="\x48\x81\xC4\x40\x01\x00\x00",signature="\x48\x81\xC4\x40\x01\x00\x00\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x9C\x95\x85"},
{name="sessionClose",rva=17076144,helperOffset=135168,original="\x48\x89\x5C\x24\x08",signature="\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x70\x80\x3D\x25\x09\xFC\x04"},
}
local legacy079Helpers={
["forge_recipe_preflight"]="\x48\x85\xC9\x0F\x84\xA5\x00\x00\x00\x48\x85\xD2\x0F\x84\x9C\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\x91\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x86\x00\x00\x00\x48\x83\x7A\x28\x00\x74\x7F\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x73\x45\x8B\x48\x18\x45\x85\xC9\x7E\x6A\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x5A\x48\x8B\x41\x10\x48\x85\xC0\x74\x51\x48\x83\x78\x10\x00\x74\x4A\x48\x8B\x00\x48\x85\xC0\x74\x42\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x13\x48\x3B\x42\x28\x74\x0D\x48\x83\x7A\x38\x00\x74\x28\x48\x3B\x42\x38\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\xA0\x44\x89\xD8\xC3\x31\xC0\xC3",
["forge_recipe_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xF3\x01\x00\x00\x48\x85\xD2\x0F\x84\xEA\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xDE\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xD1\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xA4\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\x97\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x84\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x77\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x69\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x56\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x3B\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x2E\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x39\xC6\x0F\x8D\x0E\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x0A\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xE7\x00\x00\x00\x0F\x88\xF2\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xD8\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xC7\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xA6\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xC0\xFE\xFF\xFF\xFF\xC6\xE9\xB9\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",
["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",
["manual_cooking_zero_preflight"]="\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",
["manual_cooking_zero_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x3B\x02\x00\x00\x48\x85\xD2\x0F\x84\x32\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x26\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x2F\x02\x00\x00\x85\xC0\x0F\x84\x14\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xE7\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xDA\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xDD\x01\x00\x00\x85\xC0\x0F\x84\xC2\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xB5\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xA7\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x94\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x90\x01\x00\x00\x85\xC0\x0F\x84\x75\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x5F\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x52\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x44\x01\x00\x00\x39\xC6\x0F\x8D\x32\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x2E\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x1C\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\xFF\x00\x00\x00\x0F\x88\x0A\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xFB\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xF0\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xDF\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xBE\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x82\xFE\xFF\xFF\xFF\xC6\xE9\x7B\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",
}
local legacy090Helpers={
["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",
["manual_cooking_register"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x4B\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x3C\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x2D\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x1C\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x08\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",
["forge_thread_capture"]="\x53\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x2C\x48\x8B\x01\x48\x85\xC0\x74\x24\x48\x8B\x00\x48\x85\xC0\x74\x1C\xFF\xD0\x85\xC0\x74\x16\x89\xC2\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3",
}
local buildIdentity="\xCF\xEA\xEC\x50\x71\x04\xDB\xB6\xE1\x26\xFB\x41\x44\x6B\x89\x61\x53\x14\x51\xBC\xD9\x7E\xE5\x13\xF2\x1B\x6F\xED\x93\x71\x65\x76"

local function need(ok,message)if not ok then error(message,0)end return ok end
local function replace(bytes,offset,value)return bytes:sub(1,offset)..value..bytes:sub(offset+#value+1)end
return function(context,root,generation,slots,manifest,ownerControl,cleanupRevision)
  need(cleanupRevision==nil or cleanupRevision=='25834809-001-079' or cleanupRevision=='25834809-001-090','Unknown forge cleanup revision')
  need(type(context)=='table' and type(slots)=='table','Missing independently verified forge context')
  local symbols={base=context.base,root=root,player=context.player,identity=context.identity,
    runner=context.runner,generation=generation,villager=slots.villager,recipe=slots.recipe,forge=slots.forge}
  for name,value in pairs(symbols)do
    need(math.type(value)=='integer' and value&gt;0,'Invalid forge context: '..name)
    if name~='generation'then need(value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0,'Unaligned forge context: '..name)end
  end
  for _,name in ipairs({'base','root','player','identity','runner','generation','villager','recipe','forge'})do
    need(symbols[name]~=nil,'Missing forge context: '..name)
  end
  need(root%0x1000==0,'Forge runtime must be page aligned')
  local size=runtimeSize
  need(root+size&lt;0x800000000000,'Forge allocation overflow')
  local control=controlTemplate
  for _,reloc in ipairs(controlRelocations)do
    control=replace(control,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))
  end
  local code,addresses,ranges={}, {}, {}
  local blob=control..string.rep('\0',size-#control)
  for _,template in ipairs(templates)do
    local bytes=template.bytes
    if cleanupRevision then bytes=legacy090Helpers[template.name]or bytes end
    if cleanupRevision=='25834809-001-079'then bytes=legacy079Helpers[template.name]or bytes end
    local address=root+template.offset
    for _,reloc in ipairs(template.relocations)do
      local value=symbols[reloc[3]]+reloc[4]
      if reloc[5]&gt;=0 then
        value=value-address-reloc[5]
        need(value&gt;=-0x80000000 and value&lt;=0x7FFFFFFF,'Forge relative relocation is out of range')
      end
      local payload=reloc[2]==8 and string.pack('&lt;I8',value)or string.pack('&lt;i4',value)
      bytes=replace(bytes,reloc[1],payload)
    end
    code[template.name],addresses[template.name]=bytes,address
    ranges[#ranges+1]={address,address+#bytes}
    blob=replace(blob,template.offset,bytes)
  end
  local dataBlocks={}
  for _,template in ipairs(dataTemplates)do
    if not cleanupRevision or template.offset~=0x1B290 then
    local bytes=template.bytes
    for _,reloc in ipairs(template.relocations)do
      bytes=replace(bytes,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))
    end
    if cleanupRevision and template.offset==0x1B000 then bytes=bytes:sub(1,0x70)end
    if cleanupRevision and template.offset==0x1B280 then bytes=bytes:sub(1,8)end
    if template.offset==0x1B320 and ownerControl then
      need(math.type(ownerControl)=='integer'and ownerControl&gt;=0x10000 and ownerControl&lt;0x800000000000 and ownerControl%8==0,'Invalid forge owner phase address')
      bytes=replace(bytes,0,string.pack('&lt;I8',ownerControl+0xC0))
    end
    blob=replace(blob,template.offset,bytes)
    dataBlocks[#dataBlocks+1]={offset=template.offset,bytes=bytes}
    end
  end
  local plans={}
  for _,entry in ipairs(entryTemplates)do
    local address=context.base+entry.rva
    local destination=root+entry.helperOffset
    local delta=destination-address-5
    need(delta&gt;=-0x80000000 and delta&lt;=0x7FFFFFFF,'Forge hook is out of range')
    plans[#plans+1]={name=entry.name,address=address,destination=destination,helperOffset=entry.helperOffset,
      original=entry.original,signature=entry.signature,
      patch=string.char(0xE9)..string.pack('&lt;i4',delta)..string.rep(string.char(0x90),#entry.original-5)}
  end
  local blocks={}
  for _,slice in ipairs({{0,0x80},{0x88,8},{0xA0,0x40},{0xF0,0x98},{0x190,0x70}})do
    blocks[#blocks+1]={offset=slice[1],bytes=control:sub(slice[1]+1,slice[1]+slice[2])}
  end
  for _,template in ipairs(templates)do blocks[#blocks+1]={offset=template.offset,bytes=code[template.name]}end
  for _,block in ipairs(dataBlocks)do blocks[#blocks+1]=block end
  table.sort(blocks,function(a,b)return a.offset&lt;b.offset end)
  local spec={base=context.base,root=root,size=size,generation=generation,player=context.player,
    identity=context.identity,runner=context.runner,villager=slots.villager,recipe=slots.recipe,
    forge=slots.forge,build=buildIdentity,blocks=blocks,plans=plans}
  local header
  if manifest then header=manifest.encode(spec);blob=replace(blob,0xF00,header)end
  return {root=root,size=size,blob=blob,control=control,addresses=addresses,ranges=ranges,code=code,
    cleanupRevision=cleanupRevision,
    plans=plans,manifest=header,manifestSpec=spec,dataBlocks=dataBlocks,
    manualContext=root+0x1B000,manualDispatchControl=root+0x1B100,manualMailbox=root+0x1B200}
end


end)()
local prior=(function()
-- Generated by export_forge_bundle_image.py; uninstalled portable forge prototype.

-- Native instructions/entry contracts are from the locally analyzed build.

local runtimeSize=192512

local templates={

{name="forge_ledger_grow",offset=512,bytes="\x53\x57\x41\x54\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x0F\x84\xA6\x01\x00\x00\x83\xBB\x80\x00\x00\x00\x01\x0F\x85\x99\x01\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\x8C\x01\x00\x00\x85\xD2\x0F\x8E\x84\x01\x00\x00\x89\xD7\x4C\x8B\xA3\x90\x00\x00\x00\x49\x81\xFC\x80\x00\x01\x00\x0F\x82\x6E\x01\x00\x00\x49\x81\xEC\x80\x00\x00\x00\x49\xF7\xC4\xFF\x0F\x00\x00\x0F\x85\x5A\x01\x00\x00\x48\xB8\x41\x53\x4B\x41\x46\x4C\x30\x31\x49\x39\x04\x24\x0F\x85\x46\x01\x00\x00\x4D\x39\x64\x24\x08\x0F\x85\x3B\x01\x00\x00\x48\xB8\x00\x10\x00\x00\x38\x00\x00\x00\x49\x39\x44\x24\x10\x0F\x85\x26\x01\x00\x00\x49\x81\x7C\x24\x18\x80\x00\x00\x00\x0F\x85\x17\x01\x00\x00\x49\x83\x7C\x24\x20\x70\x0F\x85\x0B\x01\x00\x00\x49\x81\x7C\x24\x28\xFF\xFF\xFF\x7F\x0F\x85\xFC\x00\x00\x00\x49\x39\x5C\x24\x30\x0F\x85\xF1\x00\x00\x00\x48\x8B\x83\xA0\x00\x00\x00\x49\x39\x44\x24\x38\x0F\x85\xDF\x00\x00\x00\x48\x8B\x03\x49\x39\x44\x24\x40\x0F\x85\xD1\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x49\x39\x44\x24\x48\x0F\x85\xBF\x00\x00\x00\x48\x8B\x43\x08\x49\x39\x44\x24\x50\x0F\x85\xB0\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x85\xC0\x0F\x8E\xA2\x00\x00\x00\x39\xC7\x0F\x8E\x80\x00\x00\x00\xBF\x01\x00\x00\x00\x39\xD7\x73\x11\x81\xFF\x00\x00\x00\x40\x73\x04\x01\xFF\xEB\xF0\xBF\xFF\xFF\xFF\x7F\x48\x8B\x83\x90\x01\x00\x00\x48\x85\xC0\x74\x74\x48\x8B\x00\x48\x85\xC0\x74\x6C\x89\xFA\x48\x6B\xD2\x70\x48\x81\xC2\x7F\x10\x00\x00\x48\x81\xE2\x00\xF0\xFF\xFF\x4C\x89\xE1\x41\xB8\x00\x10\x00\x00\x41\xB9\x04\x00\x00\x00\xFF\xD0\x4C\x39\xE0\x75\x42\x83\xBB\xE0\x00\x00\x00\x01\x75\x39\x49\x8D\x84\x24\x80\x00\x00\x00\x48\x39\x83\x90\x00\x00\x00\x75\x28\x3B\xBB\x98\x00\x00\x00\x7E\x06\x89\xBB\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0E\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5C\x5F\x5B\xC3",relocations={}},

{name="forge_recipe_preflight",offset=4096,bytes="\x48\x85\xC9\x0F\x84\xB5\x00\x00\x00\x48\x85\xD2\x0F\x84\xAC\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xA1\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x96\x00\x00\x00\x48\x83\x7A\x28\x00\x0F\x84\x8B\x00\x00\x00\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x7F\x45\x8B\x48\x18\x45\x85\xC9\x7E\x76\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x66\x48\x8B\x41\x10\x48\x85\xC0\x74\x5D\x48\x83\x78\x10\x00\x74\x56\x48\x8B\x00\x48\x85\xC0\x74\x4E\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x1F\x48\x3B\x42\x28\x74\x19\x48\x83\x7A\x38\x00\x74\x06\x48\x3B\x42\x38\x74\x0C\x48\x2D\x80\x15\x00\x00\x48\x3B\x42\x28\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\x94\x44\x89\xD8\xC3\x31\xC0\xC3",relocations={}},

{name="forge_task_recipe_scope",offset=8192,bytes="\x48\x85\xC9\x0F\x84\xFC\x01\x00\x00\x4D\x85\xC0\x0F\x84\xF3\x01\x00\x00\x4D\x89\xC2\x49\x83\x3A\x00\x0F\x84\xE6\x01\x00\x00\x49\x83\x7A\x08\x00\x0F\x84\xDB\x01\x00\x00\x49\x83\x7A\x10\x00\x0F\x84\xD0\x01\x00\x00\x49\x83\x7A\x18\x00\x0F\x84\xC5\x01\x00\x00\x48\x8B\x51\x38\x48\x85\xD2\x0F\x84\xB8\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xA8\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x9E\x01\x00\x00\x4C\x39\x1A\x0F\x85\x95\x01\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\x87\x01\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\x79\x01\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\x66\x01\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\x56\x01\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x49\x01\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x3C\x01\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x2F\x01\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x1F\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x14\x01\x00\x00\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x0F\x84\x04\x01\x00\x00\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\xF7\x00\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xAA\x00\x00\x00\x49\x39\xC3\x0F\x85\xA1\x00\x00\x00\x4C\x8B\x49\x60\x4D\x85\xC9\x0F\x84\x94\x00\x00\x00\x41\x83\xB9\x88\x00\x00\x00\x00\x0F\x8E\x86\x00\x00\x00\x49\x8B\x41\x68\x48\x85\xC0\x74\x7D\x48\x8B\x50\x20\x48\x85\xD2\x74\x74\x48\x83\x7A\x10\x00\x74\x6D\x49\x8B\x41\x48\x48\x85\xC0\x74\x64\x48\x39\x50\x10\x75\x5E\x44\x8B\x58\x18\x45\x85\xDB\x7F\x04\x44\x8B\x58\x1C\x45\x85\xDB\x7E\x4C\x49\x8B\x42\x18\x48\x85\xC0\x74\x43\x4C\x8B\x00\x4D\x85\xC0\x74\x3B\x41\xF6\xC0\x01\x75\x35\x48\x8B\x02\x48\x85\xC0\x74\x2D\x45\x0F\xB6\x98\x30\x01\x00\x00\x45\x85\xDB\x74\x20\x44\x38\x98\x30\x01\x00\x00\x72\x17\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0B\x4E\x39\x44\xD8\xF8\x75\x04\x48\x89\xD0\xC3\x31\xC0\xC3",relocations={}},

{name="forge_task_station_scope",offset=12288,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x30\x49\x89\xCC\x4D\x89\xC5\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x85\xC9\x0F\x84\x91\x01\x00\x00\x4D\x85\xC0\x0F\x84\x88\x01\x00\x00\xF0\x41\xFF\x85\x88\x01\x00\x00\xC7\x44\x24\x20\x01\x00\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x6A\x01\x00\x00\x49\x83\x7D\x20\x00\x0F\x84\x5F\x01\x00\x00\x49\x83\x7D\x30\x00\x0F\x84\x54\x01\x00\x00\x41\xFF\x55\x20\x48\x85\xC0\x0F\x84\x47\x01\x00\x00\x48\x89\xC3\x49\x8B\x55\x48\x48\x85\xD2\x0F\x84\x37\x01\x00\x00\x48\x8B\x42\x30\x48\x85\xC0\x0F\x84\x2A\x01\x00\x00\x48\x89\xD9\xFF\xD0\x85\xC0\x0F\x84\x1D\x01\x00\x00\x49\x8B\x45\x28\x48\x85\xC0\x0F\x84\x10\x01\x00\x00\x4C\x8B\x38\x4D\x85\xFF\x0F\x84\x04\x01\x00\x00\x41\xF6\xC7\x01\x0F\x85\xFA\x00\x00\x00\x41\x0F\xB6\x87\x30\x01\x00\x00\x85\xC0\x0F\x84\xEA\x00\x00\x00\x49\x8B\x44\x24\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xD8\x00\x00\x00\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xC8\x00\x00\x00\x8B\x78\x18\x85\xFF\x0F\x8E\xBD\x00\x00\x00\x48\x8B\x70\x10\x48\x85\xF6\x0F\x84\xB0\x00\x00\x00\x3B\x7E\x18\x0F\x8F\xA7\x00\x00\x00\x48\x83\xC6\x20\x85\xFF\x0F\x84\x9B\x00\x00\x00\x48\x8B\x06\x48\x83\xC6\x08\xFF\xCF\x48\x85\xC0\x74\xEA\x4C\x8B\x70\x78\x4D\x85\xF6\x74\xE1\x49\x83\x7E\x10\x00\x74\xDA\x49\x8B\x06\x48\x85\xC0\x74\xD2\x41\x0F\xB6\x8F\x30\x01\x00\x00\x38\x88\x30\x01\x00\x00\x72\xC2\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\xB6\x4C\x39\x7C\xC8\xF8\x75\xAF\x49\x8B\x86\x98\x01\x00\x00\x48\x85\xC0\x74\xA3\x80\xB8\x40\x01\x00\x00\x01\x75\x9A\x49\x8B\x4D\x08\x48\x39\x88\xB8\x00\x00\x00\x75\x8D\x4C\x89\xF1\x48\x89\xDA\x45\x31\xC0\x41\xFF\x55\x30\x84\xC0\x0F\x84\x78\xFF\xFF\xFF\x4C\x89\xE1\x4D\x89\xE8\x41\xFF\x55\x20\x48\x39\xD8\x75\x0C\x41\x83\xBD\xE0\x00\x00\x00\x01\x75\x02\xEB\x02\x31\xC0\x83\x7C\x24\x20\x00\x74\x08\xF0\x41\xFF\x8D\x88\x01\x00\x00\x48\x83\xC4\x30\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_recipe_factory",offset=16384,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xFD\x01\x00\x00\x48\x85\xD2\x0F\x84\xF4\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xE8\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xDB\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xAE\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xA1\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x8E\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x81\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x73\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x60\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x45\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x38\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x2A\x01\x00\x00\x39\xC6\x0F\x8D\x18\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x14\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xF1\x00\x00\x00\x0F\x88\xFC\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xED\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xE2\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xB6\xFE\xFF\xFF\xFF\xC6\xE9\xAF\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="forge_internal_recipe_scope",offset=20480,bytes="\x31\xC0\x48\x85\xC9\x0F\x84\x8E\x00\x00\x00\x80\x79\x59\x01\x0F\x85\x84\x00\x00\x00\x4C\x8B\x41\x60\x4D\x85\xC0\x74\x7B\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x72\x45\x8B\x58\x20\x45\x85\xDB\x78\x69\x45\x8B\x50\x28\x45\x85\xD2\x78\x60\x45\x39\xDA\x7F\x5B\x45\x29\xD3\x7E\x56\x48\x85\xD2\x74\x51\x44\x39\x5A\x18\x75\x4B\x4C\x8B\x4A\x10\x4D\x85\xC9\x74\x42\x45\x3B\x59\x18\x7F\x3C\x45\x31\xD2\x4F\x8B\x44\xD1\x20\x4D\x85\xC0\x74\x2F\x41\x8B\x48\x18\x85\xC9\x7E\x27\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x1E\x49\x83\x78\x10\x00\x75\x17\x49\x83\x78\x18\x00\x75\x10\x41\x39\x48\x30\x7C\x0A\x41\xFF\xC2\x45\x39\xDA\x72\xC9\xB0\x01\xC3",relocations={}},

{name="forge_recipe_register",offset=24576,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\xBA\x04\x00\x00\x48\x85\xD2\x0F\x84\xB1\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA2\x04\x00\x00\x41\xFF\x54\x24\x20\x48\x85\xC0\x0F\x84\x94\x04\x00\x00\x48\x89\xC3\x49\x39\x45\x30\x0F\x85\x87\x04\x00\x00\x49\x8B\x46\x38\x49\x39\x45\x38\x0F\x85\x79\x04\x00\x00\x4D\x8B\x7D\x18\x4D\x85\xFF\x0F\x84\x6C\x04\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x61\x04\x00\x00\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x44\x24\x28\x48\x85\xC0\x0F\x84\x4A\x04\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x3E\x04\x00\x00\x41\xF6\xC0\x01\x0F\x85\x34\x04\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\x28\x04\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x18\x04\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x0C\x04\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xFC\x03\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\xF1\x03\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xE1\x03\x00\x00\x48\x89\x44\x24\x30\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xCF\x03\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xBD\x03\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xAC\x03\x00\x00\x48\x89\x44\x24\x38\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\x97\x03\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\x8C\x03\x00\x00\x48\x8B\x40\x10\x48\x85\xC0\x0F\x84\x7F\x03\x00\x00\x3B\x48\x18\x0F\x8F\x76\x03\x00\x00\x31\xD2\x39\xCA\x0F\x8D\x6C\x03\x00\x00\x4C\x8B\x44\xD0\x20\xFF\xC2\x4D\x85\xC0\x74\xEC\x4D\x39\x78\x78\x75\xE6\x49\x8B\xAF\x58\x01\x00\x00\x48\x85\xED\x0F\x84\x4A\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xB6\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x18\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x06\x03\x00\x00\x0F\x85\x0C\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\xF1\x02\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xE2\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xD2\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xBF\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xAE\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\x96\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\x89\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x74\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x53\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x29\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x10\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDA\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xCE\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC5\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB7\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9B\x01\x00\x00\x49\x8B\x40\x08\x49\x3B\x84\x24\x88\x00\x00\x00\x0F\x85\x89\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x49\x8B\x84\x24\x88\x00\x00\x00\x48\x39\x46\x10\x0F\x85\x6F\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x65\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x4C\x89\xF1\x4D\x89\xE0\x41\xFF\x54\x24\x20\x48\x39\xD8\x0F\x85\x43\x01\x00\x00\x4D\x39\x7D\x18\x0F\x85\x39\x01\x00\x00\x49\x39\x5D\x30\x0F\x85\x2F\x01\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\x0E\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x01\x01\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xEF\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xE2\x00\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x3B\x44\x24\x38\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="forge_recipe_resolve",offset=28672,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\xD9\x00\x00\x00\x48\x85\xD2\x0F\x84\xD0\x00\x00\x00\x48\x83\xBE\xB8\x00\x00\x00\x00\x0F\x84\xC2\x00\x00\x00\x8B\x03\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xB2\x00\x00\x00\x41\x89\xC5\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x0F\x85\x9E\x00\x00\x00\x48\x8B\x46\x08\x48\x39\x43\x48\x0F\x85\x90\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x0F\x84\x83\x00\x00\x00\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x78\x48\x39\x43\x08\x75\x72\x48\x89\xC7\x48\x8B\x4B\x60\x48\x85\xC9\x74\x66\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x5B\x48\x39\x43\x18\x75\x55\x49\x89\xC4\x44\x39\x2B\x75\x4D\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x75\x40\x48\x8B\x46\x08\x48\x39\x43\x48\x75\x36\x48\x8B\x47\x10\x48\x85\xC0\x74\x2D\x48\x39\x43\x10\x75\x27\x49\x8B\x44\x24\x20\x48\x85\xC0\x74\x1D\x48\x39\x43\x20\x75\x17\x48\x8B\x40\x10\x48\x85\xC0\x74\x0E\x48\x39\x43\x28\x75\x08\x48\x89\xF8\x4C\x89\xE2\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_recipe_retire",offset=32768,bytes="\x53\x56\x57\x48\x83\xEC\x20\x4C\x89\xC3\x4D\x85\xC0\x0F\x84\x53\x01\x00\x00\xF0\xFF\x83\xE4\x00\x00\x00\x48\x85\xC9\x0F\x84\x38\x01\x00\x00\x48\x85\xD2\x0F\x84\x2F\x01\x00\x00\x4D\x85\xC0\x0F\x84\x26\x01\x00\x00\x83\x7A\x30\x00\x0F\x85\x1C\x01\x00\x00\x48\x83\x7A\x10\x00\x0F\x85\x11\x01\x00\x00\x49\x83\xB8\xB0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x45\x8B\x88\x98\x00\x00\x00\x45\x85\xC9\x0F\x8E\xF3\x00\x00\x00\x4D\x8B\x90\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xE3\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xC5\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xBB\x00\x00\x00\x49\x39\x52\x18\x0F\x85\xB1\x00\x00\x00\x4C\x8B\x59\x10\x4D\x85\xDB\x0F\x84\xB1\x00\x00\x00\x4D\x39\x5A\x10\x0F\x85\x9A\x00\x00\x00\x4C\x8B\x5A\x20\x4D\x85\xDB\x0F\x84\x9A\x00\x00\x00\x4D\x39\x5A\x20\x0F\x85\x83\x00\x00\x00\x4D\x8B\x5B\x10\x4D\x85\xDB\x0F\x84\x83\x00\x00\x00\x4D\x39\x5A\x28\x75\x70\x4D\x8B\x58\x08\x4D\x39\x5A\x48\x75\x66\x4D\x8B\x98\xA0\x00\x00\x00\x4D\x39\x5A\x50\x75\x59\x41\xBB\x03\x00\x00\x00\xF0\x45\x0F\xB1\x1A\x74\x0B\x83\xF8\x02\x0F\x84\x6D\xFF\xFF\xFF\xEB\x41\x4C\x89\xD6\x48\x8B\x4E\x60\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x48\x8B\x4E\x40\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x49\x89\xF2\x31\xC0\xB9\x0D\x00\x00\x00\x49\x89\x04\xCA\xFF\xC9\x75\xF8\x41\xC7\x02\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x0F\x49\x83\xC2\x70\x41\xFF\xC9\x0F\x85\x1D\xFF\xFF\xFF\x31\xC0\xF0\xFF\x8B\xE4\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_recipe_cancel",offset=36864,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x28\x48\x89\xCB\x48\x89\xD5\x4D\x89\xC4\x48\x85\xC9\x0F\x84\x96\x01\x00\x00\x48\x85\xD2\x0F\x84\x8D\x01\x00\x00\x4D\x85\xC0\x0F\x84\x84\x01\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x77\x01\x00\x00\x49\x3B\x44\x24\x30\x0F\x85\x6C\x01\x00\x00\x48\x8B\x42\x20\x49\x3B\x44\x24\x38\x0F\x85\x5D\x01\x00\x00\x48\x85\xC0\x0F\x84\x54\x01\x00\x00\x48\x8B\x48\x10\x49\x3B\x4C\x24\x40\x0F\x85\x45\x01\x00\x00\x48\x85\xC9\x0F\x84\x3C\x01\x00\x00\x80\x7D\x59\x01\x0F\x85\x32\x01\x00\x00\x83\x7D\x30\x00\x0F\x8E\x28\x01\x00\x00\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x18\x01\x00\x00\x48\x39\x45\x10\x0F\x85\x0E\x01\x00\x00\x48\x8B\x83\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xFE\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xF1\x00\x00\x00\x49\x8B\x4C\x24\x48\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xD6\x00\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\xC9\x00\x00\x00\x48\x8B\x7D\x48\x48\x85\xFF\x0F\x84\xBC\x00\x00\x00\x48\x8B\x77\x78\x48\x85\xF6\x74\x25\x8B\x4E\x18\x85\xC9\x0F\x8E\xA8\x00\x00\x00\x48\x83\xC6\x20\x85\xC9\x0F\x84\x9C\x00\x00\x00\x48\x8B\x3E\x48\x83\xC6\x08\xFF\xC9\x48\x85\xFF\x74\xEA\x49\x8B\x44\x24\x28\x48\x39\x47\x10\x75\x06\x48\x39\x5F\x20\x74\x07\x48\x85\xF6\x75\xD4\xEB\x76\x48\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x74\x68\x49\x89\xC5\x48\x8B\x48\x10\x48\x85\xC9\x74\x5C\x8B\x41\x20\x85\xC0\x78\x55\x8B\x51\x28\x85\xD2\x78\x4E\x39\xC2\x7F\x4A\x39\xD0\x74\x1E\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x74\x37\x48\x89\xC2\x48\x89\xE9\x41\xFF\x54\x24\x10\x84\xC0\x74\x28\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x18\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x20\x83\x7D\x30\x00\x75\x0E\x48\x83\x7D\x10\x00\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="forge_recipe_cancel_owned",offset=40960,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x70\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\x36\x01\x00\x00\x48\x85\xD2\x0F\x84\x2D\x01\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x1F\x01\x00\x00\x48\x83\xBE\xC8\x00\x00\x00\x00\x0F\x84\x11\x01\x00\x00\x48\x83\xBE\xD0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x48\x83\xBE\xD8\x00\x00\x00\x00\x0F\x84\xF5\x00\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x0F\xB1\x8E\x80\x00\x00\x00\x0F\x85\xE4\x00\x00\x00\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x0F\x84\xC1\x00\x00\x00\x48\x85\xD2\x0F\x84\xB8\x00\x00\x00\x48\x89\xC7\x49\x89\xD4\x41\x83\x7C\x24\x30\x00\x75\x08\x49\x83\x7C\x24\x10\x00\x74\x7E\x48\x8B\x86\xD8\x00\x00\x00\xB9\x05\x00\x00\x00\x48\x8B\x14\xC8\x48\x89\x54\xCC\x20\xFF\xC9\x79\xF3\x48\x83\xBE\xE0\x01\x00\x00\x00\x74\x1D\x48\x8B\x07\x48\x85\xC0\x74\x77\x48\x8B\x80\xB8\x03\x00\x00\x48\x3B\x86\xE0\x01\x00\x00\x75\x05\x48\x89\x44\x24\x48\x48\x8B\x43\x10\x48\x89\x44\x24\x50\x48\x8B\x43\x20\x48\x89\x44\x24\x58\x48\x8B\x43\x28\x48\x89\x44\x24\x60\x48\x8B\x46\x08\x48\x89\x44\x24\x68\x48\x89\xF9\x4C\x89\xE2\x4C\x8D\x44\x24\x20\xFF\x96\xC8\x00\x00\x00\x85\xC0\x74\x29\x83\x3B\x00\x74\x13\x48\x89\xF9\x4C\x89\xE2\x49\x89\xF0\xFF\x96\xD0\x00\x00\x00\x85\xC0\x74\x11\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x13\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\x31\xC0\xEB\x05\xB8\x02\x00\x00\x00\x48\x83\xC4\x70\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_recipe_cancel_all",offset=45056,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x75\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x75\x62\x44\x8B\xA3\x98\x00\x00\x00\x45\x85\xE4\x78\x56\x74\x4D\x48\x8B\xB3\x90\x00\x00\x00\x48\x85\xF6\x74\x48\x48\x83\xBB\xF0\x00\x00\x00\x00\x74\x3E\x31\xFF\x45\x31\xED\x8B\x06\x85\xC0\x74\x1C\x83\xF8\x02\x77\x11\x48\x89\xF1\x48\x89\xDA\xFF\x93\xF0\x00\x00\x00\x83\x3E\x00\x74\x06\x41\xBD\x01\x00\x00\x00\x48\x83\xC6\x70\xFF\xC7\x44\x39\xE7\x7C\xD3\x45\x85\xED\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_fetch_material_gate",offset=49152,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x21\x48\x8B\x45\x40\x48\x85\xC0\x74\x18\xC7\x40\x10\x0A\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xA5\x6B\x91\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x49\x8B\x4F\x60\x48\x85\xC9\xE9\x16\x71\x91\xF9",relocations={{17,8,"root",0,-1},{27,8,"root",12288,-1},{79,4,"base",9579512,83},{103,4,"base",9580929,107}}},

{name="forge_return_material_gate",offset=53248,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x83\x78\x18\x00\x75\x3D\x48\x89\xF1\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x17\x48\x39\x47\x30\x75\x11\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC7\x89\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x83\x78\x18\x00\x0F\x84\x25\x8B\x94\xF9\xE9\xAC\x89\x94\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",12288,-1},{75,4,"base",9787926,79},{97,4,"base",9788298,101},{102,4,"base",9787926,106}}},

{name="forge_return_register_gate",offset=57344,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x85\xFF\x74\x48\x48\x8B\x47\x28\x48\x85\xC0\x74\x3F\x83\x78\x18\x00\x75\x39\x48\x83\xBC\x24\xB8\x00\x00\x00\x00\x74\x2E\x48\x89\xF1\x48\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x60\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x83\xF8\x02\x74\x30\x83\xF8\x01\x74\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x85\xFF\x0F\x84\xCB\x7E\x94\xF9\xE9\xBF\x7C\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x1C\x7A\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\x44\x24\x78\xC7\x40\x10\x0A\x00\x00\x00\xE9\xF8\x7C\x94\xF9",relocations={{51,8,"root",0,-1},{61,8,"root",24576,-1},{106,4,"base",9789241,110},{111,4,"base",9788722,115},{128,4,"base",9788064,132},{157,4,"base",9788825,161}}},

{name="forge_owned_ingredient_scope",offset=61440,bytes="\x48\x85\xC9\x0F\x84\x70\x01\x00\x00\x48\x85\xD2\x0F\x84\x67\x01\x00\x00\x4D\x85\xC0\x0F\x84\x5E\x01\x00\x00\x4D\x85\xC9\x0F\x84\x55\x01\x00\x00\x83\x7A\x30\x00\x0F\x8E\x4B\x01\x00\x00\x48\x8B\x81\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x3B\x01\x00\x00\x48\x39\x42\x10\x0F\x85\x31\x01\x00\x00\x48\x8B\x81\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\x21\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x14\x01\x00\x00\x4D\x8B\x51\x08\x4D\x85\xD2\x0F\x84\x07\x01\x00\x00\x4C\x39\x90\xB8\x00\x00\x00\x0F\x85\xFA\x00\x00\x00\x41\x83\xBA\x80\x01\x00\x00\x01\x0F\x85\xEC\x00\x00\x00\x45\x8B\x99\x98\x00\x00\x00\x45\x85\xDB\x0F\x8E\xDC\x00\x00\x00\x4D\x8B\x91\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xCC\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xAE\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xA4\x00\x00\x00\x49\x39\x52\x18\x0F\x85\x9A\x00\x00\x00\x49\x83\x7A\x40\x00\x0F\x84\x9C\x00\x00\x00\x49\x83\x7A\x60\x00\x0F\x84\x91\x00\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x84\x00\x00\x00\x49\x39\x42\x10\x75\x7E\x48\x8B\x42\x20\x48\x85\xC0\x74\x75\x49\x39\x42\x20\x75\x6F\x48\x8B\x40\x10\x48\x85\xC0\x74\x66\x49\x39\x42\x28\x75\x60\x48\x8B\x81\x58\x01\x00\x00\x49\x39\x42\x30\x75\x53\x48\x8B\x81\x98\x01\x00\x00\x49\x39\x42\x58\x75\x46\x49\x8B\x41\x08\x49\x39\x42\x48\x75\x3C\x49\x8B\x81\xA0\x00\x00\x00\x48\x85\xC0\x74\x30\x49\x39\x42\x50\x75\x2A\x49\x8B\x81\xD8\x00\x00\x00\x48\x85\xC0\x74\x1E\x48\x8B\x40\x10\x48\x85\xC0\x74\x15\x48\x89\xD1\x4C\x89\xC2\xFF\xE0\x49\x83\xC2\x70\x41\xFF\xCB\x0F\x85\x34\xFF\xFF\xFF\x31\xC0\xC3",relocations={}},

{name="forge_completion_consume_gate",offset=65536,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\x89\xF8\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x3B\x47\x18\x0F\x8D\xD8\xC2\xBB\xF9\xE9\x64\xC2\xBB\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC2\xC2\xBB\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{72,4,"base",12370724,76},{77,4,"base",12370613,81},{94,4,"base",12370724,98}}},

{name="forge_completion_retire_gate",offset=69632,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\xBC\x24\x08\x01\x00\x00\xE9\x47\xB6\xBB\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{69,4,"base",12371600,73}}},

{name="forge_player_cleanup_dispatch",offset=73728,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xD3\x48\x89\xCE\x48\x85\xD2\x0F\x84\x04\x02\x00\x00\x48\x85\xC9\x0F\x84\xFB\x01\x00\x00\x48\x39\x33\x75\x3E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x32\x48\x39\x46\x10\x75\x2C\x48\x8B\x43\x08\x48\x39\x46\x38\x75\x22\x48\x83\xBB\xF0\x01\x00\x00\x00\x74\x18\x48\x8B\x8B\xF8\x01\x00\x00\x48\x85\xC9\x74\x0C\x83\x79\x08\x00\x75\x06\xFF\x93\xF0\x01\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x41\x83\x38\x01\x75\x3C\x83\xBB\xE0\x00\x00\x00\x01\x75\x33\x48\x39\x33\x75\x2E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x22\x48\x39\x46\x10\x75\x1C\x48\x83\xBB\xD0\x01\x00\x00\x00\x74\x12\x48\x8B\x8B\xD8\x01\x00\x00\x48\x85\xC9\x74\x06\xFF\x93\xD0\x01\x00\x00\x48\x89\xF1\x83\xBB\x8C\x01\x00\x00\x00\x0F\x84\xB5\x00\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x39\x0B\x0F\x85\x9F\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x8F\x00\x00\x00\x48\x39\x41\x10\x0F\x85\x85\x00\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x74\x7C\x48\x39\x41\x38\x75\x76\x83\xB8\x80\x01\x00\x00\x01\x75\x6D\x83\xBB\x80\x00\x00\x00\x00\x75\x64\x83\xBB\xE4\x00\x00\x00\x00\x75\x5B\x83\xBB\x88\x01\x00\x00\x00\x75\x52\x48\x83\xBB\x90\x00\x00\x00\x00\x74\x48\x8B\x83\x8C\x01\x00\x00\x85\xC0\x7E\x3E\x3D\xFF\xFF\xFF\x7F\x74\x07\x8D\x50\xFF\x85\xD0\x75\x30\x3B\x83\x98\x00\x00\x00\x7E\x06\x89\x83\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0A\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xC7\x83\x8C\x01\x00\x00\x00\x00\x00\x00\x83\xBB\xE8\x00\x00\x00\x01\x0F\x85\x99\x00\x00\x00\x48\x39\x0B\x0F\x85\x90\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x70\x48\x39\x41\x10\x75\x6A\x48\x8B\x43\x08\x48\x85\xC0\x74\x61\x48\x39\x41\x38\x75\x5B\x83\xB8\x80\x01\x00\x00\x01\x75\x52\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x48\x83\xBB\x80\x00\x00\x00\x00\x75\x53\x83\xBB\xE4\x00\x00\x00\x00\x75\x4A\x83\xBB\x88\x01\x00\x00\x00\x75\x41\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x8B\xE8\x00\x00\x00\x75\x2D\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x85\xC0\x74\x0C\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xEB\x14\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},

{name="manual_cooking_scope",offset=77824,bytes="\x53\x56\x57\x48\x89\xCE\x48\x89\xD3\x48\x85\xC9\x0F\x84\x3B\x01\x00\x00\x48\x85\xD2\x0F\x84\x32\x01\x00\x00\x83\x7E\x28\x02\x0F\x85\x28\x01\x00\x00\x48\x8B\x0B\x48\x85\xC9\x0F\x84\x1C\x01\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\x0F\x01\x00\x00\x48\x39\x41\x10\x0F\x85\x05\x01\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x0F\x84\xF8\x00\x00\x00\x48\x39\x41\x38\x0F\x85\xEE\x00\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE1\x00\x00\x00\x48\x8B\x4E\x18\x48\x85\xC9\x0F\x84\xD4\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xC9\x00\x00\x00\x48\x8B\x03\x48\x39\x81\x98\x01\x00\x00\x0F\x85\xB9\x00\x00\x00\x48\x39\x88\x98\x01\x00\x00\x0F\x85\xAC\x00\x00\x00\x48\x8B\x53\x28\xE8\xAE\x00\x00\x00\x85\xC0\x0F\x84\x9B\x00\x00\x00\x4C\x8B\x46\x18\x4D\x8B\x88\x68\x02\x00\x00\x4D\x85\xC9\x0F\x84\x87\x00\x00\x00\x41\x80\xB9\x40\x01\x00\x00\x01\x75\x7D\x48\x8B\x43\x08\x49\x39\x81\xB8\x00\x00\x00\x75\x70\x48\x8B\x7E\x20\x48\x85\xFF\x74\x67\x48\x83\x7F\x10\x00\x74\x60\x4C\x39\x8F\x98\x01\x00\x00\x75\x57\x48\x89\xF9\x48\x8B\x53\x20\xE8\x56\x00\x00\x00\x85\xC0\x75\x10\x48\x89\xF9\x48\x8B\x53\x18\xE8\x46\x00\x00\x00\x85\xC0\x74\x37\x48\x83\xBF\x58\x01\x00\x00\x00\x74\x2D\x48\x8B\x47\x50\x48\x85\xC0\x74\x24\x8B\x50\x18\x85\xD2\x7E\x1D\x48\x8B\x40\x10\x48\x85\xC0\x74\x14\x3B\x50\x18\x7F\x0F\x31\xC9\x48\x39\x74\xC8\x20\x74\x0A\xFF\xC1\x39\xD1\x7C\xF3\x31\xC0\xEB\x03\x48\x89\xF8\x5F\x5E\x5B\xC3\x31\xC0\x48\x85\xD2\x74\x43\x4C\x8B\x1A\x4D\x85\xDB\x74\x3B\x41\xF6\xC3\x01\x75\x35\x4C\x8B\x11\x4D\x85\xD2\x74\x2D\x41\x0F\xB6\x8B\x30\x01\x00\x00\x85\xC9\x74\x21\x41\x38\x8A\x30\x01\x00\x00\x72\x18\x4D\x8B\x92\xC8\x00\x00\x00\x4D\x85\xD2\x74\x0C\x4D\x39\x5C\xCA\xF8\x75\x05\xB8\x01\x00\x00\x00\xC3",relocations={}},

{name="manual_cooking_recipe_scope",offset=81920,bytes="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\xC1\x01\x00\x00\x4D\x85\xC0\x0F\x84\xB8\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\xAD\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\xA2\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x97\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x8C\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x80\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\x6C\x01\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\x5B\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x4F\x01\x00\x00\xF6\xC2\x01\x0F\x85\x46\x01\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\x39\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x2A\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x1E\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x0E\x01\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x03\x01\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x0F\x84\xEF\x00\x00\x00\x48\x8B\x93\x80\x00\x00\x00\x48\x85\xD2\x74\x65\x48\x89\xF9\xE8\xEE\x00\x00\x00\x85\xC0\x74\x59\x48\x89\xE9\x48\x8B\x93\x88\x00\x00\x00\xE8\xDB\x00\x00\x00\x85\xC0\x0F\x84\xC0\x00\x00\x00\x48\x8B\x85\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xB0\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xA5\x00\x00\x00\x83\xBD\xD8\x00\x00\x00\x00\x0F\x8E\x98\x00\x00\x00\x48\x8B\x43\x60\x48\x85\xC0\x74\x0A\x83\x78\x44\x00\x0F\x85\x85\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x40\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},

{name="manual_cooking_current_session",offset=86016,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x31\xFF\x31\xED\x48\x85\xC9\x0F\x84\xA4\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x99\x01\x00\x00\x48\x8B\x03\x48\x85\xC0\x0F\x84\x8D\x01\x00\x00\x48\x8B\x53\x10\x48\x85\xD2\x0F\x84\x80\x01\x00\x00\x48\x39\x50\x10\x0F\x85\x76\x01\x00\x00\x48\x8B\xB0\x98\x01\x00\x00\x48\x85\xF6\x0F\x84\x66\x01\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x5B\x01\x00\x00\x48\x39\x86\x98\x01\x00\x00\x0F\x85\x4E\x01\x00\x00\x48\x8B\x43\x28\x48\x85\xC0\x0F\x84\x41\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x35\x01\x00\x00\xF6\xC2\x01\x0F\x85\x2C\x01\x00\x00\x48\x8B\x06\x48\x85\xC0\x0F\x84\x20\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x11\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x05\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF5\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\xEA\x00\x00\x00\x48\x8B\x86\x88\x02\x00\x00\x48\x85\xC0\x0F\x84\xDA\x00\x00\x00\x44\x8B\x68\x18\x45\x85\xED\x0F\x8E\xCD\x00\x00\x00\x4C\x8B\x60\x10\x4D\x85\xE4\x0F\x84\xC0\x00\x00\x00\x45\x3B\x6C\x24\x18\x0F\x8F\xB5\x00\x00\x00\x45\x31\xF6\x4B\x8B\x44\xF4\x20\x48\x85\xC0\x0F\x84\x90\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x85\x00\x00\x00\x48\x89\x44\x24\x28\x48\x8B\x40\x50\x48\x85\xC0\x74\x77\x8B\x50\x18\x85\xD2\x0F\x88\x80\x00\x00\x00\x74\x6A\x4C\x8B\x78\x10\x4D\x85\xFF\x74\x75\x41\x3B\x57\x18\x7F\x6F\x89\x54\x24\x20\xC7\x44\x24\x24\x00\x00\x00\x00\x8B\x54\x24\x24\x49\x8B\x4C\xD7\x20\x48\x85\xC9\x74\x33\x48\x39\x71\x18\x75\x2D\x48\x89\x4C\x24\x30\x48\x89\xDA\xFF\x53\x30\x48\x85\xC0\x74\x1D\x48\x3B\x44\x24\x28\x75\x38\x48\x85\xFF\x74\x09\x48\x3B\x7C\x24\x30\x75\x2C\xEB\x08\x48\x8B\x7C\x24\x30\x48\x89\xC5\xFF\x44\x24\x24\x8B\x54\x24\x24\x3B\x54\x24\x20\x7C\xB1\x41\xFF\xC6\x45\x39\xEE\x0F\x8C\x56\xFF\xFF\xFF\x48\x89\xF8\x48\x89\xEA\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="manual_cooking_selected_recipe",offset=90112,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x45\x89\xC5\x4D\x89\xCE\x48\x85\xDB\x0F\x84\x98\x00\x00\x00\x4D\x85\xF6\x0F\x84\x8F\x00\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x7B\x58\x00\x74\x7D\xFF\x53\x30\x48\x85\xC0\x74\x75\x48\x89\xC7\x48\x8B\x6B\x38\x48\x85\xED\x74\x69\x48\x8B\x6D\x00\x48\x85\xED\x74\x60\x40\xF6\xC5\x01\x75\x5A\x48\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x74\x17\x48\x83\x78\x10\x00\x74\x10\x48\x8B\x48\x18\xE8\x51\x00\x00\x00\x72\x3C\x48\x85\xC0\x75\x13\x48\x8B\x8F\xE0\x00\x00\x00\xE8\x3E\x00\x00\x00\x72\x29\x48\x85\xC0\x74\x24\x49\x89\xC0\x48\x89\xF1\x48\x89\xDA\xFF\x53\x58\x48\x85\xC0\x74\x13\x48\x39\xFA\x75\x0E\x4C\x39\x70\x10\x75\x08\x44\x39\x68\x18\x75\x02\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x70\x44\x8B\x51\x18\x45\x85\xD2\x78\x67\x74\x61\x4C\x8B\x59\x10\x4D\x85\xDB\x74\x5C\x45\x3B\x53\x18\x7F\x56\x31\xD2\x49\x8B\x44\xD3\x20\x48\x85\xC0\x74\x4A\x4C\x39\x70\x10\x75\x39\x44\x39\x68\x18\x75\x33\x48\x8B\x08\x48\x85\xC9\x74\x36\x44\x0F\xB6\x85\x30\x01\x00\x00\x45\x85\xC0\x74\x29\x44\x38\x81\x30\x01\x00\x00\x72\x15\x48\x8B\x89\xC8\x00\x00\x00\x48\x85\xC9\x74\x14\x4A\x39\x6C\xC1\xF8\x75\x02\xF8\xC3\xFF\xC2\x44\x39\xD2\x7C\xB0\x31\xC0\xF8\xC3\x31\xC0\xF9\xC3",relocations={}},

{name="manual_cooking_register",offset=94208,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x87\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x78\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x69\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x58\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x44\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x90\x80\x00\x00\x00\x48\x85\xD2\x74\x28\x4C\x89\xF9\xE8\xA9\x08\x00\x00\x85\xC0\x74\x1C\x4C\x89\xF1\x48\x89\xDA\x4D\x8B\x84\x24\xA8\x01\x00\x00\x49\x83\xC0\x70\xE8\xA0\x04\x00\x00\xE9\x8A\x04\x00\x00\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\x89\xCE\x49\x89\xD6\x4D\x89\xC4\x48\x85\xC9\x0F\x84\xB9\x03\x00\x00\x48\x85\xD2\x0F\x84\xB0\x03\x00\x00\x4D\x85\xC0\x0F\x84\xA7\x03\x00\x00\x4D\x8B\x6C\x24\x38\x4D\x85\xED\x0F\x84\x99\x03\x00\x00\x41\x83\xBD\x88\x01\x00\x00\x01\x0F\x85\x8B\x03\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x7D\x03\x00\x00\x49\x83\x3C\x24\x00\x0F\x84\x72\x03\x00\x00\x49\x83\x7C\x24\x08\x00\x0F\x84\x66\x03\x00\x00\x49\x83\x7C\x24\x20\x00\x0F\x84\x5A\x03\x00\x00\x49\x83\x7C\x24\x28\x00\x0F\x84\x4E\x03\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x42\x03\x00\x00\x49\x83\x7C\x24\x48\x00\x0F\x84\x36\x03\x00\x00\x49\x83\x7C\x24\x50\x00\x0F\x84\x2A\x03\x00\x00\x49\x83\x7C\x24\x58\x00\x0F\x84\x1E\x03\x00\x00\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\x0C\x03\x00\x00\x48\x89\xC3\x48\x89\xC1\x49\x8B\x54\x24\x10\xE8\x0F\x03\x00\x00\x85\xC0\x0F\x84\xF4\x02\x00\x00\x4C\x89\xF1\x49\x8B\x54\x24\x18\xE8\xFA\x02\x00\x00\x85\xC0\x0F\x84\xDF\x02\x00\x00\x49\x8B\x6E\x10\x48\x85\xED\x0F\x84\xD2\x02\x00\x00\x49\x8B\x86\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xC2\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xB7\x02\x00\x00\x41\x83\xBE\xD8\x00\x00\x00\x00\x0F\x8E\xA9\x02\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\x9C\x02\x00\x00\x48\x89\x44\x24\x40\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x87\x02\x00\x00\x48\x89\x44\x24\x38\x49\x8B\x85\xA0\x00\x00\x00\x48\x89\x44\x24\x30\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x95\x80\x00\x00\x00\x0F\x85\x59\x02\x00\x00\x48\x89\xD9\x4C\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x0F\x84\x34\x02\x00\x00\x48\x8B\x4C\x24\x38\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x0F\x88\x20\x02\x00\x00\x0F\x85\x07\x02\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x0C\x02\x00\x00\x48\x8B\x44\x24\x30\x49\x39\x85\xA0\x00\x00\x00\x0F\x85\xFA\x01\x00\x00\x49\x39\x6E\x10\x0F\x85\xF0\x01\x00\x00\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x0F\x85\xE1\x01\x00\x00\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x0F\x85\xCF\x01\x00\x00\x48\x89\xF1\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x39\xD8\x0F\x85\xBA\x01\x00\x00\x41\x8B\x8D\x98\x00\x00\x00\x85\xC9\x7E\x1D\x49\x8B\x85\x90\x00\x00\x00\x48\x85\xC0\x0F\x84\x9F\x01\x00\x00\x83\x38\x00\x74\x30\x48\x83\xC0\x70\xFF\xC9\x75\xF3\x41\x8B\x85\x98\x00\x00\x00\x85\xC0\x0F\x88\x83\x01\x00\x00\x3D\xFF\xFF\xFF\x7F\x0F\x84\x78\x01\x00\x00\xFF\xC0\x41\x89\x85\x9C\x00\x00\x00\xE9\x57\x01\x00\x00\x49\x8B\x44\x24\x48\x83\x78\x40\x00\x0F\x85\x5B\x01\x00\x00\x48\x83\x78\x48\x00\x0F\x85\x50\x01\x00\x00\x48\x89\x58\x28\x4C\x89\x70\x30\x48\x8B\x54\x24\x40\x48\x89\x50\x38\xC7\x40\x40\x01\x00\x00\x00\x48\x8B\x56\x18\x48\x85\xD2\x0F\x84\x1F\x01\x00\x00\x48\x89\xD9\x41\xB8\x01\x00\x00\x00\x4D\x89\xF1\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x48\xC7\x44\x24\x28\x00\x00\x00\x00\x41\xFF\x54\x24\x30\x49\x8B\x44\x24\x48\xC7\x40\x40\x00\x00\x00\x00\x48\x83\x78\x48\x00\x0F\x84\xF1\x00\x00\x00\x48\x89\xF1\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x39\xD8\x0F\x85\xDC\x00\x00\x00\x48\x8B\x44\x24\x30\x49\x39\x85\xA0\x00\x00\x00\x0F\x85\xCA\x00\x00\x00\x49\x8B\x44\x24\x48\x48\x8B\x48\x48\x4C\x89\xEA\x4D\x8B\x44\x24\x58\x41\xFF\x54\x24\x50\x85\xC0\x0F\x84\xAC\x00\x00\x00\x49\x8B\x54\x24\x48\x48\xC7\x42\x48\x00\x00\x00\x00\x83\xF8\x01\x0F\x85\x96\x00\x00\x00\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x0F\x85\x87\x00\x00\x00\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x75\x79\x48\x89\xC1\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x7E\x6B\x48\x8B\x44\x24\x38\x48\x8B\x40\x68\x48\x85\xC0\x74\x5D\x83\x78\x18\x01\x75\x57\x48\x8B\x40\x10\x48\x85\xC0\x74\x4E\x83\x78\x18\x01\x7C\x48\x4C\x8B\x78\x20\x4D\x85\xFF\x74\x3F\x4C\x89\xF9\x49\x8B\x54\x24\x40\xE8\x5B\x00\x00\x00\x85\xC0\x74\x2E\x4D\x39\x77\x20\x75\x28\x41\x83\x7F\x30\x00\x7E\x21\x41\x80\x7F\x59\x01\x75\x1A\xB8\x02\x00\x00\x00\xEB\x15\xB8\x01\x00\x00\x00\xEB\x0E\x49\x8B\x44\x24\x48\xC7\x40\x40\x00\x00\x00\x00\x31\xC0\x41\xC7\x85\x80\x00\x00\x00\x00\x00\x00\x00\xEB\x09\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},

{name="manual_cooking_request_dispatch",offset=98304,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x48\x85\xC9\x0F\x84\x18\x03\x00\x00\x4C\x8B\x6B\x28\x4D\x85\xED\x0F\x84\x0B\x03\x00\x00\x41\x83\x7D\x00\x01\x0F\x85\x00\x03\x00\x00\x4C\x8B\x23\x4D\x85\xE4\x0F\x84\xF4\x02\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x94\x24\x88\x01\x00\x00\x0F\x85\xDD\x02\x00\x00\x41\x83\xBC\x24\x80\x00\x00\x00\x00\x0F\x85\xC2\x02\x00\x00\x41\x83\xBC\x24\xE4\x00\x00\x00\x00\x0F\x85\xB3\x02\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x41\x0F\xB1\x55\x00\x0F\x85\x9D\x02\x00\x00\x41\xC7\x45\x40\x00\x00\x00\x00\x49\x8B\x45\x28\x48\x89\x44\x24\x20\xBD\x08\x00\x00\x00\x49\x83\x7D\x30\x00\x0F\x85\x78\x02\x00\x00\x49\x83\x7D\x38\x00\x0F\x85\x6D\x02\x00\x00\xBD\x07\x00\x00\x00\x41\x8B\x45\x44\x85\xC0\x0F\x88\x5C\x02\x00\x00\x89\x44\x24\x28\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x49\x02\x00\x00\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x0F\x85\x37\x02\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x26\x02\x00\x00\x49\x39\x45\x18\x0F\x85\x1C\x02\x00\x00\x49\x8B\x14\x24\x48\x85\xD2\x0F\x84\x0F\x02\x00\x00\x48\x39\x42\x10\x0F\x85\x05\x02\x00\x00\x49\x8B\x44\x24\x08\x48\x85\xC0\x0F\x84\xF7\x01\x00\x00\x48\x39\x42\x38\x0F\x85\xED\x01\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE0\x01\x00\x00\x48\x8B\x4B\x20\x48\x85\xC9\x0F\x84\xD3\x01\x00\x00\x49\x8B\x14\x24\x48\x39\x11\x0F\x85\xC6\x01\x00\x00\x48\x39\x41\x08\x0F\x85\xBC\x01\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x39\x41\x10\x0F\x85\xAA\x01\x00\x00\x48\x83\x7B\x08\x00\x0F\x84\x9F\x01\x00\x00\x48\x83\x7B\x10\x00\x0F\x84\x94\x01\x00\x00\x48\x83\x7B\x18\x00\x0F\x84\x89\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x7E\x01\x00\x00\x48\x83\x7B\x38\x00\x0F\x84\x73\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x68\x01\x00\x00\xFF\x53\x08\xBD\x06\x00\x00\x00\x48\x85\xC0\x0F\x84\x57\x01\x00\x00\x48\x85\xD2\x0F\x84\x4E\x01\x00\x00\x49\x89\xC6\x49\x89\xD7\xBD\x07\x00\x00\x00\x49\x8B\x45\x10\x49\x39\x47\x10\x0F\x85\x35\x01\x00\x00\xBD\x05\x00\x00\x00\x4C\x89\xF1\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\x1F\x01\x00\x00\x49\x89\x45\x30\x4C\x89\xF9\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\xE2\x00\x00\x00\x49\x89\x45\x38\x49\x8B\x4D\x30\xFF\x53\x40\x4C\x39\xF0\x0F\x85\xCE\x00\x00\x00\x49\x8B\x4D\x38\xFF\x53\x40\x4C\x39\xF8\x0F\x85\xBE\x00\x00\x00\x4C\x89\xF1\x48\x8B\x53\x20\x45\x8B\x45\x04\x4D\x8B\x4D\x08\xFF\x53\x10\x48\x85\xC0\x0F\x84\xA3\x00\x00\x00\x4C\x39\xFA\x0F\x85\x9A\x00\x00\x00\x48\x89\xC7\xBD\x07\x00\x00\x00\x48\x8B\x47\x10\x49\x3B\x45\x08\x0F\x85\x84\x00\x00\x00\x8B\x47\x18\x41\x3B\x45\x04\x75\x7B\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x75\x6D\x49\x8B\x84\x24\x70\x01\x00\x00\x49\x39\x45\x18\x75\x5F\x49\x8B\x14\x24\x48\x39\x42\x10\x75\x55\x49\x8B\x45\x28\x48\x3B\x44\x24\x20\x75\x4A\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x75\x3F\x41\x8B\x45\x44\x3B\x44\x24\x28\x75\x35\x49\x8B\x45\x10\x49\x39\x47\x10\x75\x2B\xBD\x05\x00\x00\x00\x4C\x89\xF1\x48\x89\xFA\x4D\x89\xE0\xFF\x53\x18\x41\x89\x45\x40\x83\xF8\x02\x74\x0C\x83\xF8\x01\x75\x0C\xBD\x04\x00\x00\x00\xEB\x05\xBD\x03\x00\x00\x00\x49\x8B\x4D\x38\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x38\x00\x00\x00\x00\x49\x8B\x4D\x30\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x30\x00\x00\x00\x00\x41\x89\x6D\x00\x41\xC7\x84\x24\x88\x01\x00\x00\x00\x00\x00\x00\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="cooking_completion_consume_gate",offset=102400,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x4D\x89\xF0\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1B\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x41\x3B\x46\x18\x0F\x8D\x39\xD8\xD5\xF9\xE9\x98\xD7\xD5\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x23\xD8\xD5\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{73,4,"base",14116998,77},{78,4,"base",14116842,82},{95,4,"base",14116998,99}}},

{name="cooking_completion_retire_gate",offset=106496,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x81\xC4\x40\x01\x00\x00\xE9\xDB\xCC\xD5\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{68,4,"base",14118179,72}}},

{name="manual_cooking_zero_preflight",offset=114688,bytes="\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},

{name="manual_cooking_zero_factory",offset=118784,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x45\x02\x00\x00\x48\x85\xD2\x0F\x84\x3C\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x30\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x39\x02\x00\x00\x85\xC0\x0F\x84\x1E\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xE4\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xE7\x01\x00\x00\x85\xC0\x0F\x84\xCC\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xBF\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xB1\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x9E\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x9A\x01\x00\x00\x85\xC0\x0F\x84\x7F\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x69\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x5C\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x4E\x01\x00\x00\x39\xC6\x0F\x8D\x3C\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x38\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x26\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\x09\x01\x00\x00\x0F\x88\x14\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\x05\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xFA\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xE9\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x78\xFE\xFF\xFF\xFF\xC6\xE9\x71\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},

{name="forge_shutdown_dispatch",offset=122880,bytes="\x53\x56\x48\x83\xEC\x28\x48\x89\xD3\x48\x85\xC9\x0F\x84\x43\x01\x00\x00\x48\x85\xD2\x0F\x84\x3A\x01\x00\x00\x48\x8B\x42\x08\x48\x85\xC0\x0F\x84\x2D\x01\x00\x00\x48\x39\x81\xB8\x00\x00\x00\x0F\x85\x20\x01\x00\x00\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x15\xBA\x09\x00\x00\x00\xB8\x01\x00\x00\x00\x48\x8B\xB3\xC8\x01\x00\x00\xF0\x0F\xB1\x16\x8B\x83\xE8\x00\x00\x00\x83\xF8\x04\x0F\x87\xDF\x00\x00\x00\x85\xC0\x74\x05\x83\xF8\x04\x75\x0D\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\xE8\x00\x00\x00\x45\x85\xC0\x0F\x84\xB9\x00\x00\x00\x45\x85\xC9\x0F\x84\xB0\x00\x00\x00\x45\x39\xC8\x0F\x85\xA7\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x0F\x85\x9A\x00\x00\x00\x83\xBB\xE4\x00\x00\x00\x00\x0F\x85\x8D\x00\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\x88\x01\x00\x00\x75\x7C\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x18\x83\x38\x02\x74\x50\x83\x38\x08\x74\x4B\x48\x83\x78\x30\x00\x75\x44\x48\x83\x78\x38\x00\x75\x3D\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x33\xC7\x83\xE8\x00\x00\x00\x02\x00\x00\x00\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x83\xF8\x01\x75\x1B\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x2B\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x03\x00\x00\x00\xEB\x10\xB8\x02\x00\x00\x00\xEB\x09\xB8\x03\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x5E\x5B\xC3",relocations={}},

{name="forge_thread_capture",offset=126976,bytes="\x53\x48\x83\xEC\x30\x48\x89\xCB\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x8B\x01\x48\x85\xC0\x74\x78\x48\x8B\x00\x48\x85\xC0\x74\x70\xFF\xD0\x85\xC0\x74\x6A\x89\x44\x24\x20\x83\x7B\x08\x00\x75\x48\x48\x8B\x43\x30\x48\x85\xC0\x74\x57\x48\x83\x7B\x10\x00\x74\x50\xB9\x01\x00\x00\x00\x31\xC0\x48\x8B\x53\x30\xF0\x0F\xB1\x8A\x88\x01\x00\x00\x75\x3B\x48\x8B\x4B\x18\xFF\x53\x10\x48\x8B\x4B\x20\xFF\x53\x10\x48\x8B\x4B\x28\xFF\x53\x10\x48\x8B\x53\x30\xC7\x82\x88\x01\x00\x00\x00\x00\x00\x00\x8B\x54\x24\x20\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x30\x5B\xC3",relocations={}},

{name="forge_shutdown_entry",offset=131072,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x31\xFF\x48\x85\xD2\x74\x40\x48\x83\x3B\x00\x74\x3A\x48\x83\x7B\x10\x00\x74\x33\x48\x8B\x43\x08\x48\x85\xC0\x74\x17\x8B\x78\x08\x48\x8B\x00\x48\x85\xC0\x74\x0C\x48\x8B\x00\x48\x85\xC0\x74\x04\xFF\xD0\xEB\x02\x31\xC0\x41\x89\xC0\x41\x89\xF9\x48\x89\xF1\x48\x8B\x13\xFF\x53\x10\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},

{name="forge_close_wrapper",offset=135168,bytes="\x48\x89\x5C\x24\x08\x9C\x50\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\xA1\x00\x00\x00\x80\x38\x02\x0F\x85\x98\x00\x00\x00\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x83\x38\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x78\x10\x00\x74\x7D\x48\x83\x78\x28\x00\x74\x76\xF0\xFF\x40\x18\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x81\xEC\x88\x00\x00\x00\x0F\x11\x44\x24\x20\x0F\x11\x4C\x24\x30\x0F\x11\x54\x24\x40\x0F\x11\x5C\x24\x50\x0F\x11\x64\x24\x60\x0F\x11\x6C\x24\x70\x48\x89\xC2\xFF\x50\x28\x0F\x10\x44\x24\x20\x0F\x10\x4C\x24\x30\x0F\x10\x54\x24\x40\x0F\x10\x5C\x24\x50\x0F\x10\x64\x24\x60\x0F\x10\x6C\x24\x70\x48\x81\xC4\x88\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\xF0\xFF\x48\x18\x58\x9D\xE9\xEF\x7E\x02\xFA",relocations={{9,8,"root",111360,-1},{41,8,"root",111360,-1},{179,8,"root",111360,-1},{194,4,"base",17076149,198}}},

{name="crockpot_pending_adopt_candidate",offset=139264,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x58\x49\x89\xCD\x49\x89\xD6\x4D\x89\xC4\x4D\x89\xCF\x31\xDB\x48\xC7\x44\x24\x30\x00\x00\x00\x00\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x4D\x85\xED\x0F\x84\xA3\x02\x00\x00\x4D\x85\xF6\x0F\x84\x9A\x02\x00\x00\x4D\x85\xE4\x0F\x84\x91\x02\x00\x00\x4D\x85\xFF\x0F\x84\x88\x02\x00\x00\x41\x83\xBC\x24\x80\x00\x00\x00\x01\x0F\x85\x79\x02\x00\x00\x41\x83\xBC\x24\x88\x01\x00\x00\x01\x0F\x85\x6A\x02\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x5B\x02\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x4C\x02\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\x3D\x02\x00\x00\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x44\x24\x40\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x8E\x20\x02\x00\x00\x49\x8B\x9C\x24\x90\x00\x00\x00\x48\x85\xDB\x0F\x84\x0F\x02\x00\x00\x48\x89\xDF\x89\xCD\x8B\x03\x83\xF8\x01\x74\x05\x83\xF8\x02\x75\x5C\x4C\x39\x73\x18\x75\x56\x4C\x39\x6B\x08\x75\x4B\x4C\x39\x7B\x20\x75\x45\x48\x8B\x44\x24\x40\x48\x39\x43\x50\x75\x3A\x49\x8B\x44\x24\x08\x48\x39\x43\x48\x75\x2F\x49\x8B\x45\x10\x48\x39\x43\x10\x75\x25\x49\x8B\x47\x10\x48\x39\x43\x28\x75\x1B\x48\x83\x7B\x40\x00\x74\x14\x48\x83\x7B\x60\x00\x74\x0D\x48\x89\xDA\xB8\x02\x00\x00\x00\xE9\xA9\x01\x00\x00\xE9\xA2\x01\x00\x00\x48\x83\xC3\x70\xFF\xC9\x75\x90\x48\x89\xFB\x89\xE9\x31\xC0\xBA\x03\x00\x00\x00\xF0\x0F\xB1\x13\x74\x0F\x48\x83\xC3\x70\xFF\xC9\x75\xEB\x31\xDB\xE9\x79\x01\x00\x00\x4C\x89\xE9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x89\x44\x24\x30\x48\x85\xC0\x0F\x84\x2F\x01\x00\x00\x4C\x89\xF1\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x89\x44\x24\x38\x48\x85\xC0\x0F\x84\x14\x01\x00\x00\x83\x3B\x03\x0F\x85\x0B\x01\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xFC\x00\x00\x00\x48\x8B\x44\x24\x40\x49\x39\x84\x24\xA0\x00\x00\x00\x0F\x85\xE9\x00\x00\x00\x4D\x39\x7E\x20\x0F\x85\xDF\x00\x00\x00\x41\x83\x7E\x30\x01\x0F\x85\xD4\x00\x00\x00\x41\x80\x7E\x58\x01\x0F\x85\xC9\x00\x00\x00\x41\x80\x7E\x59\x01\x0F\x85\xBE\x00\x00\x00\x49\x8B\xAD\x58\x01\x00\x00\x48\x85\xED\x0F\x84\xAE\x00\x00\x00\x49\x83\x7E\x10\x00\x0F\x85\xA3\x00\x00\x00\x49\x8B\x7D\x10\x48\x85\xFF\x0F\x84\x96\x00\x00\x00\x49\x8B\x77\x10\x48\x85\xF6\x0F\x84\x89\x00\x00\x00\x49\x8B\x85\x98\x01\x00\x00\x48\x85\xC0\x74\x7D\x80\xB8\x40\x01\x00\x00\x01\x75\x74\x49\x8B\x54\x24\x08\x48\x85\xD2\x74\x6A\x48\x39\x90\xB8\x00\x00\x00\x75\x61\x4C\x89\x6B\x08\x48\x89\x7B\x10\x4C\x89\x73\x18\x4C\x89\x7B\x20\x48\x89\x73\x28\x48\x89\x6B\x30\x48\xC7\x43\x38\x00\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x89\x4B\x40\x48\x89\x53\x48\x48\x8B\x4C\x24\x40\x48\x89\x4B\x50\x48\x89\x43\x58\x48\x8B\x4C\x24\x38\x48\x89\x4B\x60\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x48\x89\x43\x68\xC7\x03\x01\x00\x00\x00\x48\x89\xDA\xB8\x01\x00\x00\x00\xEB\x31\x48\x8B\x4C\x24\x38\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x83\x3B\x03\x75\x06\xC7\x03\x00\x00\x00\x00\x31\xC0\x48\x83\xC4\x58\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="crockpot_pending_add_gate_candidate",offset=143360,bytes="\x41\x54\x41\x55\x48\x83\xEC\x60\x48\x89\x4C\x24\x30\x48\x89\x54\x24\x38\x4C\x89\x44\x24\x40\x4C\x89\x4C\x24\x48\x48\x8B\x84\x24\x90\x00\x00\x00\x48\x89\x44\x24\x20\x48\x8B\x84\x24\x98\x00\x00\x00\x48\x89\x44\x24\x28\x49\xBC\x00\xE1\x02\x87\x01\x00\x00\x00\xF0\x41\xFF\x44\x24\x44\x41\x83\x7C\x24\x40\x01\x75\x70\x4D\x39\x7C\x24\x28\x75\x69\x49\x83\x7E\x10\x00\x75\x5E\x49\x8B\x47\x10\x49\x39\x44\x24\x38\x75\x49\x49\x8B\x46\x20\x49\x39\x44\x24\x30\x75\x3E\x4D\x8B\x04\x24\x41\x83\xB8\x80\x00\x00\x00\x01\x75\x3E\x41\x83\xB8\x88\x01\x00\x00\x01\x75\x34\x49\x83\x7E\x10\x00\x75\x29\x4C\x89\xF9\x4C\x89\xF2\x49\x89\xC1\x41\xFF\x54\x24\x08\x83\xF8\x02\x74\x16\x83\xF8\x01\x75\x07\x49\x89\x54\x24\x48\xEB\x0E\x4C\x89\xF1\x31\xD2\x41\xFF\x54\x24\x10\x31\xC0\xEB\x19\x48\x8B\x4C\x24\x30\x48\x8B\x54\x24\x38\x4C\x8B\x44\x24\x40\x4C\x8B\x4C\x24\x48\x41\xFF\x54\x24\x18\xF0\x41\xFF\x4C\x24\x44\x4D\x8B\x5C\x24\x20\x48\x83\xC4\x60\x41\x5D\x41\x5C\x41\xFF\xE3",relocations={{56,8,"root",188672,-1}}},

{name="crockpot_pending_finalize_candidate",offset=147456,bytes="\x53\x55\x56\x57\x41\x54\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x4D\x89\xC4\x48\x85\xDB\x0F\x84\x50\x01\x00\x00\x48\x85\xF6\x0F\x84\x47\x01\x00\x00\x4D\x85\xE4\x0F\x84\x3E\x01\x00\x00\x83\xBE\x80\x00\x00\x00\x01\x0F\x85\x31\x01\x00\x00\x83\xBE\x88\x01\x00\x00\x01\x0F\x85\x24\x01\x00\x00\x83\x3B\x01\x0F\x85\x1B\x01\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x0D\x01\x00\x00\x48\x83\xBE\xB0\x00\x00\x00\x00\x0F\x84\xFF\x00\x00\x00\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x0F\x84\xEA\x00\x00\x00\x48\x85\xD2\x0F\x84\xE1\x00\x00\x00\x48\x89\xC7\x48\x89\xD5\x48\x8B\x87\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\xCB\x00\x00\x00\x48\x39\x43\x30\x0F\x85\xC1\x00\x00\x00\x48\x8B\x50\x68\x48\x85\xD2\x0F\x84\xB4\x00\x00\x00\x48\x83\x7D\x10\x00\x74\x55\x48\x39\x45\x10\x0F\x85\xA3\x00\x00\x00\x83\x7D\x30\x01\x0F\x85\x99\x00\x00\x00\x80\x7D\x58\x01\x0F\x85\x8F\x00\x00\x00\x83\x7A\x18\x01\x0F\x85\x85\x00\x00\x00\x48\x8B\x52\x10\x48\x85\xD2\x74\x7C\x48\x83\x7A\x18\x01\x72\x75\x48\x39\x6A\x20\x75\x6F\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x13\x75\x5F\xB8\x01\x00\x00\x00\xEB\x5A\x83\x7A\x18\x00\x75\x52\xB8\x01\x00\x00\x00\xBA\x03\x00\x00\x00\xF0\x0F\xB1\x13\x75\x42\x48\x89\xE9\x31\xD2\x41\xFF\xD4\x48\x8B\x4B\x60\x48\x85\xC9\x74\x06\xFF\x96\xB0\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x74\x06\xFF\x96\xB0\x00\x00\x00\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCB\xFF\xC9\x75\xF8\xC7\x03\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},

{name="crockpot_virtual_scope_candidate",offset=151552,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x89\xCE\x49\x89\xD4\x48\x85\xF6\x0F\x84\x3F\x02\x00\x00\x4D\x85\xE4\x0F\x84\x36\x02\x00\x00\x4D\x8B\x6C\x24\x18\x4D\x85\xED\x0F\x84\x28\x02\x00\x00\x49\x8B\x85\x40\x3E\xD6\x05\x48\x85\xC0\x0F\x84\x18\x02\x00\x00\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x0F\x84\x08\x02\x00\x00\x48\x8B\x00\x48\x85\xC0\x0F\x84\xFC\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xF1\x01\x00\x00\x48\x8B\x40\x30\x48\x85\xC0\x0F\x84\xE4\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xD9\x01\x00\x00\x49\x8B\x95\xB0\x40\xD6\x05\x48\x85\xD2\x0F\x84\xC9\x01\x00\x00\x48\x39\x10\x0F\x85\xC0\x01\x00\x00\x80\x78\x60\x01\x0F\x85\xB6\x01\x00\x00\x48\x8B\x58\x50\x49\x3B\x1C\x24\x0F\x85\xA8\x01\x00\x00\x48\x85\xDB\x0F\x84\x9F\x01\x00\x00\x49\x8B\x44\x24\x08\x48\x39\x43\x10\x0F\x85\x90\x01\x00\x00\x49\x8B\x7C\x24\x10\x48\x85\xFF\x0F\x84\x82\x01\x00\x00\x48\x39\x7B\x38\x0F\x85\x78\x01\x00\x00\x83\xBF\x80\x01\x00\x00\x01\x0F\x85\x6B\x01\x00\x00\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x5E\x01\x00\x00\x48\x89\xF1\x49\x8D\x95\x48\x8E\xD1\x05\xE8\x60\x01\x00\x00\x85\xC0\x0F\x84\x47\x01\x00\x00\x80\x7E\x58\x01\x0F\x85\x3D\x01\x00\x00\x80\x7E\x59\x01\x0F\x85\x33\x01\x00\x00\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x26\x01\x00\x00\x48\x8B\x40\x10\x48\x85\xC0\x0F\x84\x19\x01\x00\x00\x8B\x48\x20\x85\xC9\x0F\x88\x0E\x01\x00\x00\x3B\x48\x28\x0F\x85\x05\x01\x00\x00\x4C\x8B\x7E\x20\x4C\x89\xF9\x49\x8D\x95\x78\x8F\xD1\x05\xE8\x03\x01\x00\x00\x85\xC0\x0F\x84\xEA\x00\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\xDF\x00\x00\x00\x49\x8B\x87\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xCF\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xC4\x00\x00\x00\x48\x8B\x46\x48\x48\x85\xC0\x0F\x84\xB7\x00\x00\x00\x48\x8B\x58\x78\x31\xED\x48\x85\xDB\x74\x21\x48\x83\x7B\x18\x40\x0F\x87\xA1\x00\x00\x00\x48\x3B\x6B\x18\x0F\x83\x97\x00\x00\x00\x48\x8B\x44\xEB\x20\xFF\xC5\x48\x85\xC0\x74\xEA\x49\x8D\x95\x70\x75\xBC\x00\x48\x39\x50\x10\x75\x75\x4C\x8B\x70\x20\x4C\x89\xF1\x49\x8D\x95\x20\x8D\xD1\x05\xE8\x7C\x00\x00\x00\x85\xC0\x74\x5E\x49\x83\x7E\x10\x00\x74\x57\x49\x8B\x86\x98\x01\x00\x00\x48\x85\xC0\x74\x4B\x80\xB8\x40\x01\x00\x00\x01\x75\x42\x48\x39\xB8\xB8\x00\x00\x00\x75\x39\x49\x8B\x86\x58\x01\x00\x00\x48\x85\xC0\x74\x2D\x48\x8B\x40\x68\x48\x85\xC0\x74\x24\x83\x78\x18\x01\x75\x1E\x48\x8B\x40\x10\x48\x85\xC0\x74\x15\x48\x83\x78\x18\x01\x72\x0E\x48\x39\x70\x20\x75\x08\x4C\x89\xF8\x4C\x89\xF2\xEB\x0D\x48\x85\xDB\x0F\x85\x5F\xFF\xFF\xFF\x31\xC0\x31\xD2\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x82\x30\x01\x00\x00\x45\x85\xC0\x74\x22\x44\x38\x80\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xC0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},

{name="crockpot_owned_recipe_candidate",offset=155648,bytes="\x48\x85\xC9\x0F\x84\x07\x01\x00\x00\x48\x85\xD2\x0F\x84\xFE\x00\x00\x00\x4D\x85\xC0\x0F\x84\xF5\x00\x00\x00\x4D\x85\xC9\x0F\x84\xEC\x00\x00\x00\x41\x83\xB9\xE0\x00\x00\x00\x01\x0F\x85\xDE\x00\x00\x00\x48\x39\x51\x20\x0F\x85\xD4\x00\x00\x00\x83\x79\x30\x01\x0F\x85\xCA\x00\x00\x00\x49\x8B\x80\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\xBA\x00\x00\x00\x48\x39\x41\x10\x0F\x85\xB0\x00\x00\x00\x4D\x8B\x91\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xA0\x00\x00\x00\x45\x8B\x99\x98\x00\x00\x00\x45\x85\xDB\x0F\x8E\x90\x00\x00\x00\x41\x83\x3A\x02\x75\x76\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x49\x39\x42\x68\x75\x66\x49\x8B\x80\x58\x01\x00\x00\x49\x39\x4A\x18\x75\x59\x49\x39\x52\x20\x75\x53\x4D\x39\x42\x08\x75\x4D\x49\x39\x42\x30\x75\x47\x49\x8B\x40\x10\x48\x85\xC0\x74\x52\x49\x39\x42\x10\x75\x38\x48\x8B\x42\x10\x48\x85\xC0\x74\x43\x49\x39\x42\x28\x75\x29\x49\x8B\x81\xA0\x00\x00\x00\x49\x39\x42\x50\x75\x1C\x49\x8B\x41\x08\x49\x39\x42\x48\x75\x12\x49\x83\x7A\x40\x00\x74\x0B\x49\x83\x7A\x60\x00\x74\x04\x4C\x89\xD0\xC3\x49\x8B\x80\x58\x01\x00\x00\x49\x83\xC2\x70\x41\xFF\xCB\x0F\x85\x70\xFF\xFF\xFF\x31\xC0\xC3",relocations={}},

{name="crockpot_virtual_progress_candidate",offset=159744,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x48\x81\xEC\xA8\x00\x00\x00\x0F\x29\x74\x24\x70\x0F\x29\xBC\x24\x80\x00\x00\x00\x44\x0F\x29\x84\x24\x90\x00\x00\x00\x48\x89\xCE\x48\x89\xD7\x48\x85\xF6\x0F\x84\xBC\x01\x00\x00\x48\x85\xFF\x0F\x84\xB3\x01\x00\x00\x4D\x85\xC0\x0F\x84\xAA\x01\x00\x00\x4D\x85\xC9\x0F\x84\xA1\x01\x00\x00\xF3\x41\x0F\x10\x31\xF3\x41\x0F\x10\x38\xF3\x44\x0F\x10\x46\x20\x66\x0F\x7E\xF0\x85\xC0\x0F\x8E\x85\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x7A\x01\x00\x00\x66\x0F\x7E\xF8\x85\xC0\x0F\x8E\x6E\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x63\x01\x00\x00\x66\x44\x0F\x7E\xC0\x85\xC0\x0F\x8E\x56\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x4B\x01\x00\x00\xC7\x44\x24\x50\xFF\x03\x00\x00\xC7\x44\x24\x54\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x54\x48\x8B\x07\x4C\x8B\x88\x70\x03\x00\x00\xFF\x90\x68\x03\x00\x00\x84\xC0\x0F\x84\x16\x01\x00\x00\x8B\x44\x24\x54\x85\xC0\x0F\x8E\x0A\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\xFF\x00\x00\x00\xF3\x41\x0F\x59\xF8\xF3\x0F\x59\x7C\x24\x54\x66\x0F\x7E\xF8\x85\xC0\x0F\x8E\xE8\x00\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\xDD\x00\x00\x00\xC7\x44\x24\x50\xFC\x03\x00\x00\x48\xC7\x44\x24\x58\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x58\x48\x8B\x07\x4C\x8B\x88\x30\x03\x00\x00\xFF\x90\x28\x03\x00\x00\x84\xC0\x0F\x84\xA7\x00\x00\x00\x4C\x8B\x64\x24\x58\x4D\x85\xE4\x0F\x84\x99\x00\x00\x00\xC7\x44\x24\x50\xFD\x03\x00\x00\x48\xC7\x44\x24\x60\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x60\x48\x8B\x07\x4C\x8B\x88\x30\x03\x00\x00\xFF\x90\x28\x03\x00\x00\x84\xC0\x74\x67\x4C\x8B\x6C\x24\x60\x4D\x85\xED\x74\x5D\x4C\x89\xE1\x48\x8B\x01\x48\x8B\x90\x80\x01\x00\x00\xFF\x90\x78\x01\x00\x00\x66\x0F\x7E\xC0\x85\xC0\x78\x42\x3D\x00\x00\x80\x7F\x73\x3B\xF3\x0F\x58\xF8\xF3\x0F\x5D\xFE\x4C\x89\xE9\x48\x8B\x01\x0F\x28\xCE\x4C\x8B\x80\x90\x01\x00\x00\xFF\x90\x88\x01\x00\x00\x4C\x89\xE1\x48\x8B\x01\x0F\x28\xCF\x4C\x8B\x80\x90\x01\x00\x00\xFF\x90\x88\x01\x00\x00\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x0F\x28\x74\x24\x70\x0F\x28\xBC\x24\x80\x00\x00\x00\x44\x0F\x28\x84\x24\x90\x00\x00\x00\x48\x81\xC4\xA8\x00\x00\x00\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="crockpot_virtual_dispatch_candidate",offset=163840,bytes="\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x48\x48\x89\xCE\x48\x89\xD7\x4D\x89\xC5\x4D\x89\xCC\xF0\x41\xFF\x44\x24\x24\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x83\xB8\xE0\x00\x00\x00\x01\x0F\x85\x88\x00\x00\x00\x48\x89\xF9\x4C\x89\xE2\x41\xFF\x54\x24\x38\x48\x85\xC0\x74\x78\x48\x89\x44\x24\x30\x49\x83\x7C\x24\x60\x00\x74\x6B\x49\x83\x7C\x24\x68\x00\x74\x63\x49\x89\xD0\x48\x89\xC2\x48\x89\xF9\x4D\x8B\x4C\x24\x60\x41\xFF\x54\x24\x68\x48\x85\xC0\x74\x4B\x48\x8B\x44\x24\x30\x8B\x50\x18\x41\x8B\x4C\x24\x28\x85\xC9\x74\x3A\x81\xF9\x00\x10\x00\x00\x77\x32\x4D\x8B\x4C\x24\x30\x4D\x85\xC9\x74\x28\x41\x39\x11\x74\x0A\x49\x83\xC1\x08\xFF\xC9\x75\xF3\xEB\x19\x49\x83\xC1\x04\x48\x89\xF1\x48\x89\xFA\x4D\x89\xE8\x41\xFF\x54\x24\x40\xBE\x01\x00\x00\x00\xEB\x0C\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x48\x31\xF6\xF0\x41\xFF\x4C\x24\x24\x89\xF0\x48\x83\xC4\x48\x41\x5D\x41\x5C\x5F\x5E\xC3",relocations={}},

{name="crockpot_virtual_run_gate_candidate",offset=167936,bytes="\x48\x89\xE9\x48\x89\xFA\x4D\x89\xF8\x49\xB9\x00\xE0\x02\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x02\x87\x01\x00\x00\x00\xFF\xD0\xE9\x2A\x03\xFD\xF9",relocations={{11,8,"root",188416,-1},{21,8,"root",163840,-1},{32,4,"base",16749390,36}}},

{name="crockpot_completion_retire_candidate",offset=172032,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x8B\x8C\x24\xD0\x01\x00\x00\x48\x8B\x94\x24\xD8\x01\x00\x00\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x81\xC4\x50\x01\x00\x00\xE9\x58\xDE\xB9\xF9",relocations={{30,8,"root",0,-1},{40,8,"root",32768,-1},{78,4,"base",12353194,82}}},

{name="crockpot_virtual_cancel_candidate",offset=176128,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x4C\x89\xC7\x48\x85\xDB\x74\x54\x48\x85\xF6\x74\x4F\x48\x85\xFF\x74\x4A\x48\x83\x7E\x38\x00\x74\x43\x48\x83\x7E\x50\x00\x74\x3C\xF0\xFF\x46\x24\x48\x89\xD9\x48\x89\xF2\xFF\x56\x38\x48\x39\xF8\x75\x22\x48\x89\xD9\x31\xD2\xFF\x56\x50\x80\x7B\x58\x00\x75\x14\x83\x7B\x30\x00\x75\x0E\x48\x83\x7B\x10\x00\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\xF0\xFF\x4E\x24\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},

{name="crockpot_virtual_cancel_owned_candidate",offset=180224,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x28\x48\x89\xCB\x48\x89\xD6\x4C\x89\xC7\x48\x85\xDB\x0F\x84\xA7\x00\x00\x00\x48\x85\xF6\x0F\x84\x9E\x00\x00\x00\x48\x85\xFF\x0F\x84\x95\x00\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x87\x00\x00\x00\x48\x83\xBE\xD0\x00\x00\x00\x00\x74\x7D\x48\x83\x7F\x58\x00\x74\x76\x31\xC0\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x96\x80\x00\x00\x00\x75\x69\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x74\x4A\x48\x85\xD2\x74\x45\x49\x89\xC4\x49\x89\xD5\x4C\x8B\x73\x20\x4C\x89\xE9\x48\x89\xFA\x4D\x89\xF0\xFF\x57\x58\x83\xF8\x01\x75\x2A\x83\x3B\x00\x74\x14\x4C\x89\xE1\x4C\x89\xEA\x49\x89\xF0\xFF\x96\xD0\x00\x00\x00\x83\xF8\x01\x75\x11\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x13\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\x31\xC0\xEB\x05\xB8\x02\x00\x00\x00\x48\x83\xC4\x28\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},

{name="crockpot_cancel_router_candidate",offset=184320,bytes="\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x48\x39\x41\x68\x75\x2C\x48\x8B\x82\xA8\x01\x00\x00\x48\x85\xC0\x74\x2C\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x20\x4C\x8B\x40\x50\x4D\x85\xC0\x74\x17\x49\x8B\x40\x70\x48\x85\xC0\x74\x0E\xFF\xE0\x48\xB8\x00\xA0\x00\x87\x01\x00\x00\x00\xFF\xE0\x31\xC0\xC3",relocations={{62,8,"root",40960,-1}}},

}

local controlTemplate="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x60\xA2\xD3\x85\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\x00\x20\x00\x87\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\x00\x40\x00\x87\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x20\x3D\xDA\x80\x01\x00\x00\x00\xE0\x11\x65\x83\x01\x00\x00\x00\x48\x79\xD3\x85\x01\x00\x00\x00\x80\x02\x5D\x80\x01\x00\x00\x00\x40\xA0\xA0\x80\x01\x00\x00\x00\xD0\x49\xDA\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x04\x00\x00\x00\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00\x00\x70\x00\x87\x01\x00\x00\x00\x00\x90\x00\x87\x01\x00\x00\x00\x00\x80\x00\x87\x01\x00\x00\x00\x40\x01\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xD0\x02\x87\x01\x00\x00\x00\x00\x30\x00\x87\x01\x00\x00\x00\x40\xAD\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x80\x0F\x68\x83\x01\x00\x00\x00\xD0\x3C\x68\x83\x01\x00\x00\x00\x80\x15\x68\x83\x01\x00\x00\x00\xF0\xC0\xD9\x80\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\xF0\xA2\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x20\x42\x68\x83\x01\x00\x00\x00\x00\x50\x00\x87\x01\x00\x00\x00\xA0\x3D\x68\x83\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x00\xB0\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x92\x9B\x84\x01\x00\x00\x00\x00\x02\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\x80\x01\x87\x01\x00\x00\x00\x00\xB1\x01\x87\x01\x00\x00\x00\x70\x66\xD7\x80\x01\x00\x00\x00\x00\xD0\x01\x87\x01\x00\x00\x00\x00\xF0\x01\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00"

local controlRelocations={

{0,"player",0},

{8,"runner",0},

{16,"villager",0},

{24,"recipe",0},

{32,"root",8192},

{40,"forge",0},

{48,"base",14108880},

{56,"base",56962544},

{64,"root",16384},

{72,"root",256},

{80,"base",14302496},

{88,"base",56955360},

{96,"base",97745224},

{104,"base",6095488},

{112,"base",10526784},

{120,"base",14305744},

{136,"base",12370384},

{160,"generation",0},

{168,"base",6464432},

{176,"base",6201520},

{184,"base",6201712},

{192,"root",28672},

{200,"root",36864},

{208,"root",32768},

{216,"root",320},

{240,"root",184320},

{248,"root",12288},

{256,"base",14200128},

{264,"base",14306464},

{272,"base",57151360},

{280,"base",57162960},

{288,"base",57152896},

{296,"base",14270704},

{304,"root",4096},

{312,"base",14197488},

{320,"base",14306464},

{328,"base",57164320},

{336,"root",20480},

{344,"base",57163168},

{352,"base",14303312},

{360,"base",12370384},

{368,"identity",0},

{376,"root",45056},

{400,"base",77304376},

{408,"root",512},

{416,"root",81920},

{424,"root",110592},

{432,"root",86016},

{440,"root",90112},

{448,"root",94208},

{456,"root",111104},

{464,"root",98304},

{472,"root",110848},

{480,"base",14116464},

{488,"root",118784},

{496,"root",126976},

{504,"root",111232},

}

local dataTemplates={

{offset=110592,bytes="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x38\x2E\xD1\x85\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x12\xD6\x85\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\xC0\x01\x87\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\xD0\x5F\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00\x00\xE1\x02\x87\x01\x00\x00\x00\x00\x40\x02\x87\x01\x00\x00\x00\x60\xF8\xA3\x80\x01\x00\x00\x00",relocations={{0,"player",0},{8,"runner",0},{16,"identity",0},{24,"base",97594936},{32,"forge",0},{40,"base",97915600},{48,"root",77824},{56,"recipe",0},{64,"base",14108880},{72,"root",256},{80,"root",4096},{88,"root",81920},{96,"root",111104},{104,"root",114688},{112,"root",77824},{120,"root",110592},{128,"base",97619232},{136,"base",97619832},{144,"base",14108880},{152,"base",56962544},{160,"base",12345296},{168,"root",0},{176,"base",97619528},{184,"root",188672},{192,"root",147456},{200,"base",10745952}}},

{offset=110848,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",86016},{16,"root",90112},{24,"root",94208},{32,"root",110592},{40,"root",111104},{48,"base",6464432},{56,"base",6201520},{64,"base",6201712}}},

{offset=111232,bytes="\x90\x92\x9B\x84\x01\x00\x00\x00",relocations={{0,"base",77304464}}},

{offset=111248,bytes="\x20\x00\x5D\x80\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00",relocations={{0,"base",6094880},{8,"base",97619232},{16,"base",97619832},{24,"base",97619528},{32,"root",0}}},

{offset=111360,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00\x00\xE0\x01\x87\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",111232},{16,"root",122880}}},

{offset=111392,bytes="\xF0\xB3\x01\x87\x01\x00\x00\x00\x00\x00\x02\x87\x01\x00\x00\x00",relocations={{0,"root",111600},{8,"root",131072}}},

{offset=188416,bytes="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x00\x00\x00\x80\x01\x00\x00\x00",relocations={{0,"player",0},{8,"identity",0},{16,"runner",0},{24,"base",0}}},

{offset=188456,bytes="\x26\x00\x00\x00\x00\x00\x00\x00\x00\xE2\x02\x87\x01\x00\x00\x00\x00\x50\x02\x87\x01\x00\x00\x00\x00\x70\x02\x87\x01\x00\x00\x00\x30\x44\xDA\x80\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\x00\xB0\x02\x87\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00\x00\x60\x02\x87\x01\x00\x00\x00\x00\xC0\x02\x87\x01\x00\x00\x00",relocations={{8,"root",188928},{16,"root",151552},{24,"root",159744},{32,"base",14304304},{40,"base",14303312},{48,"root",176128},{56,"root",0},{64,"root",155648},{72,"root",180224}}},

{offset=188672,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x00\x20\x02\x87\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\xE0\x11\x65\x83\x01\x00\x00\x00\xA3\x85\xBC\x80\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",139264},{16,"base",14303312},{24,"base",56955360},{32,"base",12354979}}},

{offset=188752,bytes="\x00\xE0\x02\x87\x01\x00\x00\x00",relocations={{0,"root",188416}}},

{offset=188928,bytes="\x0B\x60\xC0\x00\x00\x00\xC8\x42\x0D\x60\xC0\x00\x00\x00\xC8\x43\x0E\x60\xC0\x00\x00\x00\xFA\x43\x0F\x60\xC0\x00\x00\x00\xFA\x43\x10\x60\xC0\x00\x00\x00\xC8\x43\x11\x60\xC0\x00\x00\x00\xC8\x43\x12\x60\xC0\x00\x00\x00\xC8\x43\x13\x60\xC0\x00\x00\x00\xC8\x43\x14\x60\xC0\x00\x00\x00\xFA\x43\x15\x60\xC0\x00\x00\x00\xC8\x43\x16\x60\xC0\x00\x00\x00\xFA\x43\x17\x60\xC0\x00\x00\x00\xC8\x43\x18\x60\xC0\x00\x00\x00\xC8\x43\x19\x60\xC0\x00\x00\x00\xC8\x43\x1E\x60\xC0\x00\x00\x00\xC8\x43\x1F\x60\xC0\x00\x00\x00\xC8\x43\x20\x60\xC0\x00\x00\x00\xC8\x43\x21\x60\xC0\x00\x00\x00\xC8\x43\x22\x60\xC0\x00\x00\x00\xC8\x43\x23\x60\xC0\x00\x00\x00\xC8\x43\x24\x60\xC0\x00\x00\x00\xC8\x43\x2B\x60\xC0\x00\x00\x00\x96\x43\x2C\x60\xC0\x00\x00\x00\xC8\x43\x2D\x60\xC0\x00\x00\x00\xC8\x43\x2F\x60\xC0\x00\x00\x00\xC8\x43\x30\x60\xC0\x00\x00\x00\xC8\x43\x31\x60\xC0\x00\x00\x00\xC8\x43\x32\x60\xC0\x00\x00\x00\xC8\x42\x33\x60\xC0\x00\x00\x00\xFA\x43\x34\x60\xC0\x00\x00\x00\xC8\x42\x35\x60\xC0\x00\x00\x00\x16\x43\x36\x60\xC0\x00\x00\x00\x48\x43\x37\x60\xC0\x00\x00\x00\xC8\x42\x38\x60\xC0\x00\x00\x00\x16\x43\x39\x60\xC0\x00\x00\x00\x16\x43\x3A\x60\xC0\x00\x00\x00\x16\x43\x3E\x60\xC0\x00\x00\x00\xC8\x42\x40\x60\xC0\x00\x00\x00\x96\x43",relocations={}},

}

local entryTemplates={

{name="fetch",rva=9580922,helperOffset=49152,original="\x49\x8B\x4F\x60\x48\x85\xC9",signature="\x49\x8B\x4F\x60\x48\x85\xC9\x0F\x84\x84\x02\x00\x00\x33\xD2\xE8\xB2\xA7\x12\x00\x48\x8B\x4F"},

{name="returnMaterials",rva=9787916,helperOffset=53248,original="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00",signature="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x16\x05\x00\x00\x48\x8B\x0D"},

{name="returnRegister",rva=9788713,helperOffset=57344,original="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00",signature="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00\x48\x8B\x0D\xC7\x13\x3F\x05\x48\x8B\x77\x18\x39\x99\xE4\x00\x00"},

{name="consume",rva=12370608,helperOffset=65536,original="\x3B\x47\x18\x7D\x6F",signature="\x3B\x47\x18\x7D\x6F\x33\xD2\x49\x8B\xCF\xE8\x01\x45\x24\x00\x4C\x8B\x05\x4A\xAB\x10"},

{name="retire",rva=12371592,helperOffset=69632,original="\x48\x8B\xBC\x24\x08\x01\x00\x00",signature="\x48\x8B\xBC\x24\x08\x01\x00\x00\x48\x8B\xB4\x24\x00\x01\x00\x00\x48\x8B\x9C\x24\xF0\x00\x00\x00"},

{name="cookingConsume",rva=14116832,helperOffset=102400,original="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00",signature="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00\x4C\x8B\x05\x1F\x06\xF6\x04\x8B\xD3\x49\x8B\xCE\xE8\x95\xAE\x13"},

{name="cookingRetire",rva=14118172,helperOffset=106496,original="\x48\x81\xC4\x40\x01\x00\x00",signature="\x48\x81\xC4\x40\x01\x00\x00\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x9C\x95\x85"},

{name="sessionClose",rva=17076144,helperOffset=135168,original="\x48\x89\x5C\x24\x08",signature="\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x70\x80\x3D\x25\x09\xFC\x04"},

{name="crockpotAdd",rva=12354974,helperOffset=143360,original="\xE8\x3D\x8C\xA8\x02",signature="\xE8\x3D\x8C\xA8\x02\x48\x8B\x0D\x9E\xF3\x16\x05\xE8\xD1\x7C\xA0\xFF\x4D\x8B\x07\x45"},

{name="crockpotRun",rva=16749380,helperOffset=167936,original="\x33\xD2\x48\x8B\xCF\xE8\xE2\xB0\xDA\xFF",signature="\x33\xD2\x48\x8B\xCF\xE8\xE2\xB0\xDA\xFF\x48\x8B\x74\x24\x70\x48\x8B\x5C\x24\x60\x4C\x8B\x74\x24\x30\x48"},

{name="crockpotRetire",rva=12353187,helperOffset=172032,original="\x48\x81\xC4\x50\x01\x00\x00",signature="\x48\x81\xC4\x50\x01\x00\x00\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x15\x84\xA0"},

}

local legacy079Helpers={

["forge_recipe_preflight"]="\x48\x85\xC9\x0F\x84\xA5\x00\x00\x00\x48\x85\xD2\x0F\x84\x9C\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\x91\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x86\x00\x00\x00\x48\x83\x7A\x28\x00\x74\x7F\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x73\x45\x8B\x48\x18\x45\x85\xC9\x7E\x6A\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x5A\x48\x8B\x41\x10\x48\x85\xC0\x74\x51\x48\x83\x78\x10\x00\x74\x4A\x48\x8B\x00\x48\x85\xC0\x74\x42\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x13\x48\x3B\x42\x28\x74\x0D\x48\x83\x7A\x38\x00\x74\x28\x48\x3B\x42\x38\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\xA0\x44\x89\xD8\xC3\x31\xC0\xC3",

["forge_recipe_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xF3\x01\x00\x00\x48\x85\xD2\x0F\x84\xEA\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xDE\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xD1\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xA4\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\x97\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x84\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x77\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x69\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x56\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x3B\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x2E\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x39\xC6\x0F\x8D\x0E\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x0A\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xE7\x00\x00\x00\x0F\x88\xF2\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xD8\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xC7\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xA6\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xC0\xFE\xFF\xFF\xFF\xC6\xE9\xB9\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",

["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",

["manual_cooking_zero_preflight"]="\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",

["manual_cooking_zero_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x3B\x02\x00\x00\x48\x85\xD2\x0F\x84\x32\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x26\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x2F\x02\x00\x00\x85\xC0\x0F\x84\x14\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xE7\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xDA\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xDD\x01\x00\x00\x85\xC0\x0F\x84\xC2\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xB5\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xA7\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x94\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x90\x01\x00\x00\x85\xC0\x0F\x84\x75\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x5F\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x52\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x44\x01\x00\x00\x39\xC6\x0F\x8D\x32\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x2E\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x1C\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\xFF\x00\x00\x00\x0F\x88\x0A\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xFB\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xF0\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xDF\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xBE\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x82\xFE\xFF\xFF\xFF\xC6\xE9\x7B\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",

}

local legacy090Helpers={

["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",

["manual_cooking_register"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x4B\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x3C\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x2D\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x1C\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x08\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",

["forge_thread_capture"]="\x53\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x2C\x48\x8B\x01\x48\x85\xC0\x74\x24\x48\x8B\x00\x48\x85\xC0\x74\x1C\xFF\xD0\x85\xC0\x74\x16\x89\xC2\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3",

}

local buildIdentity="\xCF\xEA\xEC\x50\x71\x04\xDB\xB6\xE1\x26\xFB\x41\x44\x6B\x89\x61\x53\x14\x51\xBC\xD9\x7E\xE5\x13\xF2\x1B\x6F\xED\x93\x71\x65\x76"



local function need(ok,message)if not ok then error(message,0)end return ok end

local function replace(bytes,offset,value)return bytes:sub(1,offset)..value..bytes:sub(offset+#value+1)end

return function(context,root,generation,slots,manifest,ownerControl,cleanupRevision)

  need(cleanupRevision==nil,'Candidate image has no legacy cleanup support')

  need(type(context)=='table' and type(slots)=='table','Missing independently verified forge context')

  local symbols={base=context.base,root=root,player=context.player,identity=context.identity,

    runner=context.runner,generation=generation,villager=slots.villager,recipe=slots.recipe,forge=slots.forge}

  for name,value in pairs(symbols)do

    need(math.type(value)=='integer' and value&gt;0,'Invalid forge context: '..name)

    if name~='generation'then need(value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0,'Unaligned forge context: '..name)end

  end

  for _,name in ipairs({'base','root','player','identity','runner','generation','villager','recipe','forge'})do

    need(symbols[name]~=nil,'Missing forge context: '..name)

  end

  need(root%0x1000==0,'Forge runtime must be page aligned')

  local size=runtimeSize

  need(root+size&lt;0x800000000000,'Forge allocation overflow')

  local control=controlTemplate

  for _,reloc in ipairs(controlRelocations)do

    control=replace(control,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))

  end

  local code,addresses,ranges={}, {}, {}

  local blob=control..string.rep('\0',size-#control)

  for _,template in ipairs(templates)do

    local bytes=template.bytes

    if cleanupRevision then bytes=legacy090Helpers[template.name]or bytes end

    if cleanupRevision=='25834809-001-079'then bytes=legacy079Helpers[template.name]or bytes end

    local address=root+template.offset

    for _,reloc in ipairs(template.relocations)do

      local value=symbols[reloc[3]]+reloc[4]

      if reloc[5]&gt;=0 then

        value=value-address-reloc[5]

        need(value&gt;=-0x80000000 and value&lt;=0x7FFFFFFF,'Forge relative relocation is out of range')

      end

      local payload=reloc[2]==8 and string.pack('&lt;I8',value)or string.pack('&lt;i4',value)

      bytes=replace(bytes,reloc[1],payload)

    end

    code[template.name],addresses[template.name]=bytes,address

    ranges[#ranges+1]={address,address+#bytes}

    blob=replace(blob,template.offset,bytes)

  end

  local dataBlocks={}

  for _,template in ipairs(dataTemplates)do

    if not cleanupRevision or template.offset~=0x1B290 then

    local bytes=template.bytes

    for _,reloc in ipairs(template.relocations)do

      bytes=replace(bytes,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))

    end

    if cleanupRevision and template.offset==0x1B000 then bytes=bytes:sub(1,0x70)end

    if cleanupRevision and template.offset==0x1B280 then bytes=bytes:sub(1,8)end

    if template.offset==0x1B320 and ownerControl then

      need(math.type(ownerControl)=='integer'and ownerControl&gt;=0x10000 and ownerControl&lt;0x800000000000 and ownerControl%8==0,'Invalid forge owner phase address')

      bytes=replace(bytes,0,string.pack('&lt;I8',ownerControl+0xC0))

    end

    blob=replace(blob,template.offset,bytes)

    dataBlocks[#dataBlocks+1]={offset=template.offset,bytes=bytes}

    end

  end

  local plans={}

  for _,entry in ipairs(entryTemplates)do

    local address=context.base+entry.rva

    local destination=root+entry.helperOffset

    local delta=destination-address-5

    need(delta&gt;=-0x80000000 and delta&lt;=0x7FFFFFFF,'Forge hook is out of range')

    plans[#plans+1]={name=entry.name,address=address,destination=destination,helperOffset=entry.helperOffset,

      original=entry.original,signature=entry.signature,

      patch=string.char(0xE9)..string.pack('&lt;i4',delta)..string.rep(string.char(0x90),#entry.original-5)}

  end

  local blocks={}

  for _,slice in ipairs({{0,0x80},{0x88,8},{0xA0,0x40},{0xF0,0x98},{0x190,0x70}})do

    blocks[#blocks+1]={offset=slice[1],bytes=control:sub(slice[1]+1,slice[1]+slice[2])}

  end

  for _,template in ipairs(templates)do blocks[#blocks+1]={offset=template.offset,bytes=code[template.name]}end

  for _,block in ipairs(dataBlocks)do blocks[#blocks+1]=block end

  table.sort(blocks,function(a,b)return a.offset&lt;b.offset end)

  local spec={base=context.base,root=root,size=size,generation=generation,player=context.player,

    identity=context.identity,runner=context.runner,villager=slots.villager,recipe=slots.recipe,

    forge=slots.forge,build=buildIdentity,blocks=blocks,plans=plans}

  local header

  if manifest then header=manifest.encode(spec);blob=replace(blob,0xF00,header)end

  return {root=root,size=size,blob=blob,control=control,addresses=addresses,ranges=ranges,code=code,

    cleanupRevision=cleanupRevision,

    plans=plans,manifest=header,manifestSpec=spec,dataBlocks=dataBlocks,

    manualContext=root+0x1B000,manualDispatchControl=root+0x1B100,manualMailbox=root+0x1B200,virtualControl=root+0x2E000,gateControl=root+0x2E100,durationTable=root+0x2E200}

end




end)()
local current=(function()
-- Generated by export_forge_bundle_image.py; uninstalled portable forge prototype.
-- Native instructions/entry contracts are from the locally analyzed build.
local runtimeSize=192512
local templates={
{name="forge_ledger_grow",offset=512,bytes="\x53\x57\x41\x54\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x0F\x84\xA6\x01\x00\x00\x83\xBB\x80\x00\x00\x00\x01\x0F\x85\x99\x01\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\x8C\x01\x00\x00\x85\xD2\x0F\x8E\x84\x01\x00\x00\x89\xD7\x4C\x8B\xA3\x90\x00\x00\x00\x49\x81\xFC\x80\x00\x01\x00\x0F\x82\x6E\x01\x00\x00\x49\x81\xEC\x80\x00\x00\x00\x49\xF7\xC4\xFF\x0F\x00\x00\x0F\x85\x5A\x01\x00\x00\x48\xB8\x41\x53\x4B\x41\x46\x4C\x30\x31\x49\x39\x04\x24\x0F\x85\x46\x01\x00\x00\x4D\x39\x64\x24\x08\x0F\x85\x3B\x01\x00\x00\x48\xB8\x00\x10\x00\x00\x38\x00\x00\x00\x49\x39\x44\x24\x10\x0F\x85\x26\x01\x00\x00\x49\x81\x7C\x24\x18\x80\x00\x00\x00\x0F\x85\x17\x01\x00\x00\x49\x83\x7C\x24\x20\x70\x0F\x85\x0B\x01\x00\x00\x49\x81\x7C\x24\x28\xFF\xFF\xFF\x7F\x0F\x85\xFC\x00\x00\x00\x49\x39\x5C\x24\x30\x0F\x85\xF1\x00\x00\x00\x48\x8B\x83\xA0\x00\x00\x00\x49\x39\x44\x24\x38\x0F\x85\xDF\x00\x00\x00\x48\x8B\x03\x49\x39\x44\x24\x40\x0F\x85\xD1\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x49\x39\x44\x24\x48\x0F\x85\xBF\x00\x00\x00\x48\x8B\x43\x08\x49\x39\x44\x24\x50\x0F\x85\xB0\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x85\xC0\x0F\x8E\xA2\x00\x00\x00\x39\xC7\x0F\x8E\x80\x00\x00\x00\xBF\x01\x00\x00\x00\x39\xD7\x73\x11\x81\xFF\x00\x00\x00\x40\x73\x04\x01\xFF\xEB\xF0\xBF\xFF\xFF\xFF\x7F\x48\x8B\x83\x90\x01\x00\x00\x48\x85\xC0\x74\x74\x48\x8B\x00\x48\x85\xC0\x74\x6C\x89\xFA\x48\x6B\xD2\x70\x48\x81\xC2\x7F\x10\x00\x00\x48\x81\xE2\x00\xF0\xFF\xFF\x4C\x89\xE1\x41\xB8\x00\x10\x00\x00\x41\xB9\x04\x00\x00\x00\xFF\xD0\x4C\x39\xE0\x75\x42\x83\xBB\xE0\x00\x00\x00\x01\x75\x39\x49\x8D\x84\x24\x80\x00\x00\x00\x48\x39\x83\x90\x00\x00\x00\x75\x28\x3B\xBB\x98\x00\x00\x00\x7E\x06\x89\xBB\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0E\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5C\x5F\x5B\xC3",relocations={}},
{name="forge_recipe_preflight",offset=4096,bytes="\x48\x85\xC9\x0F\x84\xB5\x00\x00\x00\x48\x85\xD2\x0F\x84\xAC\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xA1\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x96\x00\x00\x00\x48\x83\x7A\x28\x00\x0F\x84\x8B\x00\x00\x00\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x7F\x45\x8B\x48\x18\x45\x85\xC9\x7E\x76\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x66\x48\x8B\x41\x10\x48\x85\xC0\x74\x5D\x48\x83\x78\x10\x00\x74\x56\x48\x8B\x00\x48\x85\xC0\x74\x4E\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x1F\x48\x3B\x42\x28\x74\x19\x48\x83\x7A\x38\x00\x74\x06\x48\x3B\x42\x38\x74\x0C\x48\x2D\x80\x15\x00\x00\x48\x3B\x42\x28\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\x94\x44\x89\xD8\xC3\x31\xC0\xC3",relocations={}},
{name="forge_task_recipe_scope",offset=8192,bytes="\x48\x85\xC9\x0F\x84\xFC\x01\x00\x00\x4D\x85\xC0\x0F\x84\xF3\x01\x00\x00\x4D\x89\xC2\x49\x83\x3A\x00\x0F\x84\xE6\x01\x00\x00\x49\x83\x7A\x08\x00\x0F\x84\xDB\x01\x00\x00\x49\x83\x7A\x10\x00\x0F\x84\xD0\x01\x00\x00\x49\x83\x7A\x18\x00\x0F\x84\xC5\x01\x00\x00\x48\x8B\x51\x38\x48\x85\xD2\x0F\x84\xB8\x01\x00\x00\x4D\x8B\x5A\x10\x4D\x8B\x1B\x4D\x85\xDB\x0F\x84\xA8\x01\x00\x00\x41\xF6\xC3\x01\x0F\x85\x9E\x01\x00\x00\x4C\x39\x1A\x0F\x85\x95\x01\x00\x00\x4D\x8B\x5A\x08\x4C\x39\x5A\x38\x0F\x85\x87\x01\x00\x00\x41\x83\xBB\x80\x01\x00\x00\x01\x0F\x85\x79\x01\x00\x00\x49\x8B\x02\x4C\x8B\x98\x98\x01\x00\x00\x4D\x85\xDB\x0F\x84\x66\x01\x00\x00\x4D\x8B\x9B\x78\x02\x00\x00\x4D\x85\xDB\x0F\x84\x56\x01\x00\x00\x4C\x39\x9A\xD0\x04\x00\x00\x0F\x85\x49\x01\x00\x00\x80\xBA\x94\x01\x00\x00\x00\x0F\x85\x3C\x01\x00\x00\x80\xBA\x7C\x02\x00\x00\x01\x0F\x85\x2F\x01\x00\x00\x4C\x8B\x98\x90\x02\x00\x00\x4D\x85\xDB\x0F\x84\x1F\x01\x00\x00\x41\x80\x7B\x48\x00\x0F\x85\x14\x01\x00\x00\x48\x8B\x82\xC8\x04\x00\x00\x48\x85\xC0\x0F\x84\x04\x01\x00\x00\x4C\x39\x98\xE8\x01\x00\x00\x0F\x85\xF7\x00\x00\x00\x41\x53\x4D\x8B\x5B\x40\x4D\x85\xDB\x74\x24\x41\x83\x7B\x18\x00\x7C\x31\x74\x1B\x4D\x8B\x5B\x10\x4D\x85\xDB\x74\x26\x41\x83\x7B\x18\x00\x7E\x1F\x4D\x8B\x5B\x20\x4D\x85\xDB\x74\x16\xEB\x0D\x4C\x8B\x1C\x24\x4D\x8B\x5B\x38\x4D\x85\xDB\x74\x07\x48\x8D\x64\x24\x08\xEB\x0A\x48\x8D\x64\x24\x08\xE9\xAA\x00\x00\x00\x49\x39\xC3\x0F\x85\xA1\x00\x00\x00\x4C\x8B\x49\x60\x4D\x85\xC9\x0F\x84\x94\x00\x00\x00\x41\x83\xB9\x88\x00\x00\x00\x00\x0F\x8E\x86\x00\x00\x00\x49\x8B\x41\x68\x48\x85\xC0\x74\x7D\x48\x8B\x50\x20\x48\x85\xD2\x74\x74\x48\x83\x7A\x10\x00\x74\x6D\x49\x8B\x41\x48\x48\x85\xC0\x74\x64\x48\x39\x50\x10\x75\x5E\x44\x8B\x58\x18\x45\x85\xDB\x7F\x04\x44\x8B\x58\x1C\x45\x85\xDB\x7E\x4C\x49\x8B\x42\x18\x48\x85\xC0\x74\x43\x4C\x8B\x00\x4D\x85\xC0\x74\x3B\x41\xF6\xC0\x01\x75\x35\x48\x8B\x02\x48\x85\xC0\x74\x2D\x45\x0F\xB6\x98\x30\x01\x00\x00\x45\x85\xDB\x74\x20\x44\x38\x98\x30\x01\x00\x00\x72\x17\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0B\x4E\x39\x44\xD8\xF8\x75\x04\x48\x89\xD0\xC3\x31\xC0\xC3",relocations={}},
{name="forge_task_station_scope",offset=12288,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x30\x49\x89\xCC\x4D\x89\xC5\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x85\xC9\x0F\x84\x91\x01\x00\x00\x4D\x85\xC0\x0F\x84\x88\x01\x00\x00\xF0\x41\xFF\x85\x88\x01\x00\x00\xC7\x44\x24\x20\x01\x00\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x6A\x01\x00\x00\x49\x83\x7D\x20\x00\x0F\x84\x5F\x01\x00\x00\x49\x83\x7D\x30\x00\x0F\x84\x54\x01\x00\x00\x41\xFF\x55\x20\x48\x85\xC0\x0F\x84\x47\x01\x00\x00\x48\x89\xC3\x49\x8B\x55\x48\x48\x85\xD2\x0F\x84\x37\x01\x00\x00\x48\x8B\x42\x30\x48\x85\xC0\x0F\x84\x2A\x01\x00\x00\x48\x89\xD9\xFF\xD0\x85\xC0\x0F\x84\x1D\x01\x00\x00\x49\x8B\x45\x28\x48\x85\xC0\x0F\x84\x10\x01\x00\x00\x4C\x8B\x38\x4D\x85\xFF\x0F\x84\x04\x01\x00\x00\x41\xF6\xC7\x01\x0F\x85\xFA\x00\x00\x00\x41\x0F\xB6\x87\x30\x01\x00\x00\x85\xC0\x0F\x84\xEA\x00\x00\x00\x49\x8B\x44\x24\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xD8\x00\x00\x00\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\xC8\x00\x00\x00\x8B\x78\x18\x85\xFF\x0F\x8E\xBD\x00\x00\x00\x48\x8B\x70\x10\x48\x85\xF6\x0F\x84\xB0\x00\x00\x00\x3B\x7E\x18\x0F\x8F\xA7\x00\x00\x00\x48\x83\xC6\x20\x85\xFF\x0F\x84\x9B\x00\x00\x00\x48\x8B\x06\x48\x83\xC6\x08\xFF\xCF\x48\x85\xC0\x74\xEA\x4C\x8B\x70\x78\x4D\x85\xF6\x74\xE1\x49\x83\x7E\x10\x00\x74\xDA\x49\x8B\x06\x48\x85\xC0\x74\xD2\x41\x0F\xB6\x8F\x30\x01\x00\x00\x38\x88\x30\x01\x00\x00\x72\xC2\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\xB6\x4C\x39\x7C\xC8\xF8\x75\xAF\x49\x8B\x86\x98\x01\x00\x00\x48\x85\xC0\x74\xA3\x80\xB8\x40\x01\x00\x00\x01\x75\x9A\x49\x8B\x4D\x08\x48\x39\x88\xB8\x00\x00\x00\x75\x8D\x4C\x89\xF1\x48\x89\xDA\x45\x31\xC0\x41\xFF\x55\x30\x84\xC0\x0F\x84\x78\xFF\xFF\xFF\x4C\x89\xE1\x4D\x89\xE8\x41\xFF\x55\x20\x48\x39\xD8\x75\x0C\x41\x83\xBD\xE0\x00\x00\x00\x01\x75\x02\xEB\x02\x31\xC0\x83\x7C\x24\x20\x00\x74\x08\xF0\x41\xFF\x8D\x88\x01\x00\x00\x48\x83\xC4\x30\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_factory",offset=16384,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xFD\x01\x00\x00\x48\x85\xD2\x0F\x84\xF4\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xE8\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xDB\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xAE\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xA1\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x8E\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x81\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x73\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x60\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x45\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x38\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x2A\x01\x00\x00\x39\xC6\x0F\x8D\x18\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x14\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xF1\x00\x00\x00\x0F\x88\xFC\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xED\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xE2\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xD1\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xB6\xFE\xFF\xFF\xFF\xC6\xE9\xAF\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_internal_recipe_scope",offset=20480,bytes="\x31\xC0\x48\x85\xC9\x0F\x84\x8E\x00\x00\x00\x80\x79\x59\x01\x0F\x85\x84\x00\x00\x00\x4C\x8B\x41\x60\x4D\x85\xC0\x74\x7B\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x72\x45\x8B\x58\x20\x45\x85\xDB\x78\x69\x45\x8B\x50\x28\x45\x85\xD2\x78\x60\x45\x39\xDA\x7F\x5B\x45\x29\xD3\x7E\x56\x48\x85\xD2\x74\x51\x44\x39\x5A\x18\x75\x4B\x4C\x8B\x4A\x10\x4D\x85\xC9\x74\x42\x45\x3B\x59\x18\x7F\x3C\x45\x31\xD2\x4F\x8B\x44\xD1\x20\x4D\x85\xC0\x74\x2F\x41\x8B\x48\x18\x85\xC9\x7E\x27\x4D\x8B\x40\x10\x4D\x85\xC0\x74\x1E\x49\x83\x78\x10\x00\x75\x17\x49\x83\x78\x18\x00\x75\x10\x41\x39\x48\x30\x7C\x0A\x41\xFF\xC2\x45\x39\xDA\x72\xC9\xB0\x01\xC3",relocations={}},
{name="forge_recipe_register",offset=24576,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\xBA\x04\x00\x00\x48\x85\xD2\x0F\x84\xB1\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA2\x04\x00\x00\x41\xFF\x54\x24\x20\x48\x85\xC0\x0F\x84\x94\x04\x00\x00\x48\x89\xC3\x49\x39\x45\x30\x0F\x85\x87\x04\x00\x00\x49\x8B\x46\x38\x49\x39\x45\x38\x0F\x85\x79\x04\x00\x00\x4D\x8B\x7D\x18\x4D\x85\xFF\x0F\x84\x6C\x04\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\x61\x04\x00\x00\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x44\x24\x28\x48\x85\xC0\x0F\x84\x4A\x04\x00\x00\x4C\x8B\x00\x4D\x85\xC0\x0F\x84\x3E\x04\x00\x00\x41\xF6\xC0\x01\x0F\x85\x34\x04\x00\x00\x49\x8B\x07\x48\x85\xC0\x0F\x84\x28\x04\x00\x00\x41\x0F\xB6\x88\x30\x01\x00\x00\x85\xC9\x0F\x84\x18\x04\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x0C\x04\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xFC\x03\x00\x00\x4C\x39\x44\xC8\xF8\x0F\x85\xF1\x03\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xE1\x03\x00\x00\x48\x89\x44\x24\x30\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xCF\x03\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xBD\x03\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x85\xC0\x0F\x84\xAC\x03\x00\x00\x48\x89\x44\x24\x38\x48\x8B\x80\x18\x02\x00\x00\x48\x85\xC0\x0F\x84\x97\x03\x00\x00\x8B\x48\x18\x85\xC9\x0F\x8E\x8C\x03\x00\x00\x48\x8B\x40\x10\x48\x85\xC0\x0F\x84\x7F\x03\x00\x00\x3B\x48\x18\x0F\x8F\x76\x03\x00\x00\x31\xD2\x39\xCA\x0F\x8D\x6C\x03\x00\x00\x4C\x8B\x44\xD0\x20\xFF\xC2\x4D\x85\xC0\x74\xEC\x4D\x39\x78\x78\x75\xE6\x49\x8B\xAF\x58\x01\x00\x00\x48\x85\xED\x0F\x84\x4A\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xB6\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x18\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x06\x03\x00\x00\x0F\x85\x0C\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\xF1\x02\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xE2\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xD2\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xBF\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xAE\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\x96\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\x89\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x74\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x53\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x29\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x10\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDA\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xCE\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC5\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB7\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9B\x01\x00\x00\x49\x8B\x40\x08\x49\x3B\x84\x24\x88\x00\x00\x00\x0F\x85\x89\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x49\x8B\x84\x24\x88\x00\x00\x00\x48\x39\x46\x10\x0F\x85\x6F\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x65\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x4C\x89\xF1\x4D\x89\xE0\x41\xFF\x54\x24\x20\x48\x39\xD8\x0F\x85\x43\x01\x00\x00\x4D\x39\x7D\x18\x0F\x85\x39\x01\x00\x00\x49\x39\x5D\x30\x0F\x85\x2F\x01\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\x0E\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x01\x01\x00\x00\x49\x8B\x4C\x24\x08\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xEF\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xE2\x00\x00\x00\x49\x8B\x46\x60\x48\x8B\x40\x38\x48\x3B\x44\x24\x38\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_recipe_resolve",offset=28672,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\xD9\x00\x00\x00\x48\x85\xD2\x0F\x84\xD0\x00\x00\x00\x48\x83\xBE\xB8\x00\x00\x00\x00\x0F\x84\xC2\x00\x00\x00\x8B\x03\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xB2\x00\x00\x00\x41\x89\xC5\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x0F\x85\x9E\x00\x00\x00\x48\x8B\x46\x08\x48\x39\x43\x48\x0F\x85\x90\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x0F\x84\x83\x00\x00\x00\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x78\x48\x39\x43\x08\x75\x72\x48\x89\xC7\x48\x8B\x4B\x60\x48\x85\xC9\x74\x66\xFF\x96\xB8\x00\x00\x00\x48\x85\xC0\x74\x5B\x48\x39\x43\x18\x75\x55\x49\x89\xC4\x44\x39\x2B\x75\x4D\x48\x8B\x86\xA0\x00\x00\x00\x48\x39\x43\x50\x75\x40\x48\x8B\x46\x08\x48\x39\x43\x48\x75\x36\x48\x8B\x47\x10\x48\x85\xC0\x74\x2D\x48\x39\x43\x10\x75\x27\x49\x8B\x44\x24\x20\x48\x85\xC0\x74\x1D\x48\x39\x43\x20\x75\x17\x48\x8B\x40\x10\x48\x85\xC0\x74\x0E\x48\x39\x43\x28\x75\x08\x48\x89\xF8\x4C\x89\xE2\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_retire",offset=32768,bytes="\x53\x56\x57\x48\x83\xEC\x20\x4C\x89\xC3\x4D\x85\xC0\x0F\x84\x53\x01\x00\x00\xF0\xFF\x83\xE4\x00\x00\x00\x48\x85\xC9\x0F\x84\x38\x01\x00\x00\x48\x85\xD2\x0F\x84\x2F\x01\x00\x00\x4D\x85\xC0\x0F\x84\x26\x01\x00\x00\x83\x7A\x30\x00\x0F\x85\x1C\x01\x00\x00\x48\x83\x7A\x10\x00\x0F\x85\x11\x01\x00\x00\x49\x83\xB8\xB0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x45\x8B\x88\x98\x00\x00\x00\x45\x85\xC9\x0F\x8E\xF3\x00\x00\x00\x4D\x8B\x90\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xE3\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xC5\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xBB\x00\x00\x00\x49\x39\x52\x18\x0F\x85\xB1\x00\x00\x00\x4C\x8B\x59\x10\x4D\x85\xDB\x0F\x84\xB1\x00\x00\x00\x4D\x39\x5A\x10\x0F\x85\x9A\x00\x00\x00\x4C\x8B\x5A\x20\x4D\x85\xDB\x0F\x84\x9A\x00\x00\x00\x4D\x39\x5A\x20\x0F\x85\x83\x00\x00\x00\x4D\x8B\x5B\x10\x4D\x85\xDB\x0F\x84\x83\x00\x00\x00\x4D\x39\x5A\x28\x75\x70\x4D\x8B\x58\x08\x4D\x39\x5A\x48\x75\x66\x4D\x8B\x98\xA0\x00\x00\x00\x4D\x39\x5A\x50\x75\x59\x41\xBB\x03\x00\x00\x00\xF0\x45\x0F\xB1\x1A\x74\x0B\x83\xF8\x02\x0F\x84\x6D\xFF\xFF\xFF\xEB\x41\x4C\x89\xD6\x48\x8B\x4E\x60\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x48\x8B\x4E\x40\x48\x85\xC9\x74\x06\xFF\x93\xB0\x00\x00\x00\x49\x89\xF2\x31\xC0\xB9\x0D\x00\x00\x00\x49\x89\x04\xCA\xFF\xC9\x75\xF8\x41\xC7\x02\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x0F\x49\x83\xC2\x70\x41\xFF\xC9\x0F\x85\x1D\xFF\xFF\xFF\x31\xC0\xF0\xFF\x8B\xE4\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_cancel",offset=36864,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x28\x48\x89\xCB\x48\x89\xD5\x4D\x89\xC4\x48\x85\xC9\x0F\x84\x96\x01\x00\x00\x48\x85\xD2\x0F\x84\x8D\x01\x00\x00\x4D\x85\xC0\x0F\x84\x84\x01\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x77\x01\x00\x00\x49\x3B\x44\x24\x30\x0F\x85\x6C\x01\x00\x00\x48\x8B\x42\x20\x49\x3B\x44\x24\x38\x0F\x85\x5D\x01\x00\x00\x48\x85\xC0\x0F\x84\x54\x01\x00\x00\x48\x8B\x48\x10\x49\x3B\x4C\x24\x40\x0F\x85\x45\x01\x00\x00\x48\x85\xC9\x0F\x84\x3C\x01\x00\x00\x80\x7D\x59\x01\x0F\x85\x32\x01\x00\x00\x83\x7D\x30\x00\x0F\x8E\x28\x01\x00\x00\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x18\x01\x00\x00\x48\x39\x45\x10\x0F\x85\x0E\x01\x00\x00\x48\x8B\x83\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\xFE\x00\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\xF1\x00\x00\x00\x49\x8B\x4C\x24\x48\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x39\x88\xB8\x00\x00\x00\x0F\x85\xD6\x00\x00\x00\x83\xB9\x80\x01\x00\x00\x01\x0F\x85\xC9\x00\x00\x00\x48\x8B\x7D\x48\x48\x85\xFF\x0F\x84\xBC\x00\x00\x00\x48\x8B\x77\x78\x48\x85\xF6\x74\x25\x8B\x4E\x18\x85\xC9\x0F\x8E\xA8\x00\x00\x00\x48\x83\xC6\x20\x85\xC9\x0F\x84\x9C\x00\x00\x00\x48\x8B\x3E\x48\x83\xC6\x08\xFF\xC9\x48\x85\xFF\x74\xEA\x49\x8B\x44\x24\x28\x48\x39\x47\x10\x75\x06\x48\x39\x5F\x20\x74\x07\x48\x85\xF6\x75\xD4\xEB\x76\x48\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x74\x68\x49\x89\xC5\x48\x8B\x48\x10\x48\x85\xC9\x74\x5C\x8B\x41\x20\x85\xC0\x78\x55\x8B\x51\x28\x85\xD2\x78\x4E\x39\xC2\x7F\x4A\x39\xD0\x74\x1E\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x74\x37\x48\x89\xC2\x48\x89\xE9\x41\xFF\x54\x24\x10\x84\xC0\x74\x28\x4C\x89\xE9\x31\xD2\x41\xFF\x54\x24\x18\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x20\x83\x7D\x30\x00\x75\x0E\x48\x83\x7D\x10\x00\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="forge_recipe_cancel_owned",offset=40960,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x70\x48\x89\xCB\x48\x89\xD6\x48\x85\xC9\x0F\x84\x36\x01\x00\x00\x48\x85\xD2\x0F\x84\x2D\x01\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x1F\x01\x00\x00\x48\x83\xBE\xC8\x00\x00\x00\x00\x0F\x84\x11\x01\x00\x00\x48\x83\xBE\xD0\x00\x00\x00\x00\x0F\x84\x03\x01\x00\x00\x48\x83\xBE\xD8\x00\x00\x00\x00\x0F\x84\xF5\x00\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x0F\xB1\x8E\x80\x00\x00\x00\x0F\x85\xE4\x00\x00\x00\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x0F\x84\xC1\x00\x00\x00\x48\x85\xD2\x0F\x84\xB8\x00\x00\x00\x48\x89\xC7\x49\x89\xD4\x41\x83\x7C\x24\x30\x00\x75\x08\x49\x83\x7C\x24\x10\x00\x74\x7E\x48\x8B\x86\xD8\x00\x00\x00\xB9\x05\x00\x00\x00\x48\x8B\x14\xC8\x48\x89\x54\xCC\x20\xFF\xC9\x79\xF3\x48\x83\xBE\xE0\x01\x00\x00\x00\x74\x1D\x48\x8B\x07\x48\x85\xC0\x74\x77\x48\x8B\x80\xB8\x03\x00\x00\x48\x3B\x86\xE0\x01\x00\x00\x75\x05\x48\x89\x44\x24\x48\x48\x8B\x43\x10\x48\x89\x44\x24\x50\x48\x8B\x43\x20\x48\x89\x44\x24\x58\x48\x8B\x43\x28\x48\x89\x44\x24\x60\x48\x8B\x46\x08\x48\x89\x44\x24\x68\x48\x89\xF9\x4C\x89\xE2\x4C\x8D\x44\x24\x20\xFF\x96\xC8\x00\x00\x00\x85\xC0\x74\x29\x83\x3B\x00\x74\x13\x48\x89\xF9\x4C\x89\xE2\x49\x89\xF0\xFF\x96\xD0\x00\x00\x00\x85\xC0\x74\x11\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x13\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\x31\xC0\xEB\x05\xB8\x02\x00\x00\x00\x48\x83\xC4\x70\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_recipe_cancel_all",offset=45056,bytes="\x53\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x75\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x75\x62\x44\x8B\xA3\x98\x00\x00\x00\x45\x85\xE4\x78\x56\x74\x4D\x48\x8B\xB3\x90\x00\x00\x00\x48\x85\xF6\x74\x48\x48\x83\xBB\xF0\x00\x00\x00\x00\x74\x3E\x31\xFF\x45\x31\xED\x8B\x06\x85\xC0\x74\x1C\x83\xF8\x02\x77\x11\x48\x89\xF1\x48\x89\xDA\xFF\x93\xF0\x00\x00\x00\x83\x3E\x00\x74\x06\x41\xBD\x01\x00\x00\x00\x48\x83\xC6\x70\xFF\xC7\x44\x39\xE7\x7C\xD3\x45\x85\xED\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_fetch_material_gate",offset=49152,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x21\x48\x8B\x45\x40\x48\x85\xC0\x74\x18\xC7\x40\x10\x0A\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xA5\x6B\x91\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x49\x8B\x4F\x60\x48\x85\xC9\xE9\x16\x71\x91\xF9",relocations={{17,8,"root",0,-1},{27,8,"root",12288,-1},{79,4,"base",9579512,83},{103,4,"base",9580929,107}}},
{name="forge_return_material_gate",offset=53248,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x83\x78\x18\x00\x75\x3D\x48\x89\xF1\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x30\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x48\x85\xC0\x74\x17\x48\x39\x47\x30\x75\x11\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC7\x89\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x83\x78\x18\x00\x0F\x84\x25\x8B\x94\xF9\xE9\xAC\x89\x94\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",12288,-1},{75,4,"base",9787926,79},{97,4,"base",9788298,101},{102,4,"base",9787926,106}}},
{name="forge_return_register_gate",offset=57344,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x85\xFF\x74\x48\x48\x8B\x47\x28\x48\x85\xC0\x74\x3F\x83\x78\x18\x00\x75\x39\x48\x83\xBC\x24\xB8\x00\x00\x00\x00\x74\x2E\x48\x89\xF1\x48\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x60\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x83\xF8\x02\x74\x30\x83\xF8\x01\x74\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x85\xFF\x0F\x84\xCB\x7E\x94\xF9\xE9\xBF\x7C\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x1C\x7A\x94\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\x44\x24\x78\xC7\x40\x10\x0A\x00\x00\x00\xE9\xF8\x7C\x94\xF9",relocations={{51,8,"root",0,-1},{61,8,"root",24576,-1},{106,4,"base",9789241,110},{111,4,"base",9788722,115},{128,4,"base",9788064,132},{157,4,"base",9788825,161}}},
{name="forge_owned_ingredient_scope",offset=61440,bytes="\x48\x85\xC9\x0F\x84\x70\x01\x00\x00\x48\x85\xD2\x0F\x84\x67\x01\x00\x00\x4D\x85\xC0\x0F\x84\x5E\x01\x00\x00\x4D\x85\xC9\x0F\x84\x55\x01\x00\x00\x83\x7A\x30\x00\x0F\x8E\x4B\x01\x00\x00\x48\x8B\x81\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\x3B\x01\x00\x00\x48\x39\x42\x10\x0F\x85\x31\x01\x00\x00\x48\x8B\x81\x98\x01\x00\x00\x48\x85\xC0\x0F\x84\x21\x01\x00\x00\x80\xB8\x40\x01\x00\x00\x01\x0F\x85\x14\x01\x00\x00\x4D\x8B\x51\x08\x4D\x85\xD2\x0F\x84\x07\x01\x00\x00\x4C\x39\x90\xB8\x00\x00\x00\x0F\x85\xFA\x00\x00\x00\x41\x83\xBA\x80\x01\x00\x00\x01\x0F\x85\xEC\x00\x00\x00\x45\x8B\x99\x98\x00\x00\x00\x45\x85\xDB\x0F\x8E\xDC\x00\x00\x00\x4D\x8B\x91\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xCC\x00\x00\x00\x41\x8B\x02\x83\xF8\x01\x74\x09\x83\xF8\x02\x0F\x85\xAE\x00\x00\x00\x49\x39\x4A\x08\x0F\x85\xA4\x00\x00\x00\x49\x39\x52\x18\x0F\x85\x9A\x00\x00\x00\x49\x83\x7A\x40\x00\x0F\x84\x9C\x00\x00\x00\x49\x83\x7A\x60\x00\x0F\x84\x91\x00\x00\x00\x48\x8B\x41\x10\x48\x85\xC0\x0F\x84\x84\x00\x00\x00\x49\x39\x42\x10\x75\x7E\x48\x8B\x42\x20\x48\x85\xC0\x74\x75\x49\x39\x42\x20\x75\x6F\x48\x8B\x40\x10\x48\x85\xC0\x74\x66\x49\x39\x42\x28\x75\x60\x48\x8B\x81\x58\x01\x00\x00\x49\x39\x42\x30\x75\x53\x48\x8B\x81\x98\x01\x00\x00\x49\x39\x42\x58\x75\x46\x49\x8B\x41\x08\x49\x39\x42\x48\x75\x3C\x49\x8B\x81\xA0\x00\x00\x00\x48\x85\xC0\x74\x30\x49\x39\x42\x50\x75\x2A\x49\x8B\x81\xD8\x00\x00\x00\x48\x85\xC0\x74\x1E\x48\x8B\x40\x10\x48\x85\xC0\x74\x15\x48\x89\xD1\x4C\x89\xC2\xFF\xE0\x49\x83\xC2\x70\x41\xFF\xCB\x0F\x85\x34\xFF\xFF\xFF\x31\xC0\xC3",relocations={}},
{name="forge_completion_consume_gate",offset=65536,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\x89\xF8\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1A\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x3B\x47\x18\x0F\x8D\xD8\xC2\xBB\xF9\xE9\x64\xC2\xBB\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\xC2\xC2\xBB\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{72,4,"base",12370724,76},{77,4,"base",12370613,81},{94,4,"base",12370724,98}}},
{name="forge_completion_retire_gate",offset=69632,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x4C\x89\xF9\x4C\x89\xEA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x8B\xBC\x24\x08\x01\x00\x00\xE9\x47\xB6\xBB\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{69,4,"base",12371600,73}}},
{name="forge_player_cleanup_dispatch",offset=73728,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xD3\x48\x89\xCE\x48\x85\xD2\x0F\x84\x04\x02\x00\x00\x48\x85\xC9\x0F\x84\xFB\x01\x00\x00\x48\x39\x33\x75\x3E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x32\x48\x39\x46\x10\x75\x2C\x48\x8B\x43\x08\x48\x39\x46\x38\x75\x22\x48\x83\xBB\xF0\x01\x00\x00\x00\x74\x18\x48\x8B\x8B\xF8\x01\x00\x00\x48\x85\xC9\x74\x0C\x83\x79\x08\x00\x75\x06\xFF\x93\xF0\x01\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x41\x83\x38\x01\x75\x3C\x83\xBB\xE0\x00\x00\x00\x01\x75\x33\x48\x39\x33\x75\x2E\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x22\x48\x39\x46\x10\x75\x1C\x48\x83\xBB\xD0\x01\x00\x00\x00\x74\x12\x48\x8B\x8B\xD8\x01\x00\x00\x48\x85\xC9\x74\x06\xFF\x93\xD0\x01\x00\x00\x48\x89\xF1\x83\xBB\x8C\x01\x00\x00\x00\x0F\x84\xB5\x00\x00\x00\x83\xBB\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x39\x0B\x0F\x85\x9F\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x8F\x00\x00\x00\x48\x39\x41\x10\x0F\x85\x85\x00\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x74\x7C\x48\x39\x41\x38\x75\x76\x83\xB8\x80\x01\x00\x00\x01\x75\x6D\x83\xBB\x80\x00\x00\x00\x00\x75\x64\x83\xBB\xE4\x00\x00\x00\x00\x75\x5B\x83\xBB\x88\x01\x00\x00\x00\x75\x52\x48\x83\xBB\x90\x00\x00\x00\x00\x74\x48\x8B\x83\x8C\x01\x00\x00\x85\xC0\x7E\x3E\x3D\xFF\xFF\xFF\x7F\x74\x07\x8D\x50\xFF\x85\xD0\x75\x30\x3B\x83\x98\x00\x00\x00\x7E\x06\x89\x83\x98\x00\x00\x00\x8B\x83\x98\x00\x00\x00\x39\x83\x9C\x00\x00\x00\x7F\x0A\xC7\x83\x9C\x00\x00\x00\x00\x00\x00\x00\xC7\x83\x8C\x01\x00\x00\x00\x00\x00\x00\x83\xBB\xE8\x00\x00\x00\x01\x0F\x85\x99\x00\x00\x00\x48\x39\x0B\x0F\x85\x90\x00\x00\x00\x48\x8B\x83\x70\x01\x00\x00\x48\x85\xC0\x74\x70\x48\x39\x41\x10\x75\x6A\x48\x8B\x43\x08\x48\x85\xC0\x74\x61\x48\x39\x41\x38\x75\x5B\x83\xB8\x80\x01\x00\x00\x01\x75\x52\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x48\x83\xBB\x80\x00\x00\x00\x00\x75\x53\x83\xBB\xE4\x00\x00\x00\x00\x75\x4A\x83\xBB\x88\x01\x00\x00\x00\x75\x41\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x8B\xE8\x00\x00\x00\x75\x2D\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x85\xC0\x74\x0C\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xEB\x14\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="manual_cooking_scope",offset=77824,bytes="\x53\x56\x57\x48\x89\xCE\x48\x89\xD3\x48\x85\xC9\x0F\x84\x3B\x01\x00\x00\x48\x85\xD2\x0F\x84\x32\x01\x00\x00\x83\x7E\x28\x02\x0F\x85\x28\x01\x00\x00\x48\x8B\x0B\x48\x85\xC9\x0F\x84\x1C\x01\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\x0F\x01\x00\x00\x48\x39\x41\x10\x0F\x85\x05\x01\x00\x00\x48\x8B\x43\x08\x48\x85\xC0\x0F\x84\xF8\x00\x00\x00\x48\x39\x41\x38\x0F\x85\xEE\x00\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE1\x00\x00\x00\x48\x8B\x4E\x18\x48\x85\xC9\x0F\x84\xD4\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xC9\x00\x00\x00\x48\x8B\x03\x48\x39\x81\x98\x01\x00\x00\x0F\x85\xB9\x00\x00\x00\x48\x39\x88\x98\x01\x00\x00\x0F\x85\xAC\x00\x00\x00\x48\x8B\x53\x28\xE8\xAE\x00\x00\x00\x85\xC0\x0F\x84\x9B\x00\x00\x00\x4C\x8B\x46\x18\x4D\x8B\x88\x68\x02\x00\x00\x4D\x85\xC9\x0F\x84\x87\x00\x00\x00\x41\x80\xB9\x40\x01\x00\x00\x01\x75\x7D\x48\x8B\x43\x08\x49\x39\x81\xB8\x00\x00\x00\x75\x70\x48\x8B\x7E\x20\x48\x85\xFF\x74\x67\x48\x83\x7F\x10\x00\x74\x60\x4C\x39\x8F\x98\x01\x00\x00\x75\x57\x48\x89\xF9\x48\x8B\x53\x20\xE8\x56\x00\x00\x00\x85\xC0\x75\x10\x48\x89\xF9\x48\x8B\x53\x18\xE8\x46\x00\x00\x00\x85\xC0\x74\x37\x48\x83\xBF\x58\x01\x00\x00\x00\x74\x2D\x48\x8B\x47\x50\x48\x85\xC0\x74\x24\x8B\x50\x18\x85\xD2\x7E\x1D\x48\x8B\x40\x10\x48\x85\xC0\x74\x14\x3B\x50\x18\x7F\x0F\x31\xC9\x48\x39\x74\xC8\x20\x74\x0A\xFF\xC1\x39\xD1\x7C\xF3\x31\xC0\xEB\x03\x48\x89\xF8\x5F\x5E\x5B\xC3\x31\xC0\x48\x85\xD2\x74\x43\x4C\x8B\x1A\x4D\x85\xDB\x74\x3B\x41\xF6\xC3\x01\x75\x35\x4C\x8B\x11\x4D\x85\xD2\x74\x2D\x41\x0F\xB6\x8B\x30\x01\x00\x00\x85\xC9\x74\x21\x41\x38\x8A\x30\x01\x00\x00\x72\x18\x4D\x8B\x92\xC8\x00\x00\x00\x4D\x85\xD2\x74\x0C\x4D\x39\x5C\xCA\xF8\x75\x05\xB8\x01\x00\x00\x00\xC3",relocations={}},
{name="manual_cooking_recipe_scope",offset=81920,bytes="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\xC1\x01\x00\x00\x4D\x85\xC0\x0F\x84\xB8\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\xAD\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\xA2\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x97\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x8C\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x80\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\x6C\x01\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\x5B\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x4F\x01\x00\x00\xF6\xC2\x01\x0F\x85\x46\x01\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\x39\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x2A\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x1E\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x0E\x01\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x03\x01\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x0F\x84\xEF\x00\x00\x00\x48\x8B\x93\x80\x00\x00\x00\x48\x85\xD2\x74\x65\x48\x89\xF9\xE8\xEE\x00\x00\x00\x85\xC0\x74\x59\x48\x89\xE9\x48\x8B\x93\x88\x00\x00\x00\xE8\xDB\x00\x00\x00\x85\xC0\x0F\x84\xC0\x00\x00\x00\x48\x8B\x85\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xB0\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xA5\x00\x00\x00\x83\xBD\xD8\x00\x00\x00\x00\x0F\x8E\x98\x00\x00\x00\x48\x8B\x43\x60\x48\x85\xC0\x74\x0A\x83\x78\x44\x00\x0F\x85\x85\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x40\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_current_session",offset=86016,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x31\xFF\x31\xED\x48\x85\xC9\x0F\x84\xA4\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x99\x01\x00\x00\x48\x8B\x03\x48\x85\xC0\x0F\x84\x8D\x01\x00\x00\x48\x8B\x53\x10\x48\x85\xD2\x0F\x84\x80\x01\x00\x00\x48\x39\x50\x10\x0F\x85\x76\x01\x00\x00\x48\x8B\xB0\x98\x01\x00\x00\x48\x85\xF6\x0F\x84\x66\x01\x00\x00\x48\x83\x7E\x10\x00\x0F\x84\x5B\x01\x00\x00\x48\x39\x86\x98\x01\x00\x00\x0F\x85\x4E\x01\x00\x00\x48\x8B\x43\x28\x48\x85\xC0\x0F\x84\x41\x01\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\x35\x01\x00\x00\xF6\xC2\x01\x0F\x85\x2C\x01\x00\x00\x48\x8B\x06\x48\x85\xC0\x0F\x84\x20\x01\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\x11\x01\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\x05\x01\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF5\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\xEA\x00\x00\x00\x48\x8B\x86\x88\x02\x00\x00\x48\x85\xC0\x0F\x84\xDA\x00\x00\x00\x44\x8B\x68\x18\x45\x85\xED\x0F\x8E\xCD\x00\x00\x00\x4C\x8B\x60\x10\x4D\x85\xE4\x0F\x84\xC0\x00\x00\x00\x45\x3B\x6C\x24\x18\x0F\x8F\xB5\x00\x00\x00\x45\x31\xF6\x4B\x8B\x44\xF4\x20\x48\x85\xC0\x0F\x84\x90\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\x85\x00\x00\x00\x48\x89\x44\x24\x28\x48\x8B\x40\x50\x48\x85\xC0\x74\x77\x8B\x50\x18\x85\xD2\x0F\x88\x80\x00\x00\x00\x74\x6A\x4C\x8B\x78\x10\x4D\x85\xFF\x74\x75\x41\x3B\x57\x18\x7F\x6F\x89\x54\x24\x20\xC7\x44\x24\x24\x00\x00\x00\x00\x8B\x54\x24\x24\x49\x8B\x4C\xD7\x20\x48\x85\xC9\x74\x33\x48\x39\x71\x18\x75\x2D\x48\x89\x4C\x24\x30\x48\x89\xDA\xFF\x53\x30\x48\x85\xC0\x74\x1D\x48\x3B\x44\x24\x28\x75\x38\x48\x85\xFF\x74\x09\x48\x3B\x7C\x24\x30\x75\x2C\xEB\x08\x48\x8B\x7C\x24\x30\x48\x89\xC5\xFF\x44\x24\x24\x8B\x54\x24\x24\x3B\x54\x24\x20\x7C\xB1\x41\xFF\xC6\x45\x39\xEE\x0F\x8C\x56\xFF\xFF\xFF\x48\x89\xF8\x48\x89\xEA\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="manual_cooking_selected_recipe",offset=90112,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x45\x89\xC5\x4D\x89\xCE\x48\x85\xDB\x0F\x84\x98\x00\x00\x00\x4D\x85\xF6\x0F\x84\x8F\x00\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x7B\x58\x00\x74\x7D\xFF\x53\x30\x48\x85\xC0\x74\x75\x48\x89\xC7\x48\x8B\x6B\x38\x48\x85\xED\x74\x69\x48\x8B\x6D\x00\x48\x85\xED\x74\x60\x40\xF6\xC5\x01\x75\x5A\x48\x8B\x87\xE8\x00\x00\x00\x48\x85\xC0\x74\x17\x48\x83\x78\x10\x00\x74\x10\x48\x8B\x48\x18\xE8\x51\x00\x00\x00\x72\x3C\x48\x85\xC0\x75\x13\x48\x8B\x8F\xE0\x00\x00\x00\xE8\x3E\x00\x00\x00\x72\x29\x48\x85\xC0\x74\x24\x49\x89\xC0\x48\x89\xF1\x48\x89\xDA\xFF\x53\x58\x48\x85\xC0\x74\x13\x48\x39\xFA\x75\x0E\x4C\x39\x70\x10\x75\x08\x44\x39\x68\x18\x75\x02\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x20\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x70\x44\x8B\x51\x18\x45\x85\xD2\x78\x67\x74\x61\x4C\x8B\x59\x10\x4D\x85\xDB\x74\x5C\x45\x3B\x53\x18\x7F\x56\x31\xD2\x49\x8B\x44\xD3\x20\x48\x85\xC0\x74\x4A\x4C\x39\x70\x10\x75\x39\x44\x39\x68\x18\x75\x33\x48\x8B\x08\x48\x85\xC9\x74\x36\x44\x0F\xB6\x85\x30\x01\x00\x00\x45\x85\xC0\x74\x29\x44\x38\x81\x30\x01\x00\x00\x72\x15\x48\x8B\x89\xC8\x00\x00\x00\x48\x85\xC9\x74\x14\x4A\x39\x6C\xC1\xF8\x75\x02\xF8\xC3\xFF\xC2\x44\x39\xD2\x7C\xB0\x31\xC0\xF8\xC3\x31\xC0\xF9\xC3",relocations={}},
{name="manual_cooking_register",offset=94208,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x87\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x78\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x69\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x58\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x44\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x90\x80\x00\x00\x00\x48\x85\xD2\x74\x28\x4C\x89\xF9\xE8\xD8\x08\x00\x00\x85\xC0\x74\x1C\x4C\x89\xF1\x48\x89\xDA\x4D\x8B\x84\x24\xA8\x01\x00\x00\x49\x83\xC0\x70\xE8\xA0\x04\x00\x00\xE9\x8A\x04\x00\x00\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x48\x89\xCE\x49\x89\xD6\x4D\x89\xC4\x48\x85\xC9\x0F\x84\xE8\x03\x00\x00\x48\x85\xD2\x0F\x84\xDF\x03\x00\x00\x4D\x85\xC0\x0F\x84\xD6\x03\x00\x00\x4D\x8B\x6C\x24\x38\x4D\x85\xED\x0F\x84\xC8\x03\x00\x00\x41\x83\xBD\x88\x01\x00\x00\x01\x0F\x85\xBA\x03\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\xAC\x03\x00\x00\x49\x83\x3C\x24\x00\x0F\x84\xA1\x03\x00\x00\x49\x83\x7C\x24\x08\x00\x0F\x84\x95\x03\x00\x00\x49\x83\x7C\x24\x20\x00\x0F\x84\x89\x03\x00\x00\x49\x83\x7C\x24\x28\x00\x0F\x84\x7D\x03\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x71\x03\x00\x00\x49\x83\x7C\x24\x48\x00\x0F\x84\x65\x03\x00\x00\x49\x83\x7C\x24\x50\x00\x0F\x84\x59\x03\x00\x00\x49\x83\x7C\x24\x58\x00\x0F\x84\x4D\x03\x00\x00\x49\x83\x7C\x24\x60\x00\x0F\x84\x41\x03\x00\x00\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\x2F\x03\x00\x00\x48\x89\xC3\x48\x89\xC1\x49\x8B\x54\x24\x10\xE8\x32\x03\x00\x00\x85\xC0\x0F\x84\x17\x03\x00\x00\x4C\x89\xF1\x49\x8B\x54\x24\x18\xE8\x1D\x03\x00\x00\x85\xC0\x0F\x84\x02\x03\x00\x00\x49\x8B\x6E\x10\x48\x85\xED\x0F\x84\xF5\x02\x00\x00\x49\x8B\x86\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xE5\x02\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xDA\x02\x00\x00\x41\x83\xBE\xD8\x00\x00\x00\x00\x0F\x8E\xCC\x02\x00\x00\x48\x8B\x43\x10\x48\x85\xC0\x0F\x84\xBF\x02\x00\x00\x48\x89\x44\x24\x40\x48\x8B\x83\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\xAA\x02\x00\x00\x48\x89\x44\x24\x38\x49\x8B\x85\xA0\x00\x00\x00\x48\x89\x44\x24\x30\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x95\x80\x00\x00\x00\x0F\x85\x7C\x02\x00\x00\x48\x89\xD9\x4C\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x20\x84\xC0\x0F\x84\x57\x02\x00\x00\x48\x8B\x4C\x24\x38\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x0F\x88\x43\x02\x00\x00\x0F\x85\x2A\x02\x00\x00\x41\x83\xBD\xE0\x00\x00\x00\x01\x0F\x85\x2F\x02\x00\x00\x48\x8B\x44\x24\x30\x49\x39\x85\xA0\x00\x00\x00\x0F\x85\x1D\x02\x00\x00\x49\x39\x6E\x10\x0F\x85\x13\x02\x00\x00\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x0F\x85\x04\x02\x00\x00\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x0F\x85\xF2\x01\x00\x00\x48\x89\xF1\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x39\xD8\x0F\x85\xDD\x01\x00\x00\x41\x8B\x8D\x98\x00\x00\x00\x85\xC9\x7E\x1D\x49\x8B\x85\x90\x00\x00\x00\x48\x85\xC0\x0F\x84\xC2\x01\x00\x00\x83\x38\x00\x74\x30\x48\x83\xC0\x70\xFF\xC9\x75\xF3\x41\x8B\x85\x98\x00\x00\x00\x85\xC0\x0F\x88\xA6\x01\x00\x00\x3D\xFF\xFF\xFF\x7F\x0F\x84\x9B\x01\x00\x00\xFF\xC0\x41\x89\x85\x9C\x00\x00\x00\xE9\x7A\x01\x00\x00\x49\x8B\x44\x24\x48\x83\x78\x40\x00\x0F\x85\x7E\x01\x00\x00\x48\x83\x78\x48\x00\x0F\x85\x73\x01\x00\x00\x48\x89\x58\x28\x4C\x89\x70\x30\x48\x8B\x54\x24\x40\x48\x89\x50\x38\xC7\x40\x40\x01\x00\x00\x00\x48\x8B\x56\x18\x48\x85\xD2\x0F\x84\x42\x01\x00\x00\x48\x89\xF1\x31\xD2\x41\xFF\x54\x24\x60\x48\x85\xC0\x0F\x84\x2F\x01\x00\x00\x48\x8B\x80\xA0\x00\x00\x00\x48\x8B\x56\x18\x48\x85\xD2\x0F\x84\x1B\x01\x00\x00\x48\x89\xD9\x41\xB8\x01\x00\x00\x00\x4D\x89\xF1\x48\x89\x44\x24\x20\x48\xC7\x44\x24\x28\x00\x00\x00\x00\x41\xFF\x54\x24\x30\x49\x8B\x44\x24\x48\xC7\x40\x40\x00\x00\x00\x00\x48\x83\x78\x48\x00\x0F\x84\xF1\x00\x00\x00\x48\x89\xF1\x49\x8B\x54\x24\x08\x41\xFF\x14\x24\x48\x39\xD8\x0F\x85\xDC\x00\x00\x00\x48\x8B\x44\x24\x30\x49\x39\x85\xA0\x00\x00\x00\x0F\x85\xCA\x00\x00\x00\x49\x8B\x44\x24\x48\x48\x8B\x48\x48\x4C\x89\xEA\x4D\x8B\x44\x24\x58\x41\xFF\x54\x24\x50\x85\xC0\x0F\x84\xAC\x00\x00\x00\x49\x8B\x54\x24\x48\x48\xC7\x42\x48\x00\x00\x00\x00\x83\xF8\x01\x0F\x85\x96\x00\x00\x00\x48\x8B\x44\x24\x40\x48\x39\x43\x10\x0F\x85\x87\x00\x00\x00\x48\x8B\x44\x24\x38\x48\x39\x83\x58\x01\x00\x00\x75\x79\x48\x89\xC1\x31\xD2\x41\xFF\x54\x24\x28\x85\xC0\x7E\x6B\x48\x8B\x44\x24\x38\x48\x8B\x40\x68\x48\x85\xC0\x74\x5D\x83\x78\x18\x01\x75\x57\x48\x8B\x40\x10\x48\x85\xC0\x74\x4E\x83\x78\x18\x01\x7C\x48\x4C\x8B\x78\x20\x4D\x85\xFF\x74\x3F\x4C\x89\xF9\x49\x8B\x54\x24\x40\xE8\x5B\x00\x00\x00\x85\xC0\x74\x2E\x4D\x39\x77\x20\x75\x28\x41\x83\x7F\x30\x00\x7E\x21\x41\x80\x7F\x59\x01\x75\x1A\xB8\x02\x00\x00\x00\xEB\x15\xB8\x01\x00\x00\x00\xEB\x0E\x49\x8B\x44\x24\x48\xC7\x40\x40\x00\x00\x00\x00\x31\xC0\x41\xC7\x85\x80\x00\x00\x00\x00\x00\x00\x00\xEB\x09\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x49\x48\x85\xD2\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x92\x30\x01\x00\x00\x45\x85\xD2\x74\x22\x44\x38\x90\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xD0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_request_dispatch",offset=98304,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x38\x48\x89\xCB\x48\x85\xC9\x0F\x84\x18\x03\x00\x00\x4C\x8B\x6B\x28\x4D\x85\xED\x0F\x84\x0B\x03\x00\x00\x41\x83\x7D\x00\x01\x0F\x85\x00\x03\x00\x00\x4C\x8B\x23\x4D\x85\xE4\x0F\x84\xF4\x02\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x41\x0F\xB1\x94\x24\x88\x01\x00\x00\x0F\x85\xDD\x02\x00\x00\x41\x83\xBC\x24\x80\x00\x00\x00\x00\x0F\x85\xC2\x02\x00\x00\x41\x83\xBC\x24\xE4\x00\x00\x00\x00\x0F\x85\xB3\x02\x00\x00\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x41\x0F\xB1\x55\x00\x0F\x85\x9D\x02\x00\x00\x41\xC7\x45\x40\x00\x00\x00\x00\x49\x8B\x45\x28\x48\x89\x44\x24\x20\xBD\x08\x00\x00\x00\x49\x83\x7D\x30\x00\x0F\x85\x78\x02\x00\x00\x49\x83\x7D\x38\x00\x0F\x85\x6D\x02\x00\x00\xBD\x07\x00\x00\x00\x41\x8B\x45\x44\x85\xC0\x0F\x88\x5C\x02\x00\x00\x89\x44\x24\x28\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x49\x02\x00\x00\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x0F\x85\x37\x02\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x85\xC0\x0F\x84\x26\x02\x00\x00\x49\x39\x45\x18\x0F\x85\x1C\x02\x00\x00\x49\x8B\x14\x24\x48\x85\xD2\x0F\x84\x0F\x02\x00\x00\x48\x39\x42\x10\x0F\x85\x05\x02\x00\x00\x49\x8B\x44\x24\x08\x48\x85\xC0\x0F\x84\xF7\x01\x00\x00\x48\x39\x42\x38\x0F\x85\xED\x01\x00\x00\x83\xB8\x80\x01\x00\x00\x01\x0F\x85\xE0\x01\x00\x00\x48\x8B\x4B\x20\x48\x85\xC9\x0F\x84\xD3\x01\x00\x00\x49\x8B\x14\x24\x48\x39\x11\x0F\x85\xC6\x01\x00\x00\x48\x39\x41\x08\x0F\x85\xBC\x01\x00\x00\x49\x8B\x84\x24\x70\x01\x00\x00\x48\x39\x41\x10\x0F\x85\xAA\x01\x00\x00\x48\x83\x7B\x08\x00\x0F\x84\x9F\x01\x00\x00\x48\x83\x7B\x10\x00\x0F\x84\x94\x01\x00\x00\x48\x83\x7B\x18\x00\x0F\x84\x89\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x7E\x01\x00\x00\x48\x83\x7B\x38\x00\x0F\x84\x73\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x68\x01\x00\x00\xFF\x53\x08\xBD\x06\x00\x00\x00\x48\x85\xC0\x0F\x84\x57\x01\x00\x00\x48\x85\xD2\x0F\x84\x4E\x01\x00\x00\x49\x89\xC6\x49\x89\xD7\xBD\x07\x00\x00\x00\x49\x8B\x45\x10\x49\x39\x47\x10\x0F\x85\x35\x01\x00\x00\xBD\x05\x00\x00\x00\x4C\x89\xF1\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\x1F\x01\x00\x00\x49\x89\x45\x30\x4C\x89\xF9\x31\xD2\xFF\x53\x30\x48\x85\xC0\x0F\x84\xE2\x00\x00\x00\x49\x89\x45\x38\x49\x8B\x4D\x30\xFF\x53\x40\x4C\x39\xF0\x0F\x85\xCE\x00\x00\x00\x49\x8B\x4D\x38\xFF\x53\x40\x4C\x39\xF8\x0F\x85\xBE\x00\x00\x00\x4C\x89\xF1\x48\x8B\x53\x20\x45\x8B\x45\x04\x4D\x8B\x4D\x08\xFF\x53\x10\x48\x85\xC0\x0F\x84\xA3\x00\x00\x00\x4C\x39\xFA\x0F\x85\x9A\x00\x00\x00\x48\x89\xC7\xBD\x07\x00\x00\x00\x48\x8B\x47\x10\x49\x3B\x45\x08\x0F\x85\x84\x00\x00\x00\x8B\x47\x18\x41\x3B\x45\x04\x75\x7B\x49\x8B\x84\x24\xA0\x00\x00\x00\x49\x39\x45\x20\x75\x6D\x49\x8B\x84\x24\x70\x01\x00\x00\x49\x39\x45\x18\x75\x5F\x49\x8B\x14\x24\x48\x39\x42\x10\x75\x55\x49\x8B\x45\x28\x48\x3B\x44\x24\x20\x75\x4A\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x75\x3F\x41\x8B\x45\x44\x3B\x44\x24\x28\x75\x35\x49\x8B\x45\x10\x49\x39\x47\x10\x75\x2B\xBD\x05\x00\x00\x00\x4C\x89\xF1\x48\x89\xFA\x4D\x89\xE0\xFF\x53\x18\x41\x89\x45\x40\x83\xF8\x02\x74\x0C\x83\xF8\x01\x75\x0C\xBD\x04\x00\x00\x00\xEB\x05\xBD\x03\x00\x00\x00\x49\x8B\x4D\x38\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x38\x00\x00\x00\x00\x49\x8B\x4D\x30\x48\x85\xC9\x74\x0B\xFF\x53\x38\x49\xC7\x45\x30\x00\x00\x00\x00\x41\x89\x6D\x00\x41\xC7\x84\x24\x88\x01\x00\x00\x00\x00\x00\x00\x48\x83\xC4\x38\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="cooking_completion_consume_gate",offset=102400,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x4D\x89\xF0\x49\xB9\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\xF0\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x84\xC0\x75\x1B\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x41\x3B\x46\x18\x0F\x8D\x39\xD8\xD5\xF9\xE9\x98\xD7\xD5\xF9\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\xE9\x23\xD8\xD5\xF9",relocations={{23,8,"root",0,-1},{33,8,"root",61440,-1},{73,4,"base",14116998,77},{78,4,"base",14116842,82},{95,4,"base",14116998,99}}},
{name="cooking_completion_retire_gate",offset=106496,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x89\xF9\x4C\x89\xFA\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x81\xC4\x40\x01\x00\x00\xE9\xDB\xCC\xD5\xF9",relocations={{20,8,"root",0,-1},{30,8,"root",32768,-1},{68,4,"base",14118179,72}}},
{name="manual_cooking_zero_preflight",offset=114688,bytes="\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="manual_cooking_zero_factory",offset=118784,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x45\x02\x00\x00\x48\x85\xD2\x0F\x84\x3C\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x30\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x39\x02\x00\x00\x85\xC0\x0F\x84\x1E\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xF1\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xE4\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xE7\x01\x00\x00\x85\xC0\x0F\x84\xCC\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xBF\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xB1\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x9E\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x9A\x01\x00\x00\x85\xC0\x0F\x84\x7F\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x69\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x5C\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x4E\x01\x00\x00\x39\xC6\x0F\x8D\x3C\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x38\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x26\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\x09\x01\x00\x00\x0F\x88\x14\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\x05\x01\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xFA\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xE9\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x28\x49\x3B\x54\x24\x28\x74\x21\x49\x83\x7C\x24\x38\x00\x74\x07\x49\x3B\x54\x24\x38\x74\x12\x48\x81\xEA\x80\x15\x00\x00\x49\x3B\x54\x24\x28\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x78\xFE\xFF\xFF\xFF\xC6\xE9\x71\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x95\x00\x00\x00\x48\x85\xD2\x0F\x84\x8C\x00\x00\x00\x45\x85\xC0\x0F\x8E\x83\x00\x00\x00\x48\x83\x79\x10\x00\x74\x7C\x80\xB9\x08\x01\x00\x00\x01\x75\x73\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x67\x41\x83\x79\x18\x01\x75\x60\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x57\x41\x83\x79\x18\x00\x7F\x50\x41\x83\x79\x1C\x00\x75\x49\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x40\x49\x83\x79\x10\x00\x74\x39\x4D\x8B\x09\x4D\x85\xC9\x74\x31\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x25\x4C\x3B\x4A\x20\x74\x19\x4C\x3B\x4A\x28\x74\x13\x4C\x3B\x4A\x38\x74\x0D\x49\x81\xE9\x80\x15\x00\x00\x4C\x3B\x4A\x28\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="forge_shutdown_dispatch",offset=122880,bytes="\x53\x56\x48\x83\xEC\x28\x48\x89\xD3\x48\x85\xC9\x0F\x84\x43\x01\x00\x00\x48\x85\xD2\x0F\x84\x3A\x01\x00\x00\x48\x8B\x42\x08\x48\x85\xC0\x0F\x84\x2D\x01\x00\x00\x48\x39\x81\xB8\x00\x00\x00\x0F\x85\x20\x01\x00\x00\xC7\x83\xE0\x00\x00\x00\x00\x00\x00\x00\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x15\xBA\x09\x00\x00\x00\xB8\x01\x00\x00\x00\x48\x8B\xB3\xC8\x01\x00\x00\xF0\x0F\xB1\x16\x8B\x83\xE8\x00\x00\x00\x83\xF8\x04\x0F\x87\xDF\x00\x00\x00\x85\xC0\x74\x05\x83\xF8\x04\x75\x0D\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\xE8\x00\x00\x00\x45\x85\xC0\x0F\x84\xB9\x00\x00\x00\x45\x85\xC9\x0F\x84\xB0\x00\x00\x00\x45\x39\xC8\x0F\x85\xA7\x00\x00\x00\x83\xBB\x80\x00\x00\x00\x00\x0F\x85\x9A\x00\x00\x00\x83\xBB\xE4\x00\x00\x00\x00\x0F\x85\x8D\x00\x00\x00\x31\xC0\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x93\x88\x01\x00\x00\x75\x7C\x48\x8B\x83\xC8\x01\x00\x00\x48\x85\xC0\x74\x18\x83\x38\x02\x74\x50\x83\x38\x08\x74\x4B\x48\x83\x78\x30\x00\x75\x44\x48\x83\x78\x38\x00\x75\x3D\x48\x83\xBB\x78\x01\x00\x00\x00\x74\x33\xC7\x83\xE8\x00\x00\x00\x02\x00\x00\x00\x48\x89\xD9\xFF\x93\x78\x01\x00\x00\x83\xF8\x01\x75\x1B\xC7\x83\xE8\x00\x00\x00\x03\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x2B\xC7\x83\xE8\x00\x00\x00\x04\x00\x00\x00\xC7\x83\x88\x01\x00\x00\x00\x00\x00\x00\xB8\x03\x00\x00\x00\xEB\x10\xB8\x02\x00\x00\x00\xEB\x09\xB8\x03\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x28\x5E\x5B\xC3",relocations={}},
{name="forge_thread_capture",offset=126976,bytes="\x53\x48\x83\xEC\x30\x48\x89\xCB\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x8B\x01\x48\x85\xC0\x74\x78\x48\x8B\x00\x48\x85\xC0\x74\x70\xFF\xD0\x85\xC0\x74\x6A\x89\x44\x24\x20\x83\x7B\x08\x00\x75\x48\x48\x8B\x43\x30\x48\x85\xC0\x74\x57\x48\x83\x7B\x10\x00\x74\x50\xB9\x01\x00\x00\x00\x31\xC0\x48\x8B\x53\x30\xF0\x0F\xB1\x8A\x88\x01\x00\x00\x75\x3B\x48\x8B\x4B\x18\xFF\x53\x10\x48\x8B\x4B\x20\xFF\x53\x10\x48\x8B\x4B\x28\xFF\x53\x10\x48\x8B\x53\x30\xC7\x82\x88\x01\x00\x00\x00\x00\x00\x00\x8B\x54\x24\x20\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x30\x5B\xC3",relocations={}},
{name="forge_shutdown_entry",offset=131072,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xCE\x48\x89\xD3\x31\xFF\x48\x85\xD2\x74\x40\x48\x83\x3B\x00\x74\x3A\x48\x83\x7B\x10\x00\x74\x33\x48\x8B\x43\x08\x48\x85\xC0\x74\x17\x8B\x78\x08\x48\x8B\x00\x48\x85\xC0\x74\x0C\x48\x8B\x00\x48\x85\xC0\x74\x04\xFF\xD0\xEB\x02\x31\xC0\x41\x89\xC0\x41\x89\xF9\x48\x89\xF1\x48\x8B\x13\xFF\x53\x10\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="forge_close_wrapper",offset=135168,bytes="\x48\x89\x5C\x24\x08\x9C\x50\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x8B\x40\x20\x48\x85\xC0\x0F\x84\xA1\x00\x00\x00\x80\x38\x02\x0F\x85\x98\x00\x00\x00\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\x48\x83\x38\x00\x0F\x84\x84\x00\x00\x00\x48\x83\x78\x10\x00\x74\x7D\x48\x83\x78\x28\x00\x74\x76\xF0\xFF\x40\x18\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x81\xEC\x88\x00\x00\x00\x0F\x11\x44\x24\x20\x0F\x11\x4C\x24\x30\x0F\x11\x54\x24\x40\x0F\x11\x5C\x24\x50\x0F\x11\x64\x24\x60\x0F\x11\x6C\x24\x70\x48\x89\xC2\xFF\x50\x28\x0F\x10\x44\x24\x20\x0F\x10\x4C\x24\x30\x0F\x10\x54\x24\x40\x0F\x10\x5C\x24\x50\x0F\x10\x64\x24\x60\x0F\x10\x6C\x24\x70\x48\x81\xC4\x88\x00\x00\x00\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x48\xB8\x00\xB3\x01\x87\x01\x00\x00\x00\xF0\xFF\x48\x18\x58\x9D\xE9\xEF\x7E\x02\xFA",relocations={{9,8,"root",111360,-1},{41,8,"root",111360,-1},{179,8,"root",111360,-1},{194,4,"base",17076149,198}}},
{name="crockpot_pending_adopt_candidate",offset=139264,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x58\x49\x89\xCD\x49\x89\xD6\x4D\x89\xC4\x4D\x89\xCF\x31\xDB\x48\xC7\x44\x24\x30\x00\x00\x00\x00\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x4D\x85\xED\x0F\x84\xA3\x02\x00\x00\x4D\x85\xF6\x0F\x84\x9A\x02\x00\x00\x4D\x85\xE4\x0F\x84\x91\x02\x00\x00\x4D\x85\xFF\x0F\x84\x88\x02\x00\x00\x41\x83\xBC\x24\x80\x00\x00\x00\x01\x0F\x85\x79\x02\x00\x00\x41\x83\xBC\x24\x88\x01\x00\x00\x01\x0F\x85\x6A\x02\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x5B\x02\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x4C\x02\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\x3D\x02\x00\x00\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x44\x24\x40\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x8E\x20\x02\x00\x00\x49\x8B\x9C\x24\x90\x00\x00\x00\x48\x85\xDB\x0F\x84\x0F\x02\x00\x00\x48\x89\xDF\x89\xCD\x8B\x03\x83\xF8\x01\x74\x05\x83\xF8\x02\x75\x5C\x4C\x39\x73\x18\x75\x56\x4C\x39\x6B\x08\x75\x4B\x4C\x39\x7B\x20\x75\x45\x48\x8B\x44\x24\x40\x48\x39\x43\x50\x75\x3A\x49\x8B\x44\x24\x08\x48\x39\x43\x48\x75\x2F\x49\x8B\x45\x10\x48\x39\x43\x10\x75\x25\x49\x8B\x47\x10\x48\x39\x43\x28\x75\x1B\x48\x83\x7B\x40\x00\x74\x14\x48\x83\x7B\x60\x00\x74\x0D\x48\x89\xDA\xB8\x02\x00\x00\x00\xE9\xA9\x01\x00\x00\xE9\xA2\x01\x00\x00\x48\x83\xC3\x70\xFF\xC9\x75\x90\x48\x89\xFB\x89\xE9\x31\xC0\xBA\x03\x00\x00\x00\xF0\x0F\xB1\x13\x74\x0F\x48\x83\xC3\x70\xFF\xC9\x75\xEB\x31\xDB\xE9\x79\x01\x00\x00\x4C\x89\xE9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x89\x44\x24\x30\x48\x85\xC0\x0F\x84\x2F\x01\x00\x00\x4C\x89\xF1\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x89\x44\x24\x38\x48\x85\xC0\x0F\x84\x14\x01\x00\x00\x83\x3B\x03\x0F\x85\x0B\x01\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xFC\x00\x00\x00\x48\x8B\x44\x24\x40\x49\x39\x84\x24\xA0\x00\x00\x00\x0F\x85\xE9\x00\x00\x00\x4D\x39\x7E\x20\x0F\x85\xDF\x00\x00\x00\x41\x83\x7E\x30\x01\x0F\x85\xD4\x00\x00\x00\x41\x80\x7E\x58\x01\x0F\x85\xC9\x00\x00\x00\x41\x80\x7E\x59\x01\x0F\x85\xBE\x00\x00\x00\x49\x8B\xAD\x58\x01\x00\x00\x48\x85\xED\x0F\x84\xAE\x00\x00\x00\x49\x83\x7E\x10\x00\x0F\x85\xA3\x00\x00\x00\x49\x8B\x7D\x10\x48\x85\xFF\x0F\x84\x96\x00\x00\x00\x49\x8B\x77\x10\x48\x85\xF6\x0F\x84\x89\x00\x00\x00\x49\x8B\x85\x98\x01\x00\x00\x48\x85\xC0\x74\x7D\x80\xB8\x40\x01\x00\x00\x01\x75\x74\x49\x8B\x54\x24\x08\x48\x85\xD2\x74\x6A\x48\x39\x90\xB8\x00\x00\x00\x75\x61\x4C\x89\x6B\x08\x48\x89\x7B\x10\x4C\x89\x73\x18\x4C\x89\x7B\x20\x48\x89\x73\x28\x48\x89\x6B\x30\x48\xC7\x43\x38\x00\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x89\x4B\x40\x48\x89\x53\x48\x48\x8B\x4C\x24\x40\x48\x89\x4B\x50\x48\x89\x43\x58\x48\x8B\x4C\x24\x38\x48\x89\x4B\x60\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x48\x89\x43\x68\xC7\x03\x01\x00\x00\x00\x48\x89\xDA\xB8\x01\x00\x00\x00\xEB\x31\x48\x8B\x4C\x24\x38\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x83\x3B\x03\x75\x06\xC7\x03\x00\x00\x00\x00\x31\xC0\x48\x83\xC4\x58\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="crockpot_pending_add_gate_candidate",offset=143360,bytes="\x41\x54\x41\x55\x48\x83\xEC\x60\x48\x89\x4C\x24\x30\x48\x89\x54\x24\x38\x4C\x89\x44\x24\x40\x4C\x89\x4C\x24\x48\x48\x8B\x84\x24\x90\x00\x00\x00\x48\x89\x44\x24\x20\x48\x8B\x84\x24\x98\x00\x00\x00\x48\x89\x44\x24\x28\x49\xBC\x00\xE1\x02\x87\x01\x00\x00\x00\xF0\x41\xFF\x44\x24\x44\x41\x83\x7C\x24\x40\x01\x75\x70\x4D\x39\x7C\x24\x28\x75\x69\x49\x83\x7E\x10\x00\x75\x5E\x49\x8B\x47\x10\x49\x39\x44\x24\x38\x75\x49\x49\x8B\x46\x20\x49\x39\x44\x24\x30\x75\x3E\x4D\x8B\x04\x24\x41\x83\xB8\x80\x00\x00\x00\x01\x75\x3E\x41\x83\xB8\x88\x01\x00\x00\x01\x75\x34\x49\x83\x7E\x10\x00\x75\x29\x4C\x89\xF9\x4C\x89\xF2\x49\x89\xC1\x41\xFF\x54\x24\x08\x83\xF8\x02\x74\x16\x83\xF8\x01\x75\x07\x49\x89\x54\x24\x48\xEB\x0E\x4C\x89\xF1\x31\xD2\x41\xFF\x54\x24\x10\x31\xC0\xEB\x19\x48\x8B\x4C\x24\x30\x48\x8B\x54\x24\x38\x4C\x8B\x44\x24\x40\x4C\x8B\x4C\x24\x48\x41\xFF\x54\x24\x18\xF0\x41\xFF\x4C\x24\x44\x4D\x8B\x5C\x24\x20\x48\x83\xC4\x60\x41\x5D\x41\x5C\x41\xFF\xE3",relocations={{56,8,"root",188672,-1}}},
{name="crockpot_pending_finalize_candidate",offset=147456,bytes="\x53\x55\x56\x57\x41\x54\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x4D\x89\xC4\x48\x85\xDB\x0F\x84\x50\x01\x00\x00\x48\x85\xF6\x0F\x84\x47\x01\x00\x00\x4D\x85\xE4\x0F\x84\x3E\x01\x00\x00\x83\xBE\x80\x00\x00\x00\x01\x0F\x85\x31\x01\x00\x00\x83\xBE\x88\x01\x00\x00\x01\x0F\x85\x24\x01\x00\x00\x83\x3B\x01\x0F\x85\x1B\x01\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x0D\x01\x00\x00\x48\x83\xBE\xB0\x00\x00\x00\x00\x0F\x84\xFF\x00\x00\x00\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x0F\x84\xEA\x00\x00\x00\x48\x85\xD2\x0F\x84\xE1\x00\x00\x00\x48\x89\xC7\x48\x89\xD5\x48\x8B\x87\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\xCB\x00\x00\x00\x48\x39\x43\x30\x0F\x85\xC1\x00\x00\x00\x48\x8B\x50\x68\x48\x85\xD2\x0F\x84\xB4\x00\x00\x00\x48\x83\x7D\x10\x00\x74\x55\x48\x39\x45\x10\x0F\x85\xA3\x00\x00\x00\x83\x7D\x30\x01\x0F\x85\x99\x00\x00\x00\x80\x7D\x58\x01\x0F\x85\x8F\x00\x00\x00\x83\x7A\x18\x01\x0F\x85\x85\x00\x00\x00\x48\x8B\x52\x10\x48\x85\xD2\x74\x7C\x48\x83\x7A\x18\x01\x72\x75\x48\x39\x6A\x20\x75\x6F\xB8\x01\x00\x00\x00\xBA\x02\x00\x00\x00\xF0\x0F\xB1\x13\x75\x5F\xB8\x01\x00\x00\x00\xEB\x5A\x83\x7A\x18\x00\x75\x52\xB8\x01\x00\x00\x00\xBA\x03\x00\x00\x00\xF0\x0F\xB1\x13\x75\x42\x48\x89\xE9\x31\xD2\x41\xFF\xD4\x48\x8B\x4B\x60\x48\x85\xC9\x74\x06\xFF\x96\xB0\x00\x00\x00\x48\x8B\x4B\x40\x48\x85\xC9\x74\x06\xFF\x96\xB0\x00\x00\x00\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCB\xFF\xC9\x75\xF8\xC7\x03\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xEB\x02\x31\xC0\x48\x83\xC4\x20\x41\x5C\x5F\x5E\x5D\x5B\xC3",relocations={}},
{name="crockpot_virtual_scope_candidate",offset=151552,bytes="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x89\xCE\x49\x89\xD4\x48\x85\xF6\x0F\x84\x3F\x02\x00\x00\x4D\x85\xE4\x0F\x84\x36\x02\x00\x00\x4D\x8B\x6C\x24\x18\x4D\x85\xED\x0F\x84\x28\x02\x00\x00\x49\x8B\x85\x40\x3E\xD6\x05\x48\x85\xC0\x0F\x84\x18\x02\x00\x00\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x0F\x84\x08\x02\x00\x00\x48\x8B\x00\x48\x85\xC0\x0F\x84\xFC\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xF1\x01\x00\x00\x48\x8B\x40\x30\x48\x85\xC0\x0F\x84\xE4\x01\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xD9\x01\x00\x00\x49\x8B\x95\xB0\x40\xD6\x05\x48\x85\xD2\x0F\x84\xC9\x01\x00\x00\x48\x39\x10\x0F\x85\xC0\x01\x00\x00\x80\x78\x60\x01\x0F\x85\xB6\x01\x00\x00\x48\x8B\x58\x50\x49\x3B\x1C\x24\x0F\x85\xA8\x01\x00\x00\x48\x85\xDB\x0F\x84\x9F\x01\x00\x00\x49\x8B\x44\x24\x08\x48\x39\x43\x10\x0F\x85\x90\x01\x00\x00\x49\x8B\x7C\x24\x10\x48\x85\xFF\x0F\x84\x82\x01\x00\x00\x48\x39\x7B\x38\x0F\x85\x78\x01\x00\x00\x83\xBF\x80\x01\x00\x00\x01\x0F\x85\x6B\x01\x00\x00\x80\xBB\x94\x01\x00\x00\x00\x0F\x85\x5E\x01\x00\x00\x48\x89\xF1\x49\x8D\x95\x48\x8E\xD1\x05\xE8\x60\x01\x00\x00\x85\xC0\x0F\x84\x47\x01\x00\x00\x80\x7E\x58\x01\x0F\x85\x3D\x01\x00\x00\x80\x7E\x59\x01\x0F\x85\x33\x01\x00\x00\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x26\x01\x00\x00\x48\x8B\x40\x10\x48\x85\xC0\x0F\x84\x19\x01\x00\x00\x8B\x48\x20\x85\xC9\x0F\x88\x0E\x01\x00\x00\x3B\x48\x28\x0F\x85\x05\x01\x00\x00\x4C\x8B\x7E\x20\x4C\x89\xF9\x49\x8D\x95\x78\x8F\xD1\x05\xE8\x03\x01\x00\x00\x85\xC0\x0F\x84\xEA\x00\x00\x00\x49\x83\x7F\x10\x00\x0F\x84\xDF\x00\x00\x00\x49\x8B\x87\xD0\x00\x00\x00\x48\x85\xC0\x0F\x84\xCF\x00\x00\x00\x48\x83\x78\x10\x00\x0F\x84\xC4\x00\x00\x00\x48\x8B\x46\x48\x48\x85\xC0\x0F\x84\xB7\x00\x00\x00\x48\x8B\x58\x78\x31\xED\x48\x85\xDB\x74\x21\x48\x83\x7B\x18\x40\x0F\x87\xA1\x00\x00\x00\x48\x3B\x6B\x18\x0F\x83\x97\x00\x00\x00\x48\x8B\x44\xEB\x20\xFF\xC5\x48\x85\xC0\x74\xEA\x49\x8D\x95\x70\x75\xBC\x00\x48\x39\x50\x10\x75\x75\x4C\x8B\x70\x20\x4C\x89\xF1\x49\x8D\x95\x20\x8D\xD1\x05\xE8\x7C\x00\x00\x00\x85\xC0\x74\x5E\x49\x83\x7E\x10\x00\x74\x57\x49\x8B\x86\x98\x01\x00\x00\x48\x85\xC0\x74\x4B\x80\xB8\x40\x01\x00\x00\x01\x75\x42\x48\x39\xB8\xB8\x00\x00\x00\x75\x39\x49\x8B\x86\x58\x01\x00\x00\x48\x85\xC0\x74\x2D\x48\x8B\x40\x68\x48\x85\xC0\x74\x24\x83\x78\x18\x01\x75\x1E\x48\x8B\x40\x10\x48\x85\xC0\x74\x15\x48\x83\x78\x18\x01\x72\x0E\x48\x39\x70\x20\x75\x08\x4C\x89\xF8\x4C\x89\xF2\xEB\x0D\x48\x85\xDB\x0F\x85\x5F\xFF\xFF\xFF\x31\xC0\x31\xD2\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x74\x44\x48\x8B\x12\x48\x85\xD2\x74\x3C\xF6\xC2\x01\x75\x37\x48\x8B\x01\x48\x85\xC0\x74\x2F\x44\x0F\xB6\x82\x30\x01\x00\x00\x45\x85\xC0\x74\x22\x44\x38\x80\x30\x01\x00\x00\x72\x19\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x74\x0D\x4A\x39\x54\xC0\xF8\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",relocations={}},
{name="crockpot_owned_recipe_candidate",offset=155648,bytes="\x48\x85\xC9\x0F\x84\x07\x01\x00\x00\x48\x85\xD2\x0F\x84\xFE\x00\x00\x00\x4D\x85\xC0\x0F\x84\xF5\x00\x00\x00\x4D\x85\xC9\x0F\x84\xEC\x00\x00\x00\x41\x83\xB9\xE0\x00\x00\x00\x01\x0F\x85\xDE\x00\x00\x00\x48\x39\x51\x20\x0F\x85\xD4\x00\x00\x00\x83\x79\x30\x01\x0F\x85\xCA\x00\x00\x00\x49\x8B\x80\x58\x01\x00\x00\x48\x85\xC0\x0F\x84\xBA\x00\x00\x00\x48\x39\x41\x10\x0F\x85\xB0\x00\x00\x00\x4D\x8B\x91\x90\x00\x00\x00\x4D\x85\xD2\x0F\x84\xA0\x00\x00\x00\x45\x8B\x99\x98\x00\x00\x00\x45\x85\xDB\x0F\x8E\x90\x00\x00\x00\x41\x83\x3A\x02\x75\x76\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x49\x39\x42\x68\x75\x66\x49\x8B\x80\x58\x01\x00\x00\x49\x39\x4A\x18\x75\x59\x49\x39\x52\x20\x75\x53\x4D\x39\x42\x08\x75\x4D\x49\x39\x42\x30\x75\x47\x49\x8B\x40\x10\x48\x85\xC0\x74\x52\x49\x39\x42\x10\x75\x38\x48\x8B\x42\x10\x48\x85\xC0\x74\x43\x49\x39\x42\x28\x75\x29\x49\x8B\x81\xA0\x00\x00\x00\x49\x39\x42\x50\x75\x1C\x49\x8B\x41\x08\x49\x39\x42\x48\x75\x12\x49\x83\x7A\x40\x00\x74\x0B\x49\x83\x7A\x60\x00\x74\x04\x4C\x89\xD0\xC3\x49\x8B\x80\x58\x01\x00\x00\x49\x83\xC2\x70\x41\xFF\xCB\x0F\x85\x70\xFF\xFF\xFF\x31\xC0\xC3",relocations={}},
{name="crockpot_virtual_progress_candidate",offset=159744,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x48\x81\xEC\xA8\x00\x00\x00\x0F\x29\x74\x24\x70\x0F\x29\xBC\x24\x80\x00\x00\x00\x44\x0F\x29\x84\x24\x90\x00\x00\x00\x48\x89\xCE\x48\x89\xD7\x48\x85\xF6\x0F\x84\xBC\x01\x00\x00\x48\x85\xFF\x0F\x84\xB3\x01\x00\x00\x4D\x85\xC0\x0F\x84\xAA\x01\x00\x00\x4D\x85\xC9\x0F\x84\xA1\x01\x00\x00\xF3\x41\x0F\x10\x31\xF3\x41\x0F\x10\x38\xF3\x44\x0F\x10\x46\x20\x66\x0F\x7E\xF0\x85\xC0\x0F\x8E\x85\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x7A\x01\x00\x00\x66\x0F\x7E\xF8\x85\xC0\x0F\x8E\x6E\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x63\x01\x00\x00\x66\x44\x0F\x7E\xC0\x85\xC0\x0F\x8E\x56\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\x4B\x01\x00\x00\xC7\x44\x24\x50\xFF\x03\x00\x00\xC7\x44\x24\x54\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x54\x48\x8B\x07\x4C\x8B\x88\x70\x03\x00\x00\xFF\x90\x68\x03\x00\x00\x84\xC0\x0F\x84\x16\x01\x00\x00\x8B\x44\x24\x54\x85\xC0\x0F\x8E\x0A\x01\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\xFF\x00\x00\x00\xF3\x41\x0F\x59\xF8\xF3\x0F\x59\x7C\x24\x54\x66\x0F\x7E\xF8\x85\xC0\x0F\x8E\xE8\x00\x00\x00\x3D\x00\x00\x80\x7F\x0F\x83\xDD\x00\x00\x00\xC7\x44\x24\x50\xFC\x03\x00\x00\x48\xC7\x44\x24\x58\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x58\x48\x8B\x07\x4C\x8B\x88\x30\x03\x00\x00\xFF\x90\x28\x03\x00\x00\x84\xC0\x0F\x84\xA7\x00\x00\x00\x4C\x8B\x64\x24\x58\x4D\x85\xE4\x0F\x84\x99\x00\x00\x00\xC7\x44\x24\x50\xFD\x03\x00\x00\x48\xC7\x44\x24\x60\x00\x00\x00\x00\x48\x89\xF9\x48\x8D\x54\x24\x50\x4C\x8D\x44\x24\x60\x48\x8B\x07\x4C\x8B\x88\x30\x03\x00\x00\xFF\x90\x28\x03\x00\x00\x84\xC0\x74\x67\x4C\x8B\x6C\x24\x60\x4D\x85\xED\x74\x5D\x4C\x89\xE1\x48\x8B\x01\x48\x8B\x90\x80\x01\x00\x00\xFF\x90\x78\x01\x00\x00\x66\x0F\x7E\xC0\x85\xC0\x78\x42\x3D\x00\x00\x80\x7F\x73\x3B\xF3\x0F\x58\xF8\xF3\x0F\x5D\xFE\x4C\x89\xE9\x48\x8B\x01\x0F\x28\xCE\x4C\x8B\x80\x90\x01\x00\x00\xFF\x90\x88\x01\x00\x00\x4C\x89\xE1\x48\x8B\x01\x0F\x28\xCF\x4C\x8B\x80\x90\x01\x00\x00\xFF\x90\x88\x01\x00\x00\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\x0F\x28\x74\x24\x70\x0F\x28\xBC\x24\x80\x00\x00\x00\x44\x0F\x28\x84\x24\x90\x00\x00\x00\x48\x81\xC4\xA8\x00\x00\x00\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="crockpot_virtual_dispatch_candidate",offset=163840,bytes="\x56\x57\x41\x54\x41\x55\x48\x83\xEC\x48\x48\x89\xCE\x48\x89\xD7\x4D\x89\xC5\x4D\x89\xCC\xF0\x41\xFF\x44\x24\x24\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\x95\x00\x00\x00\x83\xB8\xE0\x00\x00\x00\x01\x0F\x85\x88\x00\x00\x00\x48\x89\xF9\x4C\x89\xE2\x41\xFF\x54\x24\x38\x48\x85\xC0\x74\x78\x48\x89\x44\x24\x30\x49\x83\x7C\x24\x60\x00\x74\x6B\x49\x83\x7C\x24\x68\x00\x74\x63\x49\x89\xD0\x48\x89\xC2\x48\x89\xF9\x4D\x8B\x4C\x24\x60\x41\xFF\x54\x24\x68\x48\x85\xC0\x74\x4B\x48\x8B\x44\x24\x30\x8B\x50\x18\x41\x8B\x4C\x24\x28\x85\xC9\x74\x3A\x81\xF9\x00\x10\x00\x00\x77\x32\x4D\x8B\x4C\x24\x30\x4D\x85\xC9\x74\x28\x41\x39\x11\x74\x0A\x49\x83\xC1\x08\xFF\xC9\x75\xF3\xEB\x19\x49\x83\xC1\x04\x48\x89\xF1\x48\x89\xFA\x4D\x89\xE8\x41\xFF\x54\x24\x40\xBE\x01\x00\x00\x00\xEB\x0C\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x48\x31\xF6\xF0\x41\xFF\x4C\x24\x24\x89\xF0\x48\x83\xC4\x48\x41\x5D\x41\x5C\x5F\x5E\xC3",relocations={}},
{name="crockpot_virtual_run_gate_candidate",offset=167936,bytes="\x48\x89\xE9\x48\x89\xFA\x4D\x89\xF8\x49\xB9\x00\xE0\x02\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x02\x87\x01\x00\x00\x00\xFF\xD0\xE9\x2A\x03\xFD\xF9",relocations={{11,8,"root",188416,-1},{21,8,"root",163840,-1},{32,4,"base",16749390,36}}},
{name="crockpot_completion_retire_candidate",offset=172032,bytes="\x9C\x50\x51\x52\x41\x50\x41\x51\x41\x52\x41\x53\x48\x8B\x8C\x24\xD0\x01\x00\x00\x48\x8B\x94\x24\xD8\x01\x00\x00\x49\xB8\x00\x00\x00\x87\x01\x00\x00\x00\x48\xB8\x00\x80\x00\x87\x01\x00\x00\x00\x48\x83\xEC\x20\xFF\xD0\x48\x83\xC4\x20\x41\x5B\x41\x5A\x41\x59\x41\x58\x5A\x59\x58\x9D\x48\x81\xC4\x50\x01\x00\x00\xE9\x58\xDE\xB9\xF9",relocations={{30,8,"root",0,-1},{40,8,"root",32768,-1},{78,4,"base",12353194,82}}},
{name="crockpot_virtual_cancel_candidate",offset=176128,bytes="\x53\x56\x57\x48\x83\xEC\x20\x48\x89\xCB\x48\x89\xD6\x4C\x89\xC7\x48\x85\xDB\x74\x54\x48\x85\xF6\x74\x4F\x48\x85\xFF\x74\x4A\x48\x83\x7E\x38\x00\x74\x43\x48\x83\x7E\x50\x00\x74\x3C\xF0\xFF\x46\x24\x48\x89\xD9\x48\x89\xF2\xFF\x56\x38\x48\x39\xF8\x75\x22\x48\x89\xD9\x31\xD2\xFF\x56\x50\x80\x7B\x58\x00\x75\x14\x83\x7B\x30\x00\x75\x0E\x48\x83\x7B\x10\x00\x75\x07\xB8\x01\x00\x00\x00\xEB\x02\x31\xC0\xF0\xFF\x4E\x24\xEB\x02\x31\xC0\x48\x83\xC4\x20\x5F\x5E\x5B\xC3",relocations={}},
{name="crockpot_virtual_cancel_owned_candidate",offset=180224,bytes="\x53\x56\x57\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x28\x48\x89\xCB\x48\x89\xD6\x4C\x89\xC7\x48\x85\xDB\x0F\x84\xA7\x00\x00\x00\x48\x85\xF6\x0F\x84\x9E\x00\x00\x00\x48\x85\xFF\x0F\x84\x95\x00\x00\x00\x48\x83\xBE\xC0\x00\x00\x00\x00\x0F\x84\x87\x00\x00\x00\x48\x83\xBE\xD0\x00\x00\x00\x00\x74\x7D\x48\x83\x7F\x58\x00\x74\x76\x31\xC0\xBA\x01\x00\x00\x00\xF0\x0F\xB1\x96\x80\x00\x00\x00\x75\x69\x48\x89\xD9\x48\x89\xF2\xFF\x96\xC0\x00\x00\x00\x48\x85\xC0\x74\x4A\x48\x85\xD2\x74\x45\x49\x89\xC4\x49\x89\xD5\x4C\x8B\x73\x20\x4C\x89\xE9\x48\x89\xFA\x4D\x89\xF0\xFF\x57\x58\x83\xF8\x01\x75\x2A\x83\x3B\x00\x74\x14\x4C\x89\xE1\x4C\x89\xEA\x49\x89\xF0\xFF\x96\xD0\x00\x00\x00\x83\xF8\x01\x75\x11\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x01\x00\x00\x00\xEB\x13\xC7\x86\x80\x00\x00\x00\x00\x00\x00\x00\x31\xC0\xEB\x05\xB8\x02\x00\x00\x00\x48\x83\xC4\x28\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3",relocations={}},
{name="crockpot_cancel_router_candidate",offset=184320,bytes="\x48\xB8\x41\x53\x4B\x41\x50\x4F\x54\x31\x48\x39\x41\x68\x75\x2C\x48\x8B\x82\xA8\x01\x00\x00\x48\x85\xC0\x74\x2C\x48\x8B\x80\xB8\x00\x00\x00\x48\x85\xC0\x74\x20\x4C\x8B\x40\x50\x4D\x85\xC0\x74\x17\x49\x8B\x40\x70\x48\x85\xC0\x74\x0E\xFF\xE0\x48\xB8\x00\xA0\x00\x87\x01\x00\x00\x00\xFF\xE0\x31\xC0\xC3",relocations={{62,8,"root",40960,-1}}},
}
local controlTemplate="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x60\xA2\xD3\x85\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\x00\x20\x00\x87\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\x00\x40\x00\x87\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x20\x3D\xDA\x80\x01\x00\x00\x00\xE0\x11\x65\x83\x01\x00\x00\x00\x48\x79\xD3\x85\x01\x00\x00\x00\x80\x02\x5D\x80\x01\x00\x00\x00\x40\xA0\xA0\x80\x01\x00\x00\x00\xD0\x49\xDA\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x04\x00\x00\x00\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00\x00\x70\x00\x87\x01\x00\x00\x00\x00\x90\x00\x87\x01\x00\x00\x00\x00\x80\x00\x87\x01\x00\x00\x00\x40\x01\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xD0\x02\x87\x01\x00\x00\x00\x00\x30\x00\x87\x01\x00\x00\x00\x40\xAD\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x80\x0F\x68\x83\x01\x00\x00\x00\xD0\x3C\x68\x83\x01\x00\x00\x00\x80\x15\x68\x83\x01\x00\x00\x00\xF0\xC0\xD9\x80\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\xF0\xA2\xD8\x80\x01\x00\x00\x00\xA0\x4C\xDA\x80\x01\x00\x00\x00\x20\x42\x68\x83\x01\x00\x00\x00\x00\x50\x00\x87\x01\x00\x00\x00\xA0\x3D\x68\x83\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\xD0\xC1\xBC\x80\x01\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x00\xB0\x00\x87\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38\x92\x9B\x84\x01\x00\x00\x00\x00\x02\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\x80\x01\x87\x01\x00\x00\x00\x00\xB1\x01\x87\x01\x00\x00\x00\x70\x66\xD7\x80\x01\x00\x00\x00\x00\xD0\x01\x87\x01\x00\x00\x00\x00\xF0\x01\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00"
local controlRelocations={
{0,"player",0},
{8,"runner",0},
{16,"villager",0},
{24,"recipe",0},
{32,"root",8192},
{40,"forge",0},
{48,"base",14108880},
{56,"base",56962544},
{64,"root",16384},
{72,"root",256},
{80,"base",14302496},
{88,"base",56955360},
{96,"base",97745224},
{104,"base",6095488},
{112,"base",10526784},
{120,"base",14305744},
{136,"base",12370384},
{160,"generation",0},
{168,"base",6464432},
{176,"base",6201520},
{184,"base",6201712},
{192,"root",28672},
{200,"root",36864},
{208,"root",32768},
{216,"root",320},
{240,"root",184320},
{248,"root",12288},
{256,"base",14200128},
{264,"base",14306464},
{272,"base",57151360},
{280,"base",57162960},
{288,"base",57152896},
{296,"base",14270704},
{304,"root",4096},
{312,"base",14197488},
{320,"base",14306464},
{328,"base",57164320},
{336,"root",20480},
{344,"base",57163168},
{352,"base",14303312},
{360,"base",12370384},
{368,"identity",0},
{376,"root",45056},
{400,"base",77304376},
{408,"root",512},
{416,"root",81920},
{424,"root",110592},
{432,"root",86016},
{440,"root",90112},
{448,"root",94208},
{456,"root",111104},
{464,"root",98304},
{472,"root",110848},
{480,"base",14116464},
{488,"root",118784},
{496,"root",126976},
{504,"root",111232},
}
local dataTemplates={
{offset=110592,bytes="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x38\x2E\xD1\x85\x01\x00\x00\x00\x40\xD4\xD5\x85\x01\x00\x00\x00\xD0\x12\xD6\x85\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x18\x34\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\x00\x01\x00\x87\x01\x00\x00\x00\x00\x10\x00\x87\x01\x00\x00\x00\x00\x40\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\x00\xC0\x01\x87\x01\x00\x00\x00\x00\x30\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\xD0\x48\xD7\x80\x01\x00\x00\x00\xF0\x2D\x65\x83\x01\x00\x00\x00\xD0\x5F\xBC\x80\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00\x00\xE1\x02\x87\x01\x00\x00\x00\x00\x40\x02\x87\x01\x00\x00\x00\x60\xF8\xA3\x80\x01\x00\x00\x00\x80\x57\xCA\x80\x01\x00\x00\x00",relocations={{0,"player",0},{8,"runner",0},{16,"identity",0},{24,"base",97594936},{32,"forge",0},{40,"base",97915600},{48,"root",77824},{56,"recipe",0},{64,"base",14108880},{72,"root",256},{80,"root",4096},{88,"root",81920},{96,"root",111104},{104,"root",114688},{112,"root",77824},{120,"root",110592},{128,"base",97619232},{136,"base",97619832},{144,"base",14108880},{152,"base",56962544},{160,"base",12345296},{168,"root",0},{176,"base",97619528},{184,"root",188672},{192,"root",147456},{200,"base",10745952},{208,"base",13260672}}},
{offset=110848,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x00\x50\x01\x87\x01\x00\x00\x00\x00\x60\x01\x87\x01\x00\x00\x00\x00\x70\x01\x87\x01\x00\x00\x00\x00\xB0\x01\x87\x01\x00\x00\x00\x00\xB2\x01\x87\x01\x00\x00\x00\xB0\xA3\x62\x80\x01\x00\x00\x00\xB0\xA0\x5E\x80\x01\x00\x00\x00\x70\xA1\x5E\x80\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",86016},{16,"root",90112},{24,"root",94208},{32,"root",110592},{40,"root",111104},{48,"base",6464432},{56,"base",6201520},{64,"base",6201712}}},
{offset=111232,bytes="\x90\x92\x9B\x84\x01\x00\x00\x00",relocations={{0,"base",77304464}}},
{offset=111248,bytes="\x20\x00\x5D\x80\x01\x00\x00\x00\x20\x8D\xD1\x85\x01\x00\x00\x00\x78\x8F\xD1\x85\x01\x00\x00\x00\x48\x8E\xD1\x85\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00",relocations={{0,"base",6094880},{8,"base",97619232},{16,"base",97619832},{24,"base",97619528},{32,"root",0}}},
{offset=111360,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x80\xB2\x01\x87\x01\x00\x00\x00\x00\xE0\x01\x87\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",111232},{16,"root",122880}}},
{offset=111392,bytes="\xF0\xB3\x01\x87\x01\x00\x00\x00\x00\x00\x02\x87\x01\x00\x00\x00",relocations={{0,"root",111600},{8,"root",131072}}},
{offset=188416,bytes="\x00\x10\x11\x00\x00\x00\x00\x00\x00\x20\x22\x00\x00\x00\x00\x00\x00\x30\x33\x00\x00\x00\x00\x00\x00\x00\x00\x80\x01\x00\x00\x00",relocations={{0,"player",0},{8,"identity",0},{16,"runner",0},{24,"base",0}}},
{offset=188456,bytes="\x26\x00\x00\x00\x00\x00\x00\x00\x00\xE2\x02\x87\x01\x00\x00\x00\x00\x50\x02\x87\x01\x00\x00\x00\x00\x70\x02\x87\x01\x00\x00\x00\x30\x44\xDA\x80\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\x00\xB0\x02\x87\x01\x00\x00\x00\x00\x00\x00\x87\x01\x00\x00\x00\x00\x60\x02\x87\x01\x00\x00\x00\x00\xC0\x02\x87\x01\x00\x00\x00",relocations={{8,"root",188928},{16,"root",151552},{24,"root",159744},{32,"base",14304304},{40,"base",14303312},{48,"root",176128},{56,"root",0},{64,"root",155648},{72,"root",180224}}},
{offset=188672,bytes="\x00\x00\x00\x87\x01\x00\x00\x00\x00\x20\x02\x87\x01\x00\x00\x00\x50\x40\xDA\x80\x01\x00\x00\x00\xE0\x11\x65\x83\x01\x00\x00\x00\xA3\x85\xBC\x80\x01\x00\x00\x00",relocations={{0,"root",0},{8,"root",139264},{16,"base",14303312},{24,"base",56955360},{32,"base",12354979}}},
{offset=188752,bytes="\x00\xE0\x02\x87\x01\x00\x00\x00",relocations={{0,"root",188416}}},
{offset=188928,bytes="\x0B\x60\xC0\x00\x00\x00\xC8\x42\x0D\x60\xC0\x00\x00\x00\xC8\x43\x0E\x60\xC0\x00\x00\x00\xFA\x43\x0F\x60\xC0\x00\x00\x00\xFA\x43\x10\x60\xC0\x00\x00\x00\xC8\x43\x11\x60\xC0\x00\x00\x00\xC8\x43\x12\x60\xC0\x00\x00\x00\xC8\x43\x13\x60\xC0\x00\x00\x00\xC8\x43\x14\x60\xC0\x00\x00\x00\xFA\x43\x15\x60\xC0\x00\x00\x00\xC8\x43\x16\x60\xC0\x00\x00\x00\xFA\x43\x17\x60\xC0\x00\x00\x00\xC8\x43\x18\x60\xC0\x00\x00\x00\xC8\x43\x19\x60\xC0\x00\x00\x00\xC8\x43\x1E\x60\xC0\x00\x00\x00\xC8\x43\x1F\x60\xC0\x00\x00\x00\xC8\x43\x20\x60\xC0\x00\x00\x00\xC8\x43\x21\x60\xC0\x00\x00\x00\xC8\x43\x22\x60\xC0\x00\x00\x00\xC8\x43\x23\x60\xC0\x00\x00\x00\xC8\x43\x24\x60\xC0\x00\x00\x00\xC8\x43\x2B\x60\xC0\x00\x00\x00\x96\x43\x2C\x60\xC0\x00\x00\x00\xC8\x43\x2D\x60\xC0\x00\x00\x00\xC8\x43\x2F\x60\xC0\x00\x00\x00\xC8\x43\x30\x60\xC0\x00\x00\x00\xC8\x43\x31\x60\xC0\x00\x00\x00\xC8\x43\x32\x60\xC0\x00\x00\x00\xC8\x42\x33\x60\xC0\x00\x00\x00\xFA\x43\x34\x60\xC0\x00\x00\x00\xC8\x42\x35\x60\xC0\x00\x00\x00\x16\x43\x36\x60\xC0\x00\x00\x00\x48\x43\x37\x60\xC0\x00\x00\x00\xC8\x42\x38\x60\xC0\x00\x00\x00\x16\x43\x39\x60\xC0\x00\x00\x00\x16\x43\x3A\x60\xC0\x00\x00\x00\x16\x43\x3E\x60\xC0\x00\x00\x00\xC8\x42\x40\x60\xC0\x00\x00\x00\x96\x43",relocations={}},
}
local entryTemplates={
{name="fetch",rva=9580922,helperOffset=49152,original="\x49\x8B\x4F\x60\x48\x85\xC9",signature="\x49\x8B\x4F\x60\x48\x85\xC9\x0F\x84\x84\x02\x00\x00\x33\xD2\xE8\xB2\xA7\x12\x00\x48\x8B\x4F"},
{name="returnMaterials",rva=9787916,helperOffset=53248,original="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00",signature="\x83\x78\x18\x00\x0F\x84\x74\x01\x00\x00\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x16\x05\x00\x00\x48\x8B\x0D"},
{name="returnRegister",rva=9788713,helperOffset=57344,original="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00",signature="\x48\x85\xFF\x0F\x84\x07\x02\x00\x00\x48\x8B\x0D\xC7\x13\x3F\x05\x48\x8B\x77\x18\x39\x99\xE4\x00\x00"},
{name="consume",rva=12370608,helperOffset=65536,original="\x3B\x47\x18\x7D\x6F",signature="\x3B\x47\x18\x7D\x6F\x33\xD2\x49\x8B\xCF\xE8\x01\x45\x24\x00\x4C\x8B\x05\x4A\xAB\x10"},
{name="retire",rva=12371592,helperOffset=69632,original="\x48\x8B\xBC\x24\x08\x01\x00\x00",signature="\x48\x8B\xBC\x24\x08\x01\x00\x00\x48\x8B\xB4\x24\x00\x01\x00\x00\x48\x8B\x9C\x24\xF0\x00\x00\x00"},
{name="cookingConsume",rva=14116832,helperOffset=102400,original="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00",signature="\x41\x3B\x46\x18\x0F\x8D\x9C\x00\x00\x00\x4C\x8B\x05\x1F\x06\xF6\x04\x8B\xD3\x49\x8B\xCE\xE8\x95\xAE\x13"},
{name="cookingRetire",rva=14118172,helperOffset=106496,original="\x48\x81\xC4\x40\x01\x00\x00",signature="\x48\x81\xC4\x40\x01\x00\x00\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x9C\x95\x85"},
{name="sessionClose",rva=17076144,helperOffset=135168,original="\x48\x89\x5C\x24\x08",signature="\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x70\x80\x3D\x25\x09\xFC\x04"},
{name="crockpotAdd",rva=12354974,helperOffset=143360,original="\xE8\x3D\x8C\xA8\x02",signature="\xE8\x3D\x8C\xA8\x02\x48\x8B\x0D\x9E\xF3\x16\x05\xE8\xD1\x7C\xA0\xFF\x4D\x8B\x07\x45"},
{name="crockpotRun",rva=16749380,helperOffset=167936,original="\x33\xD2\x48\x8B\xCF\xE8\xE2\xB0\xDA\xFF",signature="\x33\xD2\x48\x8B\xCF\xE8\xE2\xB0\xDA\xFF\x48\x8B\x74\x24\x70\x48\x8B\x5C\x24\x60\x4C\x8B\x74\x24\x30\x48"},
{name="crockpotRetire",rva=12353187,helperOffset=172032,original="\x48\x81\xC4\x50\x01\x00\x00",signature="\x48\x81\xC4\x50\x01\x00\x00\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x15\x84\xA0"},
}
local legacy079Helpers={
["forge_recipe_preflight"]="\x48\x85\xC9\x0F\x84\xA5\x00\x00\x00\x48\x85\xD2\x0F\x84\x9C\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\x91\x00\x00\x00\x48\x83\x7A\x20\x00\x0F\x84\x86\x00\x00\x00\x48\x83\x7A\x28\x00\x74\x7F\x4C\x8B\x81\x00\x01\x00\x00\x4D\x85\xC0\x74\x73\x45\x8B\x48\x18\x45\x85\xC9\x7E\x6A\x45\x31\xD2\x45\x31\xDB\x4B\x8B\x4C\xD0\x20\x48\x85\xC9\x74\x5A\x48\x8B\x41\x10\x48\x85\xC0\x74\x51\x48\x83\x78\x10\x00\x74\x4A\x48\x8B\x00\x48\x85\xC0\x74\x42\x48\x8B\x80\xD8\x01\x00\x00\x48\x3B\x42\x20\x74\x13\x48\x3B\x42\x28\x74\x0D\x48\x83\x7A\x38\x00\x74\x28\x48\x3B\x42\x38\x75\x22\x8B\x41\x18\x85\xC0\x7F\x09\x8B\x41\x1C\x85\xC0\x78\x14\x74\x06\x41\xBB\x01\x00\x00\x00\x41\xFF\xC2\x45\x39\xCA\x7C\xA0\x44\x89\xD8\xC3\x31\xC0\xC3",
["forge_recipe_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x48\x85\xC9\x0F\x84\xF3\x01\x00\x00\x48\x85\xD2\x0F\x84\xEA\x01\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\xDE\x01\x00\x00\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\xD1\x01\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xA4\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\x97\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x41\xFF\x54\x24\x30\x85\xC0\x0F\x84\x84\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\x77\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x69\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x56\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x3B\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x2E\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x20\x01\x00\x00\x39\xC6\x0F\x8D\x0E\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x0A\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x84\xE7\x00\x00\x00\x0F\x88\xF2\x00\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xE3\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xD8\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xC7\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xA6\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\x9B\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x85\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x75\x7A\x48\x39\x4B\x10\x75\x74\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x61\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x55\x48\x83\x78\x18\x00\x75\x4E\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\xC0\xFE\xFF\xFF\xFF\xC6\xE9\xB9\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",
["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",
["manual_cooking_zero_preflight"]="\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",
["manual_cooking_zero_factory"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x48\x49\x89\xD4\x49\x89\xCD\x48\x89\x4C\x24\x20\x44\x89\x44\x24\x40\x48\x85\xC9\x0F\x84\x3B\x02\x00\x00\x48\x85\xD2\x0F\x84\x32\x02\x00\x00\x49\x83\x7C\x24\x30\x00\x0F\x84\x26\x02\x00\x00\x44\x8B\x44\x24\x40\xE8\x2F\x02\x00\x00\x85\xC0\x0F\x84\x14\x02\x00\x00\x4D\x8B\xB5\x00\x01\x00\x00\x41\x8B\x46\x18\x89\x44\x24\x28\x41\x0F\xB6\x85\x08\x01\x00\x00\x89\x44\x24\x2C\x4C\x89\xE9\x31\xD2\x41\xFF\x14\x24\x48\x85\xC0\x0F\x84\xE7\x01\x00\x00\x49\x89\xC7\x4C\x39\x68\x20\x0F\x85\xDA\x01\x00\x00\x4C\x89\xE9\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\xDD\x01\x00\x00\x85\xC0\x0F\x84\xC2\x01\x00\x00\x4D\x39\xB5\x00\x01\x00\x00\x0F\x85\xB5\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\xA7\x01\x00\x00\x4C\x89\xF9\x31\xD2\x41\xFF\x54\x24\x08\x48\x85\xC0\x0F\x84\x94\x01\x00\x00\x49\x89\xC5\x31\xF6\x48\x8B\x4C\x24\x20\x4C\x89\xE2\x44\x8B\x44\x24\x40\xE8\x90\x01\x00\x00\x85\xC0\x0F\x84\x75\x01\x00\x00\x48\x8B\x44\x24\x20\x0F\xB6\x88\x08\x01\x00\x00\x3B\x4C\x24\x2C\x0F\x85\x5F\x01\x00\x00\x4C\x39\xB0\x00\x01\x00\x00\x0F\x85\x52\x01\x00\x00\x41\x8B\x46\x18\x3B\x44\x24\x28\x0F\x85\x44\x01\x00\x00\x39\xC6\x0F\x8D\x32\x01\x00\x00\x49\x8B\x5C\xF6\x20\x48\x85\xDB\x0F\x84\x2E\x01\x00\x00\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x0F\x85\x1C\x01\x00\x00\x8B\x44\x24\x40\x85\xC0\x0F\x84\xFF\x00\x00\x00\x0F\x88\x0A\x01\x00\x00\x89\xC7\x48\x8B\x4B\x10\x48\x85\xC9\x0F\x84\xFB\x00\x00\x00\x48\x83\x79\x10\x00\x0F\x84\xF0\x00\x00\x00\x48\x89\x4C\x24\x30\x48\x8B\x01\x48\x85\xC0\x0F\x84\xDF\x00\x00\x00\x48\x8B\x90\xD8\x01\x00\x00\x49\x3B\x54\x24\x20\x74\x1E\x49\x3B\x54\x24\x28\x74\x17\x49\x83\x7C\x24\x38\x00\x0F\x84\xBE\x00\x00\x00\x49\x3B\x54\x24\x38\x0F\x85\xB3\x00\x00\x00\x48\x8B\x90\xE0\x01\x00\x00\xFF\x90\xD8\x01\x00\x00\x48\x85\xC0\x0F\x84\x9D\x00\x00\x00\x48\x8B\x4C\x24\x30\x48\x39\x48\x20\x0F\x85\x8E\x00\x00\x00\x48\x39\x4B\x10\x0F\x85\x84\x00\x00\x00\x48\x89\x44\x24\x38\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x71\x8B\x44\x24\x40\x39\xF8\x75\x69\x48\x8B\x44\x24\x38\x48\x83\x78\x10\x00\x75\x5D\x48\x83\x78\x18\x00\x75\x56\x89\x78\x30\x48\x89\xC2\x4C\x89\xE9\x41\x89\xF8\x45\x31\xC9\x41\xFF\x54\x24\x18\x48\x89\xD9\x31\xD2\x41\xFF\x54\x24\x10\x85\xC0\x75\x34\x8B\x44\x24\x40\x39\xF8\x75\x2C\x48\x8B\x43\x10\x48\x3B\x44\x24\x30\x75\x21\x83\x7C\x24\x2C\x00\x74\x09\x8B\x74\x24\x28\xE9\x82\xFE\xFF\xFF\xFF\xC6\xE9\x7B\xFE\xFF\xFF\x41\xC6\x47\x59\x01\x4C\x89\xF8\xEB\x02\x31\xC0\x48\x83\xC4\x48\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3\x48\x85\xC9\x0F\x84\x80\x00\x00\x00\x48\x85\xD2\x74\x7B\x45\x85\xC0\x7E\x76\x48\x83\x79\x10\x00\x74\x6F\x80\xB9\x08\x01\x00\x00\x01\x75\x66\x4C\x8B\x89\x00\x01\x00\x00\x4D\x85\xC9\x74\x5A\x41\x83\x79\x18\x01\x75\x53\x4D\x8B\x49\x20\x4D\x85\xC9\x74\x4A\x41\x83\x79\x18\x00\x7F\x43\x41\x83\x79\x1C\x00\x75\x3C\x4D\x8B\x49\x10\x4D\x85\xC9\x74\x33\x49\x83\x79\x10\x00\x74\x2C\x4D\x8B\x09\x4D\x85\xC9\x74\x24\x4D\x8B\x89\xD8\x01\x00\x00\x4D\x85\xC9\x74\x18\x4C\x3B\x4A\x20\x74\x0C\x4C\x3B\x4A\x28\x74\x06\x4C\x3B\x4A\x38\x75\x06\xB8\x01\x00\x00\x00\xC3\x31\xC0\xC3",
}
local legacy090Helpers={
["manual_cooking_recipe_scope"]="\x53\x56\x57\x55\x41\x54\x41\x55\x41\x56\x48\x83\xEC\x30\xC7\x44\x24\x20\x00\x00\x00\x00\x48\x89\xCE\x48\x89\xD3\x4C\x89\xC5\x48\x85\xD2\x0F\x84\x4C\x01\x00\x00\x4D\x85\xC0\x0F\x84\x43\x01\x00\x00\x48\x83\x7B\x30\x00\x0F\x84\x38\x01\x00\x00\x48\x83\x7B\x40\x00\x0F\x84\x2D\x01\x00\x00\x48\x83\x7B\x48\x00\x0F\x84\x22\x01\x00\x00\x48\x83\x7B\x50\x00\x0F\x84\x17\x01\x00\x00\xFF\x53\x30\x48\x85\xC0\x0F\x84\x0B\x01\x00\x00\x48\x89\xC7\x4C\x8B\x60\x10\x4C\x8B\x6D\x10\x4D\x85\xED\x0F\x84\xF7\x00\x00\x00\x44\x8B\x75\x18\x48\x8B\x43\x38\x48\x85\xC0\x0F\x84\xE6\x00\x00\x00\x48\x8B\x10\x48\x85\xD2\x0F\x84\xDA\x00\x00\x00\xF6\xC2\x01\x0F\x85\xD1\x00\x00\x00\x48\x8B\x45\x00\x48\x85\xC0\x0F\x84\xC4\x00\x00\x00\x0F\xB6\x8A\x30\x01\x00\x00\x85\xC9\x0F\x84\xB5\x00\x00\x00\x38\x88\x30\x01\x00\x00\x0F\x82\xA9\x00\x00\x00\x48\x8B\x80\xC8\x00\x00\x00\x48\x85\xC0\x0F\x84\x99\x00\x00\x00\x48\x39\x54\xC8\xF8\x0F\x85\x8E\x00\x00\x00\x48\x89\xF9\x48\x89\xEA\x45\x31\xC0\xFF\x53\x40\x84\xC0\x74\x7E\x48\x89\xE9\x48\x8B\x53\x48\x48\x8B\x43\x60\x48\x85\xC0\x74\x2D\x44\x8B\x40\x44\x45\x85\xC0\x74\x24\x78\x63\x83\x38\x02\x75\x5E\x44\x39\x70\x04\x75\x58\x4C\x39\x68\x08\x75\x52\x48\x83\x7B\x68\x00\x74\x4B\x44\x89\x44\x24\x20\xFF\x53\x68\xEB\x03\xFF\x53\x50\x85\xC0\x74\x3A\x48\x89\xF1\x48\x89\xDA\xFF\x53\x30\x48\x39\xF8\x75\x2C\x4C\x39\x67\x10\x75\x26\x4C\x39\x6D\x10\x75\x20\x44\x39\x75\x18\x75\x1A\x48\x8B\x43\x60\x48\x85\xC0\x74\x09\x8B\x40\x44\x3B\x44\x24\x20\x75\x08\x48\x89\xFA\x48\x89\xE8\xEB\x04\x31\xC0\x31\xD2\x48\x83\xC4\x30\x41\x5E\x41\x5D\x41\x5C\x5D\x5F\x5E\x5B\xC3",
["manual_cooking_register"]="\x53\x55\x56\x57\x41\x54\x41\x55\x41\x56\x41\x57\x48\x83\xEC\x68\x48\xC7\x44\x24\x40\x00\x00\x00\x00\x4D\x89\xC4\x49\x89\xD5\x49\x89\xCE\x4D\x85\xC0\x0F\x84\x4B\x04\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\x3C\x04\x00\x00\x49\x83\xBC\x24\xA0\x01\x00\x00\x00\x0F\x84\x2D\x04\x00\x00\x49\x8B\x94\x24\xA8\x01\x00\x00\x48\x85\xD2\x0F\x84\x1C\x04\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x85\xC0\x0F\x84\x08\x04\x00\x00\x48\x89\xC3\x49\x89\xD7\x49\x8B\x07\x48\x8B\x80\xB8\x03\x00\x00\x48\x85\xC0\x0F\x84\xEF\x03\x00\x00\x49\x3B\x84\x24\x88\x00\x00\x00\x74\x0E\x49\x3B\x84\x24\xE0\x01\x00\x00\x0F\x85\xD7\x03\x00\x00\x48\x89\x44\x24\x58\x48\x8B\x43\x10\x48\x89\x44\x24\x48\x8B\x43\x18\x89\x44\x24\x50\x49\x8B\x47\x10\x48\x89\x44\x24\x28\x49\x8B\x87\x98\x01\x00\x00\x48\x89\x44\x24\x30\x48\xC7\x44\x24\x38\x00\x00\x00\x00\x49\x8B\xAF\x58\x01\x00\x00\xC7\x44\x24\x60\x00\x00\x00\x00\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x22\x8B\x40\x44\x85\xC0\x0F\x88\x79\x03\x00\x00\x89\x44\x24\x60\x85\xC0\x74\x0F\x49\x83\xBC\x24\xE8\x01\x00\x00\x00\x0F\x84\x62\x03\x00\x00\x31\xC0\xB9\x01\x00\x00\x00\xF0\x41\x0F\xB1\x8C\x24\x80\x00\x00\x00\x0F\x85\xCE\x03\x00\x00\x4C\x89\xF9\x48\x89\xDA\x45\x31\xC0\x41\xFF\x54\x24\x30\x84\xC0\x0F\x84\x30\x03\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\x1E\x03\x00\x00\x0F\x85\x24\x03\x00\x00\x49\x83\xBC\x24\xA8\x00\x00\x00\x00\x0F\x84\x09\x03\x00\x00\x49\x83\xBC\x24\xB0\x00\x00\x00\x00\x0F\x84\xFA\x02\x00\x00\x41\x8B\x8C\x24\x98\x00\x00\x00\x85\xC9\x0F\x88\xEA\x02\x00\x00\x74\x2E\x49\x8B\x94\x24\x90\x00\x00\x00\x48\x85\xD2\x0F\x84\xD7\x02\x00\x00\x45\x31\xC0\x83\x3A\x00\x74\x51\x83\x3A\x03\x0F\x87\xC6\x02\x00\x00\x48\x83\xC2\x70\x41\xFF\xC0\x41\x39\xC8\x7C\xE6\x81\xF9\xFF\xFF\xFF\x7F\x0F\x84\xAE\x02\x00\x00\xFF\xC1\x41\x89\x8C\x24\x9C\x00\x00\x00\x49\x83\xBC\x24\x98\x01\x00\x00\x00\x0F\x84\xA1\x02\x00\x00\x89\xCA\x4C\x89\xE1\x41\xFF\x94\x24\x98\x01\x00\x00\x85\xC0\x0F\x84\x8C\x02\x00\x00\xEB\x84\x31\xC0\x41\xB9\x01\x00\x00\x00\xF0\x44\x0F\xB1\x0A\x0F\x85\x6B\x02\x00\x00\x48\x89\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\x48\x89\xD9\x49\x8B\x54\x24\x48\x83\x7C\x24\x60\x00\x74\x0F\x44\x8B\x44\x24\x60\x41\xFF\x94\x24\xE8\x01\x00\x00\xEB\x05\x41\xFF\x54\x24\x40\x48\x85\xC0\x0F\x84\x2B\x02\x00\x00\x48\x89\xC7\x4C\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\x12\x02\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x40\x48\x89\xF9\x31\xD2\x41\xFF\x94\x24\xA8\x00\x00\x00\x48\x85\xC0\x0F\x84\xF3\x01\x00\x00\x48\x8B\x54\x24\x40\x48\x89\x42\x60\x49\x8B\x44\x24\x60\x48\x85\xC0\x0F\x84\xDC\x01\x00\x00\x48\x8B\x08\x48\x85\xC9\x0F\x84\xD0\x01\x00\x00\xF6\xC1\x01\x0F\x85\xC7\x01\x00\x00\x41\xFF\x54\x24\x68\x48\x85\xC0\x0F\x84\xB9\x01\x00\x00\x48\x89\xC6\x48\x89\xC1\x4C\x89\xFA\x49\x8B\x07\x4C\x8B\x80\xC0\x03\x00\x00\x4D\x85\xC0\x0F\x84\x9D\x01\x00\x00\x49\x8B\x40\x08\x48\x3B\x44\x24\x58\x0F\x85\x8E\x01\x00\x00\x45\x31\xC9\x41\xFF\x54\x24\x70\x48\x8B\x44\x24\x58\x48\x39\x46\x10\x0F\x85\x77\x01\x00\x00\x4C\x39\x7E\x20\x0F\x85\x6D\x01\x00\x00\x48\x89\xF9\x48\x89\xF2\x45\x31\xC0\x41\xFF\x54\x24\x78\x49\x8B\x84\x24\xA8\x01\x00\x00\x48\x8B\x40\x60\x48\x85\xC0\x74\x0D\x8B\x40\x44\x3B\x44\x24\x60\x0F\x85\x41\x01\x00\x00\x4C\x89\xF1\x49\x8B\x94\x24\xA8\x01\x00\x00\x4D\x89\xE8\x41\xFF\x94\x24\xA0\x01\x00\x00\x48\x39\xD8\x0F\x85\x22\x01\x00\x00\x4C\x39\xFA\x0F\x85\x19\x01\x00\x00\x48\x8B\x43\x10\x48\x3B\x44\x24\x48\x0F\x85\x0A\x01\x00\x00\x8B\x43\x18\x3B\x44\x24\x50\x0F\x85\xFD\x00\x00\x00\x49\x8B\x47\x10\x48\x3B\x44\x24\x28\x0F\x85\xEE\x00\x00\x00\x49\x8B\x87\x98\x01\x00\x00\x48\x3B\x44\x24\x30\x0F\x85\xDC\x00\x00\x00\x49\x39\xAF\x58\x01\x00\x00\x0F\x85\xCF\x00\x00\x00\x48\x89\xE9\x31\xD2\x41\xFF\x54\x24\x38\x85\xC0\x0F\x88\xBD\x00\x00\x00\x0F\x85\xC3\x00\x00\x00\x41\x83\xBC\x24\xE0\x00\x00\x00\x01\x0F\x85\xA8\x00\x00\x00\x48\x8B\x54\x24\x40\x4C\x89\x7A\x08\x48\x8B\x44\x24\x28\x48\x89\x42\x10\x48\x89\x7A\x18\x48\x89\x5A\x20\x48\x8B\x43\x10\x48\x89\x42\x28\x48\x89\x6A\x30\x48\x8B\x44\x24\x38\x48\x89\x42\x38\x49\x8B\x44\x24\x08\x48\x89\x42\x48\x49\x8B\x84\x24\xA0\x00\x00\x00\x48\x89\x42\x50\x48\x8B\x44\x24\x30\x48\x89\x42\x58\x48\x89\xF9\x31\xD2\x41\xFF\x54\x24\x50\x48\x89\xE9\x48\x89\xFA\x41\xB8\x01\x00\x00\x00\x41\xB9\xFF\xFF\xFF\xFF\x48\xC7\x44\x24\x20\x00\x00\x00\x00\x41\xFF\x54\x24\x58\x84\xC0\x74\x29\x48\x8B\x54\x24\x40\xB8\x01\x00\x00\x00\xB9\x02\x00\x00\x00\xF0\x0F\xB1\x0A\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\xB8\x02\x00\x00\x00\xE9\x91\x00\x00\x00\xC6\x47\x58\x00\x45\x31\xDB\xEB\x0D\x31\xC0\xE9\x81\x00\x00\x00\x41\xBB\x01\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x85\xD2\x74\x5B\xB8\x01\x00\x00\x00\xB9\x03\x00\x00\x00\xF0\x0F\xB1\x0A\x75\x4B\x4C\x89\x5C\x24\x38\x48\x8B\x4A\x60\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x48\x8B\x54\x24\x40\x48\x8B\x4A\x40\x48\x85\xC9\x74\x08\x41\xFF\x94\x24\xB0\x00\x00\x00\x4C\x8B\x5C\x24\x38\x48\x8B\x54\x24\x40\x31\xC0\xB9\x0D\x00\x00\x00\x48\x89\x04\xCA\xFF\xC9\x75\xF8\xC7\x02\x00\x00\x00\x00\x41\xC7\x84\x24\x80\x00\x00\x00\x00\x00\x00\x00\x44\x89\xD8\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x68\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5D\x5B\xC3",
["forge_thread_capture"]="\x53\x48\x83\xEC\x20\x48\x89\xCB\x48\x85\xC9\x74\x2C\x48\x8B\x01\x48\x85\xC0\x74\x24\x48\x8B\x00\x48\x85\xC0\x74\x1C\xFF\xD0\x85\xC0\x74\x16\x89\xC2\x31\xC0\xF0\x0F\xB1\x53\x08\x74\x0F\x39\xD0\x74\x0B\xC7\x43\x0C\x01\x00\x00\x00\x31\xC0\xEB\x05\xB8\x01\x00\x00\x00\x48\x83\xC4\x20\x5B\xC3",
}
local buildIdentity="\xCF\xEA\xEC\x50\x71\x04\xDB\xB6\xE1\x26\xFB\x41\x44\x6B\x89\x61\x53\x14\x51\xBC\xD9\x7E\xE5\x13\xF2\x1B\x6F\xED\x93\x71\x65\x76"

local function need(ok,message)if not ok then error(message,0)end return ok end
local function replace(bytes,offset,value)return bytes:sub(1,offset)..value..bytes:sub(offset+#value+1)end
return function(context,root,generation,slots,manifest,ownerControl,cleanupRevision)
  need(cleanupRevision==nil,'Candidate image has no legacy cleanup support')
  need(type(context)=='table' and type(slots)=='table','Missing independently verified forge context')
  local symbols={base=context.base,root=root,player=context.player,identity=context.identity,
    runner=context.runner,generation=generation,villager=slots.villager,recipe=slots.recipe,forge=slots.forge}
  for name,value in pairs(symbols)do
    need(math.type(value)=='integer' and value&gt;0,'Invalid forge context: '..name)
    if name~='generation'then need(value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0,'Unaligned forge context: '..name)end
  end
  for _,name in ipairs({'base','root','player','identity','runner','generation','villager','recipe','forge'})do
    need(symbols[name]~=nil,'Missing forge context: '..name)
  end
  need(root%0x1000==0,'Forge runtime must be page aligned')
  local size=runtimeSize
  need(root+size&lt;0x800000000000,'Forge allocation overflow')
  local control=controlTemplate
  for _,reloc in ipairs(controlRelocations)do
    control=replace(control,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))
  end
  local code,addresses,ranges={}, {}, {}
  local blob=control..string.rep('\0',size-#control)
  for _,template in ipairs(templates)do
    local bytes=template.bytes
    if cleanupRevision then bytes=legacy090Helpers[template.name]or bytes end
    if cleanupRevision=='25834809-001-079'then bytes=legacy079Helpers[template.name]or bytes end
    local address=root+template.offset
    for _,reloc in ipairs(template.relocations)do
      local value=symbols[reloc[3]]+reloc[4]
      if reloc[5]&gt;=0 then
        value=value-address-reloc[5]
        need(value&gt;=-0x80000000 and value&lt;=0x7FFFFFFF,'Forge relative relocation is out of range')
      end
      local payload=reloc[2]==8 and string.pack('&lt;I8',value)or string.pack('&lt;i4',value)
      bytes=replace(bytes,reloc[1],payload)
    end
    code[template.name],addresses[template.name]=bytes,address
    ranges[#ranges+1]={address,address+#bytes}
    blob=replace(blob,template.offset,bytes)
  end
  local dataBlocks={}
  for _,template in ipairs(dataTemplates)do
    if not cleanupRevision or template.offset~=0x1B290 then
    local bytes=template.bytes
    for _,reloc in ipairs(template.relocations)do
      bytes=replace(bytes,reloc[1],string.pack('&lt;I8',symbols[reloc[2]]+reloc[3]))
    end
    if cleanupRevision and template.offset==0x1B000 then bytes=bytes:sub(1,0x70)end
    if cleanupRevision and template.offset==0x1B280 then bytes=bytes:sub(1,8)end
    if template.offset==0x1B320 and ownerControl then
      need(math.type(ownerControl)=='integer'and ownerControl&gt;=0x10000 and ownerControl&lt;0x800000000000 and ownerControl%8==0,'Invalid forge owner phase address')
      bytes=replace(bytes,0,string.pack('&lt;I8',ownerControl+0xC0))
    end
    blob=replace(blob,template.offset,bytes)
    dataBlocks[#dataBlocks+1]={offset=template.offset,bytes=bytes}
    end
  end
  local plans={}
  for _,entry in ipairs(entryTemplates)do
    local address=context.base+entry.rva
    local destination=root+entry.helperOffset
    local delta=destination-address-5
    need(delta&gt;=-0x80000000 and delta&lt;=0x7FFFFFFF,'Forge hook is out of range')
    plans[#plans+1]={name=entry.name,address=address,destination=destination,helperOffset=entry.helperOffset,
      original=entry.original,signature=entry.signature,
      patch=string.char(0xE9)..string.pack('&lt;i4',delta)..string.rep(string.char(0x90),#entry.original-5)}
  end
  local blocks={}
  for _,slice in ipairs({{0,0x80},{0x88,8},{0xA0,0x40},{0xF0,0x98},{0x190,0x70}})do
    blocks[#blocks+1]={offset=slice[1],bytes=control:sub(slice[1]+1,slice[1]+slice[2])}
  end
  for _,template in ipairs(templates)do blocks[#blocks+1]={offset=template.offset,bytes=code[template.name]}end
  for _,block in ipairs(dataBlocks)do blocks[#blocks+1]=block end
  table.sort(blocks,function(a,b)return a.offset&lt;b.offset end)
  local spec={base=context.base,root=root,size=size,generation=generation,player=context.player,
    identity=context.identity,runner=context.runner,villager=slots.villager,recipe=slots.recipe,
    forge=slots.forge,build=buildIdentity,blocks=blocks,plans=plans}
  local header
  if manifest then header=manifest.encode(spec);blob=replace(blob,0xF00,header)end
  return {root=root,size=size,blob=blob,control=control,addresses=addresses,ranges=ranges,code=code,
    cleanupRevision=cleanupRevision,
    plans=plans,manifest=header,manifestSpec=spec,dataBlocks=dataBlocks,
    manualContext=root+0x1B000,manualDispatchControl=root+0x1B100,manualMailbox=root+0x1B200,virtualControl=root+0x2E000,gateControl=root+0x2E100,durationTable=root+0x2E200}
end


end)()
return function(context,root,generation,slots,manifest,ownerControl,cleanupRevision)
 if cleanupRevision=='25834809-001-148' then
  local image=prior(context,root,generation,slots,manifest,ownerControl)
  image.cleanupRevision=cleanupRevision;image.cleanupOnly=true
  return image
 end
 if cleanupRevision then
  assert(cleanupRevision=='25834809-001-097'or cleanupRevision=='25834809-001-090'or cleanupRevision=='25834809-001-079','Unknown cleanup-only image')
  local revision=cleanupRevision~='25834809-001-097'and cleanupRevision or nil
  local image=previous(context,root,generation,slots,manifest,ownerControl,revision)
  image.cleanupRevision=cleanupRevision;image.cleanupOnly=true
  return image
 end
 return current(context,root,generation,slots,manifest,ownerControl)
end

end)()
ForgeModules.anchor=(function()
-- Uninstalled persistent owner descriptor in character control+A8 .. +FF.
-- Native dispatch only runs with phase byte 2. Publish that byte LAST, after
-- the entire staged descriptor and independently verified image are present.
-- Checksums detect drift; they do not authorize freeing a runtime or ledger.
local MAGIC,SIZE,RUNTIME_SIZE='ASKAFG02',0x58,0x2F000
local function runtimeSize(size)return size==0x22000 or size==0x2F000 end
local function need(ok,message)if not ok then error(message,0)end return ok end
local function checksum(bytes)
  local value=2166136261
  for i=1,#bytes do value=((value ~ bytes:byte(i))*16777619)&amp;0xFFFFFFFF end
  return value
end
local function pointer(value)
  return math.type(value)=='integer' and value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0
end
local function encode(spec,phase,flags,journal,pendingPage)
  need(type(spec)=='table','Missing trusted forge anchor context')
  for _,name in ipairs({'root','dispatcher','player','identity','runner'})do need(pointer(spec[name]),'Invalid anchor '..name)end
  need(spec.root%0x1000==0 and runtimeSize(spec.size),'Invalid anchored runtime range')
  need(spec.dispatcher&gt;=spec.root and spec.dispatcher&lt;spec.root+spec.size,'Anchor dispatcher is outside runtime')
  need(math.type(spec.generation)=='integer' and spec.generation&gt;0,'Invalid anchor generation')
  need(math.type(phase)=='integer' and phase&gt;=1 and phase&lt;=6,'Invalid anchor phase')
  need(flags==0 or flags==1,'Invalid shared-owner flag')
  journal=journal or 0
  need(journal==0 or pointer(journal),'Invalid anchor journal pointer')
  local size=spec.size
  if phase==6 then need(pointer(pendingPage),'Missing journal release intent');size=pendingPage end
  local header=string.pack('&lt;I8I8I8i4i4I8I8I8I8I8c8',spec.root,spec.dispatcher,spec.generation,
    phase,flags,journal,size,spec.player,spec.identity,spec.runner,MAGIC)
  need(#header==0x50,'Forge anchor layout differs')
  return header..string.pack('&lt;I4I4',checksum(header),0)
end
local function decode(bytes,expected)
  need(type(bytes)=='string' and #bytes==SIZE,'Incomplete forge owner anchor')
  if bytes==string.rep('\0',SIZE)then return end
  local root,dispatcher,generation,phase,flags,journal,size,player,identity,runner,magic,hash,reserved=
    string.unpack('&lt;I8I8I8i4i4I8I8I8I8I8c8I4I4',bytes)
  need(magic==MAGIC and reserved==0,'Unknown forge owner anchor')
  local effectivePhase=phase
  if phase==0 then
    -- Clearing the active phase byte is safe before changing any pointer.
    -- Its checksum still identifies the previously sealed descriptor.
    effectivePhase=nil
    for candidate=1,6 do
      local header=bytes:sub(1,0x18)..string.char(candidate)..bytes:sub(0x1A,0x50)
      if checksum(header)==hash then effectivePhase=candidate;break end
    end
    need(effectivePhase,'Unrecognized staged forge anchor')
  else need(checksum(bytes:sub(1,0x50))==hash,'Forge anchor checksum differs')end
  local spec={root=root,dispatcher=dispatcher,generation=generation,size=effectivePhase==6 and(expected and expected.size or RUNTIME_SIZE)or size,
    player=player,identity=identity,runner=runner}
  -- Re-encoding applies all pointer/phase/range checks before any caller uses it.
  local canonical=encode(spec,effectivePhase,flags,journal,effectivePhase==6 and size or nil)
  need(canonical:sub(1,0x18)==bytes:sub(1,0x18) and canonical:sub(0x1A)==bytes:sub(0x1A),'Forge anchor fields differ')
  if expected then
    for _,name in ipairs({'root','dispatcher','generation','player','identity','runner','size'})do
      need(spec[name]==expected[name],'Forge owner context differs: '..name)
    end
  end
  -- Phase6 stores pendingPage instead of runtime size. Only a verified image supplies that size.
  if effectivePhase==6 and not expected then spec.size=nil;spec.sizeAmbiguous=true end
  spec.phase,spec.effectivePhase,spec.flags,spec.journal=phase,effectivePhase,flags,journal
  spec.pendingPage=effectivePhase==6 and size or nil
  return spec
end
local function stage(bytes)
  decode(bytes)
  return bytes:sub(1,0x18)..string.char(0)..bytes:sub(0x1A)
end
return {size=SIZE,runtimeSize=RUNTIME_SIZE,acceptedRuntimeSizes={0x22000,0x2F000},encode=encode,decode=decode,stage=stage,
  phases={claiming=1,bound=2,paused=3,rootReleasePending=4,rootReleased=5,journalReleasePending=6}}

end)()
ForgeModules.binding=(function()
-- Uninstalled shared-hook ownership coordinator. The API must independently
-- verify the game context/image and suspend all threads for every mutation.
-- A paused/released descriptor remains an anchor until allocations are freed.
return function(anchor,api,expected)
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local spec={}
  for _,name in ipairs({'root','dispatcher','generation','size','player','identity','runner'})do spec[name]=expected[name]end
  anchor.encode(spec,1,0,0) -- validate the supplied trusted context up front
  local state={phase='new',spec=spec,flags=0,journal=0}
  local function context(released)
    need(api.validContext(spec),'Forge shared context changed')
    if not released then need(api.verifyImage(spec),'Forge image ownership changed')end
  end
  local function shared()
    local current=need(api.currentShared(),'Shared update hook is unavailable')
    if state.shared then
      need(current.control==state.shared.control and current.epoch==state.shared.epoch,
        'Shared update allocation changed without migration')
    end
    return current
  end
  local function read(slot)
    local bytes=api.read(slot,anchor.size)
    need(type(bytes)=='string' and #bytes==anchor.size,'Incomplete shared forge descriptor')
    return bytes
  end
  local function write(address,bytes)
    need(api.write(address,bytes)~=false,'Shared forge descriptor write failed')
    need(api.read(address,#bytes)==bytes,'Shared forge descriptor readback failed')
  end
  local function transitionMatches(bytes,intent)
    if not intent then return false end
    if bytes==intent.final then return true end
    for count=0,anchor.size do
      if bytes==intent.after:sub(1,count)..intent.before:sub(count+1)then return true end
    end
    return false
  end
  local function inspect(slot)
    local bytes=read(slot)
    local ok,value=pcall(anchor.decode,bytes,spec)
    if ok then return value,bytes end
    need(state.intent and state.intent.slot==slot and transitionMatches(bytes,state.intent),
      'Unknown or foreign shared forge descriptor')
    need(bytes:byte(0x19)==0,'Incomplete forge descriptor can still dispatch')
    return {phase=0,effectivePhase=state.intent.phase,journal=state.intent.journal,pendingPage=state.intent.pendingPage},bytes
  end
  local function descriptor(phase,journal,pendingPage,released)
    context(released)
    local owner=shared();local slot=owner.control+0xA8
    need(api.idle(spec,owner,released),'Forge/shared update is executing')
    local current,before=inspect(slot)
    if current and current.phase~=0 then
      write(slot+0x18,string.char(0))
      before=read(slot)
      need(before:byte(0x19)==0,'Forge dispatch gate is not disabled')
    end
    local final=anchor.encode(spec,phase,state.flags,journal,pendingPage)
    local staged=anchor.stage(final)
    state.intent={slot=slot,before=before,after=staged,final=final,phase=phase,journal=journal,pendingPage=pendingPage}
    state.phase='publishing'
    write(slot,staged)
    -- No pointer is used by native code until this one-byte publication.
    write(slot+0x18,string.char(phase))
    need(read(slot)==final,'Final forge descriptor differs')
    state.intent=nil;state.journal=journal
    return final
  end
  function state.adopt()
    return api.suspended(function()
      context(true)
      local owner=need(api.currentShared(),'Shared update hook is unavailable')
      local current=need(anchor.decode(read(owner.control+0xA8),spec),'Forge owner anchor is missing')
      if current.effectivePhase&lt;=3 or current.effectivePhase==6 then context(false)end
      need(api.idle(spec,owner,current.effectivePhase==4 or current.effectivePhase==5),'Forge/shared update is executing')
      local lease=need(api.adoptShared(spec,current,owner),'Cannot verify retained shared update ownership')
      need(lease.control==owner.control and lease.epoch==owner.epoch,'Retained shared update allocation changed')
      state.shared=lease;state.flags=current.flags;state.journal=current.journal;state.pendingPage=current.pendingPage
      local phases={[1]='claimed',[2]='bound',[3]='paused',[4]='rootReleasePending',[5]='rootReleased',[6]='journalReleasePending'}
      state.phase=phases[current.effectivePhase]
      if current.phase==0 and current.effectivePhase==2 then state.phase='paused'end
      return current
    end)
  end
  function state.claim(journal)
    return api.suspended(function()
      context(false)
      if not state.shared then
        state.sharedIntent={root=spec.root,generation=spec.generation}
        local lease=need(api.ensureShared(spec,state.sharedIntent),'Cannot retain shared update hook')
        state.shared=lease;state.flags=lease.owned and 1 or 0
      end
      local owner=shared();local current=inspect(owner.control+0xA8)
      need(not current or current.effectivePhase==1,'Forge anchor was already activated')
      descriptor(1,journal or state.journal,nil,false)
      state.phase='claimed';return state
    end)
  end
  function state.bind(journal)
    return api.suspended(function()
      context(false)
      if not state.shared then
        state.sharedIntent={root=spec.root,generation=spec.generation}
        local lease=need(api.ensureShared(spec,state.sharedIntent),'Cannot retain shared update hook')
        state.shared=lease;state.flags=lease.owned and 1 or 0
      end
      local owner=shared();local current=inspect(owner.control+0xA8)
      if current then
        need(current.effectivePhase&lt;=3,'Released forge runtime cannot be re-enabled')
      end
      descriptor(2,journal or state.journal,false,false)
      state.phase='bound';return state
    end)
  end
  function state.pause()
    return api.suspended(function()
      if not state.shared then return true end
      descriptor(3,state.journal,nil,false);state.phase='paused';return true
    end)
  end
  function state.updateJournal(head)
    return api.suspended(function()
      need(state.phase=='bound' or state.phase=='paused','Forge binding is not ready for journal changes')
      local phase=state.phase=='bound' and 2 or 3
      descriptor(phase,head,nil,false);state.phase=phase==2 and 'bound' or 'paused';return true
    end)
  end
  function state.journalReleasePending(page,following)
    return api.suspended(function()
      local retrying=state.phase=='journalReleasePending' or
        (state.phase=='publishing' and state.intent and state.intent.phase==6)
      need(state.phase=='paused' or retrying,'Forge dispatch must pause before journal release')
      if retrying then
        need((state.pendingPage==page or state.intent and state.intent.pendingPage==page) and
          (state.journal==following or state.intent and state.intent.journal==following),'Forge journal release intent changed')
      else need(state.journal==page,'Forge journal head differs')end
      state.pendingPage=page
      descriptor(6,following,page,false);state.phase='journalReleasePending';return true
    end)
  end
  function state.journalReleaseComplete()
    return api.suspended(function()
      need(state.phase=='journalReleasePending' or(state.phase=='publishing'and state.intent and state.intent.phase==3 and state.pendingPage),'Forge journal release intent is missing')
      descriptor(3,state.journal,nil,false);state.pendingPage=nil;state.phase='paused';return true
    end)
  end
  function state.rootReleasePending()
    return api.suspended(function()
      context(false)
      need(state.journal==0 and api.canReleaseRoot(spec),'Forge allocations or entries are still owned')
      descriptor(4,0,nil,false);state.phase='rootReleasePending';return true
    end)
  end
  function state.releaseStatus()
    return api.suspended(function()
      context(true)
      local owner=shared();need(api.idle(spec,owner,true),'Shared update is executing')
      local current=inspect(owner.control+0xA8)
      need(current and current.journal==0 and
        (current.effectivePhase==4 or current.effectivePhase==5),
        'Forge root release intent is missing')
      return current.effectivePhase
    end)
  end
  function state.rootReleased()
    return api.suspended(function()
      context(true);need(api.isRootFreed(spec),'Forge runtime is still allocated')
      descriptor(5,0,nil,true);state.phase='rootReleased';return true
    end)
  end
  function state.clear()
    if state.phase=='released'then return true end
    return api.suspended(function()
      context(true)
      if state.phase~='anchorCleared'then
        need(api.isRootFreed(spec) and state.journal==0,'Forge allocations must be freed before releasing the anchor')
        local owner=shared();need(api.idle(spec,owner,true),'Shared update is executing')
        local slot=owner.control+0xA8
        local current,before=inspect(slot)
        need(not current or current.effectivePhase==5 or current.effectivePhase==4,
          'Forge root release was not recorded')
        if current and current.phase~=0 then write(slot+0x18,string.char(0));before=read(slot)end
        local empty=string.rep('\0',anchor.size)
        state.intent={slot=slot,before=before,after=empty,final=empty,phase=5,journal=0}
        write(slot,empty);state.intent=nil;state.phase='anchorCleared'
      end
      need(api.releaseShared(state.shared or state.sharedIntent),'Cannot release the shared update owner')
      state.phase='released';state.shared=nil;return true
    end)
  end
  function state.inspect()
    return api.suspended(function()context(state.phase=='rootReleased' or state.phase=='anchorCleared');return inspect(shared().control+0xA8)end)
  end
  return state
end

end)()
ForgeModules.workspace=(function()
-- Fixed-address native recipe ledger. The native signed-I4 capacity is the
-- only entry limit. Reserve address space once; commit backing pages on demand.
-- No active record or GC handle is copied or relocated during growth.
return function(api,spec,binding)
  local HEADER,STRIDE,MAXIMUM=0x80,0x70,0x7FFFFFFF
  local RESERVE=(HEADER+STRIDE*MAXIMUM+0xFFF)&amp;~0xFFF
  local state={}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function pointer(v)return math.type(v)=='integer'and v&gt;=0x10000 and v&lt;0x800000000000 and v%0x1000==0 end
  local function checksum(bytes)
    local sum=2166136261
    for i=1,#bytes do sum=((sum ~ bytes:byte(i))*16777619)&amp;0xFFFFFFFF end
    return sum
  end
  local function header(address)
    need(pointer(address)and address+RESERVE&lt;0x800000000000,'Invalid fixed ledger reservation')
    local value=string.pack('&lt;c8I8I8I8I8I8I8I8I8I8I8','ASKAFL01',address,RESERVE,HEADER,STRIDE,MAXIMUM,
      spec.root,spec.generation,spec.player,spec.identity,spec.runner)
    need(#value==0x58,'Fixed ledger header layout differs')
    return value..string.pack('&lt;I4I4',checksum(value),0)..string.rep('\0',0x20)
  end
  local function read(address,size)
    local value=api.read(address,size)
    need(type(value)=='string'and #value==size,'Incomplete fixed ledger read')
    return value
  end
  local function write(address,value)
    need(api.write(address,value)~=false,'Fixed ledger write failed')
    need(read(address,#value)==value,'Fixed ledger write readback differs')
  end
  local function q(offset)return string.unpack('&lt;I8',read(spec.root+offset,8))end
  local function n(offset)return string.unpack('&lt;i4',read(spec.root+offset,4))end
  local function context()
    need(api.validContext(spec)and api.verifyImage(spec),'Fixed ledger context/image changed')
  end
  local function busy()return n(0x80)~=0 or n(0xE4)~=0 or n(0x188)~=0 end
  local function owner()
    local current=binding.inspect()
    need(current,'Fixed ledger anchor is missing')
    return current,current.effectivePhase==6 and current.pendingPage or current.journal
  end
  local function verify(address)
    need(pointer(address)and api.validateReservation(address,RESERVE),'Fixed ledger reservation ownership changed')
    need(read(address,HEADER)==header(address),'Fixed ledger allocation header changed')
    if api.adoptReservation then need(api.adoptReservation(address,RESERVE),'Cannot retain the verified fixed ledger reservation')end
    return address
  end
  function state.adopt()
    return api.suspended(function()
      context();local current,address=owner()
      if address==0 then return nil end
      if current.effectivePhase==6 and api.isFree(address)then state.address=address;return address end
      state.address=verify(address);return state.address
    end)
  end
  -- Read-only proof for a stopped runtime after the actor/world changed.
  -- The reservation address comes from this retained Lua owner, never from
  -- a replacement actor or an untrusted ledger pointer.
  function state.verifyEmptyRetained(vm)
    local address=state.address
    need(address and not state.unpublished,'No retained fixed ledger allocation')
    need(vm.validateReservation(address,RESERVE),'Retained ledger VM ownership changed')
    need(read(address,HEADER)==header(address),'Retained ledger header changed')
    local capacity=n(0x98)
    need(capacity&gt;0 and capacity&lt;=MAXIMUM and q(0x90)==address+HEADER,'Retained ledger publication changed')
    local committed=vm.committedPrefix(address,RESERVE)
    need(committed&gt;=((HEADER+capacity*STRIDE+0xFFF)&amp;~0xFFF),'Retained ledger backing changed')
    for offset=HEADER,committed-1,0x1000 do
      local size=math.min(0x1000,committed-offset)
      need(read(address+offset,size)==string.rep('\0',size),'Retained ledger still owns data')
    end
    return true
  end
  function state.verifyEmptyRelease(vm)
    local current,address=owner()
    need(current.effectivePhase==6 and current.journal==0 and state.address==address,
      'No sealed fixed-ledger release owner')
    need(read(spec.root+0x90,16)==string.rep('\0',16)and n(0x18C)==0,
      'Fixed-ledger release publication is not completely cleared')
    if vm.isFree(address)then return true end
    need(vm.validateReservation(address,RESERVE)and read(address,HEADER)==header(address),
      'Fixed-ledger release allocation differs')
    local committed=vm.committedPrefix(address,RESERVE)
    need(committed&gt;=HEADER,'Fixed-ledger release header is not backed')
    for offset=HEADER,committed-1,0x1000 do
      local size=math.min(0x1000,committed-offset)
      need(read(address+offset,size)==string.rep('\0',size),'Fixed-ledger release still owns data')
    end
    return true
  end
  function state.verifyReleaseIntent(vm,address)
    need(address==state.address and not state.unpublished and type(state.releasePublication)=='string',
      'No retained fixed-ledger release publication')
    local original=state.releasePublication
    local current=read(spec.root+0x90,16);local matched=false
    for count=0,16 do
      if current==string.rep('\0',count)..original:sub(count+1)then matched=true;break end
    end
    need(matched,'Unknown fixed-ledger release publication')
    local pointer,capacity=string.unpack('&lt;I8i4',original)
    need(pointer==address+HEADER and capacity&gt;0 and capacity&lt;=MAXIMUM,'Invalid retained ledger release snapshot')
    if vm.isFree(address)then return true end
    need(vm.validateReservation(address,RESERVE)and read(address,HEADER)==header(address),
      'Retained ledger release ownership changed')
    local committed=vm.committedPrefix(address,RESERVE)
    need(committed&gt;=((HEADER+capacity*STRIDE+0xFFF)&amp;~0xFFF),'Retained ledger release backing changed')
    for offset=HEADER,committed-1,0x1000 do
      local size=math.min(0x1000,committed-offset)
      need(read(address+offset,size)==string.rep('\0',size),'Retained ledger release still owns data')
    end
    return true
  end
  function state.initialize()
    return api.suspended(function()
      context();need(api.entriesOriginal(spec)and n(0xE0)==0 and not busy()and api.outside(spec),'Forge must be inactive before ledger initialization')
      if not binding.shared then binding.claim(0)end
      local current,address=owner()
      need(current.effectivePhase==1,'Fixed ledger initialization requires a nonexecuting claim')
      if address~=0 then state.address=verify(address)
      else
        address=state.unpublished
        if not address then address=need(api.reserve(RESERVE),'Cannot reserve fixed ledger address space');need(pointer(address),'Invalid fixed ledger allocation');state.unpublished=address end
        need(api.validateReservation(address,RESERVE),'Unpublished fixed ledger reservation changed')
        need(api.commit(address,0x1000)and api.committed(address,0x1000),'Cannot commit the fixed ledger header')
        write(address,header(address))
        -- Seal allocation ownership before publishing its payload to any game hook.
        binding.claim(address);state.address=address;state.unpublished=nil
      end
      write(spec.root+0x90,string.pack('&lt;I8',state.address+HEADER))
      write(spec.root+0x98,string.pack('&lt;i4i4',1,0))
      write(spec.root+0x18C,string.pack('&lt;i4',0))
      return {address=state.address+HEADER,capacity=1,reserved=RESERVE}
    end)
  end
  local function supported(capacity)
    return capacity&gt;0 and capacity&lt;=MAXIMUM and(capacity==MAXIMUM or capacity&amp;(capacity-1)==0)
  end
  function state.grow(minimum)
    need(math.type(minimum)=='integer'and minimum&gt;=0 and minimum&lt;=MAXIMUM,'Invalid fixed ledger capacity request')
    return api.suspended(function()
      context()
      if busy()then return nil,'busy'end
      if not api.outside(spec)then return nil,'executing'end
      local current,address=owner();need(current.effectivePhase==2,'Fixed ledger must be bound before growth')
      verify(address);state.address=address
      need(q(0x90)==address+HEADER,'Active fixed ledger pointer changed')
      local capacity,requested,pending=n(0x98),n(0x9C),n(0x18C)
      need(capacity&gt;0 and capacity&lt;=MAXIMUM and requested&gt;=0,'Invalid fixed ledger capacity header')
      if pending~=0 then
        if supported(pending)then
          local committed=(HEADER+STRIDE*pending+0xFFF)&amp;~0xFFF
          need(api.committed(address,committed),'Pending fixed ledger capacity is not committed')
          return nil,'pending'
        end
        -- Native code ignores malformed/partial positive publications. A retry
        -- can clear them while all hooks are quiescent without changing capacity.
        need(pending&gt;=0,'Negative fixed ledger publication')
        write(spec.root+0x18C,string.pack('&lt;i4',0))
      end
      local target=math.max(minimum,requested)
      if target&lt;=capacity then return {address=address+HEADER,capacity=capacity,changed=false}end
      need(n(0xE0)==1,'Fixed ledger growth requires the active dispatcher')
      local nextCapacity=1
      while nextCapacity&lt;target do nextCapacity=math.min(MAXIMUM,nextCapacity*2)end
      local size=(HEADER+STRIDE*nextCapacity+0xFFF)&amp;~0xFFF
      need(api.commit(address,size)and api.committed(address,size),'Cannot commit fixed ledger backing memory')
      -- This mailbox starts at zero. Prefix short writes cannot publish a value
      -- above nextCapacity; the native callback validates and stores capacity.
      write(spec.root+0x18C,string.pack('&lt;i4',nextCapacity))
      return {address=address+HEADER,capacity=nextCapacity,changed=true,pending=true,committed=size}
    end)
  end
  function state.release()
    return api.suspended(function()
      context();need(api.entriesOriginal(spec)and n(0xE0)==0 and not busy()and api.outside(spec),'Fixed ledger is still in use')
      if binding.phase=='publishing' and binding.intent and binding.intent.phase==3 and binding.pendingPage then
        need(api.isFree(binding.pendingPage)and q(0x90)==0 and n(0x98)==0,'Fixed ledger completion cannot be verified')
        binding.journalReleaseComplete()
      end
      local current,address=owner()
      if address==0 then
        if binding.pendingPage then
          need(api.isFree(binding.pendingPage),'Fixed ledger completion has an unreleased allocation')
          binding.journalReleaseComplete()
        end
        if state.unpublished then
          local unbound=state.unpublished
          if not api.isFree(unbound)then
            need(api.validateReservation(unbound,RESERVE),'Unpublished fixed ledger ownership changed')
            need(api.release(unbound),'Cannot release unpublished fixed ledger')
          end
          need(api.isFree(unbound),'Unpublished fixed ledger release did not verify')
          if api.confirmReleased then need(api.confirmReleased(unbound),'Cannot confirm unpublished fixed ledger release')end
          state.unpublished=nil
        end
        need(q(0x90)==0 and n(0x98)==0,'An untracked fixed ledger is still published')
        return true
      end
      state.address=address
      if current.effectivePhase~=6 then
        need(current.effectivePhase==3,'Fixed ledger dispatch must be paused before release')
        verify(address);need(api.canReleaseLedger(spec,address+HEADER,n(0x98)),'Fixed ledger still owns recipes or handles')
        state.releasePublication=read(spec.root+0x90,16)
      end
      -- Finish even a partially written intent before freeing anything.
      binding.journalReleasePending(address,0)
      -- A phase-6 anchor retains this allocation even after free has succeeded.
      write(spec.root+0x90,string.pack('&lt;I8i4i4',0,0,0));write(spec.root+0x18C,string.pack('&lt;i4',0))
      if not api.isFree(address)then
        verify(address);need(api.release(address),'Cannot release fixed ledger reservation')
      end
      need(api.isFree(address),'Fixed ledger release did not verify')
      if api.confirmReleased then need(api.confirmReleased(address),'Cannot confirm fixed ledger release')end
      binding.journalReleaseComplete();state.address=nil;return true
    end)
  end
  state.header=header
  state.layout={header=HEADER,stride=STRIDE,maximum=MAXIMUM,reserved=RESERVE}
  return state
end

end)()
ForgeModules.vm=(function()
-- Windows VM bridge for the fixed data ledger. All mutations require a caller-
-- owned target suspension and independently checked process/epoch context.
-- This module never opens or attaches to a process; the host supplies its handle.
return function(host)
  local state={claims={}}
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function pointer(value)return math.type(value)=='integer'and value&gt;=0x10000 and value&lt;0x800000000000 and value%0x1000==0 end
  local function checkedHandle()
    need(host.validContext(),'VM process/epoch changed')
    local handle=host.handle()
    need(math.type(handle)=='integer'and handle~=0,'VM process handle is unavailable')
    return handle
  end
  local function query(handle,address)
    local scratch=need(host.native('kernel32.VirtualAlloc',0,0x1000,0x3000,4),'Cannot allocate local VM query buffer')
    need(scratch~=0,'Cannot allocate local VM query buffer')
    local ok,result=pcall(function()
      need(host.native('kernel32.VirtualQueryEx',handle,address,scratch,0x30)==0x30,'Cannot query VM region')
      return {base=host.readQwordLocal(scratch),allocation=host.readQwordLocal(scratch+8),
        size=host.readQwordLocal(scratch+0x18),state=host.readIntegerLocal(scratch+0x20),
        protect=host.readIntegerLocal(scratch+0x24),kind=host.readIntegerLocal(scratch+0x28)}
    end)
    local freed=host.native('kernel32.VirtualFree',scratch,0,0x8000)
    need(freed==1,'Cannot release local VM query buffer')
    if not ok then error(result,0)end
    return result
  end
  local function extent(address,size,committed)
    need(pointer(address)and math.type(size)=='integer'and size&gt;0 and size%0x1000==0
      and address+size&lt;0x800000000000,'Invalid VM extent')
    local handle=checkedHandle();local ending=address+size;local cursor=address
    while cursor&lt;ending do
      local region=query(handle,cursor)
      if region.allocation~=address or region.kind~=0x20000 or region.base&gt;cursor
        or region.size&lt;=0 or region.base+region.size&lt;=cursor or region.base+region.size&gt;=0x800000000000
        or(region.state~=0x1000 and region.state~=0x2000)then return false end
      if committed and(region.state~=0x1000 or region.protect&amp;0x1FF~=4)then return false end
      cursor=region.base+region.size
    end
    if not committed and query(handle,ending).allocation==address then return false end
    need(checkedHandle()==handle,'VM process handle changed while querying')
    return true
  end
  function state.committedPrefix(address,size)
    need(pointer(address)and math.type(size)=='integer'and size&gt;0 and size%0x1000==0,'Invalid VM prefix query')
    local handle=checkedHandle();local cursor=address;local ending=address+size
    while cursor&lt;ending do
      local region=query(handle,cursor)
      need(region.allocation==address and region.kind==0x20000 and region.base&lt;=cursor
        and region.size&gt;0 and region.base+region.size&gt;cursor,'VM prefix ownership differs')
      if region.state==0x2000 then break end
      need(region.state==0x1000 and region.protect&amp;0x1FF==4,'VM prefix protection differs')
      cursor=math.min(ending,region.base+region.size)
    end
    need(checkedHandle()==handle,'VM process handle changed while querying prefix')
    return cursor-address
  end
  function state.validateReservation(address,size)return extent(address,size,false)end
  function state.committed(address,size)return extent(address,size,true)end
  function state.adoptReservation(address,size)
    host.requireSuspended();need(extent(address,size,false),'Retained VM reservation differs')
    local handle=checkedHandle();local previous=state.claims[address]
    need(not previous or previous.handle==handle and previous.size==size,'VM allocation claim differs')
    state.claims[address]={handle=handle,size=size};return true
  end
  function state.reserve(size)
    host.requireSuspended();local handle=checkedHandle()
    need(math.type(size)=='integer'and size&gt;0 and size%0x1000==0,'Invalid VM reservation size')
    local address=host.native('kernel32.VirtualAllocEx',handle,0,size,0x2000,1)
    if not address or address==0 then return nil end
    need(pointer(address),'VM allocator returned an invalid reservation')
    -- Record the returned allocation immediately, including a failed post-check.
    state.claims[address]={handle=handle,size=size}
    need(checkedHandle()==handle and extent(address,size,false),'New VM reservation did not verify')
    return address
  end
  local function owned(address)
    local handle=checkedHandle();local claim=state.claims[address]
    need(claim and claim.handle==handle,'VM allocation is not independently retained')
    return handle,claim
  end
  function state.commit(address,size)
    host.requireSuspended();local handle,claim=owned(address)
    need(math.type(size)=='integer'and size&gt;0 and size%0x1000==0 and size&lt;=claim.size,'Invalid VM commit size')
    need(extent(address,claim.size,false),'VM reservation ownership changed')
    local result=host.native('kernel32.VirtualAllocEx',handle,address,size,0x1000,4)
    if result~=address then return false end
    need(checkedHandle()==handle,'VM process handle changed during commitment')
    return extent(address,size,true)
  end
  function state.isFree(address)
    need(pointer(address),'Invalid VM release address')
    local handle=checkedHandle();local region=query(handle,address)
    need(checkedHandle()==handle,'VM process handle changed while checking release')
    return region.state==0x10000
  end
  function state.confirmReleased(address)
    host.requireSuspended();local handle=checkedHandle();local claim=state.claims[address]
    need(not claim or claim.handle==handle,'VM release claim belongs to another process')
    need(state.isFree(address),'VM reservation is still allocated')
    state.claims[address]=nil;return true
  end
  function state.release(address)
    host.requireSuspended();local handle,claim=owned(address)
    need(extent(address,claim.size,false),'VM reservation ownership changed before release')
    local result=host.native('kernel32.VirtualFreeEx',handle,address,0,0x8000)
    if result~=1 then return false end
    need(checkedHandle()==handle and state.isFree(address),'VM release did not verify')
    state.claims[address]=nil;return true
  end
  return state
end

end)()
ForgeModules.lifecycle=(function()
-- Anchored forge lifecycle. Root ownership remains discoverable through the
-- shared descriptor until its allocation has actually been released.
-- Every API is process/epoch checked; suspended() must be safely nestable.
return function(ASKA,api,spec,binding,recovery)
  assert(not ASKA.forgeRuntime,'Forge runtime already owned')
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local state={phase='allocated',root=spec.root,entries=false}
  if recovery then
    local allowed={starting=true,active=true,stopping=true,quiescing=true,
      allocationsReleasing=true,allocationsReleased=true,rootFreePending=true,rootFreed=true,releasingAnchor=true}
    need(type(recovery)=='table'and allowed[recovery.phase]and type(recovery.entries)=='boolean',
      'Invalid recovered forge lifecycle state')
    api.suspended(function()
      need(type(api.verifyRecovery)=='function'and api.verifyRecovery(spec,recovery),
        'Recovered forge lifecycle ownership did not verify')
    end)
    state.phase,state.entries=recovery.phase,recovery.entries
  end
  local previousUse=ASKA.forgeInUse
  local use=function()return state.phase~='released' or(previousUse and previousUse())or false end
  ASKA.forgeRuntime,ASKA.forgeInUse=state,use
  local function read(offset,format,size)
    local bytes=api.read(spec.root+offset,size)
    need(type(bytes)=='string'and #bytes==size,'Incomplete forge state read')
    return string.unpack(format,bytes)
  end
  local function write(offset,bytes)
    need(api.write(spec.root+offset,bytes)~=false,'Forge state write failed')
    need(api.read(spec.root+offset,#bytes)==bytes,'Forge state readback differs')
  end
  local function context(rootRequired)
    need(api.validContext(spec),'Forge process or epoch changed')
    if rootRequired then
      need(api.verifyNative(spec,state),'Forge native ownership changed')
      need(read(0,'&lt;I8',8)==spec.player and read(8,'&lt;I8',8)==spec.runner
        and read(0x170,'&lt;I8',8)==spec.identity and read(0xA0,'&lt;I8',8)==spec.generation,
        'Forge root identity changed')
    end
  end
  local function busy()
    return read(0x80,'&lt;i4',4)~=0 or read(0xE4,'&lt;i4',4)~=0 or read(0x188,'&lt;i4',4)~=0
  end
  local function emptyLedger()
    need(api.verifyAllocations(spec),'Forge allocation journal changed')
    local capacity,pointer=read(0x98,'&lt;i4',4),read(0x90,'&lt;I8',8)
    need(capacity&gt;=0 and (capacity==0 and pointer==0 or capacity&gt;0
      and math.type(pointer)=='integer'and pointer&gt;=0x10000 and pointer&lt;0x800000000000 and pointer%8==0),
      'Invalid forge ledger header')
    for index=0,capacity-1 do
      local bytes=api.read(pointer+index*0x70,0x70)
      need(type(bytes)=='string'and #bytes==0x70,'Incomplete forge ledger read')
      if bytes~=string.rep('\0',0x70)then return false end
    end
    return true
  end
  function state.start()
    need(state.phase=='allocated','Forge runtime cannot start again')
    return api.suspended(function()
      context(true);need(not busy()and emptyLedger()and api.outside(spec,state),'Forge runtime is executing')
      state.phase='starting'
      binding.claim(api.journalHead(spec))
      state.entries=true -- installation may fail after a partial mutation
      need(api.installEntries(spec),'Cannot install forge entries')
      write(0xE8,string.pack('&lt;i4',0));write(0xE0,string.pack('&lt;i4',1))
      binding.bind(api.journalHead(spec))
      state.phase='active';return true
    end)
  end
  function state.stop(retry)
    if state.phase=='released'then return true end
    return api.suspended(function()
      context(state.phase~='rootFreePending'and state.phase~='rootFreed'and state.phase~='releasingAnchor')
      if state.phase=='allocated'or state.phase=='starting'or state.phase=='active'
        or state.phase=='stopping'or state.phase=='retained'then
        write(0xE0,string.pack('&lt;i4',0))
        if busy()then return nil,'busy'end
        if api.beforeStop then need(api.beforeStop(spec,state),'Cannot cancel pending manual request')end
        if state.entries then
          local status=read(0xE8,'&lt;i4',4)
          if binding.phase~='bound'then binding.bind(api.journalHead(spec))end
          if (status==0 or status==1 or status==4) and api.canSkipDrain and api.canSkipDrain() then
            write(0xE8,string.pack('&lt;i4',3));status=3
          elseif status==4 and not retry then
            state.phase='retained';return nil,'retained'
          elseif status==0 or status==4 then
            write(0xE8,string.pack('&lt;i4',1));state.phase='stopping';return nil,'queued'
          end
          if status==1 or status==2 then return nil,'pending'end
          need(status==3,'Unknown forge cleanup status')
        elseif not binding.shared then binding.claim(api.journalHead(spec))end
        if not emptyLedger()then state.phase='retained';return nil,'owned recipes remain'end
        if not api.outside(spec,state)then return nil,'executing'end
        if state.entries then need(api.restoreEntries(spec),'Cannot restore forge entries');state.entries=false end
        state.phase='quiescing'
      end
      if state.phase=='quiescing'then
        need(not busy()and api.outside(spec,state),'Forge runtime is executing')
        binding.pause();state.phase='allocationsReleasing'
      end
      if state.phase=='allocationsReleasing'then
        need(api.releaseAllocations(spec,state),'Cannot release forge allocations')
        need(api.allocationsReleased(spec),'Forge allocations are still owned')
        binding.updateJournal(0);state.phase='allocationsReleased'
      end
      if state.phase=='allocationsReleased'then
        binding.rootReleasePending();state.phase='rootFreePending'
      end
      if state.phase=='rootFreePending'then
        -- A previous free may have succeeded even when its caller reported failure.
        -- Never read the possibly released root merely to decide how to retry.
        binding.releaseStatus()
        if not api.isRootFreed(spec)then
          context(true);need(api.outside(spec,state),'Forge runtime is executing')
          need(api.freeRoot(spec),'Cannot release forge runtime')
          need(api.isRootFreed(spec),'Forge runtime release did not verify')
        end
        state.phase='rootFreed'
      end
      if state.phase=='rootFreed'then binding.rootReleased();state.phase='releasingAnchor'end
      if state.phase=='releasingAnchor'then
        binding.clear();state.phase='released';ASKA.forgeRuntime=nil
        if ASKA.forgeInUse==use then ASKA.forgeInUse=previousUse end
      end
      return true
    end)
  end
  return state
end

end)()
ForgeModules.entries=(function()
-- Prototype checked multi-entry installation/restoration. No direct CE API binding.
-- api.suspended is nestable; outside verifies every bundle/shared/entry range.
-- Immutable bundle/recovery ownership must be checked by the caller beforehand.
return function(api,plans,ranges)
  assert(type(plans)=='table'and #plans&gt;0,'Missing forge entry plan')
  local sites={}
  for _,p in ipairs(plans)do
    assert(math.type(p.address)=='integer'and type(p.original)=='string'and #p.original&gt;=5
      and type(p.patch)=='string'and #p.patch==#p.original
      and type(p.signature)=='string'and #p.signature&gt;=#p.original
      and p.signature:sub(1,#p.original)==p.original,'Invalid forge entry plan')
    sites[#sites+1]={address=p.address,original=p.original,patch=p.patch,signature=p.signature}
  end
  for i,a in ipairs(sites)do for j=1,i-1 do local b=sites[j]
    assert(a.address+#a.original&lt;=b.address or b.address+#b.original&lt;=a.address,'Overlapping forge entry plan')
  end end
  local allRanges={}
  for _,range in ipairs(ranges)do allRanges[#allRanges+1]={range[1],range[2]}end
  for _,p in ipairs(sites)do allRanges[#allRanges+1]={p.address,p.address+#p.original}end
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function inspect(p)
    local current=api.read(p.address,#p.signature)
    need(type(current)=='string'and #current==#p.signature,'Incomplete forge entry read')
    local prefix=current:sub(1,#p.original)
    need(current:sub(#p.original+1)==p.signature:sub(#p.original+1),'Forge entry suffix changed')
    need(prefix==p.original or prefix==p.patch,'Unknown forge entry bytes')
    return prefix
  end
  local function write(p,value)
    need(api.write(p.address,value)~=false,'Forge entry write failed')
    need(api.read(p.address,#value)==value,'Forge entry readback failed')
    need(api.flush(p.address,#value)==true,'Forge instruction flush failed')
  end
  local function change(install)
    return api.suspended(function()
      need(api.outside(allRanges),'Forge entry or helper is executing')
      local before={}
      -- Validate the entire group before changing the first byte.
      for i,p in ipairs(sites)do before[i]=inspect(p)end
      local touched={}
      local ok,reason=pcall(function()
        for i,p in ipairs(sites)do
          local target=install and p.patch or p.original
          if before[i]~=target then
            touched[#touched+1]=i
            write(p,target)
          end
        end
      end)
      if not ok then
        local failures={}
        for j=#touched,1,-1 do local i=touched[j]
          local restored,problem=pcall(write,sites[i],before[i])
          if not restored then failures[#failures+1]=tostring(problem)end
        end
        if #failures&gt;0 then error(tostring(reason)..'; forge rollback incomplete: '..table.concat(failures,'; '),0)end
        error(reason,0)
      end
      return true
    end)
  end
  return {
    install=function()return change(true)end,
    restore=function()return change(false)end,
    verify=function()return api.suspended(function()for _,p in ipairs(sites)do inspect(p)end return true end)end,
  }
end

end)()
ForgeModules.validateGame=(function()
-- Generated from the local PE; ASLR relocation bytes are excluded.
local contracts={
{rva=0x5D0020,bytes="\x48\x83\xEC\x28\xE8\xD7\xA8\x04\x00\xF0\x83\x0C\x24\x00\x48\x83",mask="1111111111111111"},
{rva=0x5D0280,bytes="\xE9\x4B\xCF\x03\x00\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0x5EA0B0,bytes="\xE9\x4B\xA5\x01\x00\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0x5EA170,bytes="\xE9\x9B\xAB\x01\x00\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0x62A3B0,bytes="\xE9\xFB\xAE\xFD\xFF\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0x922BF8,bytes="\x4C\x8B\x7C\x24\x50\x4C\x8B\x6C\x24\x58\x4C\x8B\x64\x24\x60\x48",mask="1111111111111111"},
{rva=0x923181,bytes="\x0F\x84\x84\x02\x00\x00\x33\xD2\xE8\xB2\xA7\x12\x00\x48\x8B\x4F",mask="1111111111111111"},
{rva=0x955A16,bytes="\x48\x8B\x46\x60\x48\x85\xC0\x0F\x84\x16\x05\x00\x00\x48\x8B\x0D",mask="1111111111111111"},
{rva=0x955AA0,bytes="\x4C\x8B\xB4\x24\x88\x00\x00\x00\x48\x8B\xB4\x24\x80\x00\x00\x00",mask="1111111111111111"},
{rva=0x955B8A,bytes="\x48\x8B\x44\x24\x78\x48\x85\xC0\x0F\x84\xA1\x03\x00\x00\xC7\x40",mask="1111111111111111"},
{rva=0x955D32,bytes="\x48\x8B\x0D\xC7\x13\x3F\x05\x48\x8B\x77\x18\x39\x99\xE4\x00\x00",mask="1111111111111111"},
{rva=0x955D99,bytes="\x4C\x8B\x47\x10\x4D\x85\xC0\x0F\x84\xFA\xFC\xFF\xFF\x4C\x8B\x4F",mask="1111111111111111"},
{rva=0x955F39,bytes="\xE8\x92\xA3\xC7\xFF\xCC\x49\x8B\xC8\xE8\x89\x93\xC7\xFF\xCC\xCC",mask="1111111111111111"},
{rva=0xA0A040,bytes="\x48\x89\x5C\x24\x08\x48\x89\x6C\x24\x10\x48\x89\x74\x24\x18\x48",mask="1111111111111111"},
{rva=0xA3F860,bytes="\x88\x51\x58\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0xBC5FD0,bytes="\x48\x89\x5C\x24\x18\x48\x89\x7C\x24\x20\x55\x41\x54\x41\x55\x41",mask="1111111111111111"},
{rva=0xBC7EAA,bytes="\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x15\x84\xA0",mask="1111111111111111"},
{rva=0xBC85A3,bytes="\x48\x8B\x0D\x9E\xF3\x16\x05\xE8\xD1\x7C\xA0\xFF\x4D\x8B\x07\x45",mask="1111111111111111"},
{rva=0xBCC1D0,bytes="\x40\x55\x41\x54\x41\x55\x41\x56\x41\x57\x48\x8D\x6C\x24\xC9\x48",mask="1111111111111111"},
{rva=0xBCC2B5,bytes="\x33\xD2\x49\x8B\xCF\xE8\x01\x45\x24\x00\x4C\x8B\x05\x4A\xAB\x10",mask="1111111111111111"},
{rva=0xBCC324,bytes="\x45\x84\xE4\x0F\x84\x26\x03\x00\x00\x33\xD2\x49\x8B\xCD\xE8\x89",mask="1111111111111111"},
{rva=0xBCC690,bytes="\x48\x8B\xB4\x24\x00\x01\x00\x00\x48\x8B\x9C\x24\xF0\x00\x00\x00",mask="1111111111111111"},
{rva=0xCA5780,bytes="\x40\x53\x48\x83\xEC\x20\x80\x3D\x65\x25\x36\x05\x00\x48\x8B\xD9",mask="1111111111111111"},
{rva=0xD748D0,bytes="\x48\x89\x5C\x24\x08\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x20\x80",mask="1111111111111111"},
{rva=0xD76670,bytes="\x44\x88\x44\x24\x18\x48\x89\x54\x24\x10\x48\x89\x4C\x24\x08\x53",mask="1111111111111111"},
{rva=0xD767EA,bytes="\x4C\x8B\x05\x1F\x06\xF6\x04\x8B\xD3\x49\x8B\xCE\xE8\x95\xAE\x13",mask="1111111111111111"},
{rva=0xD76886,bytes="\x40\x38\xB4\x24\x90\x01\x00\x00\x75\x29\x48\x8B\x8F\x58\x01\x00",mask="1111111111111111"},
{rva=0xD76D23,bytes="\x41\x5F\x41\x5E\x41\x5D\x41\x5C\x5F\x5E\x5B\xC3\xE8\x9C\x95\x85",mask="1111111111111111"},
{rva=0xD8A2F0,bytes="\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\x3D\x73\xE0\x27\x05",mask="1111111111111111"},
{rva=0xD8AD40,bytes="\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\x3D\x2C\xD6\x27\x05",mask="1111111111111111"},
{rva=0xD9C0F0,bytes="\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\x3D\xAA\xC2\x26\x05",mask="1111111111111111"},
{rva=0xD9D670,bytes="\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\x3D\x35\xAD\x26\x05",mask="1111111111111111"},
{rva=0xDA2000,bytes="\x40\x53\x48\x83\xEC\x20\x80\x3D\x21\x64\x26\x05\x00\x48\x8B\xD9",mask="1111111111111111"},
{rva=0xDA3D20,bytes="\xC6\x41\x58\x01\xC3\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0xDA4050,bytes="\x48\x8B\x41\x48\xC6\x41\x58\x00\x48\x85\xC0\x74\x13\x4C\x8B\x48",mask="1111111111111111"},
{rva=0xDA4430,bytes="\x40\x55\x56\x57\x48\x8B\xEC\x48\x83\xEC\x60\x80\x3D\xC2\x3F\x26",mask="1111111111111111"},
{rva=0xDA49D0,bytes="\x48\x89\x5C\x24\x08\x48\x89\x6C\x24\x10\x48\x89\x74\x24\x18\x57",mask="1111111111111111"},
{rva=0xDA4CA0,bytes="\x40\x57\x48\x83\xEC\x20\x80\x3D\x56\x37\x26\x05\x00\x48\x8B\xF9",mask="1111111111111111"},
{rva=0xF0FBC0,bytes="\x33\xD2\xC7\x41\x34\xFF\xFF\xFF\xFF\xE9\x22\xC2\x78\xFF\xCC\xCC",mask="1111111111111111"},
{rva=0xFF934E,bytes="\x48\x8B\x74\x24\x70\x48\x8B\x5C\x24\x60\x4C\x8B\x74\x24\x30\x48",mask="1111111111111111"},
{rva=0x1048FB5,bytes="\x48\x89\x74\x24\x10\x57\x48\x83\xEC\x70\x80\x3D\x25\x09\xFC\x04",mask="1111111111111111"},
{rva=0x36511E0,bytes="\x48\x89\x6C\x24\x18\x56\x57\x41\x56\x48\x83\xEC\x30\x80\x3D\x0A",mask="1111111111111111"},
{rva=0x3652DF0,bytes="\x40\x53\x48\x83\xEC\x20\x80\x3D\xFF\x32\x9C\x02\x00\x48\x8B\xD9",mask="1111111111111111"},
{rva=0x3680F80,bytes="\x8B\x41\x18\x85\xC0\x7F\x03\x8B\x41\x1C\xC3\xCC\xCC\xCC\xCC\xCC",mask="1111111111111111"},
{rva=0x3681580,bytes="\x48\x89\x5C\x24\x08\x57\x48\x83\xEC\x20\x80\x3D\xEE\x4C\x99\x02",mask="1111111111111111"},
{rva=0x3683CD0,bytes="\x48\x89\x5C\x24\x10\x48\x89\x74\x24\x18\x57\x48\x83\xEC\x20\x80",mask="1111111111111111"},
{rva=0x3683DA0,bytes="\x40\x53\x48\x83\xEC\x20\x80\x3D\x89\x24\x99\x02\x00\x48\x8B\xD9",mask="1111111111111111"},
{rva=0x3684220,bytes="\x48\x89\x5C\x24\x10\x48\x89\x74\x24\x18\x57\x48\x81\xEC\xA0\x00",mask="1111111111111111"},
}

return function(read,base)
 for _,contract in ipairs(contracts)do
  local actual=read(base+contract.rva,#contract.bytes)
  assert(type(actual)=='string'and #actual==#contract.bytes,'Cannot read forge API contract')
  for i=1,#contract.bytes do
   if contract.mask:byte(i)==49 then
    assert(actual:byte(i)==contract.bytes:byte(i),('Forge API bytes differ at +%X'):format(contract.rva+i-1))
   end
  end
 end
 return true
end

end)()
ForgeModules.manualRequest=(function()
-- Explicit manual request mailbox. The host verifies image/epoch/ownership and
-- provides nestable suspension; no timers or managed game calls are used here.
return function(host)
 local SIZE,MAX=0x48,0x7FFFFFFFFFFFFFFF
 -- Explicit-count protocol is opt-in. The legacy/native runtime still
 -- requires the final field to be zero until its matching dispatcher is bound.
 local countProtocol=host.countProtocol==1
 local terminal={[0]=true,[3]=true,[4]=true,[5]=true,[6]=true,[7]=true,[9]=true}
 local function need(ok,message)if not ok then error(message,0)end return ok end
 need(host.countProtocol==nil or host.countProtocol==1,'Unknown manual ingredient-count protocol')
 local function context()
  need(host.verify(),'Manual request ownership changed')
  local ctx=need(host.context(),'Manual request context is unavailable')
  need(math.type(ctx.generation)=='integer'and ctx.generation&gt;0
   and math.type(ctx.identity)=='integer'and ctx.identity~=0 and ctx.token~=nil,'Invalid manual request context')
  return {generation=ctx.generation,identity=ctx.identity,token=ctx.token}
 end
 local function read()
  local bytes=host.read(host.mailbox,SIZE)
  need(type(bytes)=='string'and #bytes==SIZE,'Incomplete manual request mailbox')
  local state,id,cookie,interaction,identity,generation,sequence,sessionHandle,ownerHandle,result,reserved=
   string.unpack('&lt;i4i4I8I8I8I8I8I8I8i4i4',bytes)
  need(state&gt;=0 and state&lt;=9 and (countProtocol and reserved&gt;=0 or reserved==0),'Unknown manual request mailbox state')
  need(sequence&gt;=0,'Invalid manual request sequence')
  return {state=state,id=id,cookie=cookie,interaction=interaction,identity=identity,generation=generation,
   sequence=sequence,sessionHandle=sessionHandle,ownerHandle=ownerHandle,result=result,inputCount=reserved,bytes=bytes}
 end
 local function idle()need(host.idle(),'Manual native execution is still in progress')end
 local function write(address,bytes)
  local ok,reason=pcall(host.write,address,bytes)
  -- A short final-state write can have published the complete aligned value
  -- before reporting failure. Exact readback decides, preventing duplicates.
  if host.read(address,#bytes)==bytes then return true end
  error(ok and 'Manual request write did not verify'or tostring(reason),0)
 end
 local state={}
 function state.inspect()
  return host.suspended(function()
   context();local value=read()
   return {state=value.state,id=value.id,cookie=value.cookie,sequence=value.sequence,result=value.result,inputCount=value.inputCount,
    retained=value.sessionHandle~=0 or value.ownerHandle~=0}
  end)
 end
 function state.submit(snapshot,id,cookie,inputCount)
  return host.suspended(function()
   need(not host.canSubmit or host.canSubmit(),'Manual runtime is not accepting requests')
   local ctx=context();idle();local before=read()
   need(terminal[before.state],'Another manual request is pending or retained')
   need(before.sessionHandle==0 and before.ownerHandle==0,'Manual request still owns GC references')
   need(before.sequence&lt;MAX,'Manual request sequence exhausted')
   local request=snapshot.select(id,cookie)
   need(request and request.id==id and request.cookie==cookie and request.token==ctx.token
    and request.playerIdentity==ctx.identity,'Manual recipe selection belongs to another operation')
   need(math.type(id)=='integer'and id&gt;=-0x80000000 and id&lt;=0x7FFFFFFF
    and math.type(cookie)=='integer'and cookie&gt;0
    and math.type(request.interactionCookie)=='integer'and request.interactionCookie&gt;0,'Invalid selected manual recipe')
   need(request.requiresCount==nil or type(request.requiresCount)=='boolean','Invalid manual recipe count requirement')
   if request.requiresCount==true then
    need(countProtocol,'The native runtime does not support explicit ingredient counts')
    need(math.type(inputCount)=='integer'and inputCount&gt;=1 and inputCount&lt;=0x7FFFFFFF,
     'Ingredient count must be an integer from 1 to 2147483647')
   else
    need(inputCount==nil or inputCount==0,'This recipe does not accept an explicit ingredient count')
    inputCount=0
   end
   local current=context()
   need(current.generation==ctx.generation and current.identity==ctx.identity and current.token==ctx.token,
    'Manual request context changed during selection')
   idle();need(read().bytes==before.bytes,'Manual mailbox changed during selection')
   need(not host.canSubmit or host.canSubmit(),'Manual runtime stopped during selection')
   local sequence=before.sequence+1
   local packet=string.pack('&lt;i4i4I8I8I8I8I8I8I8i4i4',0,id,cookie,request.interactionCookie,ctx.identity,
    ctx.generation,sequence,0,0,0,inputCount)
   write(host.mailbox,string.pack('&lt;i4',0))
   write(host.mailbox+4,packet:sub(5))
   need(host.read(host.mailbox,SIZE)==packet,'Staged manual request differs')
   write(host.mailbox,string.pack('&lt;i4',1)) -- Publish only after the complete payload.
   need(host.read(host.mailbox,SIZE)==string.pack('&lt;i4',1)..packet:sub(5),'Published manual request differs')
   return sequence
  end)
 end
 function state.cancelPending()
  return host.suspended(function()
   context();idle();local value=read()
   need(value.sessionHandle==0 and value.ownerHandle==0,'Cannot cancel a request with retained GC references')
   if value.state==1 then write(host.mailbox,string.pack('&lt;i4',9));return true end
   need(terminal[value.state],'Manual request is executing or retained')
   return true
  end)
 end
 function state.canRelease()
  return host.suspended(function()
   context();if not host.idle()then return false end
   local value=read()
   return terminal[value.state]==true and value.sessionHandle==0 and value.ownerHandle==0
  end)
 end
 state.size=SIZE
 return state
end

end)()
ForgeModules.manualCatalog=(function()
-- Explicit-request snapshot of the current equipment's game recipe lists.
-- Host must independently verify the native current-session capture before any
-- read. No timer, managed calls, allocation or writes are performed here.
return function(host)
 local function need(ok,message)if not ok then error(message,0)end return ok end
 local function pointer(value)return math.type(value)=='integer'and value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0 end
 local function same(a,b)
  for _,key in ipairs({'token','player','identity','runner','session','interaction','cookie','recipeType'})do
   if a[key]~=b[key]then return false end
  end
  return true
 end
 local function context()
  local value=need(host.current(),'No verified manual cooking session')
  for _,key in ipairs({'player','runner','session','interaction','recipeType'})do need(pointer(value[key]),'Invalid manual catalog context: '..key)end
  need(math.type(value.identity)=='integer'and value.identity~=0 and math.type(value.cookie)=='integer'and value.cookie~=0
   and value.token~=nil,'Missing manual catalog identity')
  local copy={};for key,item in pairs(value)do copy[key]=item end;return copy
 end
 return host.suspended(function()
  local ctx=context();local reads={};local records,seen={},{}
  local function read(address,format,size)
   local bytes=host.read(address,size)
   need(type(bytes)=='string'and #bytes==size,'Incomplete manual recipe catalog read')
   reads[#reads+1]={address=address,bytes=bytes}
   return string.unpack(format,bytes)
  end
  local function q(address)return read(address,'&lt;I8',8)end
  local function n(address)return read(address,'&lt;i4',4)end
  local function byte(address)return read(address,'&lt;I1',1)end
  local function list(address,accept)
   need(pointer(address),'Manual recipe list is missing')
   local count=n(address+0x18);need(count&gt;=0,'Negative manual recipe list count')
   if count==0 then return end
   local array=q(address+0x10);need(pointer(array),'Manual recipe list array is missing')
   need(count&lt;=n(array+0x18),'Manual recipe list exceeds its array')
   for index=0,count-1 do accept(q(array+0x20+index*8))end
  end
  local function accept(info)
   need(pointer(info),'Manual recipe catalog contains a missing item')
   local cookie=q(info+0x10)
   if cookie==0 then return end
   local class=q(info);need(pointer(class),'Manual recipe item class is missing')
   local depth=byte(ctx.recipeType+0x130);need(depth&gt;0,'Manual cooking recipe type is not initialized')
   if byte(class+0x130)&lt;depth then return end
   local parents=q(class+0xC8);need(pointer(parents),'Manual recipe class lineage is missing')
   if q(parents+(depth-1)*8)~=ctx.recipeType then return end
   local id=n(info+0x18);local key=tostring(id)..':'..tostring(cookie)
   if seen[key]then return end
   seen[key]=true
   local requiresCount=false
   if host.supported then
    local supported,explicit=host.supported(info,{q=q,n=n,byte=byte},ctx)
    if not supported then return end
    need(explicit==nil or type(explicit)=='boolean','Invalid manual recipe count requirement')
    requiresCount=explicit==true
   end
   local en,ja=host.label(info,'item')
   need(type(en)=='string'and type(ja)=='string','Independent manual recipe names are missing')
   records[#records+1]={id=id,cookie=cookie,en=en,ja=ja,requiresCount=requiresCount}
  end
  local asset=q(ctx.interaction+0xE8)
  if asset~=0 then
   need(pointer(asset),'Invalid manual recipe asset list')
   if q(asset+0x10)~=0 then list(q(asset+0x18),accept)end
  end
  list(q(ctx.interaction+0xE0),accept)
  need(same(ctx,context()),'Manual operation changed while reading recipes')
  local displayed={}
  for _,record in ipairs(records)do displayed[#displayed+1]={id=record.id,cookie=record.cookie,en=record.en,ja=record.ja,requiresCount=record.requiresCount}end
  local snapshot={records=displayed}
  local function validate()
   need(same(ctx,context()),'Manual operation changed before recipe selection')
   for _,record in ipairs(reads)do
    need(host.read(record.address,#record.bytes)==record.bytes,'Manual recipe catalog changed before selection')
   end
   return true
  end
  snapshot.validate=function()return host.suspended(validate)end
  snapshot.select=function(id,cookie)
   return host.suspended(function()
    validate()
    for _,record in ipairs(records)do
     if record.id==id and record.cookie==cookie then
      -- No managed recipe pointer escapes into a delayed request. Native
      -- dispatch must freshly resolve this ID/cookie in the current catalog.
      return {id=id,cookie=cookie,token=ctx.token,playerIdentity=ctx.identity,interactionCookie=ctx.cookie,requiresCount=record.requiresCount}
     end
    end
    error('Selected recipe is not in the current equipment catalog',0)
   end)
  end
  return snapshot
 end)
end

end)()
ForgeModules.crockpotSupport=(function()
-- Pure eligibility for an explicitly selected crockpot recipe. This component
-- does not register/start a recipe; the explicit request dispatcher does that.
return function(info,memory,expected)
 local function pointer(value)
  return math.type(value)=='integer'and value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0
 end
 if not pointer(info)or not pointer(expected)or memory.q(info+0x10)==0 then return false end
 local class=memory.q(info)
 if not pointer(class)then return false end
 local depth=memory.byte(expected+0x130)
 if not depth or depth&lt;=0 or memory.byte(class+0x130)&lt;depth then return false end
 local parents=memory.q(class+0xC8)
 if not pointer(parents)or memory.q(parents+(depth-1)*8)~=expected then return false end
 local output=memory.q(info+0xD0)
 if not pointer(output)or memory.q(output+0x10)==0 then return false end
 local count=memory.n(info+0xD8)
 if not count or count&lt;=0 then return false end
 return true,false
end

end)()
ForgeModules.manualContext=(function()
-- Read-only counterpart of the native current-session/scope predicates.
-- Called only for an explicit catalog/UI request; host suspension is nestable.
return function(host)
 local function need(value,message)if not value then error(message,0)end return value end
 local function pointer(value)return math.type(value)=='integer'and value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0 end
 return function()
  return host.suspended(function()
   need(host.verify(),'Manual operation ownership changed')
   local source=need(host.context(),'Manual operation context is unavailable')
   local ctx={};for key,value in pairs(source)do ctx[key]=value end
   local function read(address,format,size)
    local value=host.read(address,size)
    need(type(value)=='string'and #value==size,'Incomplete manual operation read')
    return string.unpack(format,value)
   end
   local function q(address)return read(address,'&lt;I8',8)end
   local function n(address)return read(address,'&lt;i4',4)end
   local function byte(address)return read(address,'&lt;I1',1)end
   local function typed(object,slot)
    if not pointer(object)or not pointer(slot)then return false end
    local expected=q(slot);if not pointer(expected)then return false end
    local class=q(object);if not pointer(class)then return false end
    local depth=byte(expected+0x130);if depth==0 or byte(class+0x130)&lt;depth then return false end
    local parents=q(class+0xC8);if not pointer(parents)then return false end
    return q(parents+(depth-1)*8)==expected
   end
   local function list(address)
    if not pointer(address)then return nil end
    local count=n(address+0x18);need(count&gt;=0,'Negative manual operation list count')
    if count==0 then return {}end
    local array=q(address+0x10);need(pointer(array),'Manual operation list array is missing')
    need(count&lt;=n(array+0x18),'Manual operation list exceeds its array')
    local rows={};for index=0,count-1 do rows[#rows+1]=q(array+0x20+index*8)end
    return rows
   end
   if not pointer(ctx.player)or not pointer(ctx.runner)or not ctx.identity or ctx.identity==0
    or q(ctx.player+0x10)~=ctx.identity or q(ctx.player+0x38)~=ctx.runner or n(ctx.runner+0x180)~=1 then return end
   local agent=q(ctx.player+0x198)
   if not pointer(agent)or q(agent+0x10)==0 or q(agent+0x198)~=ctx.player or not typed(agent,ctx.agentTypeSlot)then return end
   local network=q(agent+0x268)
   if not pointer(network)or byte(network+0x140)~=1 or q(network+0xB8)~=ctx.runner then return end
   local interactions=list(q(agent+0x288));if not interactions then return end
   local selected
   for _,interaction in ipairs(interactions)do
    if pointer(interaction)and q(interaction+0x10)~=0 then
     local sessions=list(q(interaction+0x50))
     if sessions then for _,session in ipairs(sessions)do
      if pointer(session)and q(session+0x18)==agent and n(session+0x28)==2
       and q(session+0x20)==interaction and q(interaction+0x198)==network
       and(typed(interaction,ctx.forgeTypeSlot)or typed(interaction,ctx.cookingTypeSlot))
       and q(interaction+0x158)~=0 then
       if selected and selected.session~=session then return nil,'ambiguous'end
       selected={token=ctx.token,player=ctx.player,identity=ctx.identity,runner=ctx.runner,session=session,
        interaction=interaction,cookie=q(interaction+0x10),recipeType=q(ctx.recipeTypeSlot)}
      end
     end end
    end
   end
   if selected then
    need(pointer(selected.recipeType),'Manual recipe type is unavailable')
    need(host.verify(),'Manual operation changed while reading')
    local current=need(host.context(),'Manual operation context disappeared')
    for _,key in ipairs({'player','runner','identity','token'})do need(current[key]==ctx[key],'Manual operation context changed')end
   end
   return selected
  end)
 end
end

end)()
ForgeModules.manager=(function()
-- Runtime host wiring. No process APIs are invoked until prepare/start/stop.
-- Retained live owners can be verified and adopted for cleanup only.
-- Never replace their retained allocation with a new runtime.
return function(ASKA,M,host)
  local manager={sequence=0}
  local runtimeSize=assert(M.anchor.runtimeSize,'Missing trusted native runtime size')
  local function need(ok,message)if not ok then error(message,0)end return ok end
  local function copyContext(value)
    if not value then return end
    local copy={};for key,item in pairs(value)do copy[key]=item end;return copy
  end
  local function retainedImage(ctx,root,generation,owner,image)
    if pcall(M.manifest.verifyImage,host.read,image.manifestSpec)then return image end
    for _,revision in ipairs({'25834809-001-148','25834809-001-097','25834809-001-090','25834809-001-079'})do
      local legacy=M.image(ctx,root,generation,
        {villager=ctx.base+0x5D3A260,recipe=ctx.base+0x5D13418,forge=ctx.base+0x5D5D440},
        M.manifest,owner.control,revision)
      need(legacy.cleanupRevision==revision,'Forge legacy image is not cleanup-only')
      if pcall(M.manifest.verifyImage,host.read,legacy.manifestSpec)then return legacy end
    end
    error('Unknown retained forge image',0)
  end
  local function readNumber(address,format,size)
    local value=host.read(address,size)
    need(type(value)=='string'and #value==size,'Incomplete forge host read')
    return string.unpack(format,value)
  end
  local function sameContext(runtime)
    local ok,ctx=pcall(host.context)
    return ok and ctx and host.epoch()==runtime.epoch and host.handle()==runtime.handle
      and ctx.base==runtime.context.base and ctx.player==runtime.context.player
      and ctx.identity==runtime.context.identity and ctx.runner==runtime.context.runner
      and ctx.token==runtime.context.token
  end
  local function sameProcess(runtime)
    return host.epoch()==runtime.epoch and host.handle()==runtime.handle
  end
  local function currentOwner(runtime)
    local owner=host.ownerCurrent()
    need(owner and owner.control==runtime.owner.control and owner.epoch==runtime.epoch,
      'Forge update owner changed')
    return owner
  end
  local function allOriginal(runtime)
    for _,plan in ipairs(runtime.image.plans)do
      if host.read(plan.address,#plan.original)~=plan.original then return false end
    end
    return true
  end
  local function ranges(runtime)
    local result={{runtime.root,runtime.root+runtime.image.size},
      {runtime.owner.root,runtime.owner.root+0x1000},
      {runtime.context.base+0xB7D120,runtime.context.base+0xB7D125}}
    for _,plan in ipairs(runtime.image.plans)do result[#result+1]={plan.address,plan.address+#plan.original}end
    return result
  end
  local function wire(runtime)
    local root,image,owner=runtime.root,runtime.image,runtime.owner
    local generation=image.manifestSpec.generation
  local spec=image.manifestSpec;spec.dispatcher=image.addresses.forge_player_cleanup_dispatch
  local api={suspended=host.suspended,read=host.read,write=host.write}
  api.validContext=function()return sameContext(runtime)or runtime.cleanupOnly==true and sameProcess(runtime)end
  api.verifyImage=function()return M.manifest.verifyImage(host.read,spec)end
  api.verifyNative=function()
    if runtime.life and runtime.life.phase=='allocationsReleasing'
      and runtime.binding and runtime.binding.phase=='journalReleasePending'
      and runtime.workspace and runtime.workspace.releasePublication then
      api.verifyImage()
      local descriptor=need(M.anchor.decode(host.read(owner.control+0xA8,M.anchor.size),spec),'Ledger release anchor missing')
      need(allOriginal(runtime)and readNumber(root+0xE0,'&lt;i4',4)==0 and readNumber(root+0xE8,'&lt;i4',4)==3
        and descriptor.effectivePhase==6 and descriptor.journal==0
        and runtime.workspace.verifyReleaseIntent(runtime.vm,descriptor.pendingPage),'Ledger release snapshot differs')
      return true
    end
    M.manifest.verify(host.read,spec);return true
  end
  api.currentShared=function()return currentOwner(runtime)end
  api.ensureShared=function()return currentOwner(runtime)end
  api.adoptShared=function(_,retained,owned)
    need(retained.root==root and retained.generation==generation,'Forge retained owner differs')
    need(owned.control==currentOwner(runtime).control,'Forge retained update changed');return owned
  end
  api.outside=function()return host.outside(ranges(runtime))end
  api.idle=function(_,_,rootFreed)
    if readNumber(owner.control+0x18,'&lt;i4',4)~=0 or not api.outside()then return false end
    if not rootFreed then
      for _,offset in ipairs({0x80,0xE4,0x188,0x1B318})do if readNumber(root+offset,'&lt;i4',4)~=0 then return false end end
    end
    return true
  end
  local vm=M.vm({validContext=api.validContext,handle=function()return runtime.handle end,native=host.native,
    readQwordLocal=host.readQwordLocal,readIntegerLocal=host.readIntegerLocal,requireSuspended=host.requireSuspended})
  runtime.vm=vm
  for _,name in ipairs({'reserve','commit','committed','validateReservation','adoptReservation','isFree','release','confirmReleased'})do api[name]=vm[name]end
  api.entriesOriginal=function()return allOriginal(runtime)end
  api.flush=function(address,size)return host.flush(address,size)end
  local entries=M.entries(api,image.plans,ranges(runtime))
  api.installEntries=entries.install;api.restoreEntries=entries.restore
  api.releaseShared=function(lease)
    need(lease and lease.control==runtime.owner.control and lease.epoch==runtime.epoch,'Forge update release owner differs')
    return host.ownerRelease(lease)
  end
  api.isRootFreed=function()return vm.isFree(root)end
  api.freeRoot=function()return host.freeCode(root)end
  runtime.binding=M.binding(M.anchor,api,spec)
  runtime.workspace=M.workspace(api,spec,runtime.binding)
  api.acceptsManualRequest=function()
    return runtime.initialized and not runtime.recovered and not runtime.cleanupOnly
      and runtime.life and runtime.life.phase=='active'and sameContext(runtime)
      and readNumber(root+0xE0,'&lt;i4',4)==1 and readNumber(root+0xE8,'&lt;i4',4)==0
  end
  runtime.manualRequest=M.manualRequest({mailbox=image.manualMailbox,read=host.read,write=host.write,countProtocol=1,
    suspended=host.suspended,
    verify=function()return api.validContext()and api.verifyImage()end,
    canSubmit=api.acceptsManualRequest,
    context=function()return {generation=spec.generation,identity=spec.identity,token=runtime.context.token}end,
    idle=function()return api.idle(nil,nil,false)end})
  runtime.manualCurrent=M.manualContext({read=host.read,suspended=host.suspended,
    verify=function()return sameContext(runtime)and api.verifyImage()end,
    context=function()return {player=spec.player,runner=spec.runner,identity=spec.identity,token=runtime.context.token,
      cookingTypeSlot=runtime.context.base+0x5D12E38,forgeTypeSlot=runtime.context.base+0x5D5D440,
      agentTypeSlot=runtime.context.base+0x5D612D0,recipeTypeSlot=runtime.context.base+0x5D13418}end})
  api.beforeStop=function()return runtime.manualRequest.cancelPending()end
  api.canSkipDrain=function()
    if not api.idle(nil,nil,false) or not runtime.manualRequest.canRelease() then return false end
    -- The thread mismatch flag is diagnostic. No native drain is needed once ownership and idleness are verified.
    local ok,empty=pcall(runtime.workspace.verifyEmptyRetained,runtime.vm)
    return ok and empty==true
  end
  api.journalHead=function()return runtime.binding.journal end
  api.verifyAllocations=function()
    local pointer=readNumber(root+0x90,'&lt;I8',8);local capacity=readNumber(root+0x98,'&lt;i4',4)
    if pointer==0 and capacity==0 then return true end
    local allocation=runtime.workspace.adopt()
    return allocation and pointer==allocation+runtime.workspace.layout.header
  end
  api.canReleaseLedger=function(_,pointer,capacity)
    if math.type(capacity)~='integer'or capacity&lt;0 or capacity&gt;0x7FFFFFFF then return false end
    -- Keep verification bounded in host memory even after native growth.
    local total=capacity*0x70
    for offset=0,total-1,0x1000 do
      local size=math.min(0x1000,total-offset)
      if host.read(pointer+offset,size)~=string.rep('\0',size)then return false end
    end
    return true
  end
  api.releaseAllocations=function()
    need(runtime.manualRequest.canRelease(),'Manual request still owns execution or references')
    need(runtime.workspace.release(),'Cannot release fixed forge ledger')
    -- VM post-check failures may retain a reservation before its caller
    -- received the address. These claims belong only to this runtime/handle.
    local pending={};for address in pairs(vm.claims)do pending[#pending+1]=address end
    for _,address in ipairs(pending)do
      if vm.isFree(address)then vm.confirmReleased(address)
      else need(vm.release(address),'Cannot release unpublished forge VM claim')end
    end
    return true
  end
  api.allocationsReleased=function()
    return runtime.binding.journal==0 and not runtime.workspace.unpublished and not next(vm.claims)
      and readNumber(root+0x90,'&lt;I8',8)==0 and readNumber(root+0x98,'&lt;i4',4)==0
      and runtime.manualRequest.canRelease()
  end
  api.canReleaseRoot=function()return allOriginal(runtime)and api.allocationsReleased()end
  runtime.api=api
    return runtime
  end
  local previousUse=ASKA.forgeInUse
  ASKA.forgeInUse=function()return manager.current~=nil or manager.pending~=nil or(previousUse and previousUse())or false end
  function manager.prepare()
    if manager.current then return manager.current end
    need(not manager.pending,'An unpublished forge allocation still needs cleanup')
    return host.suspended(function()
      local ctx=need(copyContext(host.context()),'Player data is not ready for forge work')
      local owner=host.ownerAcquire()
      local anchorBytes=host.read(owner.control+0xA8,M.anchor.size)
      need(anchorBytes==string.rep('\0',M.anchor.size),'An existing forge owner must be recovered before enabling')
      manager.pending={owner=owner,context=ctx,epoch=host.epoch(),handle=host.handle()}
      if M.validateGame then need(M.validateGame(host.read,ctx.base),'Forge game API contract differs')end
      manager.sequence=manager.sequence+1
      local generation=manager.pending.epoch*0x100000000+manager.sequence
      local root=need(host.allocCode(runtimeSize,ctx.base+0x7000000),'Cannot allocate forge code')
      manager.pending.root=root
      local image=M.image(ctx,root,generation,{villager=ctx.base+0x5D3A260,recipe=ctx.base+0x5D13418,forge=ctx.base+0x5D5D440},M.manifest,owner.control)
      need(image.size==runtimeSize,'Forge runtime layout size differs')
      host.writeCode(root,image.blob)
      M.manifest.verifyImage(host.read,image.manifestSpec)
      local runtime={root=root,image=image,context=ctx,owner=owner,epoch=host.epoch(),handle=host.handle(),initialized=false}
      wire(runtime)
      runtime.life=M.lifecycle(ASKA,runtime.api,image.manifestSpec,runtime.binding)
      manager.current=runtime;manager.pending=nil
      runtime.workspace.initialize();runtime.initialized=true
      return runtime
    end)
  end
  function manager.start()
    local runtime=manager.current or manager.prepare()
    need(not runtime.recovered,'A recovered forge owner must be cleaned before enabling')
    need(not runtime.cleanupOnly,'A previous-world forge runtime must finish cleanup first')
    if runtime.life.phase=='active'then return true end
    need(runtime.initialized,'Forge ledger initialization is incomplete')
    return runtime.life.start()
  end
  function manager.manualSubmit(snapshot,id,cookie,inputCount)
    local runtime=need(manager.current,'Forge runtime is not enabled')
    need(not runtime.cleanupOnly,'Manual runtime is cleanup-only')
    need(not runtime.recovered and runtime.initialized and runtime.life.phase=='active','Manual runtime is not active')
    return runtime.manualRequest.submit(snapshot,id,cookie,inputCount)
  end
  function manager.manualStatus()
    return need(manager.current,'Forge runtime is not enabled').manualRequest.inspect()
  end
  function manager.manualCurrent()
    local runtime=need(manager.current,'Forge runtime is not enabled')
    need(not runtime.recovered and runtime.initialized and runtime.life.phase=='active','Manual runtime is not active')
    need(runtime.api.acceptsManualRequest(),'Manual native runtime is stopping')
    return runtime.manualCurrent()
  end
  function manager.manualSnapshot(label)
    need(type(label)=='function','Manual recipe labels are unavailable')
    local runtime=need(manager.current,'Forge runtime is not enabled')
    local allowed={
      [runtime.context.base+0x3681580]=true,[runtime.context.base+0xD9C0F0]=true,[runtime.context.base+0xD8A2F0]=true,
      [runtime.context.base+0xD9D670]=true}
    local function validPointer(value)
      return math.type(value)=='integer'and value&gt;=0x10000 and value&lt;0x800000000000 and value%8==0
    end
    local function supported(info,memory,ctx)
      if ctx and M and M.crockpotSupport then
        local expected=memory.q(runtime.context.base+0x5D18D20)
        local class=memory.q(ctx.interaction)
        if validPointer(expected)and validPointer(class)then
          local depth=memory.byte(expected+0x130)
          if depth&gt;0 and memory.byte(class+0x130)&gt;=depth then
            local parents=memory.q(class+0xC8)
            if validPointer(parents)and memory.q(parents+(depth-1)*8)==expected then
              return M.crockpotSupport(info,memory,memory.q(runtime.context.base+0x5D18F78))
            end
          end
        end
      end
      local parts=memory.q(info+0x100);if parts==0 then return false end
      local count=memory.n(parts+0x18);if count&lt;=0 then return false end
      local positive=false
      for index=0,count-1 do
        local part=memory.q(parts+0x20+index*8);if part==0 then return false end
        local item=memory.q(part+0x10);if item==0 or memory.q(item+0x10)==0 then return false end
        local class=memory.q(item);if class==0 or not allowed[memory.q(class+0x1D8)]then return false end
        local quantity=memory.n(part+0x18);if quantity&lt;=0 then quantity=memory.n(part+0x1C)end
        if quantity&lt;0 then return false end
        if quantity&gt;0 then positive=true end
      end
      if positive then return true,false end
      return count==1 and memory.byte(info+0x108)==1,true
    end
    return M.manualCatalog({read=host.read,suspended=host.suspended,current=manager.manualCurrent,label=label,supported=supported})
  end
  function manager.scanSites()
    return host.suspended(function()
      local ctx=need(copyContext(host.context()),'Player data is not ready for forge inspection')
      local owner=host.ownerDiscover()
      local retained
      if owner then retained=M.anchor.decode(host.read(owner.control+0xA8,M.anchor.size))end
      local root=retained and retained.root or ctx.base+0x7000000
      local generation=retained and retained.generation or 1
      local image=M.image(ctx,root,generation,
        {villager=ctx.base+0x5D3A260,recipe=ctx.base+0x5D13418,forge=ctx.base+0x5D5D440},M.manifest,owner and owner.control,retained and retained.size==0x22000 and '25834809-001-097'or nil)
      image.manifestSpec.dispatcher=image.addresses.forge_player_cleanup_dispatch
      local live=false
      if retained then
        need(retained.flags==1,'Forge inspection owner flag differs')
        local vm=M.vm({validContext=function()return host.epoch()==owner.epoch end,handle=host.handle,
          native=host.native,readQwordLocal=host.readQwordLocal,readIntegerLocal=host.readIntegerLocal,
          requireSuspended=host.requireSuspended})
        live=not vm.isFree(root)
        if live then image=retainedImage(ctx,root,generation,owner,image)
        else need(retained.effectivePhase==4 or retained.effectivePhase==5,'Forge inspected runtime is missing')end
        image.manifestSpec.dispatcher=image.addresses.forge_player_cleanup_dispatch
        M.anchor.decode(host.read(owner.control+0xA8,M.anchor.size),image.manifestSpec)
      end
      local results={}
      for _,plan in ipairs(image.plans)do
        local value=host.read(plan.address,#plan.signature)
        local prefix=type(value)=='string'and value:sub(1,#plan.original)
        local suffix=type(value)=='string'and value:sub(#plan.original+1)==plan.signature:sub(#plan.original+1)
        local original=suffix and prefix==plan.original
        local installed=suffix and retained~=nil and live and prefix==plan.patch
        results[plan.address-ctx.base]={ok=original or installed,installed=installed,
          reason='Unknown forge entry bytes or runtime ownership'}
      end
      return results
    end)
  end
  function manager.adopt(previousWorld)
    need(not manager.current and not manager.pending and not ASKA.forgeRuntime,'Forge runtime is already owned')
    return host.suspended(function()
      local ctx=need(copyContext(host.context()),'Player data is not ready for forge recovery')
      local owner=host.ownerAcquire(previousWorld)
      local bytes=host.read(owner.control+0xA8,M.anchor.size)
      local retained=need(M.anchor.decode(bytes),'Forge retained owner is missing')
      local changed=retained.player~=ctx.player or retained.identity~=ctx.identity or retained.runner~=ctx.runner
      need(retained.flags==1 and(not changed or previousWorld==true and retained.effectivePhase&gt;=1
        and retained.effectivePhase&lt;=6),
        'Forge retained player ownership differs')
      if changed then
        ctx.player,ctx.identity,ctx.runner=retained.player,retained.identity,retained.runner
        ctx.token='previous-world-cleanup-only'
      end
      local phase=retained.effectivePhase
      need(phase&gt;=1 and phase&lt;=6,'Unknown forge retained phase')
      if M.validateGame then need(M.validateGame(host.read,ctx.base),'Forge game API contract differs')end
      local root=retained.root
      local image=M.image(ctx,root,retained.generation,
        {villager=ctx.base+0x5D3A260,recipe=ctx.base+0x5D13418,forge=ctx.base+0x5D5D440},M.manifest,owner.control,retained.size==0x22000 and '25834809-001-097'or nil)
      local runtime={root=root,image=image,context=ctx,owner=owner,epoch=host.epoch(),handle=host.handle(),
        initialized=phase~=1 and phase~=6,recovered=true,cleanupOnly=changed or image.cleanupRevision~=nil,initializationCleanup=(changed or image.cleanupRevision~=nil)and phase==1}
      wire(runtime)
      if not runtime.vm.isFree(root)then
        local selected=retainedImage(ctx,root,retained.generation,owner,image)
        if selected~=image then
          image=selected;runtime.image=image;runtime.cleanupOnly=true
          runtime.initializationCleanup=phase==1
          wire(runtime)
        end
      end
      local function verify()
        need(sameContext(runtime)or runtime.cleanupOnly and sameProcess(runtime),'Forge retained process changed')
        need(host.read(owner.control+0xA8,M.anchor.size)==bytes,'Forge retained descriptor changed')
        M.anchor.decode(bytes,image.manifestSpec)
        local freed=runtime.vm.isFree(root)
        need(not freed or phase==4 or phase==5,'Forge retained live runtime is missing')
        need(phase~=5 or freed,'Forge released runtime is still allocated')
        if not freed then
          need(runtime.api.verifyImage(),'Forge retained image differs')
          if phase~=1 and phase~=6 then need(runtime.api.verifyNative(),'Forge retained native state differs')end
        end
        need(runtime.api.idle(nil,nil,freed),'Forge retained runtime is executing')
        for _,plan in ipairs(image.plans)do
          local value=host.read(plan.address,#plan.signature)
          need(type(value)=='string'and #value==#plan.signature
            and value:sub(#plan.original+1)==plan.signature:sub(#plan.original+1)
            and(value:sub(1,#plan.original)==plan.original or value:sub(1,#plan.patch)==plan.patch),
            'Unknown retained forge entry bytes')
        end
        if phase==1 then
          need(allOriginal(runtime)and readNumber(root+0xE0,'&lt;i4',4)==0
            and readNumber(root+0xE8,'&lt;i4',4)==0,'Forge initialization already published native work')
          if changed then
            need(host.read(root+0x1B200,0x48)==string.rep('\0',0x48)
              and host.read(root+0x1B288,8)==string.rep('\0',8)
              and readNumber(root+0x9C,'&lt;i4',4)==0,'Previous-world initialization owns unexpected work')
            local ready=readNumber(root+0x18C,'&lt;i4',4)
            need(ready==0 or ready==1,'Previous-world initialization publication flag differs')
          end
          if retained.journal==0 then
            need(host.read(root+0x90,16)==string.rep('\0',16),
              'Forge initialization has an untracked ledger publication')
          else
            local address=runtime.workspace.adopt()
            local publication=host.read(root+0x90,16)
            local pointerBytes=string.pack('&lt;I8',address+runtime.workspace.layout.header)
            local capacityBytes=string.pack('&lt;i4i4',1,0)
            local known=false
            for count=0,8 do
              if publication==pointerBytes:sub(1,count)..string.rep('\0',16-count)
                or publication==pointerBytes..capacityBytes:sub(1,count)..string.rep('\0',8-count)then known=true;break end
            end
            need(known,'Unknown forge initialization publication bytes')
            local committed=runtime.vm.committedPrefix(address,runtime.workspace.layout.reserved)
            need(committed&gt;=runtime.workspace.layout.header,'Forge initialization header is not committed')
            -- Capacity/publication may be torn. Inspect all backed payload
            -- bytes instead of trusting that possibly incomplete capacity.
            for offset=runtime.workspace.layout.header,committed-1,0x1000 do
              local count=math.min(0x1000,committed-offset)
              need(host.read(address+offset,count)==string.rep('\0',count),
                'Forge initialization payload still owns data')
            end
          end
          return true
        end
        if phase&gt;=4 then
          need(allOriginal(runtime),'Forge release intent still has installed entries')
          if phase==6 then
            need(readNumber(root+0xE0,'&lt;i4',4)==0 and retained.pendingPage and retained.journal==0,
              'Forge ledger release intent differs')
            runtime.workspace.adopt()
          else
            need(retained.journal==0,'Forge root release still owns a journal')
            if not freed then
              need(readNumber(root+0xE0,'&lt;i4',4)==0 and readNumber(root+0x90,'&lt;I8',8)==0
                and readNumber(root+0x98,'&lt;i4',4)==0,'Forge root release still owns live data')
            end
          end
          return true
        end
        need(runtime.api.verifyAllocations(),'Forge retained ledger differs')
        local pointer=readNumber(root+0x90,'&lt;I8',8)
        local capacity=readNumber(root+0x98,'&lt;i4',4)
        if phase==3 and retained.journal==0 then
          need(allOriginal(runtime)and pointer==0 and capacity==0 and readNumber(root+0xE0,'&lt;i4',4)==0,
            'Forge paused empty release state differs')
          return true
        end
        need(capacity&gt;0 and pointer==retained.journal+runtime.workspace.layout.header
          and runtime.vm.committed(retained.journal,(runtime.workspace.layout.header+capacity*0x70+0xFFF)&amp;~0xFFF),
          'Forge retained ledger publication differs')
        return true
      end
      runtime.binding.adopt()
      if phase&lt;=3 or phase==6 then runtime.workspace.adopt()end
      if changed and phase==1 then
        verify()
      elseif changed and(phase==4 or phase==5)then
        verify()
        need(retained.journal==0,'Previous-world root release still owns a ledger')
        if not runtime.vm.isFree(root)then
          need(phase==4 and readNumber(root+0xE8,'&lt;i4',4)==3,
            'Previous-world pending root cleanup is incomplete')
          local mailbox=root+0x1B200
          local status=readNumber(mailbox,'&lt;i4',4)
          need(status~=1 and status~=2 and status~=8 and readNumber(mailbox+0x30,'&lt;I8',8)==0
            and readNumber(mailbox+0x38,'&lt;I8',8)==0,'Previous-world pending root owns manual work')
        end
      elseif changed then
        verify()
        need(readNumber(root+0xE0,'&lt;i4',4)==0 and readNumber(root+0xE8,'&lt;i4',4)==3,
          'Previous-world retained native cleanup is incomplete')
        local mailbox=root+0x1B200
        local status=readNumber(mailbox,'&lt;i4',4)
        need(status~=1 and status~=2 and status~=8 and readNumber(mailbox+0x30,'&lt;I8',8)==0
          and readNumber(mailbox+0x38,'&lt;I8',8)==0,'Previous-world retained manual work remains')
        if phase==6 then
          need(runtime.workspace.verifyEmptyRelease(runtime.vm),'Previous-world release ledger is not empty')
        elseif retained.journal==0 then
          need(phase==3 and allOriginal(runtime)and host.read(root+0x90,16)==string.rep('\0',16),
            'Previous-world paused root still owns a publication')
        else need(runtime.workspace.verifyEmptyRetained(runtime.vm),'Previous-world retained ledger is not empty')end
      end
      runtime.api.verifyRecovery=verify
      local lifecyclePhase=({[1]='starting',[2]='stopping',[3]='stopping',[4]='rootFreePending',[5]='rootFreed',[6]='allocationsReleasing'})[phase]
      if phase==3 and retained.journal==0 then lifecyclePhase='allocationsReleased'end
      runtime.life=M.lifecycle(ASKA,runtime.api,image.manifestSpec,runtime.binding,
        {phase=lifecyclePhase,entries=phase&gt;=2 and phase&lt;=3 and lifecyclePhase~='allocationsReleased'})
      manager.sequence=math.max(manager.sequence,retained.generation&amp;0xFFFFFFFF)
      manager.current=runtime
      return runtime
    end)
  end
  function manager.stop(retry)
    if manager.pending then
      local pending=manager.pending
      host.suspended(function()
        need(sameContext(pending),'Unpublished forge context changed')
        if pending.root then
          need(host.outside({{pending.root,pending.root+runtimeSize}}),'Unpublished forge code is executing')
          need(host.freeCode(pending.root),'Cannot release unpublished forge code');pending.root=nil
        end
        need(host.ownerRelease(pending.owner),'Cannot release unpublished forge owner');manager.pending=nil
      end)
    end
    local runtime=manager.current
    if not runtime then return true end
    if not sameContext(runtime)and not runtime.cleanupOnly then
      host.suspended(function()
        need(sameProcess(runtime),'Forge process/epoch changed before cleanup')
        if runtime.life.phase=='releasingAnchor'and runtime.binding.phase=='anchorCleared'then
          need(runtime.binding.journal==0 and allOriginal(runtime),
            'Previous-world cleared anchor still owns entries')
          local readOnly=M.vm({validContext=function()return sameProcess(runtime)end,handle=function()return runtime.handle end,
            native=host.native,readQwordLocal=host.readQwordLocal,readIntegerLocal=host.readIntegerLocal,requireSuspended=host.requireSuspended})
          need(readOnly.isFree(runtime.root),'Previous-world cleared anchor root is occupied')
          for address in pairs(runtime.vm.claims)do need(readOnly.isFree(address),'Previous-world cleared anchor VM claim remains')end
          need(host.read(runtime.owner.control+0xA8,M.anchor.size)==string.rep('\0',M.anchor.size)
            and runtime.api.idle(nil,nil,true),'Previous-world cleared anchor is not empty and idle')
          -- releaseOwner independently verifies the retained entry allocation;
          -- memberControl may be unavailable after its entry was restored.
          runtime.cleanupOnly=true;return
        end
        local owner=currentOwner(runtime)
        local descriptor=need(M.anchor.decode(host.read(owner.control+0xA8,M.anchor.size),runtime.image.manifestSpec),
          'Previous-world forge anchor is missing')
        need(descriptor.flags==1,'Previous-world forge owner flag changed')
        local readOnly=M.vm({validContext=function()return sameProcess(runtime)end,handle=function()return runtime.handle end,
          native=host.native,readQwordLocal=host.readQwordLocal,readIntegerLocal=host.readIntegerLocal,requireSuspended=host.requireSuspended})
        if descriptor.effectivePhase==4 or descriptor.effectivePhase==5 then
          need((runtime.life.phase=='rootFreePending'or runtime.life.phase=='rootFreed'or runtime.life.phase=='releasingAnchor')
            and descriptor.journal==0 and allOriginal(runtime),'Previous-world release intent differs')
          local freed=readOnly.isFree(runtime.root)
          need(descriptor.effectivePhase~=5 or freed,'Previously released forge root is occupied')
          need(runtime.api.idle(nil,nil,freed),'Previous-world release is executing')
          if not freed then
            need(runtime.api.verifyImage()and runtime.api.verifyNative(),'Previous-world pending root differs')
            need(readNumber(runtime.root+0xE0,'&lt;i4',4)==0 and readNumber(runtime.root+0xE8,'&lt;i4',4)==3
              and readNumber(runtime.root+0x90,'&lt;I8',8)==0 and readNumber(runtime.root+0x98,'&lt;i4',4)==0,
              'Previous-world pending root still owns data')
            local mailbox=runtime.root+0x1B200;local status=readNumber(mailbox,'&lt;i4',4)
            need(status~=1 and status~=2 and status~=8 and readNumber(mailbox+0x30,'&lt;I8',8)==0
              and readNumber(mailbox+0x38,'&lt;I8',8)==0,'Previous-world pending root owns a request')
          end
          runtime.cleanupOnly=true
          return
        end
        if descriptor.effectivePhase==3 or descriptor.effectivePhase==6 then
          need((runtime.life.phase=='quiescing'or runtime.life.phase=='allocationsReleasing'or runtime.life.phase=='allocationsReleased')
            and allOriginal(runtime),'Previous-world ledger release phase differs')
          need(runtime.api.verifyImage()and runtime.api.idle(nil,nil,false),'Previous-world ledger release is executing')
          need(readNumber(runtime.root+0xE0,'&lt;i4',4)==0 and readNumber(runtime.root+0xE8,'&lt;i4',4)==3,
            'Previous-world ledger cleanup is not complete')
          local mailbox=runtime.root+0x1B200;local status=readNumber(mailbox,'&lt;i4',4)
          need(status&gt;=0 and status&lt;=9 and status~=1 and status~=2 and status~=8
            and readNumber(mailbox+0x30,'&lt;I8',8)==0 and readNumber(mailbox+0x38,'&lt;I8',8)==0,
            'Previous-world ledger request remains')
          if descriptor.effectivePhase==6 then
            need(descriptor.journal==0 and runtime.workspace.verifyReleaseIntent(readOnly,descriptor.pendingPage),
              'Previous-world ledger release intent differs')
          elseif descriptor.journal~=0 then
            need(descriptor.journal==runtime.workspace.address and runtime.workspace.verifyEmptyRetained(readOnly),
              'Previous-world paused ledger differs')
          else
            need(readNumber(runtime.root+0x90,'&lt;I8',8)==0 and readNumber(runtime.root+0x98,'&lt;i4',4)==0,
              'Previous-world released ledger remains published')
            for address in pairs(runtime.vm.claims)do need(readOnly.isFree(address),'Previous-world VM claim is still allocated')end
          end
          runtime.cleanupOnly=true
          return
        end
        need(runtime.initialized,'Uninitialized forge runtime changed worlds')
        need(runtime.api.verifyImage()and runtime.api.verifyNative()and runtime.api.idle(nil,nil,false),
          'Previous-world forge runtime is not verified and idle')
        need(readNumber(runtime.root+0xE0,'&lt;i4',4)==0 and readNumber(runtime.root+0xE8,'&lt;i4',4)==3,
          'Previous-world native cleanup is not complete')
        need(descriptor.flags==1 and descriptor.effectivePhase==2 and descriptor.journal==runtime.workspace.address,
          'Previous-world forge ownership phase changed')
        local mailbox=runtime.root+0x1B200
        local status=readNumber(mailbox,'&lt;i4',4)
        need(status~=1 and status~=2 and status~=8 and readNumber(mailbox+0x30,'&lt;I8',8)==0
          and readNumber(mailbox+0x38,'&lt;I8',8)==0,'Previous-world manual request still owns work')
        need(runtime.workspace.verifyEmptyRetained(readOnly),'Previous-world ledger is not empty')
        runtime.cleanupOnly=true -- Only after the complete, read-only proof.
      end)
    end
    if not runtime.initialized and(not runtime.cleanupOnly or runtime.initializationCleanup)then
      host.suspended(function()
        need(runtime.api.validContext()and allOriginal(runtime),'Uninitialized forge ownership changed')
        if runtime.initializationCleanup then need(runtime.api.verifyRecovery(),'Uninitialized previous-world owner differs')end
        need(runtime.api.verifyImage()and runtime.api.idle(nil,nil,false),'Uninitialized forge code is executing')
        -- No entry has been installed and no recipe has been published. Restore
        -- a valid empty header before the normal anchored cleanup checks it.
        need(host.write(runtime.root+0x90,string.pack('&lt;I8i4i4',0,0,0)),'Cannot clear uninitialized forge ledger')
        need(host.write(runtime.root+0x18C,string.pack('&lt;i4',0)),'Cannot clear uninitialized forge publication')
      end)
    end
    local done,reason=runtime.life.stop(retry)
    if done then manager.current=nil end
    return done,reason
  end
  return manager
end

end)()
-- CE host for the independently owned forge runtime. ForgeModules is embedded
-- in the CT; runtime setup needs no Python, external files or assembler.
local function forgeRead(address,size)
  if size==0 then return ''end
  if math.type(size)~='integer' or size&lt;0 then return end
  local chunks={}
  for offset=0,size-1,0x1000 do
    local length=math.min(0x1000,size-offset)
    local value=bytes(address+offset,length)
    if not value or #value~=length then return end
    chunks[#chunks+1]=string.char(table.unpack(value))
  end
  return table.concat(chunks)
end
local function forgeSuspended(work)
  local result
  withTargetSuspended(function()result=table.pack(work())end)
  return table.unpack(result,1,result.n)
end
local function forgeRequireSuspended()
  ASKA.require()
  need(suspensionHandle and suspensionHandle==getOpenedProcessHandle() and suspensionEpoch==ASKA.epoch,
    'Forge mutation requires its verified suspended context.','鍛冶炉の変更には照合済みの停止状態が必要です。')
end
local function forgeWrite(address,value)
  forgeRequireSuspended()
  for offset=0,#value-1,0x1000 do
    local chunk=value:sub(offset+1,offset+0x1000)
    need(writeBytes(address+offset,{chunk:byte(1,#chunk)})==#chunk and forgeRead(address+offset,#chunk)==chunk,
      'Cannot verify forge data write.','鍛冶炉の書込みを照合できません。')
  end
  return true
end
local function forgeFlush(address,size)
  forgeRequireSuspended()
  return native('kernel32.FlushInstructionCache',getOpenedProcessHandle(),address,size)==1
end
ASKA.forgeDispatchOwner.decodeAnchor=ForgeModules.anchor.decode
local host={
  context=function()ASKA.require();return soloContext()end,
  epoch=function()return ASKA.epoch end,
  handle=getOpenedProcessHandle,
  read=forgeRead,write=forgeWrite,suspended=forgeSuspended,native=native,
  readQwordLocal=readQwordLocal,readIntegerLocal=readIntegerLocal,requireSuspended=forgeRequireSuspended,
  ownerAcquire=function(previousWorld)return ASKA.forgeDispatchOwner.acquireOwner(previousWorld)end,
  ownerDiscover=function(previousWorld)return ASKA.forgeDispatchOwner.discoverOwner(previousWorld)end,
  ownerCurrent=function()
    local control=ASKA.forgeDispatchOwner.memberControl()
    return {control=control,root=control-0x400,epoch=ASKA.epoch,owned=true}
  end,
  ownerRelease=function(owner)return ASKA.forgeDispatchOwner.releaseOwner(owner)end,
  allocCode=function(size,near)
    forgeRequireSuspended()
    local address=allocateMemory(size,near)
    if not address or address==0 then return end
    need(math.type(address)=='integer'and address&gt;=0x10000 and address%0x1000==0,
      'Forge code allocation differs.','鍛冶炉の処理領域が不正です。')
    return address
  end,
  freeCode=function(address)forgeRequireSuspended();return deAlloc(address)end,
  writeCode=function(address,value)
    forgeWrite(address,value)
    need(forgeFlush(address,#value),'Cannot flush forge instructions.','鍛冶炉の命令更新を反映できません。')
  end,
  flush=forgeFlush,
  outside=function(ranges)
    forgeRequireSuspended()
    return pcall(verifyThreadsOutside,ranges)
  end,
}
local manager=ForgeModules.manager(ASKA,ForgeModules,host)
ASKA.forgeRuntimeManager=manager
ASKA.forgeNativeSiteScan=function()return manager.scanSites()end
local previousRecovery=ASKA.beforeNativeRecovery
ASKA.beforeNativeRecovery=function()
  local recovered=0
  if not manager.current and not manager.pending then
    local retained=ASKA.forgeDispatchOwner.discoverOwner(true)
    if retained and forgeRead(retained.control+0xA8,ForgeModules.anchor.size)~=string.rep('\0',ForgeModules.anchor.size)then
      manager.adopt(true)
    end
  end
  if manager.current or manager.pending then
    local done,reason=manager.stop(true)
    need(done,'Forge recovery is waiting for native cleanup: '..tostring(reason),
      '鍛冶炉の復元はゲーム側の後片付け完了を待っています：'..tostring(reason))
    recovered=6
  end
  return recovered+(previousRecovery and previousRecovery()or 0)
end
local baseMaterials=ASKA.F.noCraftMaterials
local integrated={boundary=baseMaterials.boundary,children=baseMaterials.children}
integrated.on=function()
  manager.prepare()
  baseMaterials.on()
  manager.start()
end
integrated.off=function()
  local done,reason=manager.stop(ASKA.disarming==true)
  need(done,
    'Forge cleanup is pending: '..tostring(reason)..'. Its owner is retained.',
    '鍛冶炉の後片付け待ちです（'..(({queued='解除要求済み',pending='完了待ち',busy='処理中',retained='一括解除で再試行',executing='実行中',['owned recipes remain']='残りのレシピを処理中'})[reason]or tostring(reason))..'）。所有情報を保持しています。')
  baseMaterials.off()
end
-- Capacity grows only from the native registration event. No idle CE task.
integrated.task=baseMaterials.task
integrated.baseMaterials=baseMaterials
ASKA.F.noCraftMaterials=integrated

end

do
-- Reuse the reference-style item list and exact independent game EN/JA labels.
-- This defines an explicit action; there is no background operation/catalog scan.
local manualJob
local manualSelection
local function clearSelection(selection)
  if manualSelection==selection then manualSelection=nil end
end
local materials=ASKA.F and ASKA.F.noCraftMaterials
if materials and materials.off then
  local off=materials.off
  materials.off=function(...)manualSelection=nil;return off(...)end
end
if ASKA.cancelDeferred then
  local cancel=ASKA.cancelDeferred
  ASKA.cancelDeferred=function(...)manualSelection=nil;return cancel(...)end
end
local function stopManualJob(job)
  if ASKA.deferred[job.timer]then
    ASKA.deferred[job.timer]=nil
    job.timer.Enabled=false;job.timer.OnTimer=nil;job.timer.destroy()
  end
  if manualJob==job then manualJob=nil end
end
local function watchManualRequest(manager,sequence)
  local job={epoch=ASKA.epoch,sequence=sequence,timer=createTimer(nil,false)}
  manualJob=job;ASKA.deferred[job.timer]=true;job.timer.Interval=200
  job.timer.OnTimer=function()
    if not ASKA.deferred[job.timer]then return end
    if ASKA.epoch~=job.epoch or ASKA.disarming or not ASKA.active.noCraftMaterials or not manager.current then stopManualJob(job);return end
    local ok,status=pcall(manager.manualStatus)
    if not ok then stopManualJob(job);ASKA.msg(tostring(status),tostring(status));return end
    if status.sequence~=job.sequence then stopManualJob(job);return end
    if status.state==1 or status.state==2 then return end
    stopManualJob(job)
    local messages={
      [3]={'Recipe registered.','レシピを登録しました。'},
      [4]={'The equipment is busy. Try again when it is ready.','設備が使用中です。空いてから再度選択してください。'},
      [5]={'The recipe could not be started.','レシピを開始できませんでした。'},
      [6]={'No active cooking or forging operation.','操作中の調理設備・鍛冶炉がありません。'},
      [7]={'The manual operation changed.','手動操作の対象が変わりました。'},
      [8]={'Recipe references are retained; the request was not reused.','レシピの参照を保持しているため、要求を再利用しませんでした。'},
      [9]={'Recipe request cancelled.','製作要求を取り消しました。'},
    }
    local message=messages[status.state]
    if message then ASKA.msg(message[1],message[2])end
  end
  job.timer.Enabled=true
end
function ASKA.manualCrafting()
  ASKA.require()
  need(ASKA.active.noCraftMaterials,'Enable material-free crafting first.','先に「作成にアイテム必要なし」を有効にしてください。')
  need(not(type(ASKA.active.noCraftMaterials)=='table'and ASKA.active.noCraftMaterials.cleanup),
    'Material-free crafting is being disabled.','素材不要機能の解除処理中です。')
  if manualSelection and not manualSelection.valid()then manualSelection=nil end
  need(not manualSelection,'A recipe selection is already pending.','前の製作品の選択処理が進行中です。')
  if manualJob and not ASKA.deferred[manualJob.timer]then manualJob=nil end
  need(not manualJob,'A recipe request is pending.','前の製作要求の結果待ちです。')
  local manager=need(ASKA.forgeRuntimeManager,'Manual crafting is unavailable.','手動製作の準備ができていません。')
  local captured,reason=manager.manualCurrent()
  if reason=='ambiguous'then
    need(false,'More than one manual operation is active. Finish the other operation first.',
      '複数の手動操作が実行中です。他の操作を終了してください。')
  end
  need(captured,'Start using a cooking station or forge first.','調理設備または鍛冶炉の操作を開始してください。')
  local epoch=ASKA.epoch
  local selection={}
  local function valid()
    if manualSelection~=selection or ASKA.disarming or ASKA.epoch~=epoch or not ASKA.active.noCraftMaterials
      or(type(ASKA.active.noCraftMaterials)=='table'and ASKA.active.noCraftMaterials.cleanup)then return false end
    local ok,current=pcall(manager.manualCurrent)
    return ok and current and current.token==captured.token and current.identity==captured.identity
      and current.session==captured.session and current.interaction==captured.interaction and current.cookie==captured.cookie
  end
  selection.valid=valid;manualSelection=selection
  local function choose(_,lookup)
    need(valid(),'The manual operation changed.','手動操作の対象が変わりました。')
    local snapshot=manager.manualSnapshot(function(info,kind)
      local label=lookup[info]
      need(kind=='item'and label,'Recipe names are unavailable.','製作品の英日名を取得できません。')
      return label.en,label.ja
    end)
    need(#snapshot.records&gt;0,'No supported recipes are available at this equipment.','この設備で素材なし製作できるレシピがありません。')
    local rows={}
    for index,recipe in ipairs(snapshot.records)do rows[index]={ASKA.T(recipe.en,recipe.ja),recipe.id}end
    local selected=ASKA.chooseInventoryRow(ASKA.T('Manual cooking / forging','手動調理・鍛冶'),
      {ASKA.T('Recipe','製作品'),'ID'},rows,false)
    if not selected then return end
    need(valid(),'The manual operation changed while choosing.','選択中に手動操作の対象が変わりました。')
    local recipe=need(snapshot.records[selected],'Selected recipe is unavailable.','選択した製作品がありません。')
    local inputCount
    if recipe.requiresCount then
      local value=inputQuery(ASKA.T('Manual cooking / forging','手動調理・鍛冶'),
        ASKA.T('Ingredient quantity (not output quantity)','投入する食材の個数（完成品の個数ではありません）'),'1')
      if value==nil then return end
      inputCount=tonumber(value)
      need(inputCount and inputCount==math.floor(inputCount) and inputCount&gt;=1 and inputCount&lt;=0x7FFFFFFF,
        'Enter an ingredient quantity from 1 to 2147483647.','食材の個数は1～2147483647の整数を入力してください。')
      need(valid(),'The manual operation changed while entering quantity.','個数の入力中に手動操作の対象が変わりました。')
    end
    local sequence=manager.manualSubmit(snapshot,recipe.id,recipe.cookie,inputCount)
    watchManualRequest(manager,sequence)
    ASKA.msg(('Recipe request %d queued.'):format(sequence),('製作要求%dを送信しました。'):format(sequence))
  end
  local ok,reason=pcall(ASKA.withItemCatalog,function(...)
    local picked,result=pcall(choose,...)
    clearSelection(selection)
    if not picked then error(result,0)end
  end,valid,function(failure)
    if manualSelection~=selection then return end
    clearSelection(selection);ASKA.msg(tostring(failure),tostring(failure))
  end)
  if not ok then clearSelection(selection);error(reason,0)end
end

end
-- Preserve the previous close handler and restore ASKA changes before exit.
local function installCloseGuard()
  local form = getMainForm()
  local previous = form.OnCloseQuery
  local shutdown = ASKA.shutdown
  local closing = false
  local function restoreBeforeClose(sender)
    if closing or ASKA.disarming or ASKA.inTick then return false end
    if previous and previous(sender) == false then return false end
    if ASKA.pid then
      closing = true
      local ok, reason = pcall(ASKA.shutdown)
      closing = false
      if not ok then
        ASKA.msg(tostring(reason), tostring(reason))
        return false
      end
    end
    return true
  end
  form.OnCloseQuery = restoreBeforeClose
  ASKA.shutdown = function()
    shutdown()
    if form.OnCloseQuery == restoreBeforeClose then form.OnCloseQuery = previous end
  end
end

if type(getMainForm) == 'function' then
  local ok, reason = pcall(installCloseGuard)
  if not ok then
    ASKA.msg('Could not enable restoration on close: '..tostring(reason),
      '終了時の自動復元を登録できません: '..tostring(reason))
  end
end

local useKey='preserveUsedItems'
local useInFlight=0x100

local function personalInventoryContext()
  local context=soloContext()
  if not context then return end
  local component=follow(context.player,0x268)
  local collection=follow(component,0x20)
  if not unityIdentity(component) or not collection or readBytes(collection+0x60,1)~=1 then return end
  context.collection=collection
  context.token=('%s:%X:%X'):format(context.token,component,collection)
  return context
end

local function preserveUseSite(rva,signature,collectionCallee)
  local original={table.unpack(signature,1,5)}
  local function makeCode(context,cave,entry)
    local restore=string.char(0x41,0x5B,0x9D)
    local result=collectionCallee and string.char(0x44,0x89,0xC0) or string.char(0xB8,1,0,0,0)
    local matched=restore..result
    local compareOwner=collectionCallee and string.char(0x4C,0x39,0xD9)
      or string.char(0x4C,0x39,0x59,0x28)
    local scope=string.char(0x49,0xBB)..string.pack('&lt;I8',context.collection)
      ..compareOwner..string.char(0x75,#matched+5)
    local compareItem=collectionCallee and ''
      or string.char(0x48,0x39,0x4A,0x10,0x75,#scope+#matched+5)
    local code=string.char(0x9C,0x41,0x53,0x48,0x85,0xD2,0x74,#compareItem+#scope+#matched+5)
      ..compareItem..scope..matched
    local continuation=entry+#original
    code=code..makeJump(cave+#code,continuation)..restore
    code=code..string.char(0xF0,0xFF,0x05)..string.pack('&lt;i4',useInFlight-#code-7)
    local call=makeJump(cave+#code,context.base+(collectionCallee or 0x3654750))
    code=code..string.char(0xE8)..call:sub(2)
    code=code..string.char(0xF0,0xFF,0x0D)..string.pack('&lt;i4',useInFlight-#code-7)
    code=code..makeJump(cave+#code,continuation)
    need(#code&lt;=useInFlight,'Item use code overlaps its activity counter.','アイテム処理と実行中カウンターが重なっています。')
    return code..string.rep('\0',useInFlight+4-#code)
  end
  return entryFeature(useKey,rva,original,signature,personalInventoryContext,makeCode,nil,nil,function(cave)
    need(readInteger(cave+useInFlight)==0,
      'An item operation is finishing. Retry cleanup.','アイテム操作の完了後に解除を再試行します。')
  end)
end

ASKA.F[useKey]=groupedEntryFeatures({
  preserveUseSite(0xDA1755,{0xE8,0xF6,0x2F,0x8B,0x02,0x48,0x8B,0x74,0x24,0x50,0xB0,0x01}),
  preserveUseSite(0xDA57DC,{0xE8,0x6F,0xEF,0x8A,0x02,0x48,0x8B,0x5C,0x24,0x60,0xB0,0x01}),
  preserveUseSite(0xDE5285,{0xE8,0xC6,0xF4,0x86,0x02,0x49,0x8B,0x06,0x48,0x85,0xC0}),
  preserveUseSite(0x129252E,{0xE8,0x1D,0x22,0x3C,0x02,0x44,0x39,0x63,0x30,0x75,0x0A}),
  preserveUseSite(0xC9F336,{0xE8,0x05,0xF2,0x9C,0x02,0x33,0xD2,0x48,0x8B,0xCB},0x366E540),
  preserveUseSite(0xC9F37E,{0xE8,0x1D,0xF3,0x9C,0x02,0x33,0xD2,0x48,0x8B,0xCB},0x366E6A0),
  preserveUseSite(0xC9F9B8,{0xE8,0x83,0xEB,0x9C,0x02,0x48,0x8B,0x0D,0x3C,0x77,0x0A,0x05},0x366E540),
  preserveUseSite(0xCC5938,{0xE8,0x63,0x8D,0x9A,0x02,0x49,0x8B,0x4D,0x48,0xC7,0x45,0x7F},0x366E6A0),
  preserveUseSite(0xB6A0A5,{0xE8,0xA6,0xA6,0xAE,0x02,0x48,0x81,0xC4,0x00,0x01,0x00,0x00,0x41,0x5F}),
  preserveUseSite(0xBB6134,{0xE8,0x67,0x85,0xAB,0x02,0xE9,0x12,0xFF,0xFF,0xFF,0x48,0x8B,0x15},0x366E6A0),
  preserveUseSite(0xB8E45A,{0xE8,0x41,0x02,0xAE,0x02,0xE9,0x1D,0xFF,0xFF,0xFF,0x48,0x8B,0x15},0x366E6A0),
  preserveUseSite(0xBC9DA8,{0xE8,0xF3,0x48,0xAA,0x02,0xE9,0x1E,0xFF,0xFF,0xFF,0x48,0x8B,0x15},0x366E6A0),
  preserveUseSite(0xBB61DD,{0xE8,0x6E,0xE5,0xA9,0x02,0x41,0x8B,0x84,0x24,0xD8,0x00,0x00,0x00}),
})

local steamBuild = {
  timestamp=0x619D3C79,size=0x4C000,
  app={0x1890,{72,139,1,72,255,96,72,204}},
  utils={0x3600,{72,131,236,40,72,141,13,37}},
  user={0x35E0,{72,131,236,40,72,141,13,21}},
  loggedOn={0x1820,{72,139,1,72,255,96,8,204}},
  stats={0x35C0,{72,131,236,40,72,141,13,13}},
  count={0x19B0,{72,139,1,72,255,96,112,204}},
  name={0x1900,{72,139,1,72,255,96,120,204}},
  get={0x1870,{72,139,1,72,255,96,48,204}},
  set={0x1860,{72,139,1,72,255,96,56,204}},
  store={0x1910,{72,139,1,72,255,96,80,204}},
}
local function steamExports()
  ASKA.require()
  local module
  for _,candidate in ipairs(enumModules(ASKA.pid) or {}) do
    if candidate.Name:lower()=='steam_api64.dll' then
      need(not module,'Multiple Steam API modules.','Steam API モジュールを一意に確認できません。')
      module=candidate
    end
  end
  need(module,'Steam API module unavailable.','Steam API モジュールを取得できません。')
  local pe=ASKA.pe(module)
  need(pe.ts==steamBuild.timestamp and pe.size==steamBuild.size,
    'Steam API build does not match.','Steam API のビルドが一致しません。')
  local address={}
  for key,entry in pairs(steamBuild) do
    if type(entry)=='table' then
      local target=module.Address+entry[1]
      need(equal(bytes(target,#entry[2]),entry[2]),
        'Steam API entry does not match.','Steam API の命令が一致しません。')
      address[key]=target
    end
  end
  return address
end

local function steamCall(address,...)
  return need(executeCodeEx(0,5000,address,...),'Steam API call failed.','Steam API の呼び出しに失敗しました。')
end

local function withSteamAchievements(action)
  local address=steamExports()
  local utils,user,stats=steamCall(address.utils),steamCall(address.user),steamCall(address.stats)
  need(utils~=0 and user~=0 and stats~=0 and steamCall(address.app,utils)==1898300
    and (steamCall(address.loggedOn,user)&amp;0xFF)==1,
    'ASKA Steam user stats are not ready.','ASKA の Steam 実績情報を取得できません。')
  local count=steamCall(address.count,stats)
  need(count&gt;0 and count&lt;=0xFFFFFFFF,'No Steam achievements reported.','Steam 実績一覧を取得できません。')
  local buffer=need(allocateMemory(8),'Cannot allocate Steam status buffer.','実績状態の領域を確保できません。')
  local function get(key)
    need(writeBytes(buffer,{0xFF})==1 and readBytes(buffer,1)==0xFF,
      'Cannot initialize Steam achievement status.','Steam 実績の状態を初期化できません。')
    local accepted=steamCall(address.get,stats,{type=3,value=key},buffer)
    local status=readBytes(buffer,1)
    need((accepted&amp;0xFF)==1 and (status==0 or status==1),
      'Cannot read Steam achievement: '..key,'Steam 実績を読み取れません: '..key)
    return status==1
  end
  local ok,result=pcall(function()
    local list,seen={},{}
    for i=0,count-1 do
      local pointer=steamCall(address.name,stats,{type=0,value=i})
      local key=pointer~=0 and readString(pointer,256)
      need(key and key~='' and not seen[key],'Invalid Steam achievement name.','Steam 実績名が不正です。')
      seen[key]=true
      list[#list+1]={key=key,unlocked=get(key)}
    end
    return action(list,address,stats,get)
  end)
  deAlloc(buffer)
  if not ok then error(result,0) end
  return result
end

function ASKA.readSteamAchievements()
  return withSteamAchievements(function(list) return list end)
end

function ASKA.unlockSteamAchievements()
  withSteamAchievements(function(list,address,stats,get)
    local accepted,failed,unlocked,unreadable=0,0,0,0
    for _,row in ipairs(list) do
      if not row.unlocked then
        ASKA.require()
        local ok,result=pcall(steamCall,address.set,stats,{type=3,value=row.key})
        if ok and (result&amp;0xFF)==1 then
          accepted=accepted+1
        else
          failed=failed+1
          ASKA.msg('Unlock failed: '..row.key,'解除に失敗: '..row.key)
        end
      end
    end
    if accepted&gt;0 then
      ASKA.require()
      local ok,result=pcall(steamCall,address.store,stats)
      if not ok or (result&amp;0xFF)~=1 then
        ASKA.msg('Steam did not accept the save request.','Steam が保存要求を受理しませんでした。')
      end
    end
    for _,row in ipairs(list) do
      local ok,status=pcall(get,row.key)
      if ok and status then unlocked=unlocked+1 end
      if not ok then unreadable=unreadable+1 end
    end
    ASKA.msg(('Steam client: %d/%d unlocked; %d newly accepted; %d failed.'):format(unlocked,#list,accepted,failed),
      ('Steam クライアント: %d/%d 件解除済み、今回の受理 %d 件、失敗 %d 件。'):format(unlocked,#list,accepted,failed))
    if unreadable&gt;0 then
      ASKA.msg(('Steam client status could not be read for %d achievements.'):format(unreadable),
        ('Steam クライアントで %d 件の実績状態を確認できませんでした。'):format(unreadable))
    end
  end)
end

local function registerFeatureBundle(key, children, createEditor)
  local destroyEditor
  local function childBoundary()
    local tokens={}
    for i,child in ipairs(children) do
      tokens[i]=tostring(ASKA.featureBoundary(ASKA.F[child]))
    end
    return table.concat(tokens,'|')
  end

  ASKA.F[key]={
    children=children,
    boundary=childBoundary,
    on=function()
      for _,child in ipairs(children) do ASKA.feature(child,true) end
      if createEditor then destroyEditor=createEditor() end
    end,
    off=function()
      local errors={}
      for i=#children,1,-1 do
        local ok,reason=pcall(ASKA.feature,children[i],false)
        if not ok then errors[#errors+1]=tostring(reason) end
      end
      if #errors&gt;0 then error(table.concat(errors,' / '),0) end
      if destroyEditor then destroyEditor(); destroyEditor=nil end
    end,
  }
end

-- Value-change handling follows the reference configureMultiplier callback.
local multiplierValues={}
local function inlineMultiplier(parentId,en,ja,readValue,liveAddress,rememberValue,minimum,maximum)
  local parent=need(getAddressList().getMemoryRecordByID(parentId),
    'Multiplier record unavailable.','倍率の編集行を作成できません。')
  local slot,editAddress=ASKA.allocSlot()
  local row,record
  local address,epoch,key=liveAddress,ASKA.epoch,parentId..':'..en
  multiplierValues[key]=readValue()
  local function remove()
    if row then
      local id=row;row=nil
      local current=getAddressList().getMemoryRecordByID(id)
      if ASKA.dynamic[id] and current then
        current.OnValueChangedByUser=nil
        current.OnActivate=nil
        current.destroy()
      end
      ASKA.dynamic[id]=nil
    end
    if ASKA.slots then ASKA.slots[slot]=nil end
  end
  local ok,err=pcall(function()
    need(writeFloat(editAddress,multiplierValues[key]),'Cannot initialize multiplier.','倍率を初期化できません。')
    record=getAddressList().createMemoryRecord();row=record.ID
    record.Type=vtSingle
    record.Address=('%X'):format(editAddress)
    record.Description=ASKA.T(en,ja)
    record.appendToEntry(parent)
    ASKA.track(record,en,ja)
    record.OnActivate=function(_,before)return not before end
    local id=record.ID
    -- Reference: Survivalist Invisible Strain.CT:5697
      record.OnValueChangedByUser=function()
        if row~=id or not ASKA.dynamic[id] or epoch~=ASKA.epoch then return end
        local v=readFloat(editAddress)
        if type(v)~='number' or not (v&gt;=minimum and v&lt;=maximum) then
          writeFloat(editAddress,multiplierValues[key] or 1)
          ASKA.msg(('Enter a multiplier from %g to %g.'):format(minimum,maximum),
            ('倍率は%g～%gの範囲で入力してください。'):format(minimum,maximum))
          return
        end
        if writeFloat(address,v) then
          multiplierValues[key]=v;rememberValue(v)
        else
          writeFloat(editAddress,multiplierValues[key] or 1)
          ASKA.msg("Could not apply multiplier.","倍率を反映できませんでした。")
        end
      end

    parent.Collapsed=false
  end)
  if not ok then remove();error(err,0)end
  return remove
end

local function createXpMultiplierRow()
  return inlineMultiplier(117,'Multiplier','倍率',function() return xpFactor end,
    ASKA.F.xpMultiplier.memberControl()+40,function(value)
    xpFactor=value
  end,0,3.4028234663852886e38)
end

local function createMovementMultiplierRows()
  local removeSpeed=inlineMultiplier(258,'Movement speed','移動速度倍率',function()
    return speedMultiplier
  end,ASKA.F.speedMultiplier.memberControl(),function(value)
    speedMultiplier=value
  end,0,3.4028234663852886e38)
  local ok,removeJump=pcall(inlineMultiplier,258,'Jump','ジャンプ倍率',function()
    return jumpMultiplier
  end,ASKA.F.jumpMultiplier.memberControl(),function(value)
    jumpMultiplier=value
  end,0.1,10)
  if not ok then removeSpeed(); error(removeJump,0) end
  return function()
    removeJump()
    removeSpeed()
  end
end

function ASKA.configureAndToggleRecord(record,key,configure)
  ASKA.defer(function()
    if not record.Active then return end
    local ok,accepted=ASKA.userRun(configure)
    if ok and accepted then
      ASKA.toggleRecord(record,key,true)
    else
      record.Active=false
    end
  end)
end

registerFeatureBundle('bundle116', {'noAmmoUse','noRangedWeaponWear'}, nil)
registerFeatureBundle('bundle117', {'xpMultiplier'}, createXpMultiplierRow)
registerFeatureBundle('bundle118', {'maxMemberHappiness','maxMemberComfort'}, nil)
registerFeatureBundle('bundle258', {'speedMultiplier','jumpMultiplier'}, createMovementMultiplierRows)
registerFeatureBundle('bundle308', {'noCombatEquipmentWear','noTimedItemDecay'}, nil)
registerFeatureBundle('bundle410', {'noCraftMaterials'}, nil)
do
  local key='ignoreConstructionPrerequisites'
  local checks={0xB4CDDF,0x111853D,0x117E6DD,0x11265BD}
  local messages={0x1118565,0x117E705,0x11265E5}

  local function conditionalJump(code,cave,opcode,target)
    return code..string.char(0x0F,opcode)..makeJump(cave+#code+1,target):sub(2)
  end

  -- Match return addresses in the building unlock, preview and upgrade callers.
  -- The shared rule methods also serve recipes and other progression systems.
  local function buildingCaller(context,cave,offset,callers,original)
    local code=''
    local match=cave+#callers*21+original
    for _,rva in ipairs(callers) do
      code=code.."\x49\xBB"..string.pack('&lt;I8',context.base+rva) -- mov r11, caller
      code=code.."\x4C\x39\x5C\x24"..string.char(offset) -- cmp [rsp+offset], r11
      code=conditionalJump(code,cave,0x84,match)
    end
    return code
  end

  local function conditionsCode(context,cave,entry)
    -- CheckWithData has a 0x28-byte frame at its call to get_Fulfilled.
    -- Keep the three checks after requiredStructuresFulfilled.
    local code=buildingCaller(context,cave,0x28,checks,10)
    local required="\x80\x79\x10\x00" -- cmp byte ptr [rcx+10h],0
    local remaining="\x80\x79\x11\x00\x74\x0F\x80\x79\x12\x00\x74\x09\x0F\xB6\x41\x13"
    local success=entry+5
    local failed=cave+#code+10+#remaining+5
    code=conditionalJump(code..required,cave,0x84,failed)..remaining
    return code..makeJump(cave+#code,success).."\x31\xC0"..makeJump(failed+2,success)
  end

  local function messagesCode(context,cave,entry)
    -- GetRemainingConditionsAsText's frame is 0x58 bytes. Save r11 because
    -- this detour sits inside that function rather than at a call boundary.
    local prefix="\x41\x53"
    local body=cave+#prefix
    local skip=context.base+0xDA0389
    local code=buildingCaller(context,body,0x60,messages,17)
    code=code.."\x41\x5B\x40\x38\x69\x10" -- pop r11; cmp [rcx+10h],bpl
    code=conditionalJump(code,body,0x85,skip)
    code=code..makeJump(body+#code,entry+10).."\x41\x5B"
    return prefix..code..makeJump(body+#code,skip)
  end

  local conditions={0xE8,0x89,0x3F,0xFE,0xFF,0x48,0x8B,0x5C,0x24,0x38,0x48,0x8B,0x74,0x24,0x40,0x48}
  local text={0x40,0x38,0x69,0x10,0x0F,0x85,0x2D,0x02,0,0,0x41,0xB4,0x01,0x48,0x85,0xF6}
  ASKA.F[key]=groupedEntryFeatures({
    entryFeature(key,0xD9FEA2,{table.unpack(conditions,1,5)},conditions,soloContext,conditionsCode),
    entryFeature(key,0xDA0152,{table.unpack(text,1,10)},text,soloContext,messagesCode,4),
  })
end

registerFeatureBundle('bundle411', {'instantCraft','instantBuild'}, nil)
registerFeatureBundle('bundle515', {'lockWeather'}, nil)
-- Check the attached process handle and its original PE directly.
-- Repeated feature checks must not enumerate every process and every module.
function ASKA.alive()
  if not ASKA.pid or getOpenedProcessID()~=ASKA.pid then return false end
  if ASKA.lifeHandle then
    local ok,result=pcall(executeCodeLocalEx,'kernel32.WaitForSingleObject',ASKA.lifeHandle,0)
    if not ok or result~=0x102 then return false end
  else
    local ok,processes=pcall(getProcesslist)
    if not ok or processes[ASKA.pid]~=ASKA.processName then return false end
  end
  local ok,valid=pcall(function()
    local dos=bytes(ASKA.mainBase,2)
    if not dos or dos[1]~=0x4D or dos[2]~=0x5A then return false end
    local offset=readInteger(ASKA.mainBase+0x3C)
    if not offset or offset&lt;64 or offset&gt;=0x100000 then return false end
    local header=ASKA.mainBase+offset
    return readInteger(header)==0x4550 and readInteger(header+8)==ASKA.mainPE.ts
      and readInteger(header+0x50)==ASKA.mainPE.size
  end)
  return ok and valid
end

-- Restore bundles before their children, retain failures, and reject partial success.
function ASKA.disableAll()
  ASKA.require()
  need(not ASKA.disarming,'Cleanup is already running.','一括解除を実行中です。')
  ASKA.disarming=true
  local ok,reason=pcall(function()
    ASKA.pickerGeneration=(ASKA.pickerGeneration or 0)+1
    local forms={}
    for form in pairs(ASKA.forms or {}) do forms[#forms+1]=form end
    for _,form in ipairs(forms) do
      if ASKA.forms[form] then form.ModalResult=2 end
    end
    ASKA.cancelDeferred()
    ASKA.queue={}
    local keys={}
    for key in pairs(ASKA.active) do keys[#keys+1]=key end
    table.sort(keys,function(a,b)
      local bundledA=ASKA.F[a].children~=nil
      local bundledB=ASKA.F[b].children~=nil
      if bundledA~=bundledB then return bundledA end
      return a&lt;b
    end)
    local errors={}
    for _,key in ipairs(keys) do
      if ASKA.active[key] and (key~='forgeRuntimeDispatch' or not ASKA.forgeInUse or not ASKA.forgeInUse()) then
        local restored,problem=pcall(ASKA.feature,key,false)
        if not restored then errors[#errors+1]=key..': '..tostring(problem) end
      end
    end
    local hooks={}
    for name in pairs(ASKA.hooks) do hooks[#hooks+1]=name end
    table.sort(hooks)
    for _,name in ipairs(hooks) do
      local used=false
      for key in pairs(ASKA.active) do
        for _,hook in ipairs(ASKA.F[key].hooks or {}) do if hook==name then used=true end end
      end
      if not used then
        local restored,problem=pcall(ASKA.hookOff,name)
        if not restored then errors[#errors+1]=name..': '..tostring(problem) end
      end
    end
    need(#errors==0,table.concat(errors,'\n'),table.concat(errors,'\n'))
    if ASKA.recoverNativeSites then ASKA.recoverNativeSites() end
    need(not next(ASKA.active) and not next(ASKA.hooks),
      'Cleanup is incomplete; state retained.','一括解除が完了していません。復元情報を保持しています。')
    local parents={}
    for _,session in pairs(ASKA.sessions) do parents[#parents+1]=session.parent end
    for _,parent in ipairs(parents) do ASKA.closeEditor(parent) end
    local list=getAddressList()
    -- Snapshot IDs: deactivation handlers may remove child records.
    local ids={}
    for index=0,list.Count-1 do
      local record=list.getMemoryRecord(index)
      if record.ID&gt;=100 and record.Active then ids[#ids+1]=record.ID end
    end
    for _,id in ipairs(ids) do
      local record=list.getMemoryRecordByID(id)
      if record then record.Active=false end
    end
    ASKA.history={}
  end)
  ASKA.disarming=false
  if not ok then error(reason,0) end
  ASKA.msg('All features are OFF.','全機能を解除しました。')
end

ASKA.BUILD.assembly.methods={{rva=0x3680700,bytes={72,131,236,40,128,61,252,91,153,2,0,117,19,72,141,13}},{rva=0x7C3370,bytes={72,139,65,48,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0x71C450,bytes={72,139,65,80,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0x6B48D0,bytes={15,182,65,96,195,204,204,204,204,204,204,204,204,204,204,204}},{rva=0xB46360,bytes={72,131,236,40,72,139,137,80,1,0,0,72,133,201,116,24}},{rva=0xB424C0,bytes={72,137,92,36,8,72,137,116,36,24,87,72,131,236,48,51}},{rva=0x3653DF0,bytes={72,137,92,36,32,86,87,65,86,72,131,236,48,128,61,0}},{rva=0x3654750,bytes={64,83,85,65,86,65,87,72,131,236,56,128,61,160,25,156}},{rva=0x36511E0,bytes={72,137,108,36,24,86,87,65,86,72,131,236,48,128,61,10}},{rva=0x3681580,bytes={72,137,92,36,8,87,72,131,236,32,128,61,238,76,153,2}},{rva=0x3658A10,bytes={72,137,92,36,16,87,72,131,236,32,128,61,14,215,155,2}},{rva=0x366AA00,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,48,128}},{rva=0x12635F0,bytes={72,137,92,36,32,85,72,141,108,36,169,72,129,236,240,0}},{rva=0x1266B20,bytes={64,83,72,131,236,64,128,61,8,62,218,4,0,72,139,217}},{rva=0x125EE60,bytes={64,85,83,65,84,65,87,72,141,172,36,120,255,255,255,72}},{rva=0x1267510,bytes={64,83,72,131,236,80,128,61,9,52,218,4,0,72,139,217}},{rva=0x1267670,bytes={64,85,83,72,141,108,36,152,72,129,236,104,1,0,0,128}},{rva=0x45F7DF0,bytes={64,83,72,131,236,32,128,61,103,173,162,1,0,72,139,217}},{rva=0x45F7F80,bytes={72,137,92,36,16,87,72,131,236,32,128,61,199,171,162,1}},{rva=0x45F93C0,bytes={72,137,92,36,16,86,72,131,236,32,128,61,136,151,162,1}},{rva=0xAA5510,bytes={64,83,72,131,236,32,128,61,186,25,86,5,0,72,139,217}},{rva=0xC1C4A0,bytes={64,83,72,131,236,80,128,61,99,180,62,5,0,72,139,217}},{rva=0xC1F710,bytes={64,83,72,131,236,80,128,61,246,129,62,5,0,72,139,217}},{rva=0xC1E670,bytes={72,139,196,72,137,88,16,72,137,72,8,86,87,65,84,65}},{rva=0x82BE90,bytes={72,139,129,168,0,0,0,195,204,204,204,204,204,204,204,204}},{rva=0xDCB100,bytes={72,137,92,36,16,87,72,131,236,32,128,61,140,211,35,5}},{rva=0xDCB810,bytes={64,83,72,131,236,32,72,139,194,72,139,217,72,139,145,96}},{rva=0xDC0360,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,32,128}},{rva=0xDF86D0,bytes={72,137,92,36,32,87,72,129,236,128,0,0,0,128,61,156}},{rva=0xDAA2D0,bytes={72,139,196,72,137,88,24,72,137,112,32,85,87,65,87,72}},{rva=0xC9A3A0,bytes={64,83,72,129,236,144,0,0,0,128,61,54,217,54,5,0}},{rva=0xBB5D60,bytes={72,139,196,72,137,80,16,72,137,72,8,83,86,87,65,84}},{rva=0xABE920,bytes={72,137,92,36,16,87,72,129,236,144,0,0,0,128,61,1}},{rva=0xBD03E0,bytes={72,137,92,36,8,87,72,131,236,32,72,139,129,8,1,0}},{rva=0xBD0650,bytes={72,137,92,36,8,87,72,131,236,32,128,61,192,112,67,5}},{rva=0xBD06E0,bytes={72,137,92,36,8,87,72,131,236,32,128,61,47,112,67,5}},{rva=0xE107C0,bytes={64,87,72,131,236,32,128,61,128,127,31,5,0,72,139,249}},{rva=0xDA15B0,bytes={64,83,85,87,72,131,236,48,128,61,50,110,38,5,0,72}},{rva=0xDA5690,bytes={72,137,92,36,24,87,72,131,236,64,128,61,109,45,38,5}},{rva=0x10A08A0,bytes={72,131,236,40,128,61,229,147,246,4,0,117,19,72,141,13}},{rva=0xC93560,bytes={64,85,83,86,87,72,141,108,36,193,72,129,236,152,0,0}},{rva=0x12AC920,bytes={72,137,92,36,8,87,72,131,236,32,128,61,224,225,213,4}},{rva=0x1291030,bytes={72,137,92,36,16,87,72,131,236,32,128,61,65,154,215,4}},{rva=0x12B9A30,bytes={72,137,92,36,24,87,72,129,236,144,0,0,0,128,61,3}},{rva=0x12B7A80,bytes={64,85,83,87,65,85,72,141,108,36,136,72,129,236,120,1}},{rva=0x12B4A40,bytes={72,131,236,40,72,139,65,32,72,133,192,116,33,72,131,184}},{rva=0x12B4B40,bytes={72,137,92,36,8,72,137,116,36,16,87,72,131,236,48,72}},{rva=0x847940,bytes={139,129,128,1,0,0,195,204,204,204,204,204,204,204,204,204}},{rva=0xF83C40,bytes={72,131,236,40,128,61,224,85,8,5,0,117,19,72,141,13}},{rva=0xF75B80,bytes={64,83,72,131,236,80,128,61,194,54,9,5,0,72,139,217}},{rva=0xF78400,bytes={64,87,65,85,72,129,236,168,0,0,0,128,61,80,14,9}},{rva=0xF84050,bytes={15,182,129,140,1,0,0,195,204,204,204,204,204,204,204,204}},{rva=0xF85060,bytes={136,145,140,1,0,0,195,204,204,204,204,204,204,204,204,204}},{rva=0x62AC90,bytes={233,75,52,250,255,204,204,204,204,204,204,204,204,204,204,204}},{rva=0x5CE0E0,bytes={72,137,92,36,8,72,137,108,36,16,72,137,116,36,24,87}}}
ASKA.NAMES = {
  [1] = {"[ATTACH / ALL OFF] Select and verify game","【アタッチ／一括解除】ゲームを選択・確認"},
  [2] = {"0. Settings","0. 設定"},
  [3] = {"Language / 言語設定","言語設定 / Language"},
  [4] = {"English (initial / default)","English（初期表示・既定）"},
  [5] = {"Japanese / 日本語","日本語（切替）"},
  [12] = {"Diagnostics","診断"},
  [13] = {"Lua Engine (ON = show / OFF = hide)","Lua Engine（ONで開く／OFFで閉じる）"},
  [14] = {"Validate requested resolvers (read only)","解決器を確認（読み取り）"},
  [15] = {"Environment / connection info","環境・接続情報"},
  [16] = {"Feature / resolver status","機能・解決状態"},
  [410] = {"Items editor (adapter required)","アイテムエディタ（ゲーム用実装が必要）"},
  [411] = {"Add items (categories / multiple / quantity; adapter required)...","アイテム追加（カテゴリ・複数選択・数量／ゲーム用実装が必要）..."},
  [600] = {"07. Other","07. その他"},
  [602] = {"Restore all","一括解除"},
  [603] = {"Restore and disconnect","解除して切断"},
  [100] = {"01. Gameplay","01. 便利機能"},
  [101] = {"Infinite health","体力無限"},
  [102] = {"Infinite stamina","スタミナ無限"},
  [103] = {"No hunger","空腹なし"},
  [113] = {"Invulnerability","無敵"},
  [114] = {"One-hit kill","一撃必殺"},
  [115] = {"Stealth mode","ステルスモード"},
  [104] = {"No thirst","喉乾かない"},
  [105] = {"Normal body temperature","体温正常"},
  [106] = {"Maximum member happiness","メンバーの幸福度最大"},
  [112] = {"Maximum member comfort","メンバーの快適度最大"},
  [107] = {"Apply enabled cheats to members","有効な便利機能をメンバーに適用"},
  [108] = {"No ammo consumption on firing","発射時に弾・矢を消費しない"},
  [109] = {"No ranged weapon wear from firing","発射時に弓・遠隔武器の耐久が減らない"},
  [110] = {"XP multiplier","経験値倍率"},
  [111] = {"Set XP multiplier","経験値倍率を設定"},
  [250] = {"02. Player and members","02. プレイヤー・メンバー"},

  [256] = {"Player editor","プレイヤーエディタ"},

  [257] = {"Member editor","メンバーエディタ"},
  [259] = {"Member list","メンバー一覧"},
  [251] = {"Jump multiplier","ジャンプ倍率"},
  [252] = {"Set jump multiplier","ジャンプ倍率を設定"},
  [253] = {"Movement speed multiplier","移動速度倍率"},
  [254] = {"Set movement speed multiplier","移動速度倍率を設定"},
  [255] = {"Hold Space to ascend","スペース長押しで浮上"},
  [300] = {"03. Items","03. アイテム"},
  [301] = {"No timed decay","鮮度・時間劣化なし"},
  [302] = {"No equipment wear","装備の耐久が減らない"},
  [306] = {"No item consumption","アイテムが減らない"},
  [307] = {"No settlement item consumption","集落のアイテムが減らない"},
  [304] = {"Edit item quantity","アイテム個数変更"},
  [305] = {"Add items by category","カテゴリ別アイテム追加"},
  [309] = {"Add all blueprints","全設計図追加"},
  [400] = {"04. Craft and build","04. クラフト・ビルド"},
  [401] = {"Instant crafting","即クラフト"},
  [402] = {"Crafting and building need no materials","クラフト・建築の素材不要"},
  [403] = {"Instant building","即ビルド"},
  [404] = {"No fuel required","燃料不要"},
  [405] = {"Gods' Favors without requirements","神々の寵愛を無条件で解放"},
  [406] = {"Apply edited Gods' Favors","神々の寵愛エディタの設定を適用"},
  [408] = {"Automatically work designated terraforming areas","大地改造の指定エリアを自動で耕す"},
  [417] = {"Clear natural obstacles and resources while terraforming","耕作と同時に地形・素材を破壊"},
  [413] = {"Instant Viking summoning (THE EYES OF ODIN)","ヴァイキング召喚を即完了（THE EYES OF ODIN）"},
  [414] = {"House housing points table","家の住宅ポイント表"},
  [415] = {"Furniture housing points table","家具の住宅ポイント表"},
  [416] = {"Ignore construction prerequisites","建設要件無視"},
  [407] = {"Gods' Favors editor","神々の寵愛エディタ"},
  [409] = {"Choose a manual cooking / forging recipe","手動調理・鍛冶の製作品を選ぶ"},
  [500] = {"05. World","05. ワールド"},
  [510] = {"Freeze time","時刻を固定"},
  [511] = {"Suppress Blood Moon","ブラッドムーン抑制"},
  [512] = {"Always daytime (12:00)","常に昼（12:00）"},
  [513] = {"Lock weather","天候を固定"},
  [514] = {"Choose weather","天候を指定"},
  [116] = {"Unlimited ammo and bow durability","弾・弓減らない"},
  [117] = {"XP multiplier","経験値倍率操作"},
  [118] = {"Maximum member happiness and comfort","メンバーの幸福度・快適度最大"},
  [258] = {"Movement and jump multipliers","移動速度・ジャンプ倍率操作"},
  [308] = {"Prevent wear and freshness loss","耐久・鮮度減らない"},
  [410] = {"Material-free crafting","作成にアイテム必要なし"},
  [411] = {"Instant craft and build","即クラフト・ビルド"},
  [412] = {"Gods' Favors editor","神々の寵愛エディタ"},
  [515] = {"Choose and lock weather","天気指定・固定"},
  [516] = {"Reveal world map","MAP全開放"},
  [601] = {"Unlock all Steam achievements","Steam実績全解除"},
}

----------------------------------------------------------------- startup
ASKA.initCollapse()
ASKA.applyLang()
</LuaScript>
</CheatTable>
