{"type": "func", "start": 4295697288, "end": 4295697476, "name": "GJLevelList::frameForListDifficulty", "pseudocode": "// \n// GJLevelList::frameForListDifficulty from 0x1000b2388 to 0x1000b2444 (188 bytes)\n// \n// 5 xrefs:\n// > LevelListCell::loadFromList @ 0x1001039e4\n// > LevelListLayer::init @ 0x100243690\n// > LevelListLayer::updateStatsArt @ 0x1002452f4\n// > SelectListIconLayer::init @ 0x100247b94\n// > ShareListLayer::init @ 0x100248bcc\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_QWORD *__usercall GJLevelList::frameForListDifficulty@<X0>(unsigned int a1@<W0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  unsigned int v4; // w8\n  cocos2d::CCString *v5; // x0\n  char *CString; // x1\n\n  if ( a1 )\n  {\n    if ( a1 <= 0xA )\n      v4 = a1;\n    else\n      v4 = 0;\n    if ( a1 - 6 <= 2 )\n      v4 = dword_1006369D8[a1 - 6];\n    if ( a2 == 2 )\n    {\n      v5 = (cocos2d::CCString *)sub_100268F4C(\"diffIcon_%02d_btn_001.png\");\n    }\n    else if ( a2 == 1 && v4 >= 6 )\n    {\n      v5 = (cocos2d::CCString *)sub_100268F4C(\"difficulty_%02d_btn2_001.png\");\n    }\n    else\n    {\n      v5 = (cocos2d::CCString *)sub_100268F4C(\"difficulty_%02d_btn_001.png\");\n    }\n    CString = (char *)cocos2d::CCString::getCString(v5);\n  }\n  else if ( a2 == 2 )\n  {\n    CString = \"diffIcon_auto_btn_001.png\";\n  }\n  else\n  {\n    CString = \"difficulty_auto_btn_001.png\";\n  }\n  return sub_100009900(a3, CString);\n}", "assembly": "; \n; GJLevelList::frameForListDifficulty from 0x1000b2388 to 0x1000b2444 (188 bytes)\n; \n; 5 xrefs:\n; > LevelListCell::loadFromList @ 0x1001039e4\n; > LevelListLayer::init @ 0x100243690\n; > LevelListLayer::updateStatsArt @ 0x1002452f4\n; > SelectListIconLayer::init @ 0x100247b94\n; > ShareListLayer::init @ 0x100248bcc\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, 0x1000b2388\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000b238c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000b2390\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000b2394\nMOV             X19, X8                                                ; +0x10, 0x1000b2398\nCBZ             W0, loc_1000B23D8                                      ; +0x14, 0x1000b239c\nCMP             W0, #0xA                                               ; +0x18, 0x1000b23a0\nCSEL            W8, WZR, W0, HI                                        ; +0x1c, 0x1000b23a4\nSUB             W9, W0, #6                                             ; +0x20, 0x1000b23a8\nCMP             W9, #2                                                 ; +0x24, 0x1000b23ac\nB.HI            loc_1000B23C0                                          ; +0x28, 0x1000b23b0\nADRL            X8, dword_1006369D8                                    ; +0x2c, 0x1000b23b4\nLDR             W8, [X8,W9,UXTW#2]                                     ; +0x34, 0x1000b23bc\nCMP             W1, #2                                                 ; +0x38, 0x1000b23c0\nB.NE            loc_1000B23EC                                          ; +0x3c, 0x1000b23c4\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x40, 0x1000b23c8\nADRL            X0, aDifficon02dBtn; \"diffIcon_%02d_btn_001.png\"       ; +0x44, 0x1000b23cc\nB               loc_1000B2424                                          ; +0x4c, 0x1000b23d4\nCMP             W1, #2                                                 ; +0x50, 0x1000b23d8\nB.NE            loc_1000B240C                                          ; +0x54, 0x1000b23dc\nADRL            X1, aDifficonAutoBt; \"diffIcon_auto_btn_001.png\"       ; +0x58, 0x1000b23e0\nB               loc_1000B2430                                          ; +0x60, 0x1000b23e8\nCMP             W1, #1                                                 ; +0x64, 0x1000b23ec\nB.NE            loc_1000B2418                                          ; +0x68, 0x1000b23f0\nCMP             W8, #6                                                 ; +0x6c, 0x1000b23f4\nB.CC            loc_1000B2418                                          ; +0x70, 0x1000b23f8\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x74, 0x1000b23fc\nADRL            X0, aDifficulty02dB_0; \"difficulty_%02d_btn2_001.png\"  ; +0x78, 0x1000b2400\nB               loc_1000B2424                                          ; +0x80, 0x1000b2408\nADRL            X1, aDifficultyAuto; \"difficulty_auto_btn_001.png\"     ; +0x84, 0x1000b240c\nB               loc_1000B2430                                          ; +0x8c, 0x1000b2414\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x90, 0x1000b2418\nADRL            X0, aDifficulty02dB; \"difficulty_%02d_btn_001.png\"     ; +0x94, 0x1000b241c\nBL              sub_100268F4C                                          ; +0x9c, 0x1000b2424\nBL              cocos2d__CCString__getCString                          ; +0xa0, 0x1000b2428\nMOV             X1, X0; __s                                            ; +0xa4, 0x1000b242c\nMOV             X0, X19; int                                           ; +0xa8, 0x1000b2430\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x1000b2434\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x1000b2438\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb4, 0x1000b243c\nB               sub_100009900                                          ; +0xb8, 0x1000b2440", "xrefs": ["LevelListCell::loadFromList @ 0x1001039e4", "LevelListLayer::init @ 0x100243690", "LevelListLayer::updateStatsArt @ 0x1002452f4", "SelectListIconLayer::init @ 0x100247b94", "ShareListLayer::init @ 0x100248bcc"], "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"}