{"type": "func", "start": 6443056416, "end": 6443056525, "name": "cocos2d::ccpClamp", "pseudocode": "// \n// cocos2d::ccpClamp from 0x180093d20 to 0x180093d8d (109 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCProgressTimer::setMidpoint @ 0x18005e017\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6624\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 *__fastcall cocos2d::ccpClamp(\n        cocos2d *this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3,\n        const struct cocos2d::CCPoint *a4)\n{\n  float y; // xmm2_4\n  float v6; // xmm3_4\n  float v7; // xmm1_4\n  float x; // xmm4_4\n  float v9; // xmm1_4\n  float v10; // xmm2_4\n\n  y = a4->y;\n  v6 = a3->y;\n  v7 = a2->y;\n  if ( v6 > y )\n  {\n    v6 = a4->y;\n    y = a3->y;\n  }\n  if ( v6 <= v7 )\n    v6 = fminf(v7, y);\n  x = a4->x;\n  v9 = a3->x;\n  v10 = a2->x;\n  if ( a3->x > a4->x )\n  {\n    v9 = a4->x;\n    x = a3->x;\n  }\n  if ( v9 <= v10 )\n    v9 = fminf(v10, x);\n  kmVec2Fill((float *)this, v9, v6);\n  return this;\n}", "assembly": "; \n; cocos2d::ccpClamp from 0x180093d20 to 0x180093d8d (109 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCProgressTimer::setMidpoint @ 0x18005e017\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6624\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, 0x180093d20\nsub     rsp, 20h                                                       ; +0x2, 0x180093d22\nmovss   xmm2, dword ptr [r9+4]                                         ; +0x6, 0x180093d26\nmov     rbx, rcx                                                       ; +0xc, 0x180093d2c\nmovss   xmm3, dword ptr [r8+4]                                         ; +0xf, 0x180093d2f\ncomiss  xmm3, xmm2                                                     ; +0x15, 0x180093d35\nmovss   xmm1, dword ptr [rdx+4]                                        ; +0x18, 0x180093d38\njbe     short loc_180093D48                                            ; +0x1d, 0x180093d3d\nmovaps  xmm0, xmm3                                                     ; +0x1f, 0x180093d3f\nmovaps  xmm3, xmm2                                                     ; +0x22, 0x180093d42\nmovaps  xmm2, xmm0                                                     ; +0x25, 0x180093d45\ncomiss  xmm3, xmm1                                                     ; +0x28, 0x180093d48\nja      short loc_180093D54                                            ; +0x2b, 0x180093d4b\nminss   xmm1, xmm2                                                     ; +0x2d, 0x180093d4d\nmovaps  xmm3, xmm1                                                     ; +0x31, 0x180093d51\nmovss   xmm4, dword ptr [r9]                                           ; +0x34, 0x180093d54\nmovss   xmm1, dword ptr [r8]                                           ; +0x39, 0x180093d59\ncomiss  xmm1, xmm4                                                     ; +0x3e, 0x180093d5e\nmovss   xmm2, dword ptr [rdx]                                          ; +0x41, 0x180093d61\njbe     short loc_180093D70                                            ; +0x45, 0x180093d65\nmovaps  xmm0, xmm1                                                     ; +0x47, 0x180093d67\nmovaps  xmm1, xmm4                                                     ; +0x4a, 0x180093d6a\nmovaps  xmm4, xmm0                                                     ; +0x4d, 0x180093d6d\ncomiss  xmm1, xmm2                                                     ; +0x50, 0x180093d70\nja      short loc_180093D7C                                            ; +0x53, 0x180093d73\nminss   xmm2, xmm4                                                     ; +0x55, 0x180093d75\nmovaps  xmm1, xmm2                                                     ; +0x59, 0x180093d79\nmovaps  xmm2, xmm3                                                     ; +0x5c, 0x180093d7c\ncall    kmVec2Fill                                                     ; +0x5f, 0x180093d7f\nmov     rax, rbx                                                       ; +0x64, 0x180093d84\nadd     rsp, 20h                                                       ; +0x67, 0x180093d87\npop     rbx                                                            ; +0x6b, 0x180093d8b\nretn                                                                   ; +0x6c, 0x180093d8c", "xrefs": ["cocos2d::CCProgressTimer::setMidpoint @ 0x18005e017", "<???> @ 0x1801438a8", "<???> @ 0x1801b6624"], "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"}