{"type": "func", "start": 5373009056, "end": 5373009209, "name": "SetupCollisionTriggerPopup::updateItemID2", "pseudocode": "// \n// SetupCollisionTriggerPopup::updateItemID2 from 0x140419ca0 to 0x140419d39 (153 bytes)\n// \n// 3 xrefs:\n// > SetupCollisionTriggerPopup::onItemID2Arrow @ 0x1404196ea\n// > SetupCollisionTriggerPopup::textChanged @ 0x140419935\n// > <???> @ 0x1406d91d0\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 SetupCollisionTriggerPopup::updateItemID2(SetupCollisionTriggerPopup *a1)\n{\n  int m_blockBID; // eax\n  unsigned int v3; // ebx\n  int v4; // ecx\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  struct cocos2d::CCObject *v7; // rax\n\n  m_blockBID = a1->m_blockBID;\n  v3 = 0;\n  v4 = 0;\n  if ( m_blockBID >= 0 )\n    v4 = m_blockBID;\n  if ( v4 > 9999 )\n    v4 = 9999;\n  m_gameObject = a1->m_gameObject;\n  a1->m_blockBID = v4;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID2 = v4;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )\n    {\n      do\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v3++);\n        HIDWORD(v7[30].__vftable) = a1->m_blockBID;\n      }\n      while ( v3 < cocos2d::CCArray::count(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; SetupCollisionTriggerPopup::updateItemID2 from 0x140419ca0 to 0x140419d39 (153 bytes)\n; \n; 3 xrefs:\n; > SetupCollisionTriggerPopup::onItemID2Arrow @ 0x1404196ea\n; > SetupCollisionTriggerPopup::textChanged @ 0x140419935\n; > <???> @ 0x1406d91d0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140419ca0\npush    rdi                                                            ; +0x5, 0x140419ca5\nsub     rsp, 20h                                                       ; +0x6, 0x140419ca6\nmov     eax, [rcx+3C4h]                                                ; +0xa, 0x140419caa\nmov     rdi, rcx                                                       ; +0x10, 0x140419cb0\nxor     ebx, ebx                                                       ; +0x13, 0x140419cb3\ntest    eax, eax                                                       ; +0x15, 0x140419cb5\nmov     ecx, ebx                                                       ; +0x17, 0x140419cb7\ncmovns  ecx, eax                                                       ; +0x19, 0x140419cb9\nmov     eax, 270Fh                                                     ; +0x1c, 0x140419cbc\ncmp     ecx, eax                                                       ; +0x21, 0x140419cc1\ncmovg   ecx, eax                                                       ; +0x23, 0x140419cc3\nmov     rax, [rdi+290h]                                                ; +0x26, 0x140419cc6\nmov     [rdi+3C4h], ecx                                                ; +0x2d, 0x140419ccd\ntest    rax, rax                                                       ; +0x33, 0x140419cd3\njz      short loc_140419CE9                                            ; +0x36, 0x140419cd6\nmov     [rax+694h], ecx                                                ; +0x38, 0x140419cd8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x140419cde\nadd     rsp, 20h                                                       ; +0x43, 0x140419ce3\npop     rdi                                                            ; +0x47, 0x140419ce7\nretn                                                                   ; +0x48, 0x140419ce8\nmov     rcx, [rdi+298h]                                                ; +0x49, 0x140419ce9\ntest    rcx, rcx                                                       ; +0x50, 0x140419cf0\njz      short loc_140419D2E                                            ; +0x53, 0x140419cf3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x55, 0x140419cf5\ntest    eax, eax                                                       ; +0x5b, 0x140419cfb\njz      short loc_140419D2E                                            ; +0x5d, 0x140419cfd\nnop                                                                    ; +0x5f, 0x140419cff\nmov     rcx, [rdi+298h]                                                ; +0x60, 0x140419d00\nmov     edx, ebx                                                       ; +0x67, 0x140419d07\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140419d09\nmov     ecx, [rdi+3C4h]                                                ; +0x6f, 0x140419d0f\ninc     ebx                                                            ; +0x75, 0x140419d15\nmov     [rax+694h], ecx                                                ; +0x77, 0x140419d17\nmov     rcx, [rdi+298h]                                                ; +0x7d, 0x140419d1d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x84, 0x140419d24\ncmp     ebx, eax                                                       ; +0x8a, 0x140419d2a\njb      short loc_140419D00                                            ; +0x8c, 0x140419d2c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x140419d2e\nadd     rsp, 20h                                                       ; +0x93, 0x140419d33\npop     rdi                                                            ; +0x97, 0x140419d37\nretn                                                                   ; +0x98, 0x140419d38", "xrefs": ["SetupCollisionTriggerPopup::onItemID2Arrow @ 0x1404196ea", "SetupCollisionTriggerPopup::textChanged @ 0x140419935", "<???> @ 0x1406d91d0"], "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"}