{"type": "func", "start": 4301645600, "end": 4301645707, "name": "CharacterColorPage::offsetForIndex", "pseudocode": "// \n// CharacterColorPage::offsetForIndex from 0x10065e720 to 0x10065e78b (107 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x10065de29\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  int v2; // edx\n  float v3; // xmm1_4\n  cocos2d::CCPoint result; // 0:xmm0_8.8\n\n  v3 = 0.0;\n  result = 0;\n  if ( (unsigned int)(v2 - 4) > 0x8A )\n  {\n    if ( (unsigned int)(v2 - 54) >= 0x52 )\n      goto LABEL_3;\nLABEL_7:\n    v3 = -0.80000001;\n    goto LABEL_5;\n  }\n  result = (cocos2d::CCPoint)dword_100822E54[v2 - 4];\n  if ( (unsigned int)(v2 - 54) < 0x52 )\n    goto LABEL_7;\nLABEL_3:\n  if ( v2 >= 136 )\n    v3 = 0.40000001;\nLABEL_5:\n  sub_10028CBE0((float *)a1, result.x, v3);\n  return result;\n}", "assembly": "; \n; CharacterColorPage::offsetForIndex from 0x10065e720 to 0x10065e78b (107 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x10065de29\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\npush    rbp                                                            ; +0x0, 0x10065e720\nmov     rbp, rsp                                                       ; +0x1, 0x10065e721\npush    rbx                                                            ; +0x4, 0x10065e724\npush    rax                                                            ; +0x5, 0x10065e725\nmov     rbx, rdi                                                       ; +0x6, 0x10065e726\nlea     eax, [rdx-4]                                                   ; +0x9, 0x10065e729\nxorps   xmm1, xmm1                                                     ; +0xc, 0x10065e72c\nxorps   xmm0, xmm0                                                     ; +0xf, 0x10065e72f\ncmp     eax, 8Ah                                                       ; +0x12, 0x10065e732\njbe     short loc_10065E763                                            ; +0x17, 0x10065e737\nlea     eax, [rdx-36h]                                                 ; +0x19, 0x10065e739\ncmp     eax, 52h ; 'R'                                                 ; +0x1c, 0x10065e73c\njb      short loc_10065E779                                            ; +0x1f, 0x10065e73f\ncmp     edx, 88h                                                       ; +0x21, 0x10065e741\njl      short loc_10065E751                                            ; +0x27, 0x10065e747\nmovss   xmm1, cs:dword_100815004                                       ; +0x29, 0x10065e749\nmov     rdi, rbx                                                       ; +0x31, 0x10065e751\ncall    sub_10028CBE0                                                  ; +0x34, 0x10065e754\nmov     rax, rbx                                                       ; +0x39, 0x10065e759\nadd     rsp, 8                                                         ; +0x3c, 0x10065e75c\npop     rbx                                                            ; +0x40, 0x10065e760\npop     rbp                                                            ; +0x41, 0x10065e761\nretn                                                                   ; +0x42, 0x10065e762\nmov     eax, eax                                                       ; +0x43, 0x10065e763\nlea     rcx, dword_100822E54                                           ; +0x45, 0x10065e765\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x4c, 0x10065e76c\nlea     eax, [rdx-36h]                                                 ; +0x51, 0x10065e771\ncmp     eax, 52h ; 'R'                                                 ; +0x54, 0x10065e774\njnb     short loc_10065E741                                            ; +0x57, 0x10065e777\nmovss   xmm1, cs:dword_100815D6C                                       ; +0x59, 0x10065e779\ncmp     edx, 88h                                                       ; +0x61, 0x10065e781\njge     short loc_10065E749                                            ; +0x67, 0x10065e787\njmp     short loc_10065E751                                            ; +0x69, 0x10065e789", "xrefs": ["CharacterColorPage::createColorMenu @ 0x10065de29"], "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"}