{"type": "func", "start": 4298076500, "end": 4298076696, "name": "EndLevelLayer::getEndText", "pseudocode": "// \n// EndLevelLayer::getEndText from 0x1002f7154 to 0x1002f7218 (196 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1002f6208\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\nconst char *__fastcall EndLevelLayer::getEndText(EndLevelLayer *a1)\n{\n  GameManager *v1; // x0\n  bool GameVariable; // w19\n  int v3; // w0\n  unsigned int v4; // w8\n  char **v5; // x9\n\n  v1 = GameManager::sharedState();\n  GameVariable = GameManager::getGameVariable(v1, \"0095\");\n  v3 = rand();\n  if ( GameVariable )\n  {\n    v4 = ~(100 * (v3 / 100)) + v3;\n    if ( v4 < 0x63 )\n    {\n      v5 = off_1007E9760;\n      return v5[v4];\n    }\n    return \"DROP THE BEAT\";\n  }\n  else\n  {\n    v4 = v3 % 18 - 2;\n    if ( v4 < 0x10 )\n    {\n      v5 = off_1007E96E0;\n      return v5[v4];\n    }\n    return \"Awesome!\";\n  }\n}", "assembly": "; \n; EndLevelLayer::getEndText from 0x1002f7154 to 0x1002f7218 (196 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1002f6208\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f7154\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f7158\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f715c\nBL              GameManager__sharedState                               ; +0xc, 0x1002f7160\nADRL            X1, a0095; \"0095\"                                      ; +0x10, 0x1002f7164\nBL              GameManager__getGameVariable                           ; +0x18, 0x1002f716c\nMOV             X19, X0                                                ; +0x1c, 0x1002f7170\nBL              _rand                                                  ; +0x20, 0x1002f7174\nTBZ             W19, #0, loc_1002F71B8                                 ; +0x24, 0x1002f7178\nMOV             W8, #0x51EB851F                                        ; +0x28, 0x1002f717c\nSMULL           X8, W0, W8                                             ; +0x30, 0x1002f7184\nLSR             X9, X8, #0x3F ; '?'                                    ; +0x34, 0x1002f7188\nASR             X8, X8, #0x25 ; '%'                                    ; +0x38, 0x1002f718c\nADD             W8, W8, W9                                             ; +0x3c, 0x1002f7190\nMOV             W9, #0x64 ; 'd'                                        ; +0x40, 0x1002f7194\nMUL             W8, W8, W9                                             ; +0x44, 0x1002f7198\nMVN             W8, W8                                                 ; +0x48, 0x1002f719c\nADD             W8, W8, W0                                             ; +0x4c, 0x1002f71a0\nCMP             W8, #0x63 ; 'c'                                        ; +0x50, 0x1002f71a4\nB.CS            loc_1002F71F8                                          ; +0x54, 0x1002f71a8\nADRL            X9, off_1007E9760; \"Took you long enough...\"           ; +0x58, 0x1002f71ac\nB               loc_1002F71EC                                          ; +0x60, 0x1002f71b4\nMOV             W8, #0x38E38E39                                        ; +0x64, 0x1002f71b8\nSMULL           X8, W0, W8                                             ; +0x6c, 0x1002f71c0\nLSR             X9, X8, #0x3F ; '?'                                    ; +0x70, 0x1002f71c4\nASR             X8, X8, #0x22 ; '\"'                                    ; +0x74, 0x1002f71c8\nADD             W8, W8, W9                                             ; +0x78, 0x1002f71cc\nMOV             W9, #0x12                                              ; +0x7c, 0x1002f71d0\nMSUB            W8, W8, W9, W0                                         ; +0x80, 0x1002f71d4\nSUB             W8, W8, #2                                             ; +0x84, 0x1002f71d8\nCMP             W8, #0x10                                              ; +0x88, 0x1002f71dc\nB.CS            loc_1002F7204                                          ; +0x8c, 0x1002f71e0\nADRL            X9, off_1007E96E0; \"Good Job!\"                         ; +0x90, 0x1002f71e4\nADD             X8, X9, W8,UXTW#3                                      ; +0x98, 0x1002f71ec\nLDR             X0, [X8]                                               ; +0x9c, 0x1002f71f0\nB               loc_1002F720C                                          ; +0xa0, 0x1002f71f4\nADRL            X0, aDropTheBeat; \"DROP THE BEAT\"                      ; +0xa4, 0x1002f71f8\nB               loc_1002F720C                                          ; +0xac, 0x1002f7200\nADRL            X0, aAwesome; \"Awesome!\"                               ; +0xb0, 0x1002f7204\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb8, 0x1002f720c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xbc, 0x1002f7210\nRET                                                                    ; +0xc0, 0x1002f7214", "xrefs": ["EndLevelLayer::customSetup @ 0x1002f6208"], "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"}