{"type": "func", "start": 4296380144, "end": 4296380232, "name": "GJBaseGameLayer::updateAllObjectSection", "pseudocode": "// \n// GJBaseGameLayer::updateAllObjectSection from 0x100158ef0 to 0x100158f48 (88 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::levelSettingsUpdated @ 0x1000def97\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 GJBaseGameLayer::updateAllObjectSection(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *m_objects; // rax\n  cocos2d::ccArray *data; // rax\n  cocos2d::CCObject **arr; // r14\n  unsigned __int64 v4; // r15\n\n  m_objects = a1->m_objects;\n  if ( m_objects )\n  {\n    data = m_objects->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v4 = (unsigned __int64)&arr[data->num - 1];\n      do\n      {\n        if ( !*arr )\n          break;\n        ((void (__fastcall *)(GJBaseGameLayer *))a1->updateObjectSection)(a1);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v4 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateAllObjectSection from 0x100158ef0 to 0x100158f48 (88 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::levelSettingsUpdated @ 0x1000def97\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     rax, [rdi+0CB8h]                                               ; +0x0, 0x100158ef0\ntest    rax, rax                                                       ; +0x7, 0x100158ef7\njz      short locret_100158F47                                         ; +0xa, 0x100158efa\npush    rbp                                                            ; +0xc, 0x100158efc\nmov     rbp, rsp                                                       ; +0xd, 0x100158efd\npush    r15                                                            ; +0x10, 0x100158f00\npush    r14                                                            ; +0x12, 0x100158f02\npush    rbx                                                            ; +0x14, 0x100158f04\npush    rax                                                            ; +0x15, 0x100158f05\nmov     rax, [rax+38h]                                                 ; +0x16, 0x100158f06\nmov     ecx, [rax]                                                     ; +0x1a, 0x100158f0a\ntest    rcx, rcx                                                       ; +0x1c, 0x100158f0c\njz      short loc_100158F3D                                            ; +0x1f, 0x100158f0f\nmov     rbx, rdi                                                       ; +0x21, 0x100158f11\nmov     r14, [rax+10h]                                                 ; +0x24, 0x100158f14\nlea     r15, [r14+rcx*8]                                               ; +0x28, 0x100158f18\nadd     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0x2c, 0x100158f1c\nmov     rsi, [r14]                                                     ; +0x30, 0x100158f20\ntest    rsi, rsi                                                       ; +0x33, 0x100158f23\njz      short loc_100158F3D                                            ; +0x36, 0x100158f26\nmov     rax, [rbx]                                                     ; +0x38, 0x100158f28\nmov     rdi, rbx                                                       ; +0x3b, 0x100158f2b\ncall    qword ptr [rax+520h]                                           ; +0x3e, 0x100158f2e\nadd     r14, 8                                                         ; +0x44, 0x100158f34\ncmp     r14, r15                                                       ; +0x48, 0x100158f38\njbe     short loc_100158F20                                            ; +0x4b, 0x100158f3b\nadd     rsp, 8                                                         ; +0x4d, 0x100158f3d\npop     rbx                                                            ; +0x51, 0x100158f41\npop     r14                                                            ; +0x52, 0x100158f42\npop     r15                                                            ; +0x54, 0x100158f44\npop     rbp                                                            ; +0x56, 0x100158f46\nretn                                                                   ; +0x57, 0x100158f47", "xrefs": ["LevelEditorLayer::levelSettingsUpdated @ 0x1000def97"], "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"}