{"type": "func", "start": 4302560624, "end": 4302560731, "name": "CharacterColorPage::offsetForIndex", "pseudocode": "// \n// CharacterColorPage::offsetForIndex from 0x10073dd70 to 0x10073dddb (107 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::createColorMenu @ 0x10073d479\n// \n// This function is hookable on this platform (idp: pc, 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 12:36:27 +0000\n// \n\nfloat *__fastcall CharacterColorPage::offsetForIndex(float *a1, __int64 a2, int a3)\n{\n  float v3; // xmm1_4\n  float v4; // xmm0_4\n\n  v3 = 0.0;\n  v4 = 0.0;\n  if ( (unsigned int)(a3 - 4) > 0x8A )\n  {\n    if ( (unsigned int)(a3 - 54) >= 0x52 )\n      goto LABEL_3;\nLABEL_7:\n    v3 = -0.80000001;\n    goto LABEL_5;\n  }\n  v4 = flt_100A124B4[a3 - 4];\n  if ( (unsigned int)(a3 - 54) < 0x52 )\n    goto LABEL_7;\nLABEL_3:\n  if ( a3 >= 136 )\n    v3 = 0.40000001;\nLABEL_5:\n  sub_100278250(a1, v4, v3);\n  return a1;\n}", "assembly": "; \n; CharacterColorPage::offsetForIndex from 0x10073dd70 to 0x10073dddb (107 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::createColorMenu @ 0x10073d479\n; \n; This function is hookable on this platform (idp: pc, 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 12:36:27 +0000\n; \npush    rbp                                                            ; +0x0, 0x10073dd70\nmov     rbp, rsp                                                       ; +0x1, 0x10073dd71\npush    rbx                                                            ; +0x4, 0x10073dd74\npush    rax                                                            ; +0x5, 0x10073dd75\nmov     rbx, rdi                                                       ; +0x6, 0x10073dd76\nlea     eax, [rdx-4]                                                   ; +0x9, 0x10073dd79\nxorps   xmm1, xmm1                                                     ; +0xc, 0x10073dd7c\nxorps   xmm0, xmm0                                                     ; +0xf, 0x10073dd7f\ncmp     eax, 8Ah                                                       ; +0x12, 0x10073dd82\njbe     short loc_10073DDB3                                            ; +0x17, 0x10073dd87\nlea     eax, [rdx-36h]                                                 ; +0x19, 0x10073dd89\ncmp     eax, 52h ; 'R'                                                 ; +0x1c, 0x10073dd8c\njb      short loc_10073DDC9                                            ; +0x1f, 0x10073dd8f\ncmp     edx, 88h                                                       ; +0x21, 0x10073dd91\njl      short loc_10073DDA1                                            ; +0x27, 0x10073dd97\nmovss   xmm1, cs:dword_100A040AC                                       ; +0x29, 0x10073dd99\nmov     rdi, rbx                                                       ; +0x31, 0x10073dda1\ncall    sub_100278250                                                  ; +0x34, 0x10073dda4\nmov     rax, rbx                                                       ; +0x39, 0x10073dda9\nadd     rsp, 8                                                         ; +0x3c, 0x10073ddac\npop     rbx                                                            ; +0x40, 0x10073ddb0\npop     rbp                                                            ; +0x41, 0x10073ddb1\nretn                                                                   ; +0x42, 0x10073ddb2\nmov     eax, eax                                                       ; +0x43, 0x10073ddb3\nlea     rcx, flt_100A124B4                                             ; +0x45, 0x10073ddb5\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x4c, 0x10073ddbc\nlea     eax, [rdx-36h]                                                 ; +0x51, 0x10073ddc1\ncmp     eax, 52h ; 'R'                                                 ; +0x54, 0x10073ddc4\njnb     short loc_10073DD91                                            ; +0x57, 0x10073ddc7\nmovss   xmm1, cs:dword_100A04188                                       ; +0x59, 0x10073ddc9\ncmp     edx, 88h                                                       ; +0x61, 0x10073ddd1\njge     short loc_10073DD99                                            ; +0x67, 0x10073ddd7\njmp     short loc_10073DDA1                                            ; +0x69, 0x10073ddd9", "xrefs": ["CharacterColorPage::createColorMenu @ 0x10073d479"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}