{"type": "func", "start": 4296159568, "end": 4296159722, "name": "GJBaseGameLayer::playerCircleCollision", "pseudocode": "// \n// GJBaseGameLayer::playerCircleCollision from 0x100123150 to 0x1001231ea (154 bytes)\n// \n// 0 xrefs:\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::playerCircleCollision(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)\n{\n  const cocos2d::CCPoint *v4; // r15\n  __int64 v5; // rax\n  cocos2d::CCPoint v7; // [rsp-38h] [rbp-38h] BYREF\n  float v8; // [rsp-30h] [rbp-30h]\n  float ObjectRadius; // [rsp-2Ch] [rbp-2Ch]\n\n  if ( !a1->m_levelSettings->m_fixRadiusCollision )\n    return GJBaseGameLayer::objectIntersectsCircle(a1, a2, a3);\n  v4 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerObject *))a2->getPosition)(a2);\n  ((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))a3->getRealPosition)(&v7, a3);\n  v8 = cocos2d::ccpDistance(v4, &v7);\n  ObjectRadius = GameObject::getObjectRadius(a3);\n  v5 = ((__int64 (__fastcall *)(PlayerObject *))a2->getObjectRect)(a2);\n  return (float)((float)(*(float *)(v5 + 8) * 0.5) + ObjectRadius) >= v8;\n}", "assembly": "; \n; GJBaseGameLayer::playerCircleCollision from 0x100123150 to 0x1001231ea (154 bytes)\n; \n; 0 xrefs:\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, [rdi+0CB0h]                                               ; +0x0, 0x100123150\ncmp     byte ptr [rax+1C7h], 1                                         ; +0x7, 0x100123157\njnz     GJBaseGameLayer__objectIntersectsCircle                        ; +0xe, 0x10012315e\npush    rbp                                                            ; +0x14, 0x100123164\nmov     rbp, rsp                                                       ; +0x15, 0x100123165\npush    r15                                                            ; +0x18, 0x100123168\npush    r14                                                            ; +0x1a, 0x10012316a\npush    r12                                                            ; +0x1c, 0x10012316c\npush    rbx                                                            ; +0x1e, 0x10012316e\nsub     rsp, 10h                                                       ; +0x1f, 0x10012316f\nmov     rax, [rsi]                                                     ; +0x23, 0x100123173\nmov     rdi, rsi                                                       ; +0x26, 0x100123176\nmov     rbx, rsi                                                       ; +0x29, 0x100123179\nmov     r14, rdx                                                       ; +0x2c, 0x10012317c\ncall    qword ptr [rax+0C0h]                                           ; +0x2f, 0x10012317f\nmov     r15, rax                                                       ; +0x35, 0x100123185\nmov     rax, [r14]                                                     ; +0x38, 0x100123188\nlea     r12, [rbp-30h]                                                 ; +0x3b, 0x10012318b\nmov     rdi, r12                                                       ; +0x3f, 0x10012318f\nmov     rsi, r14                                                       ; +0x42, 0x100123192\ncall    qword ptr [rax+540h]                                           ; +0x45, 0x100123195\nmov     rdi, r15                                                       ; +0x4b, 0x10012319b\nmov     rsi, r12                                                       ; +0x4e, 0x10012319e\ncall    cocos2d__ccpDistance                                           ; +0x51, 0x1001231a1\nmovss   dword ptr [rbp-28h], xmm0                                      ; +0x56, 0x1001231a6\nmov     rdi, r14                                                       ; +0x5b, 0x1001231ab\ncall    GameObject__getObjectRadius                                    ; +0x5e, 0x1001231ae\nmovss   dword ptr [rbp-24h], xmm0                                      ; +0x63, 0x1001231b3\nmov     rax, [rbx]                                                     ; +0x68, 0x1001231b8\nmov     rdi, rbx                                                       ; +0x6b, 0x1001231bb\ncall    qword ptr [rax+520h]                                           ; +0x6e, 0x1001231be\nmovss   xmm0, dword ptr [rax+8]                                        ; +0x74, 0x1001231c4\nmulss   xmm0, cs:dword_100814FA8                                       ; +0x79, 0x1001231c9\naddss   xmm0, dword ptr [rbp-24h]                                      ; +0x81, 0x1001231d1\nucomiss xmm0, dword ptr [rbp-28h]                                      ; +0x86, 0x1001231d6\nsetnb   al                                                             ; +0x8a, 0x1001231da\nadd     rsp, 10h                                                       ; +0x8d, 0x1001231dd\npop     rbx                                                            ; +0x91, 0x1001231e1\npop     r12                                                            ; +0x92, 0x1001231e2\npop     r14                                                            ; +0x94, 0x1001231e4\npop     r15                                                            ; +0x96, 0x1001231e6\npop     rbp                                                            ; +0x98, 0x1001231e8\nretn                                                                   ; +0x99, 0x1001231e9", "xrefs": [], "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"}