{"type": "func", "start": 8753364, "end": 8753572, "name": "GJBaseGameLayer::playerIntersectsCircle", "pseudocode": "// \n// GJBaseGameLayer::playerIntersectsCircle from 0x8590d4 to 0x8591a4 (208 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::playerCircleCollision @ 0x8591b4\n// > <???> @ 0xbdc00\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 GJBaseGameLayer::playerIntersectsCircle(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)\n{\n  const cocos2d::CCPoint *v5; // x23\n  float v6; // s8\n  float ObjectRadius; // [xsp+40h] [xbp+40h]\n  cocos2d::CCPoint v9; // [xsp+50h] [xbp+50h] BYREF\n\n  v5 = a2->getPosition(a2);\n  ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a3->getRealPosition)(&v9, a3);\n  v6 = cocos2d::ccpDistance(v5, &v9);\n  ObjectRadius = GameObject::getObjectRadius(a3);\n  return v6 <= (float)(ObjectRadius + (float)(a2->getObjectRect(a2)->size.width * 0.5));\n}", "assembly": "; \n; GJBaseGameLayer::playerIntersectsCircle from 0x8590d4 to 0x8591a4 (208 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::playerCircleCollision @ 0x8591b4\n; > <???> @ 0xbdc00\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x8590d4\nMOV             X0, X1                                                 ; +0x4, 0x8590d8\nMOV             X29, SP                                                ; +0x8, 0x8590dc\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0xc, 0x8590e0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8590e4\nMOV             X20, X1                                                ; +0x14, 0x8590e8\nLDR             X1, [X1]                                               ; +0x18, 0x8590ec\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x1c, 0x8590f0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8590f4\nMOV             X22, X2                                                ; +0x24, 0x8590f8\nLDR             X1, [X1,#0xC0]                                         ; +0x28, 0x8590fc\nADD             X21, X29, #0x60+var_10                                 ; +0x2c, 0x859100\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x30, 0x859104\nLDR             X2, [X19]                                              ; +0x34, 0x859108\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x38, 0x85910c\nSTR             D8, [SP,#0x60+var_28]                                  ; +0x3c, 0x859110\nBLR             X1                                                     ; +0x40, 0x859114\nSTR             X21, [X29,#0x60+var_20]                                ; +0x44, 0x859118\nLDR             X2, [X22]                                              ; +0x48, 0x85911c\nMOV             X8, X21                                                ; +0x4c, 0x859120\nMOV             X23, X0                                                ; +0x50, 0x859124\nMOV             X0, X22                                                ; +0x54, 0x859128\nLDR             X2, [X2,#0x540]                                        ; +0x58, 0x85912c\nBLR             X2                                                     ; +0x5c, 0x859130\nLDR             X1, [X29,#0x60+var_20]; cocos2d::CCPoint *             ; +0x60, 0x859134\nMOV             X0, X23; this                                          ; +0x64, 0x859138\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x68, 0x85913c\nFMOV            S8, S0                                                 ; +0x6c, 0x859140\nMOV             X0, X22; this                                          ; +0x70, 0x859144\nBL              _ZN10GameObject15getObjectRadiusEv; GameObject::getObjectRadius(void) ; +0x74, 0x859148\nLDR             X1, [X20]                                              ; +0x78, 0x85914c\nMOV             X0, X20                                                ; +0x7c, 0x859150\nSTR             Q0, [X29,#0x60+var_20]                                 ; +0x80, 0x859154\nLDR             X1, [X1,#0x520]                                        ; +0x84, 0x859158\nBLR             X1                                                     ; +0x88, 0x85915c\nFMOV            S2, #0.5                                               ; +0x8c, 0x859160\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x90, 0x859164\nLDR             S1, [X0,#8]                                            ; +0x94, 0x859168\nLDR             X1, [X19]                                              ; +0x98, 0x85916c\nLDR             Q0, [X29,#0x60+var_20]                                 ; +0x9c, 0x859170\nFMADD           S0, S1, S2, S0                                         ; +0xa0, 0x859174\nFCMPE           S8, S0                                                 ; +0xa4, 0x859178\nCSET            W0, LS                                                 ; +0xa8, 0x85917c\nCMP             X2, X1                                                 ; +0xac, 0x859180\nB.NE            loc_8591A0                                             ; +0xb0, 0x859184\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xb4, 0x859188\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xb8, 0x85918c\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xbc, 0x859190\nLDR             D8, [SP,#0x60+var_28]                                  ; +0xc0, 0x859194\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xc4, 0x859198\nRET                                                                    ; +0xc8, 0x85919c\nBL              .__stack_chk_fail                                      ; +0xcc, 0x8591a0", "xrefs": ["GJBaseGameLayer::playerCircleCollision @ 0x8591b4", "<???> @ 0xbdc00"], "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"}