{"type": "func", "start": 9479132, "end": 9479272, "name": "CollisionBlockPopup::updateItemID", "pseudocode": "// \n// CollisionBlockPopup::updateItemID from 0x90a3dc to 0x90a468 (140 bytes)\n// \n// 4 xrefs:\n// > CollisionBlockPopup::textChanged @ 0x90a4ec\n// > CollisionBlockPopup::onItemIDArrow @ 0x90a584\n// > CollisionBlockPopup::onNextItemID @ 0x90a654\n// > <???> @ 0x54d98\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 CollisionBlockPopup::updateItemID(CollisionBlockPopup *a1)\n{\n  int m_blockID; // w1\n  EffectGameObject *m_gameObject; // x3\n  cocos2d::CCArray *m_gameObjects; // x1\n  unsigned int v5; // w20\n  __int64 v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n\n  m_blockID = a1->m_blockID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_blockID < 0 )\n    m_blockID = 0;\n  if ( m_blockID > 9999 )\n    m_blockID = 9999;\n  a1->m_blockID = m_blockID;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = m_blockID;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v5 = 0;\n      while ( 1 )\n      {\n        v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v8 = v5++;\n        if ( v7 )\n          break;\n        v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);\n        m_gameObjects = a1->m_gameObjects;\n        *(_DWORD *)(v6 + 1664) = a1->m_blockID;\n      }\n    }\n  }\n}", "assembly": "; \n; CollisionBlockPopup::updateItemID from 0x90a3dc to 0x90a468 (140 bytes)\n; \n; 4 xrefs:\n; > CollisionBlockPopup::textChanged @ 0x90a4ec\n; > CollisionBlockPopup::onItemIDArrow @ 0x90a584\n; > CollisionBlockPopup::onNextItemID @ 0x90a654\n; > <???> @ 0x54d98\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x90a3dc\nMOV             W2, #0x270F                                            ; +0x4, 0x90a3e0\nMOV             X29, SP                                                ; +0x8, 0x90a3e4\nLDR             W1, [X0,#0x298]                                        ; +0xc, 0x90a3e8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x90a3ec\nCMP             W1, WZR                                                ; +0x14, 0x90a3f0\nLDR             X3, [X0,#0x280]                                        ; +0x18, 0x90a3f4\nCSEL            W1, W1, WZR, GE                                        ; +0x1c, 0x90a3f8\nCMP             W1, W2                                                 ; +0x20, 0x90a3fc\nCSEL            W1, W1, W2, LE                                         ; +0x24, 0x90a400\nSTR             W1, [X0,#0x298]                                        ; +0x28, 0x90a404\nCBZ             X3, loc_90A41C                                         ; +0x2c, 0x90a408\nSTR             W1, [X3,#0x680]                                        ; +0x30, 0x90a40c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x34, 0x90a410\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x38, 0x90a414\nRET                                                                    ; +0x3c, 0x90a418\nLDR             X1, [X0,#0x288]                                        ; +0x40, 0x90a41c\nCBZ             X1, loc_90A410                                         ; +0x44, 0x90a420\nMOV             X19, X0                                                ; +0x48, 0x90a424\nMOV             W20, #0                                                ; +0x4c, 0x90a428\nB               loc_90A444                                             ; +0x50, 0x90a42c\nLDR             X0, [X19,#0x288]; this                                 ; +0x54, 0x90a430\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x90a434\nLDR             W2, [X19,#0x298]                                       ; +0x5c, 0x90a438\nLDR             X1, [X19,#0x288]                                       ; +0x60, 0x90a43c\nSTR             W2, [X0,#0x680]                                        ; +0x64, 0x90a440\nMOV             X0, X1; this                                           ; +0x68, 0x90a444\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6c, 0x90a448\nCMP             W20, W0                                                ; +0x70, 0x90a44c\nMOV             W1, W20; unsigned int                                  ; +0x74, 0x90a450\nADD             W20, W20, #1                                           ; +0x78, 0x90a454\nB.CC            loc_90A430                                             ; +0x7c, 0x90a458\nLDP             X19, X20, [SP,#var_s10]                                ; +0x80, 0x90a45c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x84, 0x90a460\nRET                                                                    ; +0x88, 0x90a464", "xrefs": ["CollisionBlockPopup::textChanged @ 0x90a4ec", "CollisionBlockPopup::onItemIDArrow @ 0x90a584", "CollisionBlockPopup::onNextItemID @ 0x90a654", "<???> @ 0x54d98"], "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"}