{"type": "func", "start": 4297592996, "end": 4297593084, "name": "GJBaseGameLayer::setActiveStartPosObject", "pseudocode": "// \n// GJBaseGameLayer::setActiveStartPosObject from 0x1002810a4 to 0x1002810fc (88 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::switchToStartPosObject @ 0x10014afe4\n// > PlayLayer::togglePracticeMode @ 0x10014b4bc\n// > GJBaseGameLayer::processStartPosObjects @ 0x100281524\n// > LevelEditorLayer::onPlaytest @ 0x1004047fc\n// > LevelEditorLayer::onPlaytest @ 0x1004048b4\n// > LevelEditorLayer::onStopPlaytest @ 0x1004052e0\n// \n// This function is hookable on this platform (idp: arm, 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 11:01:55 +0000\n// \n\n_DWORD *__fastcall GJBaseGameLayer::setActiveStartPosObject(__int64 a1, __int64 a2)\n{\n  _DWORD *result; // x0\n\n  result = *(_DWORD **)(a1 + 12432);\n  if ( result != (_DWORD *)a2 )\n  {\n    if ( a2 )\n    {\n      cocos2d::CCObject::retain(a2);\n      result = *(_DWORD **)(a1 + 12432);\n    }\n    if ( result )\n      result = cocos2d::CCObject::release(result);\n    *(_QWORD *)(a1 + 12432) = a2;\n    *(_BYTE *)(a1 + 12616) = a2 != 0;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::setActiveStartPosObject from 0x1002810a4 to 0x1002810fc (88 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::switchToStartPosObject @ 0x10014afe4\n; > PlayLayer::togglePracticeMode @ 0x10014b4bc\n; > GJBaseGameLayer::processStartPosObjects @ 0x100281524\n; > LevelEditorLayer::onPlaytest @ 0x1004047fc\n; > LevelEditorLayer::onPlaytest @ 0x1004048b4\n; > LevelEditorLayer::onStopPlaytest @ 0x1004052e0\n; \n; This function is hookable on this platform (idp: arm, 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 11:01:55 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002810a4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002810a8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002810ac\nMOV             X19, X0                                                ; +0xc, 0x1002810b0\nLDR             X0, [X0,#0x3090]                                       ; +0x10, 0x1002810b4\nCMP             X0, X1                                                 ; +0x14, 0x1002810b8\nB.EQ            loc_1002810F0                                          ; +0x18, 0x1002810bc\nMOV             X20, X1                                                ; +0x1c, 0x1002810c0\nCBZ             X1, loc_1002810D4                                      ; +0x20, 0x1002810c4\nMOV             X0, X20                                                ; +0x24, 0x1002810c8\nBL              cocos2d__CCObject__retain                              ; +0x28, 0x1002810cc\nLDR             X0, [X19,#0x3090]                                      ; +0x2c, 0x1002810d0\nCBZ             X0, loc_1002810DC                                      ; +0x30, 0x1002810d4\nBL              cocos2d__CCObject__release                             ; +0x34, 0x1002810d8\nCMP             X20, #0                                                ; +0x38, 0x1002810dc\nCSET            W8, NE                                                 ; +0x3c, 0x1002810e0\nSTR             X20, [X19,#0x3090]                                     ; +0x40, 0x1002810e4\nMOV             W9, #0x3148                                            ; +0x44, 0x1002810e8\nSTRB            W8, [X19,X9]                                           ; +0x48, 0x1002810ec\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1002810f0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1002810f4\nRET                                                                    ; +0x54, 0x1002810f8", "xrefs": ["PlayLayer::switchToStartPosObject @ 0x10014afe4", "PlayLayer::togglePracticeMode @ 0x10014b4bc", "GJBaseGameLayer::processStartPosObjects @ 0x100281524", "LevelEditorLayer::onPlaytest @ 0x1004047fc", "LevelEditorLayer::onPlaytest @ 0x1004048b4", "LevelEditorLayer::onStopPlaytest @ 0x1004052e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}