{"type": "func", "start": 4298959244, "end": 4298959368, "name": "GameStatsManager::getStarLevelKey", "pseudocode": "// \n// GameStatsManager::getStarLevelKey from 0x1003ce98c to 0x1003cea08 (124 bytes)\n// \n// 4 xrefs:\n// > sub_1003CEC70 @ 0x1003cec84\n// > sub_1003CEEC0 @ 0x1003ceef8\n// > sub_1003CEFD0 @ 0x1003cf008\n// > sub_1003CF0E8 @ 0x1003cf11c\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:04:10 +0000\n// \n\n__int64 __fastcall GameStatsManager::getStarLevelKey(__int64 a1, __int64 a2)\n{\n  void *v2; // x0\n\n  if ( *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924) < 1 )\n  {\n    if ( *(_BYTE *)(a2 + 649) == 1 )\n      v2 = sub_1003065B0(\"gstar_%i\");\n    else\n      v2 = sub_1003065B0(\"star_%i\");\n  }\n  else\n  {\n    v2 = sub_1003065B0(\"%s%i\");\n  }\n  return cocos2d::CCString::getCString((__int64)v2);\n}", "assembly": "; \n; GameStatsManager::getStarLevelKey from 0x1003ce98c to 0x1003cea08 (124 bytes)\n; \n; 4 xrefs:\n; > sub_1003CEC70 @ 0x1003cec84\n; > sub_1003CEEC0 @ 0x1003ceef8\n; > sub_1003CEFD0 @ 0x1003cf008\n; > sub_1003CF0E8 @ 0x1003cf11c\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:04:10 +0000\n; \nSUB             SP, SP, #0x20                                          ; +0x0, 0x1003ce98c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003ce990\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003ce994\nLDR             W8, [X1,#0x398]                                        ; +0xc, 0x1003ce998\nLDR             W9, [X1,#0x39C]                                        ; +0x10, 0x1003ce99c\nSUB             W8, W8, W9                                             ; +0x14, 0x1003ce9a0\nCMP             W8, #1                                                 ; +0x18, 0x1003ce9a4\nB.LT            loc_1003CE9C4                                          ; +0x1c, 0x1003ce9a8\nADRL            X9, aDstar; \"dstar_\"                                   ; +0x20, 0x1003ce9ac\nSTP             X9, X8, [SP,#0x10+var_10]                              ; +0x28, 0x1003ce9b4\nADRL            X0, aSI; \"%s%i\"                                        ; +0x2c, 0x1003ce9b8\nB               loc_1003CE9F8                                          ; +0x34, 0x1003ce9c0\nLDRB            W9, [X1,#0x289]                                        ; +0x38, 0x1003ce9c4\nLDR             W8, [X1,#0x148]                                        ; +0x3c, 0x1003ce9c8\nLDR             W10, [X1,#0x14C]                                       ; +0x40, 0x1003ce9cc\nSUB             W8, W8, W10                                            ; +0x44, 0x1003ce9d0\nCMP             W9, #1                                                 ; +0x48, 0x1003ce9d4\nB.NE            loc_1003CE9EC                                          ; +0x4c, 0x1003ce9d8\nSTR             X8, [SP,#0x10+var_10]                                  ; +0x50, 0x1003ce9dc\nADRL            X0, aGstarI; \"gstar_%i\"                                ; +0x54, 0x1003ce9e0\nB               loc_1003CE9F8                                          ; +0x5c, 0x1003ce9e8\nSTR             X8, [SP,#0x10+var_10]                                  ; +0x60, 0x1003ce9ec\nADRL            X0, aStarI; \"star_%i\"                                  ; +0x64, 0x1003ce9f0\nBL              sub_1003065B0                                          ; +0x6c, 0x1003ce9f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1003ce9fc\nADD             SP, SP, #0x20 ; ' '                                    ; +0x74, 0x1003cea00\nB               cocos2d__CCString__getCString                          ; +0x78, 0x1003cea04", "xrefs": ["sub_1003CEC70 @ 0x1003cec84", "sub_1003CEEC0 @ 0x1003ceef8", "sub_1003CEFD0 @ 0x1003cf008", "sub_1003CF0E8 @ 0x1003cf11c"], "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"}