{"type": "func", "start": 7445072, "end": 7445348, "name": "GJLevelList::frameForListDifficulty", "pseudocode": "// \n// GJLevelList::frameForListDifficulty from 0x719a50 to 0x719b64 (276 bytes)\n// \n// 6 xrefs:\n// > LevelListCell::loadFromList @ 0x61e570\n// > LevelListLayer::updateStatsArt @ 0xa74894\n// > LevelListLayer::init @ 0xa75f70\n// > SelectListIconLayer::init @ 0xa78ed4\n// > ShareListLayer::init @ 0xa79f9c\n// > <???> @ 0x55638\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\n__int64 __usercall GJLevelList::frameForListDifficulty@<X0>(int a1@<W0>, int a2@<W1>, __int64 a3@<X8>)\n{\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n\n  if ( a1 )\n  {\n    if ( (unsigned int)a1 <= 0xA )\n    {\n      if ( a1 >= 6 )\n      {\n        if ( a1 > 7 )\n        {\n          if ( a1 == 8 )\n            a1 = 6;\n        }\n        else\n        {\n          ++a1;\n        }\n      }\n      if ( a2 != 2 )\n      {\n        if ( a1 > 5 && a2 == 1 )\n        {\n          v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                      (cocos2d::CCString *)\"difficulty_%02d_btn2_001.png\",\n                                      (const char *)(unsigned int)a1);\n          goto LABEL_8;\n        }\nLABEL_7:\n        v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                    (cocos2d::CCString *)\"difficulty_%02d_btn_001.png\",\n                                    (const char *)(unsigned int)a1);\nLABEL_8:\n        CString = (char *)cocos2d::CCString::getCString(v5);\n        sub_D153B8(a3, CString);\n        return a3;\n      }\n    }\n    else\n    {\n      a1 = 0;\n      if ( a2 != 2 )\n        goto LABEL_7;\n    }\n    v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"diffIcon_%02d_btn_001.png\",\n                                (const char *)(unsigned int)a1);\n    goto LABEL_8;\n  }\n  if ( a2 == 2 )\n    sub_D153B8(a3, \"diffIcon_auto_btn_001.png\");\n  else\n    sub_D153B8(a3, \"difficulty_auto_btn_001.png\");\n  return a3;\n}", "assembly": "; \n; GJLevelList::frameForListDifficulty from 0x719a50 to 0x719b64 (276 bytes)\n; \n; 6 xrefs:\n; > LevelListCell::loadFromList @ 0x61e570\n; > LevelListLayer::updateStatsArt @ 0xa74894\n; > LevelListLayer::init @ 0xa75f70\n; > SelectListIconLayer::init @ 0xa78ed4\n; > ShareListLayer::init @ 0xa79f9c\n; > <???> @ 0x55638\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x719a50\nMOV             X29, SP                                                ; +0x4, 0x719a54\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x719a58\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x719a5c\nMOV             X20, X8                                                ; +0x10, 0x719a60\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14, 0x719a64\nLDR             X2, [X2]                                               ; +0x18, 0x719a68\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x1c, 0x719a6c\nCBNZ            W0, loc_719AB4                                         ; +0x20, 0x719a70\nCMP             W1, #2                                                 ; +0x24, 0x719a74\nMOV             X0, X8; int                                            ; +0x28, 0x719a78\nB.EQ            loc_719B2C                                             ; +0x2c, 0x719a7c\nADRP            X1, #aDifficultyAuto@PAGE; \"difficulty_auto_btn_001.png\" ; +0x30, 0x719a80\nADD             X2, X29, #0x30+var_10                                  ; +0x34, 0x719a84\nADD             X1, X1, #aDifficultyAuto@PAGEOFF; \"difficulty_auto_btn_001.png\" ; +0x38, 0x719a88\nBL              sub_D153B8                                             ; +0x3c, 0x719a8c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x40, 0x719a90\nMOV             X0, X20                                                ; +0x44, 0x719a94\nLDR             X2, [X29,#0x30+var_8]                                  ; +0x48, 0x719a98\nLDR             X1, [X19]                                              ; +0x4c, 0x719a9c\nCMP             X2, X1                                                 ; +0x50, 0x719aa0\nB.NE            loc_719B60                                             ; +0x54, 0x719aa4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x58, 0x719aa8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x719aac\nRET                                                                    ; +0x60, 0x719ab0\nCMP             W0, #0xA                                               ; +0x64, 0x719ab4\nB.LS            loc_719AF0                                             ; +0x68, 0x719ab8\nCMP             W1, #2                                                 ; +0x6c, 0x719abc\nMOV             W0, #0                                                 ; +0x70, 0x719ac0\nB.EQ            loc_719B50                                             ; +0x74, 0x719ac4\nMOV             W1, W0; char *                                         ; +0x78, 0x719ac8\nADRL            X0, aDifficulty02dB_0; \"difficulty_%02d_btn_001.png\"   ; +0x7c, 0x719acc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x84, 0x719ad4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x88, 0x719ad8\nMOV             X1, X0; char *                                         ; +0x8c, 0x719adc\nADD             X2, X29, #0x30+var_10                                  ; +0x90, 0x719ae0\nMOV             X0, X20; int                                           ; +0x94, 0x719ae4\nBL              sub_D153B8                                             ; +0x98, 0x719ae8\nB               loc_719A90                                             ; +0x9c, 0x719aec\nCMP             W0, #6                                                 ; +0xa0, 0x719af0\nB.LT            loc_719B04                                             ; +0xa4, 0x719af4\nCMP             W0, #7                                                 ; +0xa8, 0x719af8\nB.GT            loc_719B40                                             ; +0xac, 0x719afc\nADD             W0, W0, #1                                             ; +0xb0, 0x719b00\nCMP             W1, #2                                                 ; +0xb4, 0x719b04\nB.EQ            loc_719B50                                             ; +0xb8, 0x719b08\nCMP             W0, #5                                                 ; +0xbc, 0x719b0c\nB.LE            loc_719AC8                                             ; +0xc0, 0x719b10\nCMP             W1, #1                                                 ; +0xc4, 0x719b14\nB.NE            loc_719AC8                                             ; +0xc8, 0x719b18\nMOV             W1, W0                                                 ; +0xcc, 0x719b1c\nADRL            X0, aDifficulty02dB; \"difficulty_%02d_btn2_001.png\"    ; +0xd0, 0x719b20\nB               loc_719AD4                                             ; +0xd8, 0x719b28\nADRP            X1, #aDifficonAutoBt@PAGE; \"diffIcon_auto_btn_001.png\" ; +0xdc, 0x719b2c\nADD             X2, X29, #0x30+var_10                                  ; +0xe0, 0x719b30\nADD             X1, X1, #aDifficonAutoBt@PAGEOFF; \"diffIcon_auto_btn_001.png\" ; +0xe4, 0x719b34\nBL              sub_D153B8                                             ; +0xe8, 0x719b38\nB               loc_719A90                                             ; +0xec, 0x719b3c\nCMP             W0, #8                                                 ; +0xf0, 0x719b40\nMOV             W2, #6                                                 ; +0xf4, 0x719b44\nCSEL            W0, W0, W2, NE                                         ; +0xf8, 0x719b48\nB               loc_719B04                                             ; +0xfc, 0x719b4c\nMOV             W1, W0                                                 ; +0x100, 0x719b50\nADRL            X0, aDifficon02dBtn; \"diffIcon_%02d_btn_001.png\"       ; +0x104, 0x719b54\nB               loc_719AD4                                             ; +0x10c, 0x719b5c\nBL              .__stack_chk_fail                                      ; +0x110, 0x719b60", "xrefs": ["LevelListCell::loadFromList @ 0x61e570", "LevelListLayer::updateStatsArt @ 0xa74894", "LevelListLayer::init @ 0xa75f70", "SelectListIconLayer::init @ 0xa78ed4", "ShareListLayer::init @ 0xa79f9c", "<???> @ 0x55638"], "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"}