{"type": "func", "start": 4296017696, "end": 4296017773, "name": "GJBaseGameLayer::setActiveStartPosObject", "pseudocode": "// \n// GJBaseGameLayer::setActiveStartPosObject from 0x100100720 to 0x10010076d (77 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::switchToStartPosObject @ 0x10008c0a5\n// > PlayLayer::togglePracticeMode @ 0x10008c6bb\n// > LevelEditorLayer::onPlaytest @ 0x1000c5c8b\n// > LevelEditorLayer::onPlaytest @ 0x1000c5df2\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c6d80\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:21:20 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::setActiveStartPosObject(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n  __int64 result; // rax\n\n  v3 = *(_QWORD *)(a1 + 12432);\n  if ( v3 != a2 )\n  {\n    if ( a2 )\n    {\n      result = cocos2d::CCObject::retain(a2);\n      v3 = *(_QWORD *)(a1 + 12432);\n    }\n    if ( v3 )\n      result = cocos2d::CCObject::release(v3);\n    *(_QWORD *)(a1 + 12432) = a2;\n    *(_BYTE *)(a1 + 12616) = a2 != 0;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::setActiveStartPosObject from 0x100100720 to 0x10010076d (77 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::switchToStartPosObject @ 0x10008c0a5\n; > PlayLayer::togglePracticeMode @ 0x10008c6bb\n; > LevelEditorLayer::onPlaytest @ 0x1000c5c8b\n; > LevelEditorLayer::onPlaytest @ 0x1000c5df2\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c6d80\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:21:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x100100720\nmov     rbp, rsp                                                       ; +0x1, 0x100100721\npush    r14                                                            ; +0x4, 0x100100724\npush    rbx                                                            ; +0x6, 0x100100726\nmov     rbx, rdi                                                       ; +0x7, 0x100100727\nmov     rdi, [rdi+3090h]                                               ; +0xa, 0x10010072a\ncmp     rdi, rsi                                                       ; +0x11, 0x100100731\njz      short loc_100100768                                            ; +0x14, 0x100100734\nmov     r14, rsi                                                       ; +0x16, 0x100100736\ntest    rsi, rsi                                                       ; +0x19, 0x100100739\njz      short loc_10010074D                                            ; +0x1c, 0x10010073c\nmov     rdi, r14                                                       ; +0x1e, 0x10010073e\ncall    cocos2d__CCObject__retain                                      ; +0x21, 0x100100741\nmov     rdi, [rbx+3090h]                                               ; +0x26, 0x100100746\ntest    rdi, rdi                                                       ; +0x2d, 0x10010074d\njz      short loc_100100757                                            ; +0x30, 0x100100750\ncall    cocos2d__CCObject__release                                     ; +0x32, 0x100100752\ntest    r14, r14                                                       ; +0x37, 0x100100757\nmov     [rbx+3090h], r14                                               ; +0x3a, 0x10010075a\nsetnz   byte ptr [rbx+3148h]                                           ; +0x41, 0x100100761\npop     rbx                                                            ; +0x48, 0x100100768\npop     r14                                                            ; +0x49, 0x100100769\npop     rbp                                                            ; +0x4b, 0x10010076b\nretn                                                                   ; +0x4c, 0x10010076c", "xrefs": ["PlayLayer::switchToStartPosObject @ 0x10008c0a5", "PlayLayer::togglePracticeMode @ 0x10008c6bb", "LevelEditorLayer::onPlaytest @ 0x1000c5c8b", "LevelEditorLayer::onPlaytest @ 0x1000c5df2", "LevelEditorLayer::onStopPlaytest @ 0x1000c6d80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}