{"type": "func", "start": 4296159872, "end": 4296160242, "name": "GJBaseGameLayer::objectIntersectsCircle", "pseudocode": "// \n// GJBaseGameLayer::objectIntersectsCircle from 0x100123280 to 0x1001233f2 (370 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::playerCircleCollision @ 0x10012315e\n// > GJBaseGameLayer::checkCollisions @ 0x10012683c\n// > GJBaseGameLayer::collisionCheckObjects @ 0x100126ee8\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\nbool __fastcall GJBaseGameLayer::objectIntersectsCircle(GJBaseGameLayer *a1, GameObject *a2, GameObject *a3)\n{\n  double v3; // xmm1_8\n  double v5; // xmm0_8\n  double v6; // xmm0_8\n  double v7; // xmm0_8\n  double v8; // xmm0_8\n  bool v9; // bl\n  float v10; // xmm0_4\n  float v11; // xmm0_4\n  float v12; // xmm0_4\n  float v13; // xmm0_4\n  _BYTE v15[16]; // [rsp+Ch] [rbp-64h] BYREF\n  cocos2d::CCPoint v16; // [rsp+1Ch] [rbp-54h] BYREF\n  cocos2d::CCPoint v17; // [rsp+24h] [rbp-4Ch] BYREF\n  cocos2d::CCPoint v18; // [rsp+2Ch] [rbp-44h] BYREF\n  cocos2d::CCPoint v19; // [rsp+34h] [rbp-3Ch] BYREF\n  cocos2d::CCPoint v20; // [rsp+3Ch] [rbp-34h] BYREF\n  float v21; // [rsp+44h] [rbp-2Ch]\n  float v22; // [rsp+48h] [rbp-28h]\n  float v23; // [rsp+4Ch] [rbp-24h]\n  float v24; // [rsp+50h] [rbp-20h]\n  float ObjectRadius; // [rsp+54h] [rbp-1Ch]\n\n  ((void (__fastcall *)(GameObject *))a2->getObjectRect)(a2);\n  sub_10028D180(v15);\n  ObjectRadius = GameObject::getObjectRadius(a3);\n  ((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))a3->getRealPosition)(&v20, a3);\n  v5 = sub_10028D230();\n  v21 = *(float *)&v5;\n  v6 = sub_10028D270();\n  v24 = *(float *)&v6;\n  v7 = sub_10028D280();\n  v22 = *(float *)&v7;\n  v8 = sub_10028D2C0();\n  v23 = *(float *)&v8;\n  v9 = 1;\n  if ( !(unsigned __int8)sub_10028D2D0(v15, v8, v3) )\n  {\n    sub_10028CBE0(&v16, v21, v22);\n    v10 = cocos2d::ccpDistance(&v16, &v20);\n    if ( ObjectRadius <= fabs(v10) )\n    {\n      sub_10028CBE0(&v17, v21, v23);\n      v11 = cocos2d::ccpDistance(&v17, &v20);\n      if ( ObjectRadius <= fabs(v11) )\n      {\n        sub_10028CBE0(&v18, v24, v23);\n        v12 = cocos2d::ccpDistance(&v18, &v20);\n        if ( ObjectRadius <= fabs(v12) )\n        {\n          sub_10028CBE0(&v19, v24, v22);\n          v13 = cocos2d::ccpDistance(&v19, &v20);\n          return ObjectRadius > fabs(v13);\n        }\n      }\n    }\n  }\n  return v9;\n}", "assembly": "; \n; GJBaseGameLayer::objectIntersectsCircle from 0x100123280 to 0x1001233f2 (370 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::playerCircleCollision @ 0x10012315e\n; > GJBaseGameLayer::checkCollisions @ 0x10012683c\n; > GJBaseGameLayer::collisionCheckObjects @ 0x100126ee8\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    rbp                                                            ; +0x0, 0x100123280\nmov     rbp, rsp                                                       ; +0x1, 0x100123281\npush    r15                                                            ; +0x4, 0x100123284\npush    r14                                                            ; +0x6, 0x100123286\npush    rbx                                                            ; +0x8, 0x100123288\nsub     rsp, 58h                                                       ; +0x9, 0x100123289\nmov     r14, rdx                                                       ; +0xd, 0x10012328d\nmov     rdi, rsi                                                       ; +0x10, 0x100123290\nmov     rax, [rsi]                                                     ; +0x13, 0x100123293\ncall    qword ptr [rax+520h]                                           ; +0x16, 0x100123296\nlea     rbx, [rbp+var_64]                                              ; +0x1c, 0x10012329c\nmov     rdi, rbx                                                       ; +0x20, 0x1001232a0\nmov     rsi, rax                                                       ; +0x23, 0x1001232a3\ncall    sub_10028D180                                                  ; +0x26, 0x1001232a6\nmov     rdi, r14                                                       ; +0x2b, 0x1001232ab\ncall    GameObject__getObjectRadius                                    ; +0x2e, 0x1001232ae\nmovss   [rbp+var_1C], xmm0                                             ; +0x33, 0x1001232b3\nmov     rax, [r14]                                                     ; +0x38, 0x1001232b8\nlea     r15, [rbp+var_34]                                              ; +0x3b, 0x1001232bb\nmov     rdi, r15                                                       ; +0x3f, 0x1001232bf\nmov     rsi, r14                                                       ; +0x42, 0x1001232c2\ncall    qword ptr [rax+540h]                                           ; +0x45, 0x1001232c5\nmov     rdi, rbx                                                       ; +0x4b, 0x1001232cb\ncall    sub_10028D230                                                  ; +0x4e, 0x1001232ce\nmovss   [rbp+var_2C], xmm0                                             ; +0x53, 0x1001232d3\nmov     rdi, rbx                                                       ; +0x58, 0x1001232d8\ncall    sub_10028D270                                                  ; +0x5b, 0x1001232db\nmovss   [rbp+var_20], xmm0                                             ; +0x60, 0x1001232e0\nmov     rdi, rbx                                                       ; +0x65, 0x1001232e5\ncall    sub_10028D280                                                  ; +0x68, 0x1001232e8\nmovss   [rbp+var_28], xmm0                                             ; +0x6d, 0x1001232ed\nmov     rdi, rbx                                                       ; +0x72, 0x1001232f2\ncall    sub_10028D2C0                                                  ; +0x75, 0x1001232f5\nmovss   [rbp+var_24], xmm0                                             ; +0x7a, 0x1001232fa\nmov     rdi, rbx                                                       ; +0x7f, 0x1001232ff\nmov     rsi, r15                                                       ; +0x82, 0x100123302\ncall    sub_10028D2D0                                                  ; +0x85, 0x100123305\nmov     bl, 1                                                          ; +0x8a, 0x10012330a\ntest    al, al                                                         ; +0x8c, 0x10012330c\njnz     loc_1001233E5                                                  ; +0x8e, 0x10012330e\nlea     r14, [rbp+var_54]                                              ; +0x94, 0x100123314\nmov     rdi, r14                                                       ; +0x98, 0x100123318\nmovss   xmm0, [rbp+var_2C]                                             ; +0x9b, 0x10012331b\nmovss   xmm1, [rbp+var_28]                                             ; +0xa0, 0x100123320\ncall    sub_10028CBE0                                                  ; +0xa5, 0x100123325\nlea     rsi, [rbp+var_34]                                              ; +0xaa, 0x10012332a\nmov     rdi, r14                                                       ; +0xae, 0x10012332e\ncall    cocos2d__ccpDistance                                           ; +0xb1, 0x100123331\nandps   xmm0, cs:xmmword_100815500                                     ; +0xb6, 0x100123336\nmovss   xmm1, [rbp+var_1C]                                             ; +0xbd, 0x10012333d\nucomiss xmm1, xmm0                                                     ; +0xc2, 0x100123342\nja      loc_1001233E5                                                  ; +0xc5, 0x100123345\nlea     r14, [rbp+var_4C]                                              ; +0xcb, 0x10012334b\nmov     rdi, r14                                                       ; +0xcf, 0x10012334f\nmovss   xmm0, [rbp+var_2C]                                             ; +0xd2, 0x100123352\nmovss   xmm1, [rbp+var_24]                                             ; +0xd7, 0x100123357\ncall    sub_10028CBE0                                                  ; +0xdc, 0x10012335c\nlea     rsi, [rbp+var_34]                                              ; +0xe1, 0x100123361\nmov     rdi, r14                                                       ; +0xe5, 0x100123365\ncall    cocos2d__ccpDistance                                           ; +0xe8, 0x100123368\nandps   xmm0, cs:xmmword_100815500                                     ; +0xed, 0x10012336d\nmovss   xmm1, [rbp+var_1C]                                             ; +0xf4, 0x100123374\nucomiss xmm1, xmm0                                                     ; +0xf9, 0x100123379\nja      short loc_1001233E5                                            ; +0xfc, 0x10012337c\nlea     r14, [rbp+var_44]                                              ; +0xfe, 0x10012337e\nmov     rdi, r14                                                       ; +0x102, 0x100123382\nmovss   xmm0, [rbp+var_20]                                             ; +0x105, 0x100123385\nmovss   xmm1, [rbp+var_24]                                             ; +0x10a, 0x10012338a\ncall    sub_10028CBE0                                                  ; +0x10f, 0x10012338f\nlea     rsi, [rbp+var_34]                                              ; +0x114, 0x100123394\nmov     rdi, r14                                                       ; +0x118, 0x100123398\ncall    cocos2d__ccpDistance                                           ; +0x11b, 0x10012339b\nandps   xmm0, cs:xmmword_100815500                                     ; +0x120, 0x1001233a0\nmovss   xmm1, [rbp+var_1C]                                             ; +0x127, 0x1001233a7\nucomiss xmm1, xmm0                                                     ; +0x12c, 0x1001233ac\nja      short loc_1001233E5                                            ; +0x12f, 0x1001233af\nlea     rbx, [rbp+var_3C]                                              ; +0x131, 0x1001233b1\nmov     rdi, rbx                                                       ; +0x135, 0x1001233b5\nmovss   xmm0, [rbp+var_20]                                             ; +0x138, 0x1001233b8\nmovss   xmm1, [rbp+var_28]                                             ; +0x13d, 0x1001233bd\ncall    sub_10028CBE0                                                  ; +0x142, 0x1001233c2\nlea     rsi, [rbp+var_34]                                              ; +0x147, 0x1001233c7\nmov     rdi, rbx                                                       ; +0x14b, 0x1001233cb\ncall    cocos2d__ccpDistance                                           ; +0x14e, 0x1001233ce\nandps   xmm0, cs:xmmword_100815500                                     ; +0x153, 0x1001233d3\nmovss   xmm1, [rbp+var_1C]                                             ; +0x15a, 0x1001233da\nucomiss xmm1, xmm0                                                     ; +0x15f, 0x1001233df\nsetnbe  bl                                                             ; +0x162, 0x1001233e2\nmov     eax, ebx                                                       ; +0x165, 0x1001233e5\nadd     rsp, 58h                                                       ; +0x167, 0x1001233e7\npop     rbx                                                            ; +0x16b, 0x1001233eb\npop     r14                                                            ; +0x16c, 0x1001233ec\npop     r15                                                            ; +0x16e, 0x1001233ee\npop     rbp                                                            ; +0x170, 0x1001233f0\nretn                                                                   ; +0x171, 0x1001233f1", "xrefs": ["GJBaseGameLayer::playerCircleCollision @ 0x10012315e", "GJBaseGameLayer::checkCollisions @ 0x10012683c", "GJBaseGameLayer::collisionCheckObjects @ 0x100126ee8"], "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"}