{"type": "func", "start": 4298211900, "end": 4298212008, "name": "GameManager::getFontTexture", "pseudocode": "// \n// GameManager::getFontTexture from 0x10031823c to 0x1003182a8 (108 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::createTextLayers @ 0x1001e2fac\n// > GameObject::createWithKey @ 0x100254930\n// > LevelEditorLayer::updateLevelFont @ 0x100362214\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 GameManager::getFontTexture(GameManager *a1, int a2)\n{\n  int v3; // w8\n  int v4; // w19\n  cocos2d::CCString *v5; // x0\n\n  if ( a2 >= 59 )\n    v3 = 59;\n  else\n    v3 = a2;\n  v4 = v3 & ~(v3 >> 31);\n  GameManager::loadFont(a1, v4);\n  if ( a2 < 1 )\n    return \"bigFont.png\";\n  v5 = (cocos2d::CCString *)sub_100268F4C(\"gjFont%02d.png\", v4);\n  return cocos2d::CCString::getCString(v5);\n}", "assembly": "; \n; GameManager::getFontTexture from 0x10031823c to 0x1003182a8 (108 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::createTextLayers @ 0x1001e2fac\n; > GameObject::createWithKey @ 0x100254930\n; > LevelEditorLayer::updateLevelFont @ 0x100362214\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10031823c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100318240\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100318244\nADD             X29, SP, #0x20                                         ; +0xc, 0x100318248\nMOV             X20, X1                                                ; +0x10, 0x10031824c\nCMP             W1, #0x3B ; ';'                                        ; +0x14, 0x100318250\nMOV             W8, #0x3B ; ';'                                        ; +0x18, 0x100318254\nCSEL            W8, W1, W8, LT                                         ; +0x1c, 0x100318258\nBIC             W19, W8, W8,ASR#31                                     ; +0x20, 0x10031825c\nMOV             X1, X19                                                ; +0x24, 0x100318260\nBL              GameManager__loadFont                                  ; +0x28, 0x100318264\nCMP             W20, #1                                                ; +0x2c, 0x100318268\nB.LT            loc_100318290                                          ; +0x30, 0x10031826c\nSTR             X19, [SP,#0x20+var_20]                                 ; +0x34, 0x100318270\nADRL            X0, aGjfont02dPng; \"gjFont%02d.png\"                    ; +0x38, 0x100318274\nBL              sub_100268F4C                                          ; +0x40, 0x10031827c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x44, 0x100318280\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x48, 0x100318284\nADD             SP, SP, #0x30 ; '0'                                    ; +0x4c, 0x100318288\nB               cocos2d__CCString__getCString                          ; +0x50, 0x10031828c\nADRL            X0, aBigfontPng; \"bigFont.png\"                         ; +0x54, 0x100318290\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x100318298\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x10031829c\nADD             SP, SP, #0x30 ; '0'                                    ; +0x64, 0x1003182a0\nRET                                                                    ; +0x68, 0x1003182a4", "xrefs": ["GJBaseGameLayer::createTextLayers @ 0x1001e2fac", "GameObject::createWithKey @ 0x100254930", "LevelEditorLayer::updateLevelFont @ 0x100362214"], "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"}