{"type": "func", "start": 4296188544, "end": 4296188620, "name": "CharacterColorPage::offsetForIndex", "pseudocode": "// \n// CharacterColorPage::offsetForIndex from 0x10012a280 to 0x10012a2cc (76 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x100129bf4\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\ncocos2d::CCPoint __fastcall CharacterColorPage::offsetForIndex(CharacterColorPage *a1, int a2)\n{\n  _DWORD *v2; // x8\n  __n128 v3; // q0\n  __n128 v4; // q1\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v4.n128_u32[0] = 0;\n  v3.n128_u32[0] = 0;\n  if ( (unsigned int)(a2 - 4) <= 0x8A )\n    v3.n128_u32[0] = dword_1006372C0[a2 - 4];\n  if ( (unsigned int)(a2 - 54) < 0x52 )\n    v4.n128_f32[0] = -0.8;\n  if ( a2 > 135 )\n    v4.n128_f32[0] = 0.4;\n  sub_100022980(v3, v4, v2);\n  return result;\n}", "assembly": "; \n; CharacterColorPage::offsetForIndex from 0x10012a280 to 0x10012a2cc (76 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x100129bf4\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\nMOV             X0, X8                                                 ; +0x0, 0x10012a280\nSUB             W8, W1, #4                                             ; +0x4, 0x10012a284\nFMOV            S1, WZR                                                ; +0x8, 0x10012a288\nFMOV            S0, WZR                                                ; +0xc, 0x10012a28c\nCMP             W8, #0x8A                                              ; +0x10, 0x10012a290\nB.HI            loc_10012A2A4                                          ; +0x14, 0x10012a294\nADRL            X9, dword_1006372C0                                    ; +0x18, 0x10012a298\nLDR             S0, [X9,W8,UXTW#2]                                     ; +0x20, 0x10012a2a0\nSUB             W8, W1, #0x36 ; '6'                                    ; +0x24, 0x10012a2a4\nCMP             W8, #0x52 ; 'R'                                        ; +0x28, 0x10012a2a8\nADRP            X8, #dword_100635D54@PAGE                              ; +0x2c, 0x10012a2ac\nLDR             S2, [X8,#dword_100635D54@PAGEOFF]                      ; +0x30, 0x10012a2b0\nFCSEL           S1, S2, S1, CC                                         ; +0x34, 0x10012a2b4\nCMP             W1, #0x87                                              ; +0x38, 0x10012a2b8\nADRP            X8, #dword_10063537C@PAGE                              ; +0x3c, 0x10012a2bc\nLDR             S2, [X8,#dword_10063537C@PAGEOFF]                      ; +0x40, 0x10012a2c0\nFCSEL           S1, S2, S1, GT                                         ; +0x44, 0x10012a2c4\nB               sub_100022980                                          ; +0x48, 0x10012a2c8", "xrefs": ["CharacterColorPage::createColorMenu @ 0x100129bf4"], "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"}