{"type": "func", "start": 4298004476, "end": 4298004640, "name": "GJDifficultySprite::getDifficultyFrame", "pseudocode": "// \n// GJDifficultySprite::getDifficultyFrame from 0x1002e57fc to 0x1002e58a0 (164 bytes)\n// \n// 2 xrefs:\n// > GJDifficultySprite::init @ 0x1002e579c\n// > GJDifficultySprite::updateDifficultyFrame @ 0x1002e58fc\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\nstd::string *__usercall GJDifficultySprite::getDifficultyFrame@<X0>(int a1@<W0>, int a2@<W1>, std::string *a3@<X8>)\n{\n  cocos2d::CCString *v6; // x0\n  char *CString; // x0\n  std::string *result; // x0\n\n  v6 = (cocos2d::CCString *)sub_100268F4C(\"difficulty_%02d_\", a1);\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  sub_100009900(a3, CString);\n  if ( a2 == 1 && (unsigned int)(a1 - 6) <= 4 )\n    return std::string::append(a3, \"btn2_001.png\");\n  result = std::string::append(a3, \"btn_001.png\");\n  if ( a1 == -1 )\n    return std::string::assign(a3, \"difficulty_auto_btn_001.png\");\n  return result;\n}", "assembly": "; \n; GJDifficultySprite::getDifficultyFrame from 0x1002e57fc to 0x1002e58a0 (164 bytes)\n; \n; 2 xrefs:\n; > GJDifficultySprite::init @ 0x1002e579c\n; > GJDifficultySprite::updateDifficultyFrame @ 0x1002e58fc\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, #0x40                                          ; +0x0, 0x1002e57fc\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1002e5800\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002e5804\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002e5808\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002e580c\nMOV             X21, X1                                                ; +0x14, 0x1002e5810\nMOV             X20, X0                                                ; +0x18, 0x1002e5814\nMOV             X19, X8                                                ; +0x1c, 0x1002e5818\nSTR             X20, [SP,#0x30+var_30]                                 ; +0x20, 0x1002e581c\nADRL            X0, aDifficulty02d; \"difficulty_%02d_\"                 ; +0x24, 0x1002e5820\nBL              sub_100268F4C                                          ; +0x2c, 0x1002e5828\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x1002e582c\nMOV             X1, X0; __s                                            ; +0x34, 0x1002e5830\nMOV             X0, X19; int                                           ; +0x38, 0x1002e5834\nBL              sub_100009900                                          ; +0x3c, 0x1002e5838\nCMP             W21, #1                                                ; +0x40, 0x1002e583c\nB.NE            loc_1002E5864                                          ; +0x44, 0x1002e5840\nSUB             W8, W20, #6                                            ; +0x48, 0x1002e5844\nCMP             W8, #4                                                 ; +0x4c, 0x1002e5848\nB.HI            loc_1002E5864                                          ; +0x50, 0x1002e584c\nADRL            X1, aBtn2001Png; \"btn2_001.png\"                        ; +0x54, 0x1002e5850\nMOV             X0, X19; this                                          ; +0x5c, 0x1002e5858\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x60, 0x1002e585c\nB               loc_1002E588C                                          ; +0x64, 0x1002e5860\nADRL            X1, aBtn001Png; \"btn_001.png\"                          ; +0x68, 0x1002e5864\nMOV             X0, X19; this                                          ; +0x70, 0x1002e586c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x74, 0x1002e5870\nCMN             W20, #1                                                ; +0x78, 0x1002e5874\nB.NE            loc_1002E588C                                          ; +0x7c, 0x1002e5878\nADRL            X1, aDifficultyAuto; \"difficulty_auto_btn_001.png\"     ; +0x80, 0x1002e587c\nMOV             X0, X19; this                                          ; +0x88, 0x1002e5884\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x8c, 0x1002e5888\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x1002e588c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x1002e5890\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x98, 0x1002e5894\nADD             SP, SP, #0x40 ; '@'                                    ; +0x9c, 0x1002e5898\nRET                                                                    ; +0xa0, 0x1002e589c", "xrefs": ["GJDifficultySprite::init @ 0x1002e579c", "GJDifficultySprite::updateDifficultyFrame @ 0x1002e58fc"], "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"}