{"type": "func", "start": 4295514248, "end": 4295514376, "name": "CollisionBlockPopup::updateItemID", "pseudocode": "// \n// CollisionBlockPopup::updateItemID from 0x100085888 to 0x100085908 (128 bytes)\n// \n// 3 xrefs:\n// > CollisionBlockPopup::onNextItemID @ 0x100085678\n// > CollisionBlockPopup::onItemIDArrow @ 0x1000856e8\n// > CollisionBlockPopup::textChanged @ 0x100085980\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 v1; // w8\n  EffectGameObject *m_gameObject; // x9\n  cocos2d::CCArray *m_gameObjects; // x0\n  __int64 v5; // x20\n\n  v1 = a1->m_blockID & ~(a1->m_blockID >> 31);\n  if ( v1 >= 9999 )\n    v1 = 9999;\n  a1->m_blockID = v1;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = v1;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )\n    {\n      v5 = 0;\n      do\n      {\n        *(_DWORD *)(sub_10024A388(a1->m_gameObjects, v5) + 1680) = a1->m_blockID;\n        v5 = (unsigned int)(v5 + 1);\n      }\n      while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; CollisionBlockPopup::updateItemID from 0x100085888 to 0x100085908 (128 bytes)\n; \n; 3 xrefs:\n; > CollisionBlockPopup::onNextItemID @ 0x100085678\n; > CollisionBlockPopup::onItemIDArrow @ 0x1000856e8\n; > CollisionBlockPopup::textChanged @ 0x100085980\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100085888\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10008588c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100085890\nLDR             W8, [X0,#0x298]                                        ; +0xc, 0x100085894\nBIC             W8, W8, W8,ASR#31                                      ; +0x10, 0x100085898\nMOV             W9, #0x270F                                            ; +0x14, 0x10008589c\nCMP             W8, W9                                                 ; +0x18, 0x1000858a0\nCSEL            W8, W8, W9, LT                                         ; +0x1c, 0x1000858a4\nSTR             W8, [X0,#0x298]                                        ; +0x20, 0x1000858a8\nLDR             X9, [X0,#0x280]                                        ; +0x24, 0x1000858ac\nCBZ             X9, loc_1000858C4                                      ; +0x28, 0x1000858b0\nSTR             W8, [X9,#0x690]                                        ; +0x2c, 0x1000858b4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x1000858b8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x1000858bc\nRET                                                                    ; +0x38, 0x1000858c0\nMOV             X19, X0                                                ; +0x3c, 0x1000858c4\nLDR             X0, [X0,#0x288]                                        ; +0x40, 0x1000858c8\nCBZ             X0, loc_1000858B8                                      ; +0x44, 0x1000858cc\nBL              sub_10024A36C                                          ; +0x48, 0x1000858d0\nCBZ             W0, loc_1000858B8                                      ; +0x4c, 0x1000858d4\nMOV             W20, #0                                                ; +0x50, 0x1000858d8\nLDR             X0, [X19,#0x288]                                       ; +0x54, 0x1000858dc\nMOV             X1, X20                                                ; +0x58, 0x1000858e0\nBL              sub_10024A388                                          ; +0x5c, 0x1000858e4\nLDR             W8, [X19,#0x298]                                       ; +0x60, 0x1000858e8\nSTR             W8, [X0,#0x690]                                        ; +0x64, 0x1000858ec\nADD             W20, W20, #1                                           ; +0x68, 0x1000858f0\nLDR             X0, [X19,#0x288]                                       ; +0x6c, 0x1000858f4\nBL              sub_10024A36C                                          ; +0x70, 0x1000858f8\nCMP             W20, W0                                                ; +0x74, 0x1000858fc\nB.CC            loc_1000858DC                                          ; +0x78, 0x100085900\nB               loc_1000858B8                                          ; +0x7c, 0x100085904", "xrefs": ["CollisionBlockPopup::onNextItemID @ 0x100085678", "CollisionBlockPopup::onItemIDArrow @ 0x1000856e8", "CollisionBlockPopup::textChanged @ 0x100085980"], "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"}