{"type": "func", "start": 4296359088, "end": 4296359164, "name": "CharacterColorPage::offsetForIndex", "pseudocode": "// \n// CharacterColorPage::offsetForIndex from 0x100153cb0 to 0x100153cfc (76 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x100153624\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:59:40 +0000\n// \n\nfloat *__usercall CharacterColorPage::offsetForIndex@<X0>(int a1@<W1>, float *a2@<X8>)\n{\n  float v2; // s1\n  float v3; // s0\n\n  v2 = 0.0;\n  v3 = 0.0;\n  if ( (unsigned int)(a1 - 4) <= 0x8A )\n    v3 = flt_10075E608[a1 - 4];\n  if ( (unsigned int)(a1 - 54) < 0x52 )\n    v2 = -0.8;\n  if ( a1 > 135 )\n    v2 = 0.4;\n  return sub_1000262BC(a2, v3, v2);\n}", "assembly": "; \n; CharacterColorPage::offsetForIndex from 0x100153cb0 to 0x100153cfc (76 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x100153624\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:59:40 +0000\n; \nMOV             X0, X8                                                 ; +0x0, 0x100153cb0\nSUB             W8, W1, #4                                             ; +0x4, 0x100153cb4\nFMOV            S1, WZR                                                ; +0x8, 0x100153cb8\nFMOV            S0, WZR                                                ; +0xc, 0x100153cbc\nCMP             W8, #0x8A                                              ; +0x10, 0x100153cc0\nB.HI            loc_100153CD4                                          ; +0x14, 0x100153cc4\nADRL            X9, flt_10075E608                                      ; +0x18, 0x100153cc8\nLDR             S0, [X9,W8,UXTW#2]                                     ; +0x20, 0x100153cd0\nSUB             W8, W1, #0x36 ; '6'                                    ; +0x24, 0x100153cd4\nCMP             W8, #0x52 ; 'R'                                        ; +0x28, 0x100153cd8\nADRP            X8, #dword_10075CE5C@PAGE                              ; +0x2c, 0x100153cdc\nLDR             S2, [X8,#dword_10075CE5C@PAGEOFF]                      ; +0x30, 0x100153ce0\nFCSEL           S1, S2, S1, CC                                         ; +0x34, 0x100153ce4\nCMP             W1, #0x87                                              ; +0x38, 0x100153ce8\nADRP            X8, #dword_10075BD1C@PAGE                              ; +0x3c, 0x100153cec\nLDR             S2, [X8,#dword_10075BD1C@PAGEOFF]                      ; +0x40, 0x100153cf0\nFCSEL           S1, S2, S1, GT                                         ; +0x44, 0x100153cf4\nB               sub_1000262BC                                          ; +0x48, 0x100153cf8", "xrefs": ["CharacterColorPage::createColorMenu @ 0x100153624"], "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"}