{"type": "func", "start": 4297617424, "end": 4297617569, "name": "CollisionBlockPopup::updateItemID", "pseudocode": "// \n// CollisionBlockPopup::updateItemID from 0x100287010 to 0x1002870a1 (145 bytes)\n// \n// 0 xrefs:\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::updateItemID(CollisionBlockPopup *a1)\n{\n  int m_blockID; // ecx\n  int v2; // eax\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v6; // r14d\n\n  m_blockID = 0;\n  if ( a1->m_blockID > 0 )\n    m_blockID = a1->m_blockID;\n  v2 = 9999;\n  if ( m_blockID < 9999 )\n    v2 = m_blockID;\n  a1->m_blockID = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = v2;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )\n    {\n      v6 = 0;\n      do\n        *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1680) = a1->m_blockID;\n      while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; CollisionBlockPopup::updateItemID from 0x100287010 to 0x1002870a1 (145 bytes)\n; \n; 0 xrefs:\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, 0x100287010\nmov     rbp, rsp                                                       ; +0x1, 0x100287011\npush    r14                                                            ; +0x4, 0x100287014\npush    rbx                                                            ; +0x6, 0x100287016\nmov     eax, [rdi+298h]                                                ; +0x7, 0x100287017\nxor     ecx, ecx                                                       ; +0xd, 0x10028701d\ntest    eax, eax                                                       ; +0xf, 0x10028701f\ncmovg   ecx, eax                                                       ; +0x11, 0x100287021\ncmp     ecx, 270Fh                                                     ; +0x14, 0x100287024\nmov     eax, 270Fh                                                     ; +0x1a, 0x10028702a\ncmovl   eax, ecx                                                       ; +0x1f, 0x10028702f\nmov     [rdi+298h], eax                                                ; +0x22, 0x100287032\nmov     rcx, [rdi+280h]                                                ; +0x28, 0x100287038\ntest    rcx, rcx                                                       ; +0x2f, 0x10028703f\njz      short loc_10028704F                                            ; +0x32, 0x100287042\nmov     [rcx+690h], eax                                                ; +0x34, 0x100287044\npop     rbx                                                            ; +0x3a, 0x10028704a\npop     r14                                                            ; +0x3b, 0x10028704b\npop     rbp                                                            ; +0x3d, 0x10028704d\nretn                                                                   ; +0x3e, 0x10028704e\nmov     rbx, rdi                                                       ; +0x3f, 0x10028704f\nmov     rdi, [rdi+288h]                                                ; +0x42, 0x100287052\ntest    rdi, rdi                                                       ; +0x49, 0x100287059\njz      short loc_10028704A                                            ; +0x4c, 0x10028705c\ncall    sub_100720070                                                  ; +0x4e, 0x10028705e\ntest    eax, eax                                                       ; +0x53, 0x100287063\njz      short loc_10028704A                                            ; +0x55, 0x100287065\nxor     r14d, r14d                                                     ; +0x57, 0x100287067\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x10028706a\nmov     rdi, [rbx+288h]                                                ; +0x60, 0x100287070\nmov     esi, r14d                                                      ; +0x67, 0x100287077\ncall    sub_1007200C0                                                  ; +0x6a, 0x10028707a\nmov     ecx, [rbx+298h]                                                ; +0x6f, 0x10028707f\nmov     [rax+690h], ecx                                                ; +0x75, 0x100287085\ninc     r14d                                                           ; +0x7b, 0x10028708b\nmov     rdi, [rbx+288h]                                                ; +0x7e, 0x10028708e\ncall    sub_100720070                                                  ; +0x85, 0x100287095\ncmp     r14d, eax                                                      ; +0x8a, 0x10028709a\njb      short loc_100287070                                            ; +0x8d, 0x10028709d\njmp     short loc_10028704A                                            ; +0x8f, 0x10028709f", "xrefs": [], "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"}