{"type": "func", "start": 3970836, "end": 3971242, "name": "GJGameLevel::copyLevelInfo", "pseudocode": "// \n// GJGameLevel::copyLevelInfo from 0x3c9714 to 0x3c98aa (406 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::onClone @ 0x3b28aa\n// > EditLevelLayer::onClone @ 0x3b8042\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 GJGameLevel::copyLevelInfo(GJGameLevel *a1)\n{\n  int v1; // r1\n  int v2; // r5\n  GameLevelManager *v4; // r7\n  int v5; // r2\n  bool v6; // r3\n  int v7; // r2\n  bool v8; // r3\n  int v9; // [sp+4h] [bp-20h] BYREF\n  _BYTE v10[4]; // [sp+8h] [bp-1Ch] BYREF\n  _BYTE v11[4]; // [sp+Ch] [bp-18h] BYREF\n  _BYTE v12[4]; // [sp+10h] [bp-14h] BYREF\n  cocos2d::CCPoint v13; // [sp+14h] [bp-10h] BYREF\n\n  v2 = v1;\n  v4 = GameLevelManager::sharedState();\n  sub_775C20(&v13, v2 + 280);\n  GameLevelManager::getNextLevelName(&v9, (int)v4, (const char **)&v13);\n  sub_774008(&v13);\n  sub_775C20(v10, &v9);\n  sub_775D40(&a1->m_levelName, v10);\n  sub_774008(v10);\n  sub_775C20(v11, v2 + 288);\n  sub_775D40(&a1->m_levelString, v11);\n  sub_774008(v11);\n  a1->m_audioTrack = *(_DWORD *)(v2 + 352);\n  a1->m_songID = *(_DWORD *)(v2 + 356);\n  a1->m_twoPlayerMode = *(_BYTE *)(v2 + 640);\n  a1->m_levelLength = *(_DWORD *)(v2 + 540);\n  a1->m_timestamp = *(_DWORD *)(v2 + 784);\n  a1->m_coins = *(_DWORD *)(v2 + 604);\n  GJGameLevel::unverifyCoins(a1);\n  a1->m_lastBuildTab = *(_DWORD *)(v2 + 748);\n  a1->m_lastBuildPage = *(_DWORD *)(v2 + 752);\n  a1->m_lastEditorZoom = *(float *)(v2 + 744);\n  cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)(v2 + 736));\n  cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastCameraPos, COERCE_FLOAT(&v13), v5, v6);\n  a1->m_lastBuildGroupID = *(_DWORD *)(v2 + 756);\n  a1->m_workingTime2 = *(_DWORD *)(v2 + 404) + *(_DWORD *)(v2 + 400);\n  a1->m_workingTime = 0;\n  sub_775C20(v12, v2 + 312);\n  sub_775D40(&a1->m_savedCameraPositions, v12);\n  sub_774008(v12);\n  cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)(v2 + 316));\n  cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_previewLock, COERCE_FLOAT(&v13), v7, v8);\n  sub_775C20(&v13, v2 + 308);\n  sub_775D40(&a1->m_lockedEditorLayers, &v13);\n  sub_774008(&v13);\n  sub_775D40(&a1->m_sfxIDs, v2 + 796);\n  sub_775D40(&a1->m_songIDs, v2 + 792);\n  a1->m_songSize = *(_DWORD *)(v2 + 800);\n  sub_774008(&v9);\n}", "assembly": "; \n; GJGameLevel::copyLevelInfo from 0x3c9714 to 0x3c98aa (406 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::onClone @ 0x3b28aa\n; > EditLevelLayer::onClone @ 0x3b8042\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.W          {R4-R9,LR}                                             ; +0x0, 0x3c9714\nSUB             SP, SP, #0x24                                          ; +0x4, 0x3c9718\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x3C9728)                ; +0x6, 0x3c971a\nMOV             R5, R1                                                 ; +0xa, 0x3c971e\nMOV             R4, R0                                                 ; +0xc, 0x3c9720\nADD             R6, SP, #0x24+var_10                                   ; +0xe, 0x3c9722\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3c9724\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x12, 0x3c9726\nADD.W           R9, SP, #0x24+var_20                                   ; +0x16, 0x3c972a\nLDR.W           R3, [R8]                                               ; +0x1a, 0x3c972e\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1e, 0x3c9732\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x20, 0x3c9734\nADD.W           R1, R5, #0x118                                         ; +0x24, 0x3c9738\nMOV             R7, R0                                                 ; +0x28, 0x3c973c\nMOV             R0, R6                                                 ; +0x2a, 0x3c973e\nBL              sub_775C20                                             ; +0x2c, 0x3c9740\nMOV             R0, R9                                                 ; +0x30, 0x3c9744\nMOV             R1, R7                                                 ; +0x32, 0x3c9746\nMOV             R2, R6                                                 ; +0x34, 0x3c9748\nBL              _ZN16GameLevelManager16getNextLevelNameESs; GameLevelManager::getNextLevelName(std::string) ; +0x36, 0x3c974a\nADD             R7, SP, #0x24+var_1C                                   ; +0x3a, 0x3c974e\nMOV             R0, R6                                                 ; +0x3c, 0x3c9750\nBL              sub_774008                                             ; +0x3e, 0x3c9752\nMOV             R1, R9                                                 ; +0x42, 0x3c9756\nMOV             R0, R7                                                 ; +0x44, 0x3c9758\nBL              sub_775C20                                             ; +0x46, 0x3c975a\nADD.W           R0, R4, #0x118                                         ; +0x4a, 0x3c975e\nMOV             R1, R7                                                 ; +0x4e, 0x3c9762\nBL              sub_775D40                                             ; +0x50, 0x3c9764\nMOV             R0, R7                                                 ; +0x54, 0x3c9768\nADD             R7, SP, #0x24+var_18                                   ; +0x56, 0x3c976a\nBL              sub_774008                                             ; +0x58, 0x3c976c\nADD.W           R1, R5, #0x120                                         ; +0x5c, 0x3c9770\nMOV             R0, R7                                                 ; +0x60, 0x3c9774\nBL              sub_775C20                                             ; +0x62, 0x3c9776\nADD.W           R0, R4, #0x120                                         ; +0x66, 0x3c977a\nMOV             R1, R7                                                 ; +0x6a, 0x3c977e\nBL              sub_775D40                                             ; +0x6c, 0x3c9780\nMOV             R0, R7                                                 ; +0x70, 0x3c9784\nBL              sub_774008                                             ; +0x72, 0x3c9786\nLDR.W           R3, [R5,#0x160]                                        ; +0x76, 0x3c978a\nMOV             R0, R4; this                                           ; +0x7a, 0x3c978e\nSTR.W           R3, [R4,#0x160]                                        ; +0x7c, 0x3c9790\nLDR.W           R3, [R5,#0x164]                                        ; +0x80, 0x3c9794\nSTR.W           R3, [R4,#0x164]                                        ; +0x84, 0x3c9798\nLDRB.W          R3, [R5,#0x280]                                        ; +0x88, 0x3c979c\nSTRB.W          R3, [R4,#0x280]                                        ; +0x8c, 0x3c97a0\nLDR.W           R3, [R5,#0x21C]                                        ; +0x90, 0x3c97a4\nSTR.W           R3, [R4,#0x21C]                                        ; +0x94, 0x3c97a8\nLDR.W           R3, [R5,#0x310]                                        ; +0x98, 0x3c97ac\nSTR.W           R3, [R4,#0x310]                                        ; +0x9c, 0x3c97b0\nLDR.W           R3, [R5,#0x25C]                                        ; +0xa0, 0x3c97b4\nSTR.W           R3, [R4,#0x25C]                                        ; +0xa4, 0x3c97b8\nBL              _ZN11GJGameLevel13unverifyCoinsEv; GJGameLevel::unverifyCoins(void) ; +0xa8, 0x3c97bc\nLDR.W           R3, [R5,#0x2EC]                                        ; +0xac, 0x3c97c0\nMOV             R0, R6; this                                           ; +0xb0, 0x3c97c4\nADD.W           R1, R5, #0x2E0; cocos2d::CCPoint *                     ; +0xb2, 0x3c97c6\nSTR.W           R3, [R4,#0x2EC]                                        ; +0xb6, 0x3c97ca\nLDR.W           R3, [R5,#0x2F0]                                        ; +0xba, 0x3c97ce\nSTR.W           R3, [R4,#0x2F0]                                        ; +0xbe, 0x3c97d2\nLDR.W           R3, [R5,#0x2E8]                                        ; +0xc2, 0x3c97d6\nSTR.W           R3, [R4,#0x2E8]                                        ; +0xc6, 0x3c97da\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xca, 0x3c97de\nADD.W           R0, R4, #0x2E0                                         ; +0xce, 0x3c97e2\nMOV             R1, R6                                                 ; +0xd2, 0x3c97e6\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xd4, 0x3c97e8\nLDR.W           R3, [R5,#0x2F4]                                        ; +0xd8, 0x3c97ec\nADD             R7, SP, #0x24+var_14                                   ; +0xdc, 0x3c97f0\nADD.W           R1, R5, #0x138                                         ; +0xde, 0x3c97f2\nMOV             R0, R7                                                 ; +0xe2, 0x3c97f6\nSTR.W           R3, [R4,#0x2F4]                                        ; +0xe4, 0x3c97f8\nLDR.W           R2, [R5,#0x190]                                        ; +0xe8, 0x3c97fc\nLDR.W           R3, [R5,#0x194]                                        ; +0xec, 0x3c9800\nADD             R3, R2                                                 ; +0xf0, 0x3c9804\nSTR.W           R3, [R4,#0x194]                                        ; +0xf2, 0x3c9806\nMOVS            R3, #0                                                 ; +0xf6, 0x3c980a\nSTR.W           R3, [R4,#0x190]                                        ; +0xf8, 0x3c980c\nBL              sub_775C20                                             ; +0xfc, 0x3c9810\nADD.W           R0, R4, #0x138                                         ; +0x100, 0x3c9814\nMOV             R1, R7                                                 ; +0x104, 0x3c9818\nBL              sub_775D40                                             ; +0x106, 0x3c981a\nMOV             R0, R7                                                 ; +0x10a, 0x3c981e\nBL              sub_774008                                             ; +0x10c, 0x3c9820\nMOV             R0, R6; this                                           ; +0x110, 0x3c9824\nADD.W           R1, R5, #0x13C; cocos2d::CCPoint *                     ; +0x112, 0x3c9826\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x116, 0x3c982a\nADD.W           R0, R4, #0x13C                                         ; +0x11a, 0x3c982e\nMOV             R1, R6                                                 ; +0x11e, 0x3c9832\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x120, 0x3c9834\nMOV             R0, R6                                                 ; +0x124, 0x3c9838\nADD.W           R1, R5, #0x134                                         ; +0x126, 0x3c983a\nBL              sub_775C20                                             ; +0x12a, 0x3c983e\nADD.W           R0, R4, #0x134                                         ; +0x12e, 0x3c9842\nMOV             R1, R6                                                 ; +0x132, 0x3c9846\nBL              sub_775D40                                             ; +0x134, 0x3c9848\nMOV             R0, R6                                                 ; +0x138, 0x3c984c\nBL              sub_774008                                             ; +0x13a, 0x3c984e\nADD.W           R0, R4, #0x31C                                         ; +0x13e, 0x3c9852\nADD.W           R1, R5, #0x31C                                         ; +0x142, 0x3c9856\nBL              sub_775D40                                             ; +0x146, 0x3c985a\nADD.W           R0, R4, #0x318                                         ; +0x14a, 0x3c985e\nADD.W           R1, R5, #0x318                                         ; +0x14e, 0x3c9862\nBL              sub_775D40                                             ; +0x152, 0x3c9866\nLDR.W           R3, [R5,#0x320]                                        ; +0x156, 0x3c986a\nMOV             R0, R9                                                 ; +0x15a, 0x3c986e\nSTR.W           R3, [R4,#0x320]                                        ; +0x15c, 0x3c9870\nBL              sub_774008                                             ; +0x160, 0x3c9874\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x164, 0x3c9878\nLDR.W           R3, [R8]                                               ; +0x166, 0x3c987a\nCMP             R2, R3                                                 ; +0x16a, 0x3c987e\nBEQ             loc_3C98A4                                             ; +0x16c, 0x3c9880\nBLX             __stack_chk_fail                                       ; +0x16e, 0x3c9882\nMOV             R0, R6                                                 ; +0x172, 0x3c9886\nB               loc_3C989C                                             ; +0x174, 0x3c9888\nB               loc_3C988E                                             ; +0x176, 0x3c988a\nB               loc_3C988E                                             ; +0x178, 0x3c988c\nMOV             R0, R7                                                 ; +0x17a, 0x3c988e\nB               loc_3C9894                                             ; +0x17c, 0x3c9890\nMOV             R0, R6                                                 ; +0x17e, 0x3c9892\nBL              sub_774008                                             ; +0x180, 0x3c9894\nB               loc_3C989A                                             ; +0x184, 0x3c9898\nMOV             R0, R9                                                 ; +0x186, 0x3c989a\nBL              sub_774008                                             ; +0x188, 0x3c989c\nBL              __cxa_end_cleanup                                      ; +0x18c, 0x3c98a0\nADD             SP, SP, #0x24 ; '$'                                    ; +0x190, 0x3c98a4\nPOP.W           {R4-R9,PC}                                             ; +0x192, 0x3c98a6", "xrefs": ["LevelInfoLayer::onClone @ 0x3b28aa", "EditLevelLayer::onClone @ 0x3b8042"], "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"}