{"type": "func", "start": 3375260, "end": 3375632, "name": "GJLocalLevelScoreCell::loadFromScore", "pseudocode": "// \n// GJLocalLevelScoreCell::loadFromScore from 0x33809c to 0x338210 (372 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bd00\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 GJLocalLevelScoreCell::loadFromScore(GJLocalLevelScoreCell *a1, GJLocalScore *a2)\n{\n  GJLocalScore *m_localScore; // r3\n  GameToolbox *v5; // r0\n  char *v6; // r1\n  cocos2d::CCSprite *v7; // r6\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10\n  cocos2d::CCLabelBMFont *v9; // r6\n  void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10\n  void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10\n  cocos2d::CCLabelBMFont *v12; // [sp+0h] [bp-18h] BYREF\n  GameToolbox v13; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCSprite *v14; // [sp+8h] [bp-10h] BYREF\n  cocos2d::CCPoint v15; // [sp+Ch] [bp-Ch] BYREF\n\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);\n  a1->m_localScore = a2;\n  sub_776584((int)&v12, (char *)&unk_939830);\n  m_localScore = a1->m_localScore;\n  if ( m_localScore->m_type )\n  {\n    GameToolbox::pointsToString((GameToolbox *)&v15, m_localScore->m_points);\n    sub_774794(&v12, &v15);\n    v5 = (GameToolbox *)&v15;\n  }\n  else\n  {\n    GameToolbox::msToTimeString(&v13, m_localScore->m_points, 1, (int)m_localScore);\n    sub_774794(&v12, &v13);\n    v5 = &v13;\n  }\n  sub_774008(v5);\n  if ( a1->m_localScore->m_type == 1 )\n    v6 = \"GJ_pointsIcon_001.png\";\n  else\n    v6 = \"GJ_timeIcon_001.png\";\n  sub_776584((int)&v14, v6);\n  v7 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v14);\n  ((void (__fastcall *)(cocos2d::CCSprite *, int))v7->setScale)(v7, 1057803469);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 20);\n  setPosition = v7->setPosition;\n  cocos2d::CCPoint::CCPoint(&v15, 20.0, a1->m_height * 0.5);\n  setPosition(v7, &v15);\n  v9 = cocos2d::CCLabelBMFont::create();\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 2);\n  setAnchorPoint = v9->setAnchorPoint;\n  cocos2d::CCPoint::CCPoint(&v15, 0.0, 0.5);\n  setAnchorPoint(v9, &v15);\n  cocos2d::CCLabelBMFont::limitLabelWidth(v9, 200.0, 0.46, 0.0);\n  v11 = v9->setPosition;\n  cocos2d::CCPoint::CCPoint(&v15, 40.0, (float)(a1->m_height * 0.5) + 0.5);\n  v11(v9, &v15);\n  sub_774008(&v14);\n  sub_774008(&v12);\n}", "assembly": "; \n; GJLocalLevelScoreCell::loadFromScore from 0x33809c to 0x338210 (372 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bd00\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-R10,LR}                                            ; +0x0, 0x33809c\nMOV             R5, R0                                                 ; +0x4, 0x3380a0\nLDR             R7, =(__stack_chk_guard_ptr - 0x3380B0)                ; +0x6, 0x3380a2\nMOV             R4, R1                                                 ; +0x8, 0x3380a4\nVPUSH           {D8}                                                   ; +0xa, 0x3380a6\nMOVS            R1, #1                                                 ; +0xe, 0x3380aa\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3380ac\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x3380ae\nLDR.W           R0, [R0,#0x194]                                        ; +0x14, 0x3380b0\nLDR             R3, [R7]                                               ; +0x18, 0x3380b4\nSUB             SP, SP, #0x18                                          ; +0x1a, 0x3380b6\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1c, 0x3380b8\nMOV             R8, SP                                                 ; +0x1e, 0x3380ba\nLDR             R3, [R0]                                               ; +0x20, 0x3380bc\nLDR.W           R3, [R3,#0x11C]                                        ; +0x22, 0x3380be\nBLX             R3                                                     ; +0x26, 0x3380c2\nSTR.W           R4, [R5,#0x19C]                                        ; +0x28, 0x3380c4\nLDR             R1, =(unk_939830 - 0x3380D4)                           ; +0x2c, 0x3380c8\nADD             R4, SP, #0x18+var_C                                    ; +0x2e, 0x3380ca\nMOV             R0, SP; int                                            ; +0x30, 0x3380cc\nMOV             R2, R4                                                 ; +0x32, 0x3380ce\nADD             R1, PC; unk_939830 ; char *                            ; +0x34, 0x3380d0\nBL              sub_776584                                             ; +0x36, 0x3380d2\nLDR.W           R3, [R5,#0x19C]                                        ; +0x3a, 0x3380d6\nLDR             R2, [R3,#0x38]                                         ; +0x3e, 0x3380da\nCBNZ            R2, loc_3380F6                                         ; +0x40, 0x3380dc\nADD             R6, SP, #0x18+var_14                                   ; +0x42, 0x3380de\nLDR             R1, [R3,#0x34]; int                                    ; +0x44, 0x3380e0\nMOVS            R2, #1; int                                            ; +0x46, 0x3380e2\nMOV             R0, R6; this                                           ; +0x48, 0x3380e4\nBL              _ZN11GameToolbox14msToTimeStringEii; GameToolbox::msToTimeString(int,int) ; +0x4a, 0x3380e6\nMOV             R0, SP                                                 ; +0x4e, 0x3380ea\nMOV             R1, R6                                                 ; +0x50, 0x3380ec\nBL              sub_774794                                             ; +0x52, 0x3380ee\nMOV             R0, R6                                                 ; +0x56, 0x3380f2\nB               loc_338108                                             ; +0x58, 0x3380f4\nMOV             R0, R4; this                                           ; +0x5a, 0x3380f6\nLDR             R1, [R3,#0x34]; int                                    ; +0x5c, 0x3380f8\nBL              _ZN11GameToolbox14pointsToStringEi; GameToolbox::pointsToString(int) ; +0x5e, 0x3380fa\nMOV             R0, SP                                                 ; +0x62, 0x3380fe\nMOV             R1, R4                                                 ; +0x64, 0x338100\nBL              sub_774794                                             ; +0x66, 0x338102\nMOV             R0, R4                                                 ; +0x6a, 0x338106\nBL              sub_774008                                             ; +0x6c, 0x338108\nLDR.W           R3, [R5,#0x19C]                                        ; +0x70, 0x33810c\nLDR             R3, [R3,#0x38]                                         ; +0x74, 0x338110\nCMP             R3, #1                                                 ; +0x76, 0x338112\nBEQ             loc_33811C                                             ; +0x78, 0x338114\nLDR             R1, =(aGjTimeicon001P - 0x33811C); \"GJ_timeIcon_001.png\" ; +0x7a, 0x338116\nADD             R1, PC; \"GJ_timeIcon_001.png\"                          ; +0x7c, 0x338118\nB               loc_338120                                             ; +0x7e, 0x33811a\nLDR             R1, =(aGjPointsicon00 - 0x338122); \"GJ_pointsIcon_001.png\" ; +0x80, 0x33811c\nADD             R1, PC; \"GJ_pointsIcon_001.png\"                        ; +0x82, 0x33811e\nADD.W           R9, SP, #0x18+var_10                                   ; +0x84, 0x338120\nMOV             R2, R4                                                 ; +0x88, 0x338124\nMOV             R0, R9; int                                            ; +0x8a, 0x338126\nBL              sub_776584                                             ; +0x8c, 0x338128\nLDR             R0, [SP,#0x18+var_10]; this                            ; +0x90, 0x33812c\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x92, 0x33812e\nLDR             R3, [R0]                                               ; +0x96, 0x338132\nMOV             R6, R0                                                 ; +0x98, 0x338134\nLDR             R1, =0x3F0CCCCD                                        ; +0x9a, 0x338136\nLDR             R3, [R3,#0x50]                                         ; +0x9c, 0x338138\nBLX             R3                                                     ; +0x9e, 0x33813a\nLDR.W           R0, [R5,#0x194]                                        ; +0xa0, 0x33813c\nMOV             R1, R6                                                 ; +0xa4, 0x338140\nMOVS            R2, #0x14                                              ; +0xa6, 0x338142\nLDR             R3, [R0]                                               ; +0xa8, 0x338144\nLDR.W           R3, [R3,#0xE0]                                         ; +0xaa, 0x338146\nBLX             R3                                                     ; +0xae, 0x33814a\nVMOV.F32        S16, #0.5                                              ; +0xb0, 0x33814c\nLDR             R3, [R6]                                               ; +0xb4, 0x338150\nVLDR            S15, [R5,#0x18C]                                       ; +0xb6, 0x338152\nMOV             R0, R4; this                                           ; +0xba, 0x338156\nLDR             R1, flt_338214; float                                  ; +0xbc, 0x338158\nLDR.W           R10, [R3,#0x5C]                                        ; +0xbe, 0x33815a\nVMUL.F32        S15, S15, S16                                          ; +0xc2, 0x33815e\nVMOV            R2, S15; float                                         ; +0xc6, 0x338162\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xca, 0x338166\nMOV             R0, R6                                                 ; +0xce, 0x33816a\nMOV             R1, R4                                                 ; +0xd0, 0x33816c\nBLX             R10                                                    ; +0xd2, 0x33816e\nLDR             R1, =(aBigfontFnt - 0x338178); \"bigFont.fnt\"           ; +0xd4, 0x338170\nLDR             R0, [SP,#0x18+var_18]; this                            ; +0xd6, 0x338172\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0xd8, 0x338174\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xda, 0x338176\nMOV             R6, R0                                                 ; +0xde, 0x33817a\nLDR.W           R0, [R5,#0x194]                                        ; +0xe0, 0x33817c\nMOV             R1, R6                                                 ; +0xe4, 0x338180\nMOVS            R2, #2                                                 ; +0xe6, 0x338182\nLDR             R3, [R0]                                               ; +0xe8, 0x338184\nLDR.W           R3, [R3,#0xE0]                                         ; +0xea, 0x338186\nBLX             R3                                                     ; +0xee, 0x33818a\nLDR             R3, [R6]                                               ; +0xf0, 0x33818c\nMOV             R0, R4; this                                           ; +0xf2, 0x33818e\nMOVS            R1, #0; float                                          ; +0xf4, 0x338190\nVMOV            R2, S16; float                                         ; +0xf6, 0x338192\nLDR.W           R10, [R3,#0x8C]                                        ; +0xfa, 0x338196\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xfe, 0x33819a\nMOV             R0, R6                                                 ; +0x102, 0x33819e\nMOV             R1, R4                                                 ; +0x104, 0x3381a0\nBLX             R10                                                    ; +0x106, 0x3381a2\nMOV             R0, R6; this                                           ; +0x108, 0x3381a4\nLDR             R1, flt_338218; float                                  ; +0x10a, 0x3381a6\nLDR             R2, flt_33821C; float                                  ; +0x10c, 0x3381a8\nMOVS            R3, #0; float                                          ; +0x10e, 0x3381aa\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x110, 0x3381ac\nVLDR            S15, [R5,#0x18C]                                       ; +0x114, 0x3381b0\nMOV             R0, R4; this                                           ; +0x118, 0x3381b4\nLDR             R3, [R6]                                               ; +0x11a, 0x3381b6\nLDR             R1, flt_338220; float                                  ; +0x11c, 0x3381b8\nVMOV.F32        S14, S16                                               ; +0x11e, 0x3381ba\nLDR.W           R10, [R3,#0x5C]                                        ; +0x122, 0x3381be\nVMLA.F32        S14, S15, S16                                          ; +0x126, 0x3381c2\nVMOV            R2, S14; float                                         ; +0x12a, 0x3381c6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x12e, 0x3381ca\nMOV             R0, R6                                                 ; +0x132, 0x3381ce\nMOV             R1, R4                                                 ; +0x134, 0x3381d0\nBLX             R10                                                    ; +0x136, 0x3381d2\nMOV             R0, R9                                                 ; +0x138, 0x3381d4\nBL              sub_774008                                             ; +0x13a, 0x3381d6\nMOV             R0, R8                                                 ; +0x13e, 0x3381da\nBL              sub_774008                                             ; +0x140, 0x3381dc\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x144, 0x3381e0\nLDR             R3, [R7]                                               ; +0x146, 0x3381e2\nCMP             R2, R3                                                 ; +0x148, 0x3381e4\nBEQ             loc_338206                                             ; +0x14a, 0x3381e6\nBLX             __stack_chk_fail                                       ; +0x14c, 0x3381e8\nMOV             R0, R6                                                 ; +0x150, 0x3381ec\nB               loc_3381F6                                             ; +0x152, 0x3381ee\nMOV             R0, R4                                                 ; +0x154, 0x3381f0\nB               loc_3381F6                                             ; +0x156, 0x3381f2\nMOV             R0, R9                                                 ; +0x158, 0x3381f4\nBL              sub_774008                                             ; +0x15a, 0x3381f6\nB               loc_3381FC                                             ; +0x15e, 0x3381fa\nMOV             R0, R8                                                 ; +0x160, 0x3381fc\nBL              sub_774008                                             ; +0x162, 0x3381fe\nBL              __cxa_end_cleanup                                      ; +0x166, 0x338202\nADD             SP, SP, #0x18                                          ; +0x16a, 0x338206\nVPOP            {D8}                                                   ; +0x16c, 0x338208\nPOP.W           {R4-R10,PC}                                            ; +0x170, 0x33820c", "xrefs": ["CustomListView::loadCell @ 0x33bd00"], "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"}