{"type": "func", "start": 5372910176, "end": 5372910415, "name": "SetItemIDLayer::valueDidChange", "pseudocode": "// \n// SetItemIDLayer::valueDidChange from 0x140401a60 to 0x140401b4f (239 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405d78c8\n// > <???> @ 0x14069e9a0\n// > <???> @ 0x14069e9d4\n// > <???> @ 0x1406d8864\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::valueDidChange(SetItemIDLayer *a1, int a2, float a3)\n{\n  cocos2d::CCArray *m_gameObjects; // rbx\n  unsigned int i; // edi\n  LabelGameObject *v6; // rax\n\n  if ( a2 == 391 )\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::updateLabelAlign(v6, (int)a3);\n    }\n  }\n  else if ( a2 == 390 )\n  {\n    if ( a3 == -1.0 )\n      a1->toggleGroup(a1, a2, 1);\n    else\n      a1->toggleGroup(a1, 390, 0);\n  }\n}", "assembly": "; \n; SetItemIDLayer::valueDidChange from 0x140401a60 to 0x140401b4f (239 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405d78c8\n; > <???> @ 0x14069e9a0\n; > <???> @ 0x14069e9d4\n; > <???> @ 0x1406d8864\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    rdi                                                            ; +0x0, 0x140401a60\nsub     rsp, 30h                                                       ; +0x2, 0x140401a62\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x140401a66\nmovaps  xmm6, xmm2                                                     ; +0xb, 0x140401a6b\nmov     rdi, rcx                                                       ; +0xe, 0x140401a6e\ncmp     edx, 187h                                                      ; +0x11, 0x140401a71\njnz     loc_140401B09                                                  ; +0x17, 0x140401a77\ncmp     qword ptr [rcx+290h], 0                                        ; +0x1d, 0x140401a7d\nmov     [rsp+38h+arg_0], rbx                                           ; +0x25, 0x140401a85\njz      short loc_140401AA7                                            ; +0x2a, 0x140401a8a\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x2c, 0x140401a8c\nmov     rdx, [rdi+290h]                                                ; +0x32, 0x140401a92\nmov     rcx, rax                                                       ; +0x39, 0x140401a99\nmov     rbx, rax                                                       ; +0x3c, 0x140401a9c\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3f, 0x140401a9f\njmp     short loc_140401AAE                                            ; +0x45, 0x140401aa5\nmov     rbx, [rcx+298h]                                                ; +0x47, 0x140401aa7\nmov     rcx, rbx                                                       ; +0x4e, 0x140401aae\nxor     edi, edi                                                       ; +0x51, 0x140401ab1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x53, 0x140401ab3\ntest    eax, eax                                                       ; +0x59, 0x140401ab9\njz      short loc_140401AF9                                            ; +0x5b, 0x140401abb\nmov     [rsp+38h+arg_8], rsi                                           ; +0x5d, 0x140401abd\ncvttss2si esi, xmm6                                                    ; +0x62, 0x140401ac2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x140401ac6\nmov     edx, edi                                                       ; +0x70, 0x140401ad0\nmov     rcx, rbx                                                       ; +0x72, 0x140401ad2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x140401ad5\nmov     rcx, rax                                                       ; +0x7b, 0x140401adb\nmov     edx, esi                                                       ; +0x7e, 0x140401ade\ncall    LabelGameObject__updateLabelAlign                              ; +0x80, 0x140401ae0\nmov     rcx, rbx                                                       ; +0x85, 0x140401ae5\ninc     edi                                                            ; +0x88, 0x140401ae8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8a, 0x140401aea\ncmp     edi, eax                                                       ; +0x90, 0x140401af0\njb      short loc_140401AD0                                            ; +0x92, 0x140401af2\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x94, 0x140401af4\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x99, 0x140401af9\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x9e, 0x140401afe\nadd     rsp, 30h                                                       ; +0xa3, 0x140401b03\npop     rdi                                                            ; +0xa7, 0x140401b07\nretn                                                                   ; +0xa8, 0x140401b08\ncmp     edx, 186h                                                      ; +0xa9, 0x140401b09\njnz     short loc_140401AFE                                            ; +0xaf, 0x140401b0f\nucomiss xmm6, cs:dword_1406236F0                                       ; +0xb1, 0x140401b11\njp      short loc_140401B33                                            ; +0xb8, 0x140401b18\njnz     short loc_140401B33                                            ; +0xba, 0x140401b1a\nmov     rax, [rcx]                                                     ; +0xbc, 0x140401b1c\nmov     r8b, 1                                                         ; +0xbf, 0x140401b1f\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xc2, 0x140401b22\nadd     rsp, 30h                                                       ; +0xc7, 0x140401b27\npop     rdi                                                            ; +0xcb, 0x140401b2b\njmp     qword ptr [rax+420h]                                           ; +0xcc, 0x140401b2c\nmov     rax, [rcx]                                                     ; +0xd3, 0x140401b33\nxor     r8d, r8d                                                       ; +0xd6, 0x140401b36\nmov     edx, 186h                                                      ; +0xd9, 0x140401b39\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xde, 0x140401b3e\nadd     rsp, 30h                                                       ; +0xe3, 0x140401b43\npop     rdi                                                            ; +0xe7, 0x140401b47\njmp     qword ptr [rax+420h]                                           ; +0xe8, 0x140401b48", "xrefs": ["<???> @ 0x1405d78c8", "<???> @ 0x14069e9a0", "<???> @ 0x14069e9d4", "<???> @ 0x1406d8864"], "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"}