{"type": "func", "start": 4296956568, "end": 4296956732, "name": "GJBaseGameLayer::playerIntersectsCircle", "pseudocode": "// \n// GJBaseGameLayer::playerIntersectsCircle from 0x1001e5a98 to 0x1001e5b3c (164 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::playerCircleCollision @ 0x1001e5a90\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::playerIntersectsCircle(GJBaseGameLayer *a1, PlayerObject *a2, GameObject *a3)\n{\n  const cocos2d::CCPoint *v5; // x21\n  float v6; // s8\n  float ObjectRadius; // s9\n  cocos2d::CCPoint v9; // [xsp+8h] [xbp-38h] BYREF\n\n  v5 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(PlayerObject *))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\n                     + (float)(*(float *)(((__int64 (__fastcall *)(PlayerObject *))a2->getObjectRect)(a2) + 8) * 0.5));\n}", "assembly": "; \n; GJBaseGameLayer::playerIntersectsCircle from 0x1001e5a98 to 0x1001e5b3c (164 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::playerCircleCollision @ 0x1001e5a90\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001e5a98\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1001e5a9c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001e5aa0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001e5aa4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001e5aa8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001e5aac\nMOV             X19, X2                                                ; +0x18, 0x1001e5ab0\nMOV             X20, X1                                                ; +0x1c, 0x1001e5ab4\nLDR             X8, [X1]                                               ; +0x20, 0x1001e5ab8\nLDR             X8, [X8,#0xC0]                                         ; +0x24, 0x1001e5abc\nMOV             X0, X1                                                 ; +0x28, 0x1001e5ac0\nBLR             X8                                                     ; +0x2c, 0x1001e5ac4\nMOV             X21, X0                                                ; +0x30, 0x1001e5ac8\nLDR             X8, [X19]                                              ; +0x34, 0x1001e5acc\nLDR             X9, [X8,#0x540]                                        ; +0x38, 0x1001e5ad0\nADD             X8, SP, #0x40+var_38                                   ; +0x3c, 0x1001e5ad4\nMOV             X0, X19                                                ; +0x40, 0x1001e5ad8\nBLR             X9                                                     ; +0x44, 0x1001e5adc\nADD             X1, SP, #0x40+var_38                                   ; +0x48, 0x1001e5ae0\nMOV             X0, X21                                                ; +0x4c, 0x1001e5ae4\nBL              cocos2d__ccpDistance                                   ; +0x50, 0x1001e5ae8\nFMOV            S8, S0                                                 ; +0x54, 0x1001e5aec\nMOV             X0, X19                                                ; +0x58, 0x1001e5af0\nBL              GameObject__getObjectRadius                            ; +0x5c, 0x1001e5af4\nFMOV            S9, S0                                                 ; +0x60, 0x1001e5af8\nLDR             X8, [X20]                                              ; +0x64, 0x1001e5afc\nLDR             X8, [X8,#0x520]                                        ; +0x68, 0x1001e5b00\nMOV             X0, X20                                                ; +0x6c, 0x1001e5b04\nBLR             X8                                                     ; +0x70, 0x1001e5b08\nLDR             S0, [X0,#8]                                            ; +0x74, 0x1001e5b0c\nFMOV            S1, #0.5                                               ; +0x78, 0x1001e5b10\nFMUL            S0, S0, S1                                             ; +0x7c, 0x1001e5b14\nFADD            S0, S9, S0                                             ; +0x80, 0x1001e5b18\nFCMP            S8, S0                                                 ; +0x84, 0x1001e5b1c\nCSET            W0, LS                                                 ; +0x88, 0x1001e5b20\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8c, 0x1001e5b24\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x90, 0x1001e5b28\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x94, 0x1001e5b2c\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x98, 0x1001e5b30\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x9c, 0x1001e5b34\nRET                                                                    ; +0xa0, 0x1001e5b38", "xrefs": ["GJBaseGameLayer::playerCircleCollision @ 0x1001e5a90"], "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"}