{"type": "func", "start": 4296633072, "end": 4296633807, "name": "EffectGameObject::customSetup", "pseudocode": "// \n// EffectGameObject::customSetup from 0x100196af0 to 0x100196dcf (735 bytes)\n// \n// 38 xrefs:\n// > EnterEffectObject::customSetup @ 0x100196a69\n// > ShaderGameObject::customSetup @ 0x10019d339\n// > ItemTriggerGameObject::customSetup @ 0x1001e52e9\n// > <???> @ 0x1008c4d80\n// > <???> @ 0x1008c5578\n// > <???> @ 0x1008c5d70\n// > <???> @ 0x1008c6568\n// > <???> @ 0x1008c6d60\n// > <???> @ 0x1008c7558\n// > <???> @ 0x1008c95c0\n// > <???> @ 0x1008c9dd0\n// > <???> @ 0x1008ca5e0\n// > <???> @ 0x1008cb600\n// > <???> @ 0x1008cc620\n// > <???> @ 0x1008cce30\n// > <???> @ 0x1008cd640\n// > <???> @ 0x1008cde50\n// > <???> @ 0x1008ce678\n// > <???> @ 0x1008ceed0\n// > <???> @ 0x1008cf6f8\n// > <???> @ 0x1008cff20\n// > <???> @ 0x1008d0748\n// > <???> @ 0x1008d0f70\n// > <???> @ 0x1008d1780\n// > <???> @ 0x1008d1f90\n// > <???> @ 0x1008d27a0\n// > <???> @ 0x1008d2fb0\n// > <???> @ 0x1008d37c0\n// > <???> @ 0x1008d3fd0\n// > <???> @ 0x1008d4ff0\n// > <???> @ 0x1008d5800\n// > <???> @ 0x1008d6010\n// > <???> @ 0x1008d6820\n// > <???> @ 0x1008d7030\n// > <???> @ 0x1008d7840\n// > <???> @ 0x1008d8050\n// > <???> @ 0x1008d8860\n// > <???> @ 0x1008d9070\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EffectGameObject::customSetup(EffectGameObject *a1)\n{\n  __int64 v1; // rax\n  int m_objectID; // eax\n  GameManager *v3; // rax\n  bool v4; // cl\n  unsigned int v5; // eax\n  int v6; // edx\n  unsigned __int64 v7; // rdx\n  __int64 v8; // rsi\n  int v9; // [rsp+0h] [rbp-Ch] BYREF\n\n  v9 = HIDWORD(v1);\n  EnhancedGameObject::customSetup(a1);\n  m_objectID = a1->m_objectID;\n  if ( m_objectID > 899 )\n  {\n    if ( m_objectID > 1911 )\n    {\n      if ( m_objectID <= 3606 )\n      {\n        if ( m_objectID == 1912 )\n        {\n          a1->m_duration = 50.0;\n          v4 = 1;\n          goto LABEL_61;\n        }\n        if ( m_objectID == 2066 )\n        {\n          a1->m_gravityValue = 1.0;\n          goto LABEL_60;\n        }\n        goto LABEL_42;\n      }\n      switch ( m_objectID )\n      {\n        case 3607:\n          a1->m_isMultiTriggered = 1;\n          v4 = 1;\n          goto LABEL_61;\n        case 3640:\n          *(_WORD *)&a1->m_isTouchTriggered = 1;\n          a1->m_isMultiTriggered = 1;\n          break;\n        case 3643:\n          *(_WORD *)&a1->m_isTouchTriggered = 1;\n          break;\n        default:\n          goto LABEL_42;\n      }\n      goto LABEL_41;\n    }\n    if ( m_objectID > 1328 )\n    {\n      if ( m_objectID == 1329 )\n      {\n        a1->m_objectType = Collectible|0x1;\n        a1->m_defaultZOrder = 9;\n        if ( !a1->m_editorEnabled )\n        {\n          v3 = GameManager::sharedState();\n          if ( v3->m_playLayer->m_level->m_coinsVerified.random == v3->m_playLayer->m_level->m_coinsVerified.seed\n            && GameManager::sharedState()->m_playLayer->m_level->m_levelType != Editor )\n          {\n            BYTE2(v9) = 75;\n            LOWORD(v9) = -20481;\n            ((void (__fastcall *)(EffectGameObject *, int *))a1->setObjectColor)(a1, &v9);\n          }\n        }\n        a1->m_isObjectBlack = 1;\nLABEL_40:\n        GameObject::setDefaultMainColorMode(a1, 0);\n        a1->m_hasCustomAnimation = 1;\n        goto LABEL_41;\n      }\n      if ( m_objectID != 1334 )\n        goto LABEL_42;\n      goto LABEL_23;\n    }\n    if ( m_objectID != 900 )\n    {\n      if ( m_objectID != 915 )\n        goto LABEL_42;\n      a1->m_targetColor = 1002;\n      a1->m_usesBlending = 1;\n      goto LABEL_41;\n    }\n    a1->m_targetColor = 1009;\nLABEL_30:\n    a1->m_usesBlending = 0;\n    a1->m_opacity = 1.0;\n    goto LABEL_41;\n  }\n  if ( m_objectID <= 141 )\n  {\n    switch ( m_objectID )\n    {\n      case 29:\n        a1->m_targetColor = 1000;\n        break;\n      case 30:\n        a1->m_targetColor = 1001;\n        break;\n      case 105:\n        a1->m_targetColor = 1004;\n        break;\n      default:\n        goto LABEL_42;\n    }\n    goto LABEL_30;\n  }\n  if ( (unsigned int)(m_objectID - 200) >= 4 )\n  {\n    if ( m_objectID != 142 )\n    {\n      if ( m_objectID == 744 )\n      {\n        a1->m_targetColor = 1003;\nLABEL_60:\n        v4 = a1->m_objectType == Collectible;\n        goto LABEL_61;\n      }\n      goto LABEL_42;\n    }\n    a1->m_objectType = SecretCoin;\n    a1->m_defaultZOrder = 9;\n    goto LABEL_40;\n  }\nLABEL_23:\n  a1->m_isTouchTriggered = 1;\nLABEL_41:\n  m_objectID = a1->m_objectID;\nLABEL_42:\n  v4 = 1;\n  if ( m_objectID > 2062 )\n  {\n    v7 = (unsigned int)(m_objectID - 3604);\n    if ( (unsigned int)v7 > 0x27 || (v8 = 0x9000010029LL, !_bittest64(&v8, v7)) )\n    {\n      if ( m_objectID != 2063 && m_objectID != 2068 )\n        goto LABEL_60;\n    }\n  }\n  else if ( m_objectID <= 1593 )\n  {\n    if ( m_objectID != 142 && m_objectID != 1268 && m_objectID != 1329 )\n      goto LABEL_60;\n  }\n  else if ( m_objectID > 1810 )\n  {\n    if ( m_objectID != 1811 && m_objectID != 1815 && m_objectID != 1912 )\n      goto LABEL_60;\n  }\n  else\n  {\n    v5 = m_objectID - 1594;\n    if ( v5 > 0x11 )\n      goto LABEL_60;\n    v6 = 131075;\n    if ( !_bittest(&v6, v5) )\n      goto LABEL_60;\n  }\nLABEL_61:\n  a1->m_canSpawnTriggers = v4;\n}", "assembly": "; \n; EffectGameObject::customSetup from 0x100196af0 to 0x100196dcf (735 bytes)\n; \n; 38 xrefs:\n; > EnterEffectObject::customSetup @ 0x100196a69\n; > ShaderGameObject::customSetup @ 0x10019d339\n; > ItemTriggerGameObject::customSetup @ 0x1001e52e9\n; > <???> @ 0x1008c4d80\n; > <???> @ 0x1008c5578\n; > <???> @ 0x1008c5d70\n; > <???> @ 0x1008c6568\n; > <???> @ 0x1008c6d60\n; > <???> @ 0x1008c7558\n; > <???> @ 0x1008c95c0\n; > <???> @ 0x1008c9dd0\n; > <???> @ 0x1008ca5e0\n; > <???> @ 0x1008cb600\n; > <???> @ 0x1008cc620\n; > <???> @ 0x1008cce30\n; > <???> @ 0x1008cd640\n; > <???> @ 0x1008cde50\n; > <???> @ 0x1008ce678\n; > <???> @ 0x1008ceed0\n; > <???> @ 0x1008cf6f8\n; > <???> @ 0x1008cff20\n; > <???> @ 0x1008d0748\n; > <???> @ 0x1008d0f70\n; > <???> @ 0x1008d1780\n; > <???> @ 0x1008d1f90\n; > <???> @ 0x1008d27a0\n; > <???> @ 0x1008d2fb0\n; > <???> @ 0x1008d37c0\n; > <???> @ 0x1008d3fd0\n; > <???> @ 0x1008d4ff0\n; > <???> @ 0x1008d5800\n; > <???> @ 0x1008d6010\n; > <???> @ 0x1008d6820\n; > <???> @ 0x1008d7030\n; > <???> @ 0x1008d7840\n; > <???> @ 0x1008d8050\n; > <???> @ 0x1008d8860\n; > <???> @ 0x1008d9070\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100196af0\nmov     rbp, rsp                                                       ; +0x1, 0x100196af1\npush    rbx                                                            ; +0x4, 0x100196af4\npush    rax                                                            ; +0x5, 0x100196af5\nmov     rbx, rdi                                                       ; +0x6, 0x100196af6\ncall    EnhancedGameObject__customSetup                                ; +0x9, 0x100196af9\nmov     eax, [rbx+404h]                                                ; +0xe, 0x100196afe\ncmp     eax, 383h                                                      ; +0x14, 0x100196b04\njg      short loc_100196B46                                            ; +0x19, 0x100196b09\ncmp     eax, 8Dh                                                       ; +0x1b, 0x100196b0b\njle     short loc_100196B87                                            ; +0x20, 0x100196b10\nlea     ecx, [rax-0C8h]                                                ; +0x22, 0x100196b12\ncmp     ecx, 4                                                         ; +0x28, 0x100196b18\njb      loc_100196BF2                                                  ; +0x2b, 0x100196b1b\ncmp     eax, 8Eh                                                       ; +0x31, 0x100196b21\njz      loc_100196D09                                                  ; +0x36, 0x100196b26\ncmp     eax, 2E8h                                                      ; +0x3c, 0x100196b2c\njnz     loc_100196D34                                                  ; +0x41, 0x100196b31\nmov     dword ptr [rbx+400h], 3EBh                                     ; +0x47, 0x100196b37\njmp     loc_100196DB8                                                  ; +0x51, 0x100196b41\ncmp     eax, 777h                                                      ; +0x56, 0x100196b46\njle     short loc_100196BB1                                            ; +0x5b, 0x100196b4b\ncmp     eax, 0E16h                                                     ; +0x5d, 0x100196b4d\njle     loc_100196BFE                                                  ; +0x62, 0x100196b52\ncmp     eax, 0E17h                                                     ; +0x68, 0x100196b58\njz      loc_100196CEA                                                  ; +0x6d, 0x100196b5d\ncmp     eax, 0E38h                                                     ; +0x73, 0x100196b63\njz      loc_100196CD8                                                  ; +0x78, 0x100196b68\ncmp     eax, 0E3Bh                                                     ; +0x7e, 0x100196b6e\njnz     loc_100196D34                                                  ; +0x83, 0x100196b73\nmov     word ptr [rbx+5C0h], 1                                         ; +0x89, 0x100196b79\njmp     loc_100196D2E                                                  ; +0x92, 0x100196b82\ncmp     eax, 1Dh                                                       ; +0x97, 0x100196b87\njz      loc_100196C23                                                  ; +0x9a, 0x100196b8a\ncmp     eax, 1Eh                                                       ; +0xa0, 0x100196b90\njz      loc_100196C2F                                                  ; +0xa3, 0x100196b93\ncmp     eax, 69h ; 'i'                                                 ; +0xa9, 0x100196b99\njnz     loc_100196D34                                                  ; +0xac, 0x100196b9c\nmov     dword ptr [rbx+400h], 3ECh                                     ; +0xb2, 0x100196ba2\njmp     loc_100196C45                                                  ; +0xbc, 0x100196bac\ncmp     eax, 530h                                                      ; +0xc1, 0x100196bb1\njg      short loc_100196BE0                                            ; +0xc6, 0x100196bb6\ncmp     eax, 384h                                                      ; +0xc8, 0x100196bb8\njz      short loc_100196C3B                                            ; +0xcd, 0x100196bbd\ncmp     eax, 393h                                                      ; +0xcf, 0x100196bbf\njnz     loc_100196D34                                                  ; +0xd4, 0x100196bc4\nmov     dword ptr [rbx+400h], 3EAh                                     ; +0xda, 0x100196bca\nmov     byte ptr [rbx+5CFh], 1                                         ; +0xe4, 0x100196bd4\njmp     loc_100196D2E                                                  ; +0xeb, 0x100196bdb\ncmp     eax, 531h                                                      ; +0xf0, 0x100196be0\njz      short loc_100196C5B                                            ; +0xf5, 0x100196be5\ncmp     eax, 536h                                                      ; +0xf7, 0x100196be7\njnz     loc_100196D34                                                  ; +0xfc, 0x100196bec\nmov     byte ptr [rbx+5C0h], 1                                         ; +0x102, 0x100196bf2\njmp     loc_100196D2E                                                  ; +0x109, 0x100196bf9\ncmp     eax, 778h                                                      ; +0x10e, 0x100196bfe\njz      loc_100196CF8                                                  ; +0x113, 0x100196c03\ncmp     eax, 812h                                                      ; +0x119, 0x100196c09\njnz     loc_100196D34                                                  ; +0x11e, 0x100196c0e\nmov     dword ptr [rbx+6C8h], 3F800000h                                ; +0x124, 0x100196c14\njmp     loc_100196DB8                                                  ; +0x12e, 0x100196c1e\nmov     dword ptr [rbx+400h], 3E8h                                     ; +0x133, 0x100196c23\njmp     short loc_100196C45                                            ; +0x13d, 0x100196c2d\nmov     dword ptr [rbx+400h], 3E9h                                     ; +0x13f, 0x100196c2f\njmp     short loc_100196C45                                            ; +0x149, 0x100196c39\nmov     dword ptr [rbx+400h], 3F1h                                     ; +0x14b, 0x100196c3b\nmov     byte ptr [rbx+5CFh], 0                                         ; +0x155, 0x100196c45\nmov     dword ptr [rbx+5B0h], 3F800000h                                ; +0x15c, 0x100196c4c\njmp     loc_100196D2E                                                  ; +0x166, 0x100196c56\nmov     dword ptr [rbx+398h], 1Fh                                      ; +0x16b, 0x100196c5b\nmov     dword ptr [rbx+418h], 9                                        ; +0x175, 0x100196c65\ncmp     byte ptr [rbx+289h], 0                                         ; +0x17f, 0x100196c6f\njnz     short loc_100196CCF                                            ; +0x186, 0x100196c76\ncall    GameManager__sharedState                                       ; +0x188, 0x100196c78\nmov     rax, [rax+1F8h]                                                ; +0x18d, 0x100196c7d\nmov     rax, [rax+790h]                                                ; +0x194, 0x100196c84\nmov     ecx, [rax+354h]                                                ; +0x19b, 0x100196c8b\ncmp     ecx, [rax+358h]                                                ; +0x1a1, 0x100196c91\njnz     short loc_100196CCF                                            ; +0x1a7, 0x100196c97\ncall    GameManager__sharedState                                       ; +0x1a9, 0x100196c99\nmov     rax, [rax+1F8h]                                                ; +0x1ae, 0x100196c9e\nmov     rax, [rax+790h]                                                ; +0x1b5, 0x100196ca5\ncmp     dword ptr [rax+404h], 2                                        ; +0x1bc, 0x100196cac\njz      short loc_100196CCF                                            ; +0x1c3, 0x100196cb3\nmov     [rbp+var_A], 4Bh ; 'K'                                         ; +0x1c5, 0x100196cb5\nmov     [rbp+var_C], 0AFFFh                                            ; +0x1c9, 0x100196cb9\nmov     rax, [rbx]                                                     ; +0x1cf, 0x100196cbf\nlea     rsi, [rbp+var_C]                                               ; +0x1d2, 0x100196cc2\nmov     rdi, rbx                                                       ; +0x1d6, 0x100196cc6\ncall    qword ptr [rax+5C8h]                                           ; +0x1d9, 0x100196cc9\nmov     byte ptr [rbx+281h], 1                                         ; +0x1df, 0x100196ccf\njmp     short loc_100196D1D                                            ; +0x1e6, 0x100196cd6\nmov     word ptr [rbx+5C0h], 1                                         ; +0x1e8, 0x100196cd8\nmov     byte ptr [rbx+680h], 1                                         ; +0x1f1, 0x100196ce1\njmp     short loc_100196D2E                                            ; +0x1f8, 0x100196ce8\nmov     byte ptr [rbx+680h], 1                                         ; +0x1fa, 0x100196cea\nmov     cl, 1                                                          ; +0x201, 0x100196cf1\njmp     loc_100196DC2                                                  ; +0x203, 0x100196cf3\nmov     dword ptr [rbx+5ACh], 42480000h                                ; +0x208, 0x100196cf8\nmov     cl, 1                                                          ; +0x212, 0x100196d02\njmp     loc_100196DC2                                                  ; +0x214, 0x100196d04\nmov     dword ptr [rbx+398h], 16h                                      ; +0x219, 0x100196d09\nmov     dword ptr [rbx+418h], 9                                        ; +0x223, 0x100196d13\nmov     rdi, rbx                                                       ; +0x22d, 0x100196d1d\nxor     esi, esi                                                       ; +0x230, 0x100196d20\ncall    GameObject__setDefaultMainColorMode                            ; +0x232, 0x100196d22\nmov     byte ptr [rbx+56Ah], 1                                         ; +0x237, 0x100196d27\nmov     eax, [rbx+404h]                                                ; +0x23e, 0x100196d2e\nmov     cl, 1                                                          ; +0x244, 0x100196d34\ncmp     eax, 80Eh                                                      ; +0x246, 0x100196d36\njg      short loc_100196D61                                            ; +0x24b, 0x100196d3b\ncmp     eax, 639h                                                      ; +0x24d, 0x100196d3d\njle     short loc_100196D8C                                            ; +0x252, 0x100196d42\ncmp     eax, 712h                                                      ; +0x254, 0x100196d44\njg      short loc_100196DA3                                            ; +0x259, 0x100196d49\nadd     eax, 0FFFFF9C6h                                                ; +0x25b, 0x100196d4b\ncmp     eax, 11h                                                       ; +0x260, 0x100196d50\nja      short loc_100196DB8                                            ; +0x263, 0x100196d53\nmov     edx, 20003h                                                    ; +0x265, 0x100196d55\nbt      edx, eax                                                       ; +0x26a, 0x100196d5a\njb      short loc_100196DC2                                            ; +0x26d, 0x100196d5d\njmp     short loc_100196DB8                                            ; +0x26f, 0x100196d5f\nlea     edx, [rax-0E14h]                                               ; +0x271, 0x100196d61\ncmp     edx, 27h ; '''                                                 ; +0x277, 0x100196d67\nja      short loc_100196D7C                                            ; +0x27a, 0x100196d6a\nmov     rsi, 9000010029h                                               ; +0x27c, 0x100196d6c\nbt      rsi, rdx                                                       ; +0x286, 0x100196d76\njb      short loc_100196DC2                                            ; +0x28a, 0x100196d7a\ncmp     eax, 80Fh                                                      ; +0x28c, 0x100196d7c\njz      short loc_100196DC2                                            ; +0x291, 0x100196d81\ncmp     eax, 814h                                                      ; +0x293, 0x100196d83\njz      short loc_100196DC2                                            ; +0x298, 0x100196d88\njmp     short loc_100196DB8                                            ; +0x29a, 0x100196d8a\ncmp     eax, 8Eh                                                       ; +0x29c, 0x100196d8c\njz      short loc_100196DC2                                            ; +0x2a1, 0x100196d91\ncmp     eax, 4F4h                                                      ; +0x2a3, 0x100196d93\njz      short loc_100196DC2                                            ; +0x2a8, 0x100196d98\ncmp     eax, 531h                                                      ; +0x2aa, 0x100196d9a\njz      short loc_100196DC2                                            ; +0x2af, 0x100196d9f\njmp     short loc_100196DB8                                            ; +0x2b1, 0x100196da1\ncmp     eax, 713h                                                      ; +0x2b3, 0x100196da3\njz      short loc_100196DC2                                            ; +0x2b8, 0x100196da8\ncmp     eax, 717h                                                      ; +0x2ba, 0x100196daa\njz      short loc_100196DC2                                            ; +0x2bf, 0x100196daf\ncmp     eax, 778h                                                      ; +0x2c1, 0x100196db1\njz      short loc_100196DC2                                            ; +0x2c6, 0x100196db6\ncmp     dword ptr [rbx+398h], 1Eh                                      ; +0x2c8, 0x100196db8\nsetz    cl                                                             ; +0x2cf, 0x100196dbf\nmov     [rbx+72Bh], cl                                                 ; +0x2d2, 0x100196dc2\nadd     rsp, 8                                                         ; +0x2d8, 0x100196dc8\npop     rbx                                                            ; +0x2dc, 0x100196dcc\npop     rbp                                                            ; +0x2dd, 0x100196dcd\nretn                                                                   ; +0x2de, 0x100196dce", "xrefs": ["EnterEffectObject::customSetup @ 0x100196a69", "ShaderGameObject::customSetup @ 0x10019d339", "ItemTriggerGameObject::customSetup @ 0x1001e52e9", "<???> @ 0x1008c4d80", "<???> @ 0x1008c5578", "<???> @ 0x1008c5d70", "<???> @ 0x1008c6568", "<???> @ 0x1008c6d60", "<???> @ 0x1008c7558", "<???> @ 0x1008c95c0", "<???> @ 0x1008c9dd0", "<???> @ 0x1008ca5e0", "<???> @ 0x1008cb600", "<???> @ 0x1008cc620", "<???> @ 0x1008cce30", "<???> @ 0x1008cd640", "<???> @ 0x1008cde50", "<???> @ 0x1008ce678", "<???> @ 0x1008ceed0", "<???> @ 0x1008cf6f8", "<???> @ 0x1008cff20", "<???> @ 0x1008d0748", "<???> @ 0x1008d0f70", "<???> @ 0x1008d1780", "<???> @ 0x1008d1f90", "<???> @ 0x1008d27a0", "<???> @ 0x1008d2fb0", "<???> @ 0x1008d37c0", "<???> @ 0x1008d3fd0", "<???> @ 0x1008d4ff0", "<???> @ 0x1008d5800", "<???> @ 0x1008d6010", "<???> @ 0x1008d6820", "<???> @ 0x1008d7030", "<???> @ 0x1008d7840", "<???> @ 0x1008d8050", "<???> @ 0x1008d8860", "<???> @ 0x1008d9070"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}