{"type": "func", "start": 5369213616, "end": 5369214015, "name": "OBB2D::create", "pseudocode": "// \n// OBB2D::create from 0x14007b2b0 to 0x14007b43f (399 bytes)\n// \n// 5 xrefs:\n// > GameObject::updateOrientedBox @ 0x14029e537\n// > GJBaseGameLayer::init @ 0x14030d417\n// > GJBaseGameLayer::init @ 0x14030d44d\n// > LevelEditorLayer::init @ 0x1403ee641\n// > <???> @ 0x140911d8c\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 11:25:53 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *__fastcall OBB2D::create(const struct cocos2d::CCPoint *a1, __int64 a2, __int64 a3, float X)\n{\n  char *v5; // rsi\n  const struct cocos2d::CCPoint *v6; // rax\n  const struct cocos2d::CCPoint *v7; // rbx\n  int v8; // eax\n  int v9; // r8d\n  int v10; // r9d\n  char *v12; // [rsp+30h] [rbp-48h] BYREF\n  char v13[8]; // [rsp+38h] [rbp-40h] BYREF\n\n  v5 = (char *)operator new(0x1B8u);\n  v12 = v5;\n  memset(v5, 0, 0x1B8u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);\n  *(_QWORD *)v5 = &OBB2D::`vftable';\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 320));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 328));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 336));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 344));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 352));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 360));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 368));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 376));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 384));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 392));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 400));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 408));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 432));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a1);\n  v7 = v6;\n  if ( cocos2d::CCNode::init((cocos2d::CCNode *)v5) )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v7);\n    OBB2D::calculateWithCenter((int)v5, v8, v9, v10, X);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n    return v5;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; OBB2D::create from 0x14007b2b0 to 0x14007b43f (399 bytes)\n; \n; 5 xrefs:\n; > GameObject::updateOrientedBox @ 0x14029e537\n; > GJBaseGameLayer::init @ 0x14030d417\n; > GJBaseGameLayer::init @ 0x14030d44d\n; > LevelEditorLayer::init @ 0x1403ee641\n; > <???> @ 0x140911d8c\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 11:25:53 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14007b2b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14007b2b5\npush    rdi                                                            ; +0xa, 0x14007b2ba\nsub     rsp, 70h                                                       ; +0xb, 0x14007b2bb\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xf, 0x14007b2bf\nmovaps  [rsp+78h+var_28], xmm7                                         ; +0x14, 0x14007b2c4\nmovaps  [rsp+78h+var_38], xmm8                                         ; +0x19, 0x14007b2c9\nmovaps  xmm6, xmm3                                                     ; +0x1f, 0x14007b2cf\nmovaps  xmm7, xmm2                                                     ; +0x22, 0x14007b2d2\nmovaps  xmm8, xmm1                                                     ; +0x25, 0x14007b2d5\nmov     rdi, rcx                                                       ; +0x29, 0x14007b2d9\nmov     ecx, 1B8h; Size                                                ; +0x2c, 0x14007b2dc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x14007b2e1\nmov     rsi, rax                                                       ; +0x36, 0x14007b2e6\nmov     [rsp+78h+var_48], rax                                          ; +0x39, 0x14007b2e9\nxor     edx, edx; Val                                                  ; +0x3e, 0x14007b2ee\nmov     r8d, 1B8h; Size                                                ; +0x40, 0x14007b2f0\nmov     rcx, rax; void *                                               ; +0x46, 0x14007b2f6\ncall    memset                                                         ; +0x49, 0x14007b2f9\nmov     rcx, rsi                                                       ; +0x4e, 0x14007b2fe\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x51, 0x14007b301\nnop                                                                    ; +0x57, 0x14007b307\nlea     rax, ??_7OBB2D@@6B@; const OBB2D::`vftable'                    ; +0x58, 0x14007b308\nmov     [rsi], rax                                                     ; +0x5f, 0x14007b30f\nlea     rcx, [rsi+140h]                                                ; +0x62, 0x14007b312\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x69, 0x14007b319\nlea     rcx, [rsi+148h]                                                ; +0x6f, 0x14007b31f\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x76, 0x14007b326\nlea     rcx, [rsi+150h]                                                ; +0x7c, 0x14007b32c\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x83, 0x14007b333\nlea     rcx, [rsi+158h]                                                ; +0x89, 0x14007b339\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x90, 0x14007b340\nlea     rcx, [rsi+160h]                                                ; +0x96, 0x14007b346\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x9d, 0x14007b34d\nlea     rcx, [rsi+168h]                                                ; +0xa3, 0x14007b353\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xaa, 0x14007b35a\nlea     rcx, [rsi+170h]                                                ; +0xb0, 0x14007b360\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xb7, 0x14007b367\nlea     rcx, [rsi+178h]                                                ; +0xbd, 0x14007b36d\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xc4, 0x14007b374\nlea     rcx, [rsi+180h]                                                ; +0xca, 0x14007b37a\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd1, 0x14007b381\nlea     rcx, [rsi+188h]                                                ; +0xd7, 0x14007b387\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xde, 0x14007b38e\nlea     rcx, [rsi+190h]                                                ; +0xe4, 0x14007b394\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xeb, 0x14007b39b\nlea     rcx, [rsi+198h]                                                ; +0xf1, 0x14007b3a1\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xf8, 0x14007b3a8\nlea     rcx, [rsi+1B0h]                                                ; +0xfe, 0x14007b3ae\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x105, 0x14007b3b5\nnop                                                                    ; +0x10b, 0x14007b3bb\nmov     rdx, rdi                                                       ; +0x10c, 0x14007b3bc\nlea     rcx, [rsp+78h+var_48]                                          ; +0x10f, 0x14007b3bf\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x114, 0x14007b3c4\nmov     rbx, rax                                                       ; +0x11a, 0x14007b3ca\nmov     rcx, rsi                                                       ; +0x11d, 0x14007b3cd\ncall    cs:__imp_?init@CCNode@cocos2d@@UEAA_NXZ; cocos2d::CCNode::init(void) ; +0x120, 0x14007b3d0\ntest    al, al                                                         ; +0x126, 0x14007b3d6\njz      short loc_14007B40E                                            ; +0x128, 0x14007b3d8\nmov     rdx, rbx                                                       ; +0x12a, 0x14007b3da\nlea     rcx, [rsp+78h+var_40]                                          ; +0x12d, 0x14007b3dd\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x132, 0x14007b3e2\nmov     rdx, rax; int                                                  ; +0x138, 0x14007b3e8\nmovss   [rsp+78h+X], xmm6; X                                           ; +0x13b, 0x14007b3eb\nmovaps  xmm3, xmm7                                                     ; +0x141, 0x14007b3f1\nmovaps  xmm2, xmm8                                                     ; +0x144, 0x14007b3f4\nmov     rcx, rsi; int                                                  ; +0x148, 0x14007b3f8\ncall    OBB2D__calculateWithCenter                                     ; +0x14b, 0x14007b3fb\nmov     rcx, rsi                                                       ; +0x150, 0x14007b400\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x153, 0x14007b403\nmov     rax, rsi                                                       ; +0x159, 0x14007b409\njmp     short loc_14007B41E                                            ; +0x15c, 0x14007b40c\nmov     rax, [rsi]                                                     ; +0x15e, 0x14007b40e\nmov     edx, 1                                                         ; +0x161, 0x14007b411\nmov     rcx, rsi                                                       ; +0x166, 0x14007b416\ncall    qword ptr [rax+8]                                              ; +0x169, 0x14007b419\nxor     eax, eax                                                       ; +0x16c, 0x14007b41c\nlea     r11, [rsp+78h+var_8]                                           ; +0x16e, 0x14007b41e\nmov     rbx, [r11+10h]                                                 ; +0x173, 0x14007b423\nmov     rsi, [r11+18h]                                                 ; +0x177, 0x14007b427\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x17b, 0x14007b42b\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0x180, 0x14007b430\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x185, 0x14007b435\nmov     rsp, r11                                                       ; +0x18a, 0x14007b43a\npop     rdi                                                            ; +0x18d, 0x14007b43d\nretn                                                                   ; +0x18e, 0x14007b43e", "xrefs": ["GameObject::updateOrientedBox @ 0x14029e537", "GJBaseGameLayer::init @ 0x14030d417", "GJBaseGameLayer::init @ 0x14030d44d", "LevelEditorLayer::init @ 0x1403ee641", "<???> @ 0x140911d8c"], "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"}