{"type": "func", "start": 4297615168, "end": 4297615365, "name": "CollisionBlockPopup::determineStartValues", "pseudocode": "// \n// CollisionBlockPopup::determineStartValues from 0x100286740 to 0x100286805 (197 bytes)\n// \n// 1 xrefs:\n// > CollisionBlockPopup::init @ 0x100285dbf\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 CollisionBlockPopup::determineStartValues(CollisionBlockPopup *a1)\n{\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v4; // r14d\n  __int64 v5; // rax\n  int m_blockID; // ecx\n  int v7; // eax\n  bool v8; // zf\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    a1->m_blockID = m_gameObject->m_itemID;\n    a1->m_dynamicBlock = m_gameObject->m_isDynamicBlock;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      if ( (unsigned int)sub_100720070(m_gameObjects) )\n      {\n        a1->m_blockID = -1;\n        a1->m_dynamicBlock = 1;\n        if ( (unsigned int)sub_100720070(a1->m_gameObjects) )\n        {\n          v4 = 0;\n          do\n          {\n            v5 = sub_1007200C0(a1->m_gameObjects, v4);\n            if ( !*(_BYTE *)(v5 + 1677) )\n              a1->m_dynamicBlock = 0;\n            m_blockID = a1->m_blockID;\n            v7 = *(_DWORD *)(v5 + 1680);\n            if ( m_blockID == -1 || (v8 = m_blockID == v7, v7 = 0, !v8) )\n              a1->m_blockID = v7;\n            ++v4;\n          }\n          while ( v4 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; CollisionBlockPopup::determineStartValues from 0x100286740 to 0x100286805 (197 bytes)\n; \n; 1 xrefs:\n; > CollisionBlockPopup::init @ 0x100285dbf\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, 0x100286740\nmov     rbp, rsp                                                       ; +0x1, 0x100286741\npush    r14                                                            ; +0x4, 0x100286744\npush    rbx                                                            ; +0x6, 0x100286746\nmov     rbx, rdi                                                       ; +0x7, 0x100286747\nmov     rax, [rdi+280h]                                                ; +0xa, 0x10028674a\ntest    rax, rax                                                       ; +0x11, 0x100286751\njz      short loc_100286774                                            ; +0x14, 0x100286754\nmov     ecx, [rax+690h]                                                ; +0x16, 0x100286756\nmov     [rbx+298h], ecx                                                ; +0x1c, 0x10028675c\nmovzx   eax, byte ptr [rax+68Dh]                                       ; +0x22, 0x100286762\nmov     [rbx+29Ch], al                                                 ; +0x29, 0x100286769\npop     rbx                                                            ; +0x2f, 0x10028676f\npop     r14                                                            ; +0x30, 0x100286770\npop     rbp                                                            ; +0x32, 0x100286772\nretn                                                                   ; +0x33, 0x100286773\nmov     rdi, [rbx+288h]                                                ; +0x34, 0x100286774\ntest    rdi, rdi                                                       ; +0x3b, 0x10028677b\njz      short loc_10028676F                                            ; +0x3e, 0x10028677e\ncall    sub_100720070                                                  ; +0x40, 0x100286780\ntest    eax, eax                                                       ; +0x45, 0x100286785\njz      short loc_10028676F                                            ; +0x47, 0x100286787\nmov     dword ptr [rbx+298h], 0FFFFFFFFh                               ; +0x49, 0x100286789\nmov     byte ptr [rbx+29Ch], 1                                         ; +0x53, 0x100286793\nmov     rdi, [rbx+288h]                                                ; +0x5a, 0x10028679a\ncall    sub_100720070                                                  ; +0x61, 0x1002867a1\ntest    eax, eax                                                       ; +0x66, 0x1002867a6\njz      short loc_10028676F                                            ; +0x68, 0x1002867a8\nxor     r14d, r14d                                                     ; +0x6a, 0x1002867aa\njmp     short loc_1002867CA                                            ; +0x6d, 0x1002867ad\nalign 10h                                                              ; +0x6f, 0x1002867af\nmov     [rbx+298h], eax                                                ; +0x70, 0x1002867b0\ninc     r14d                                                           ; +0x76, 0x1002867b6\nmov     rdi, [rbx+288h]                                                ; +0x79, 0x1002867b9\ncall    sub_100720070                                                  ; +0x80, 0x1002867c0\ncmp     r14d, eax                                                      ; +0x85, 0x1002867c5\njnb     short loc_10028676F                                            ; +0x88, 0x1002867c8\nmov     rdi, [rbx+288h]                                                ; +0x8a, 0x1002867ca\nmov     esi, r14d                                                      ; +0x91, 0x1002867d1\ncall    sub_1007200C0                                                  ; +0x94, 0x1002867d4\ncmp     byte ptr [rax+68Dh], 0                                         ; +0x99, 0x1002867d9\njnz     short loc_1002867E9                                            ; +0xa0, 0x1002867e0\nmov     byte ptr [rbx+29Ch], 0                                         ; +0xa2, 0x1002867e2\nmov     ecx, [rbx+298h]                                                ; +0xa9, 0x1002867e9\nmov     eax, [rax+690h]                                                ; +0xaf, 0x1002867ef\ncmp     ecx, 0FFFFFFFFh                                                ; +0xb5, 0x1002867f5\njz      short loc_1002867B0                                            ; +0xb8, 0x1002867f8\ncmp     ecx, eax                                                       ; +0xba, 0x1002867fa\nmov     eax, 0                                                         ; +0xbc, 0x1002867fc\njnz     short loc_1002867B0                                            ; +0xc1, 0x100286801\njmp     short loc_1002867B6                                            ; +0xc3, 0x100286803", "xrefs": ["CollisionBlockPopup::init @ 0x100285dbf"], "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"}