{"type": "func", "start": 6442520224, "end": 6442520323, "name": "cocos2d::ccDrawColor4B", "pseudocode": "// \n// cocos2d::ccDrawColor4B from 0x180010ea0 to 0x180010f03 (99 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801438a8\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\nvoid __fastcall cocos2d::ccDrawColor4B(cocos2d *this, unsigned __int8 a2, unsigned __int8 a3, unsigned __int8 a4)\n{\n  flt_1801A2B60 = (float)(unsigned __int8)this / 255.0;\n  *(float *)&dword_1801A2B64 = (float)a2 / 255.0;\n  *(float *)&dword_1801A2B68 = (float)a3 / 255.0;\n  *(float *)&dword_1801A2B6C = (float)a4 / 255.0;\n}", "assembly": "; \n; cocos2d::ccDrawColor4B from 0x180010ea0 to 0x180010f03 (99 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801438a8\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\nmovss   xmm2, cs:dword_1800E5838                                       ; +0x0, 0x180010ea0\nmovzx   eax, cl                                                        ; +0x8, 0x180010ea8\nmovd    xmm0, eax                                                      ; +0xb, 0x180010eab\ncvtdq2ps xmm0, xmm0                                                    ; +0xf, 0x180010eaf\nmovzx   eax, dl                                                        ; +0x12, 0x180010eb2\ndivss   xmm0, xmm2                                                     ; +0x15, 0x180010eb5\nmovss   cs:flt_1801A2B60, xmm0                                         ; +0x19, 0x180010eb9\nmovd    xmm0, eax                                                      ; +0x21, 0x180010ec1\ncvtdq2ps xmm0, xmm0                                                    ; +0x25, 0x180010ec5\nmovzx   eax, r8b                                                       ; +0x28, 0x180010ec8\nmovd    xmm1, eax                                                      ; +0x2c, 0x180010ecc\ndivss   xmm0, xmm2                                                     ; +0x30, 0x180010ed0\nmovzx   eax, r9b                                                       ; +0x34, 0x180010ed4\ncvtdq2ps xmm1, xmm1                                                    ; +0x38, 0x180010ed8\nmovss   cs:dword_1801A2B64, xmm0                                       ; +0x3b, 0x180010edb\nmovd    xmm0, eax                                                      ; +0x43, 0x180010ee3\ncvtdq2ps xmm0, xmm0                                                    ; +0x47, 0x180010ee7\ndivss   xmm1, xmm2                                                     ; +0x4a, 0x180010eea\ndivss   xmm0, xmm2                                                     ; +0x4e, 0x180010eee\nmovss   cs:dword_1801A2B68, xmm1                                       ; +0x52, 0x180010ef2\nmovss   cs:dword_1801A2B6C, xmm0                                       ; +0x5a, 0x180010efa\nretn                                                                   ; +0x62, 0x180010f02", "xrefs": ["<???> @ 0x1801438a8"], "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"}