{"type": "func", "start": 3966860, "end": 3967190, "name": "GJGameLevel::getListSnapshot", "pseudocode": "// \n// GJGameLevel::getListSnapshot from 0x3c878c to 0x3c88d6 (330 bytes)\n// \n// 2 xrefs:\n// > GJLevelList::getListLevelsArray @ 0x3cf036\n// > GJLevelList::addLevelToList @ 0x3d7d08\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\nGJGameLevel *GJGameLevel::getListSnapshot(GJGameLevel *a1)\n{\n  int *v2; // r5\n  GJGameLevel *v4; // [sp+0h] [bp-Ch] BYREF\n\n  v4 = a1;\n  v2 = GJGameLevel::create(a1);\n  GJGameLevel::setLevelID((GJGameLevel *)v2, a1->m_levelID.random - a1->m_levelID.seed);\n  sub_775C20(&v4, &a1->m_levelName);\n  sub_775D40(v2 + 70, &v4);\n  sub_774008(&v4);\n  v2[135] = a1->m_levelLength;\n  v2[196] = a1->m_timestamp;\n  GJGameLevel::setAccountID((GJGameLevel *)v2, a1->m_accountID.random - a1->m_accountID.seed);\n  sub_775C20(&v4, &a1->m_creatorName);\n  sub_775D40(v2 + 73, &v4);\n  sub_774008(&v4);\n  v2[133] = a1->m_likes;\n  v2[98] = a1->m_downloads;\n  v2[88] = a1->m_audioTrack;\n  v2[89] = a1->m_songID;\n  v2[190] = a1->m_levelType;\n  v2[96] = a1->m_ratings;\n  v2[97] = a1->m_ratingsSum;\n  GJGameLevel::setDemon((GJGameLevel *)v2, a1->m_demon.random - a1->m_demon.seed);\n  v2[146] = a1->m_demonDifficulty;\n  *((_BYTE *)v2 + 600) = a1->m_autoLevel;\n  v2[136] = a1->m_featured;\n  v2[137] = a1->m_isEpic;\n  GJGameLevel::setStars((GJGameLevel *)v2, a1->m_stars.random - a1->m_stars.seed);\n  v2[151] = a1->m_coins;\n  GJGameLevel::setCoinsVerified((GJGameLevel *)v2, a1->m_coinsVerified.random - a1->m_coinsVerified.seed);\n  GJGameLevel::setOriginalLevel((GJGameLevel *)v2, a1->m_originalLevel.random != a1->m_originalLevel.seed);\n  GJGameLevel::setObjectCount((GJGameLevel *)v2, a1->m_objectCount.random - a1->m_objectCount.seed);\n  return (GJGameLevel *)v2;\n}", "assembly": "; \n; GJGameLevel::getListSnapshot from 0x3c878c to 0x3c88d6 (330 bytes)\n; \n; 2 xrefs:\n; > GJLevelList::getListLevelsArray @ 0x3cf036\n; > GJLevelList::addLevelToList @ 0x3d7d08\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            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x3c878c\nMOV             R4, R0                                                 ; +0x2, 0x3c878e\nLDR             R7, =(__stack_chk_guard_ptr - 0x3C8798)                ; +0x4, 0x3c8790\nMOV             R6, SP                                                 ; +0x6, 0x3c8792\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x8, 0x3c8794\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xa, 0x3c8796\nLDR             R3, [R7]                                               ; +0xc, 0x3c8798\nSTR             R3, [SP,#0xC+var_8]                                    ; +0xe, 0x3c879a\nBL              _ZN11GJGameLevel6createEv; GJGameLevel::create(void)   ; +0x10, 0x3c879c\nLDR.W           R3, [R4,#0x110]                                        ; +0x14, 0x3c87a0\nLDR.W           R1, [R4,#0x10C]                                        ; +0x18, 0x3c87a4\nSUBS            R1, R1, R3; int                                        ; +0x1c, 0x3c87a8\nMOV             R5, R0                                                 ; +0x1e, 0x3c87aa\nBL              _ZN11GJGameLevel10setLevelIDEi; GJGameLevel::setLevelID(int) ; +0x20, 0x3c87ac\nADD.W           R1, R4, #0x118                                         ; +0x24, 0x3c87b0\nMOV             R0, SP                                                 ; +0x28, 0x3c87b4\nBL              sub_775C20                                             ; +0x2a, 0x3c87b6\nADD.W           R0, R5, #0x118                                         ; +0x2e, 0x3c87ba\nMOV             R1, SP                                                 ; +0x32, 0x3c87be\nBL              sub_775D40                                             ; +0x34, 0x3c87c0\nMOV             R0, SP                                                 ; +0x38, 0x3c87c4\nBL              sub_774008                                             ; +0x3a, 0x3c87c6\nLDR.W           R3, [R4,#0x21C]                                        ; +0x3e, 0x3c87ca\nMOV             R0, R5; this                                           ; +0x42, 0x3c87ce\nSTR.W           R3, [R5,#0x21C]                                        ; +0x44, 0x3c87d0\nLDR.W           R3, [R4,#0x310]                                        ; +0x48, 0x3c87d4\nSTR.W           R3, [R5,#0x310]                                        ; +0x4c, 0x3c87d8\nLDR.W           R3, [R4,#0x154]                                        ; +0x50, 0x3c87dc\nLDR.W           R1, [R4,#0x150]                                        ; +0x54, 0x3c87e0\nSUBS            R1, R1, R3; int                                        ; +0x58, 0x3c87e4\nBL              _ZN11GJGameLevel12setAccountIDEi; GJGameLevel::setAccountID(int) ; +0x5a, 0x3c87e6\nADD.W           R1, R4, #0x124                                         ; +0x5e, 0x3c87ea\nMOV             R0, SP                                                 ; +0x62, 0x3c87ee\nBL              sub_775C20                                             ; +0x64, 0x3c87f0\nADD.W           R0, R5, #0x124                                         ; +0x68, 0x3c87f4\nMOV             R1, SP                                                 ; +0x6c, 0x3c87f8\nBL              sub_775D40                                             ; +0x6e, 0x3c87fa\nMOV             R0, SP                                                 ; +0x72, 0x3c87fe\nBL              sub_774008                                             ; +0x74, 0x3c8800\nLDR.W           R3, [R4,#0x214]                                        ; +0x78, 0x3c8804\nMOV             R0, R5; this                                           ; +0x7c, 0x3c8808\nSTR.W           R3, [R5,#0x214]                                        ; +0x7e, 0x3c880a\nLDR.W           R3, [R4,#0x188]                                        ; +0x82, 0x3c880e\nSTR.W           R3, [R5,#0x188]                                        ; +0x86, 0x3c8812\nLDR.W           R3, [R4,#0x160]                                        ; +0x8a, 0x3c8816\nSTR.W           R3, [R5,#0x160]                                        ; +0x8e, 0x3c881a\nLDR.W           R3, [R4,#0x164]                                        ; +0x92, 0x3c881e\nSTR.W           R3, [R5,#0x164]                                        ; +0x96, 0x3c8822\nLDR.W           R3, [R4,#0x2F8]                                        ; +0x9a, 0x3c8826\nSTR.W           R3, [R5,#0x2F8]                                        ; +0x9e, 0x3c882a\nLDR.W           R3, [R4,#0x180]                                        ; +0xa2, 0x3c882e\nSTR.W           R3, [R5,#0x180]                                        ; +0xa6, 0x3c8832\nLDR.W           R3, [R4,#0x184]                                        ; +0xaa, 0x3c8836\nSTR.W           R3, [R5,#0x184]                                        ; +0xae, 0x3c883a\nLDR.W           R3, [R4,#0x240]                                        ; +0xb2, 0x3c883e\nLDR.W           R1, [R4,#0x23C]                                        ; +0xb6, 0x3c8842\nSUBS            R1, R1, R3; int                                        ; +0xba, 0x3c8846\nBL              _ZN11GJGameLevel8setDemonEi; GJGameLevel::setDemon(int) ; +0xbc, 0x3c8848\nLDR.W           R3, [R4,#0x248]                                        ; +0xc0, 0x3c884c\nMOV             R0, R5; this                                           ; +0xc4, 0x3c8850\nSTR.W           R3, [R5,#0x248]                                        ; +0xc6, 0x3c8852\nLDRB.W          R3, [R4,#0x258]                                        ; +0xca, 0x3c8856\nSTRB.W          R3, [R5,#0x258]                                        ; +0xce, 0x3c885a\nLDR.W           R3, [R4,#0x220]                                        ; +0xd2, 0x3c885e\nSTR.W           R3, [R5,#0x220]                                        ; +0xd6, 0x3c8862\nLDR.W           R3, [R4,#0x224]                                        ; +0xda, 0x3c8866\nSTR.W           R3, [R5,#0x224]                                        ; +0xde, 0x3c886a\nLDR.W           R3, [R4,#0x250]                                        ; +0xe2, 0x3c886e\nLDR.W           R1, [R4,#0x24C]                                        ; +0xe6, 0x3c8872\nSUBS            R1, R1, R3; int                                        ; +0xea, 0x3c8876\nBL              _ZN11GJGameLevel8setStarsEi; GJGameLevel::setStars(int) ; +0xec, 0x3c8878\nLDR.W           R3, [R4,#0x25C]                                        ; +0xf0, 0x3c887c\nMOV             R0, R5; this                                           ; +0xf4, 0x3c8880\nSTR.W           R3, [R5,#0x25C]                                        ; +0xf6, 0x3c8882\nLDR.W           R3, [R4,#0x264]                                        ; +0xfa, 0x3c8886\nLDR.W           R1, [R4,#0x260]                                        ; +0xfe, 0x3c888a\nSUBS            R1, R1, R3; int                                        ; +0x102, 0x3c888e\nBL              _ZN11GJGameLevel16setCoinsVerifiedEi; GJGameLevel::setCoinsVerified(int) ; +0x104, 0x3c8890\nLDR.W           R3, [R4,#0x278]                                        ; +0x108, 0x3c8894\nLDR.W           R1, [R4,#0x274]                                        ; +0x10c, 0x3c8898\nMOV             R0, R5; this                                           ; +0x110, 0x3c889c\nSUBS            R1, R1, R3                                             ; +0x112, 0x3c889e\nIT NE                                                                  ; +0x114, 0x3c88a0\nMOVNE           R1, #1; int                                            ; +0x116, 0x3c88a2\nBL              _ZN11GJGameLevel16setOriginalLevelEi; GJGameLevel::setOriginalLevel(int) ; +0x118, 0x3c88a4\nLDR.W           R3, [R4,#0x174]                                        ; +0x11c, 0x3c88a8\nLDR.W           R1, [R4,#0x170]                                        ; +0x120, 0x3c88ac\nMOV             R0, R5; this                                           ; +0x124, 0x3c88b0\nSUBS            R1, R1, R3; int                                        ; +0x126, 0x3c88b2\nBL              _ZN11GJGameLevel14setObjectCountEi; GJGameLevel::setObjectCount(int) ; +0x128, 0x3c88b4\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x12c, 0x3c88b8\nLDR             R3, [R7]                                               ; +0x12e, 0x3c88ba\nMOV             R0, R5                                                 ; +0x130, 0x3c88bc\nCMP             R2, R3                                                 ; +0x132, 0x3c88be\nBEQ             loc_3C88D2                                             ; +0x134, 0x3c88c0\nBLX             __stack_chk_fail                                       ; +0x136, 0x3c88c2\nB               loc_3C88C8                                             ; +0x13a, 0x3c88c6\nMOV             R0, R6                                                 ; +0x13c, 0x3c88c8\nBL              sub_774008                                             ; +0x13e, 0x3c88ca\nBL              __cxa_end_cleanup                                      ; +0x142, 0x3c88ce\nADD             SP, SP, #0xC                                           ; +0x146, 0x3c88d2\nPOP             {R4-R7,PC}                                             ; +0x148, 0x3c88d4", "xrefs": ["GJLevelList::getListLevelsArray @ 0x3cf036", "GJLevelList::addLevelToList @ 0x3d7d08"], "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"}