{"type": "func", "start": 4295849368, "end": 4295849556, "name": "GJLevelList::frameForListDifficulty", "pseudocode": "// \n// GJLevelList::frameForListDifficulty from 0x1000d7598 to 0x1000d7654 (188 bytes)\n// \n// 5 xrefs:\n// > LevelListCell::loadFromList @ 0x100128bbc\n// > LevelListLayer::init @ 0x1002e073c\n// > LevelListLayer::updateStatsArt @ 0x1002e2430\n// > sub_1002E4B74 @ 0x1002e4ddc\n// > sub_1002E5208 @ 0x1002e5d98\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:58:57 +0000\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  __int64 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_10075DB88[a1 - 6];\n    if ( a2 == 2 )\n    {\n      v5 = sub_1003065B0(\"diffIcon_%02d_btn_001.png\");\n    }\n    else if ( a2 == 1 && v4 >= 6 )\n    {\n      v5 = sub_1003065B0(\"difficulty_%02d_btn2_001.png\");\n    }\n    else\n    {\n      v5 = sub_1003065B0(\"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 0x1000d7598 to 0x1000d7654 (188 bytes)\n; \n; 5 xrefs:\n; > LevelListCell::loadFromList @ 0x100128bbc\n; > LevelListLayer::init @ 0x1002e073c\n; > LevelListLayer::updateStatsArt @ 0x1002e2430\n; > sub_1002E4B74 @ 0x1002e4ddc\n; > sub_1002E5208 @ 0x1002e5d98\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:58:57 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000d7598\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000d759c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000d75a0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000d75a4\nMOV             X19, X8                                                ; +0x10, 0x1000d75a8\nCBZ             W0, loc_1000D75E8                                      ; +0x14, 0x1000d75ac\nCMP             W0, #0xA                                               ; +0x18, 0x1000d75b0\nCSEL            W8, WZR, W0, HI                                        ; +0x1c, 0x1000d75b4\nSUB             W9, W0, #6                                             ; +0x20, 0x1000d75b8\nCMP             W9, #2                                                 ; +0x24, 0x1000d75bc\nB.HI            loc_1000D75D0                                          ; +0x28, 0x1000d75c0\nADRL            X8, dword_10075DB88                                    ; +0x2c, 0x1000d75c4\nLDR             W8, [X8,W9,UXTW#2]                                     ; +0x34, 0x1000d75cc\nCMP             W1, #2                                                 ; +0x38, 0x1000d75d0\nB.NE            loc_1000D75FC                                          ; +0x3c, 0x1000d75d4\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x40, 0x1000d75d8\nADRL            X0, aDifficon02dBtn; \"diffIcon_%02d_btn_001.png\"       ; +0x44, 0x1000d75dc\nB               loc_1000D7634                                          ; +0x4c, 0x1000d75e4\nCMP             W1, #2                                                 ; +0x50, 0x1000d75e8\nB.NE            loc_1000D761C                                          ; +0x54, 0x1000d75ec\nADRL            X1, aDifficonAutoBt; \"diffIcon_auto_btn_001.png\"       ; +0x58, 0x1000d75f0\nB               loc_1000D7640                                          ; +0x60, 0x1000d75f8\nCMP             W1, #1                                                 ; +0x64, 0x1000d75fc\nB.NE            loc_1000D7628                                          ; +0x68, 0x1000d7600\nCMP             W8, #6                                                 ; +0x6c, 0x1000d7604\nB.CC            loc_1000D7628                                          ; +0x70, 0x1000d7608\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x74, 0x1000d760c\nADRL            X0, aDifficulty02dB_0; \"difficulty_%02d_btn2_001.png\"  ; +0x78, 0x1000d7610\nB               loc_1000D7634                                          ; +0x80, 0x1000d7618\nADRL            X1, aDifficultyAuto; \"difficulty_auto_btn_001.png\"     ; +0x84, 0x1000d761c\nB               loc_1000D7640                                          ; +0x8c, 0x1000d7624\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x90, 0x1000d7628\nADRL            X0, aDifficulty02dB; \"difficulty_%02d_btn_001.png\"     ; +0x94, 0x1000d762c\nBL              sub_1003065B0                                          ; +0x9c, 0x1000d7634\nBL              cocos2d__CCString__getCString                          ; +0xa0, 0x1000d7638\nMOV             X1, X0; __s                                            ; +0xa4, 0x1000d763c\nMOV             X0, X19; int                                           ; +0xa8, 0x1000d7640\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xac, 0x1000d7644\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb0, 0x1000d7648\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb4, 0x1000d764c\nB               sub_100009900                                          ; +0xb8, 0x1000d7650", "xrefs": ["LevelListCell::loadFromList @ 0x100128bbc", "LevelListLayer::init @ 0x1002e073c", "LevelListLayer::updateStatsArt @ 0x1002e2430", "sub_1002E4B74 @ 0x1002e4ddc", "sub_1002E5208 @ 0x1002e5d98"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}