"""The settings defaults, from the handler's own constructor.

FUN_18014e590 (the /settings body parser) writes the flag struct at object+0x28.
FUN_18014e2d0 sits in the same code region and is the sub-object constructor the
FutDataManagerImpl ctor invokes for that slot, so it should initialise those
fields. Byte offset of flag-table field N is 0x28 + N*4:

  0x50 tradingEnabled[10]        0x54 storeEnabled[0xb]  <- CONTROL, works today
  0x80 friendlySeasonsEnabled[0x16]   0x84 enableDraftMode[0x17]
  0x88 offline/singleplayer draft[0x18]   0x98 enableObjectives[0x1c]
"""
for va in (0x18014E2D0, 0x18014E590):
    f = func(va)
    src = dec(va)
    print("=" * 78)
    print("%#x  body %d bytes / decompile %d chars (printed in full)"
          % (va, f.getBody().getNumAddresses(), len(src)))
    print("=" * 78)
    print(src)
