{"type": "func", "start": 6442834464, "end": 6442834606, "name": "cocos2d::CCProgressTimer::boundaryTexCoord", "pseudocode": "// \n// cocos2d::CCProgressTimer::boundaryTexCoord from 0x18005da20 to 0x18005daae (142 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b31d4\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\nfloat *__fastcall cocos2d::CCProgressTimer::boundaryTexCoord(cocos2d::CCProgressTimer *this, float *a2, char a3)\n{\n  char v4; // r9\n  int v5; // eax\n  char v6; // cl\n\n  if ( a3 >= 4 )\n  {\n    cocos2d::cc_timeval::operator=(a2, dword_1801A83F8);\n    return a2;\n  }\n  else\n  {\n    v4 = 2 * a3;\n    if ( this->m_bReverseDirection )\n    {\n      v5 = (75 >> (6 - v4)) & 1;\n      v6 = 7 - v4;\n    }\n    else\n    {\n      v6 = 2 * a3 + 1;\n      v5 = (75 >> v4) & 1;\n    }\n    kmVec2Fill(a2, (float)((75 >> v6) & 1), (float)v5);\n    return a2;\n  }\n}", "assembly": "; \n; cocos2d::CCProgressTimer::boundaryTexCoord from 0x18005da20 to 0x18005daae (142 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b31d4\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    rbx                                                            ; +0x0, 0x18005da20\nsub     rsp, 20h                                                       ; +0x2, 0x18005da22\nmov     rbx, rdx                                                       ; +0x6, 0x18005da26\ncmp     r8b, 4                                                         ; +0x9, 0x18005da29\njge     short loc_18005DA96                                            ; +0xd, 0x18005da2d\ncmp     byte ptr [rcx+188h], 0                                         ; +0xf, 0x18005da2f\nmovsx   edx, r8b                                                       ; +0x16, 0x18005da36\nmov     r8d, 4Bh ; 'K'                                                 ; +0x1a, 0x18005da3a\nmov     eax, r8d                                                       ; +0x20, 0x18005da40\nlea     r9d, [rdx+rdx]                                                 ; +0x23, 0x18005da43\njz      short loc_18005DA85                                            ; +0x27, 0x18005da47\nmov     ecx, 6                                                         ; +0x29, 0x18005da49\nsub     ecx, r9d                                                       ; +0x2e, 0x18005da4e\nsar     eax, cl                                                        ; +0x31, 0x18005da51\nmov     ecx, 7                                                         ; +0x33, 0x18005da53\nand     eax, 1                                                         ; +0x38, 0x18005da58\nsub     ecx, r9d                                                       ; +0x3b, 0x18005da5b\nsar     r8d, cl                                                        ; +0x3e, 0x18005da5e\nmov     rcx, rbx                                                       ; +0x41, 0x18005da61\nand     r8d, 1                                                         ; +0x44, 0x18005da64\nmovd    xmm2, eax                                                      ; +0x48, 0x18005da68\ncvtdq2ps xmm2, xmm2                                                    ; +0x4c, 0x18005da6c\nmovd    xmm1, r8d                                                      ; +0x4f, 0x18005da6f\ncvtdq2ps xmm1, xmm1                                                    ; +0x54, 0x18005da74\ncall    kmVec2Fill                                                     ; +0x57, 0x18005da77\nmov     rax, rbx                                                       ; +0x5c, 0x18005da7c\nadd     rsp, 20h                                                       ; +0x5f, 0x18005da7f\npop     rbx                                                            ; +0x63, 0x18005da83\nretn                                                                   ; +0x64, 0x18005da84\nmov     ecx, r9d                                                       ; +0x65, 0x18005da85\nsar     eax, cl                                                        ; +0x68, 0x18005da88\nlea     ecx, ds:1[rdx*2]                                               ; +0x6a, 0x18005da8a\nand     eax, 1                                                         ; +0x71, 0x18005da91\njmp     short loc_18005DA5E                                            ; +0x74, 0x18005da94\nlea     rdx, dword_1801A83F8                                           ; +0x76, 0x18005da96\nmov     rcx, rbx                                                       ; +0x7d, 0x18005da9d\ncall    ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0x80, 0x18005daa0\nmov     rax, rbx                                                       ; +0x85, 0x18005daa5\nadd     rsp, 20h                                                       ; +0x88, 0x18005daa8\npop     rbx                                                            ; +0x8c, 0x18005daac\nretn                                                                   ; +0x8d, 0x18005daad", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b31d4"], "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"}