{"type": "func", "start": 5369160304, "end": 5369160570, "name": "OBB2D::getBoundingRect", "pseudocode": "// \n// OBB2D::getBoundingRect from 0x14006e270 to 0x14006e37a (266 bytes)\n// \n// 5 xrefs:\n// > GameObject::getObjectRect2 @ 0x1401978a2\n// > GJBaseGameLayer::preUpdateVisibility @ 0x140236481\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1402364fd\n// > LevelEditorLayer::getObjectRect @ 0x1402d5b95\n// > <???> @ 0x1406c60e4\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::CCRect *OBB2D::getBoundingRect(cocos2d::CCRect *__return_ptr retstr, OBB2D *a2)\n{\n  cocos2d::CCRect *v2; // rbx\n  float x; // xmm7_4\n  float y; // xmm6_4\n  float v6; // xmm10_4\n  float v7; // xmm9_4\n  __int64 v8; // rdi\n  float v9; // xmm0_4\n  cocos2d::CCPoint v11; // [rsp+98h] [rbp+10h] BYREF\n\n  v2 = retstr + 20;\n  x = 0.0;\n  y = 0.0;\n  v6 = 0.0;\n  v7 = 0.0;\n  v8 = 4;\n  do\n  {\n    cocos2d::CCPoint::CCPoint(&v11, &v2->origin);\n    v6 = fmaxf(v11.x, v6);\n    if ( x > v11.x || x == 0.0 )\n      x = v11.x;\n    v9 = fmaxf(v11.y, v7);\n    v7 = v9;\n    if ( y > v11.y || y == 0.0 )\n      y = v11.y;\n    v2 = (cocos2d::CCRect *)((char *)v2 + 8);\n    --v8;\n  }\n  while ( v8 );\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)a2, x, y, v6 - x, v9 - y);\n  return (cocos2d::CCRect *)a2;\n}", "assembly": "; \n; OBB2D::getBoundingRect from 0x14006e270 to 0x14006e37a (266 bytes)\n; \n; 5 xrefs:\n; > GameObject::getObjectRect2 @ 0x1401978a2\n; > GJBaseGameLayer::preUpdateVisibility @ 0x140236481\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1402364fd\n; > LevelEditorLayer::getObjectRect @ 0x1402d5b95\n; > <???> @ 0x1406c60e4\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\nmov     rax, rsp                                                       ; +0x0, 0x14006e270\nmov     [rax+8], rbx                                                   ; +0x3, 0x14006e273\nmov     [rax+18h], rsi                                                 ; +0x7, 0x14006e277\npush    rdi                                                            ; +0xb, 0x14006e27b\nsub     rsp, 80h                                                       ; +0xc, 0x14006e27c\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x13, 0x14006e283\nlea     rbx, [rcx+140h]                                                ; +0x17, 0x14006e287\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x1e, 0x14006e28e\nmov     rsi, rdx                                                       ; +0x22, 0x14006e292\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x25, 0x14006e295\nxorps   xmm7, xmm7                                                     ; +0x2a, 0x14006e29a\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x2d, 0x14006e29d\nxorps   xmm8, xmm8                                                     ; +0x32, 0x14006e2a2\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x36, 0x14006e2a6\nxorps   xmm6, xmm6                                                     ; +0x3b, 0x14006e2ab\nxorps   xmm10, xmm10                                                   ; +0x3e, 0x14006e2ae\nxorps   xmm9, xmm9                                                     ; +0x42, 0x14006e2b2\nmov     edi, 4                                                         ; +0x46, 0x14006e2b6\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x14006e2bb\nmov     rdx, rbx                                                       ; +0x50, 0x14006e2c0\nlea     rcx, [rsp+88h+arg_8]                                           ; +0x53, 0x14006e2c3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5b, 0x14006e2cb\nmovss   xmm1, [rsp+88h+arg_8]                                          ; +0x61, 0x14006e2d1\ncomiss  xmm7, xmm1                                                     ; +0x6a, 0x14006e2da\nmovaps  xmm0, xmm1                                                     ; +0x6d, 0x14006e2dd\nmaxss   xmm0, xmm10                                                    ; +0x70, 0x14006e2e0\nmovaps  xmm10, xmm0                                                    ; +0x75, 0x14006e2e5\nja      short loc_14006E2F3                                            ; +0x79, 0x14006e2e9\nucomiss xmm7, xmm8                                                     ; +0x7b, 0x14006e2eb\njp      short loc_14006E2F6                                            ; +0x7f, 0x14006e2ef\njnz     short loc_14006E2F6                                            ; +0x81, 0x14006e2f1\nmovaps  xmm7, xmm1                                                     ; +0x83, 0x14006e2f3\nmovss   xmm1, [rsp+88h+arg_C]                                          ; +0x86, 0x14006e2f6\ncomiss  xmm6, xmm1                                                     ; +0x8f, 0x14006e2ff\nmovaps  xmm0, xmm1                                                     ; +0x92, 0x14006e302\nmaxss   xmm0, xmm9                                                     ; +0x95, 0x14006e305\nmovaps  xmm9, xmm0                                                     ; +0x9a, 0x14006e30a\nja      short loc_14006E318                                            ; +0x9e, 0x14006e30e\nucomiss xmm6, xmm8                                                     ; +0xa0, 0x14006e310\njp      short loc_14006E31B                                            ; +0xa4, 0x14006e314\njnz     short loc_14006E31B                                            ; +0xa6, 0x14006e316\nmovaps  xmm6, xmm1                                                     ; +0xa8, 0x14006e318\nadd     rbx, 8                                                         ; +0xab, 0x14006e31b\nsub     rdi, 1                                                         ; +0xaf, 0x14006e31f\njnz     short loc_14006E2C0                                            ; +0xb3, 0x14006e323\nsubss   xmm10, xmm7                                                    ; +0xb5, 0x14006e325\nmovaps  xmm2, xmm6                                                     ; +0xba, 0x14006e32a\nsubss   xmm9, xmm6                                                     ; +0xbd, 0x14006e32d\nmovaps  xmm1, xmm7                                                     ; +0xc2, 0x14006e332\nmov     rcx, rsi                                                       ; +0xc5, 0x14006e335\nmovaps  xmm3, xmm10                                                    ; +0xc8, 0x14006e338\nmovss   [rsp+88h+var_68], xmm9                                         ; +0xcc, 0x14006e33c\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xd3, 0x14006e343\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0xd9, 0x14006e349\nlea     r11, [rsp+88h+var_8]                                           ; +0xde, 0x14006e34e\nmov     rbx, [r11+10h]                                                 ; +0xe6, 0x14006e356\nmov     rax, rsi                                                       ; +0xea, 0x14006e35a\nmov     rsi, [r11+20h]                                                 ; +0xed, 0x14006e35d\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0xf1, 0x14006e361\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0xf6, 0x14006e366\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0xfb, 0x14006e36b\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x100, 0x14006e370\nmov     rsp, r11                                                       ; +0x105, 0x14006e375\npop     rdi                                                            ; +0x108, 0x14006e378\nretn                                                                   ; +0x109, 0x14006e379", "xrefs": ["GameObject::getObjectRect2 @ 0x1401978a2", "GJBaseGameLayer::preUpdateVisibility @ 0x140236481", "GJBaseGameLayer::preUpdateVisibility @ 0x1402364fd", "LevelEditorLayer::getObjectRect @ 0x1402d5b95", "<???> @ 0x1406c60e4"], "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"}