{"type": "func", "start": 5372910416, "end": 5372910566, "name": "SetItemIDLayer::onClose", "pseudocode": "// \n// SetItemIDLayer::onClose from 0x140401b50 to 0x140401be6 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405d7890\n// > <???> @ 0x1406d88a0\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 SetItemIDLayer::onClose(SetItemIDLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int i; // ebx\n  LabelGameObject *v6; // rax\n\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n    cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n  }\n  for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )\n  {\n    v6 = (LabelGameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, i);\n    LabelGameObject::updatePreviewLabel(v6);\n  }\n  SetupTriggerPopup::onClose(a1, a2);\n}", "assembly": "; \n; SetItemIDLayer::onClose from 0x140401b50 to 0x140401be6 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405d7890\n; > <???> @ 0x1406d88a0\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, 0x140401b50\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140401b55\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140401b5a\npush    rdi                                                            ; +0xf, 0x140401b5f\nsub     rsp, 20h                                                       ; +0x10, 0x140401b60\ncmp     qword ptr [rcx+290h], 0                                        ; +0x14, 0x140401b64\nmov     rbp, rdx                                                       ; +0x1c, 0x140401b6c\nmov     rsi, rcx                                                       ; +0x1f, 0x140401b6f\njz      short loc_140401B8F                                            ; +0x22, 0x140401b72\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x24, 0x140401b74\nmov     rdx, [rsi+290h]                                                ; +0x2a, 0x140401b7a\nmov     rcx, rax                                                       ; +0x31, 0x140401b81\nmov     rdi, rax                                                       ; +0x34, 0x140401b84\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x37, 0x140401b87\njmp     short loc_140401B96                                            ; +0x3d, 0x140401b8d\nmov     rdi, [rcx+298h]                                                ; +0x3f, 0x140401b8f\nmov     rcx, rdi                                                       ; +0x46, 0x140401b96\nxor     ebx, ebx                                                       ; +0x49, 0x140401b99\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x140401b9b\ntest    eax, eax                                                       ; +0x51, 0x140401ba1\njz      short loc_140401BC7                                            ; +0x53, 0x140401ba3\nmov     edx, ebx                                                       ; +0x55, 0x140401ba5\nmov     rcx, rdi                                                       ; +0x57, 0x140401ba7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x140401baa\nmov     rcx, rax                                                       ; +0x60, 0x140401bb0\ncall    LabelGameObject__updatePreviewLabel                            ; +0x63, 0x140401bb3\nmov     rcx, rdi                                                       ; +0x68, 0x140401bb8\ninc     ebx                                                            ; +0x6b, 0x140401bbb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6d, 0x140401bbd\ncmp     ebx, eax                                                       ; +0x73, 0x140401bc3\njb      short loc_140401BA5                                            ; +0x75, 0x140401bc5\nmov     rdx, rbp                                                       ; +0x77, 0x140401bc7\nmov     rcx, rsi                                                       ; +0x7a, 0x140401bca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7d, 0x140401bcd\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x82, 0x140401bd2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x140401bd7\nadd     rsp, 20h                                                       ; +0x8c, 0x140401bdc\npop     rdi                                                            ; +0x90, 0x140401be0\njmp     SetupTriggerPopup__onClose                                     ; +0x91, 0x140401be1", "xrefs": ["<???> @ 0x1405d7890", "<???> @ 0x1406d88a0"], "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"}