{"type": "func", "start": 4646732, "end": 4646860, "name": "GJBaseGameLayer::playerIntersectsCircle", "pseudocode": "// \n// GJBaseGameLayer::playerIntersectsCircle from 0x46e74c to 0x46e7cc (128 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::playerCircleCollision @ 0x46e7da\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; // r8\n  float v6; // s17\n  float ObjectRadius; // s16\n  cocos2d::CCPoint v9; // [sp+4h] [bp-Ch] BYREF\n\n  v5 = a2->getPosition(a2);\n  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 0x46e74c to 0x46e7cc (128 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::playerCircleCollision @ 0x46e7da\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.W          {R4-R8,LR}                                             ; +0x0, 0x46e74c\nMOV             R0, R1                                                 ; +0x4, 0x46e750\nLDR             R4, =(__stack_chk_guard_ptr - 0x46E760)                ; +0x6, 0x46e752\nMOV             R7, R2                                                 ; +0x8, 0x46e754\nVPUSH           {D8}                                                   ; +0xa, 0x46e756\nMOV             R5, R1                                                 ; +0xe, 0x46e75a\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x10, 0x46e75c\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x12, 0x46e75e\nLDR             R3, [R4]                                               ; +0x14, 0x46e760\nSUB             SP, SP, #0x10                                          ; +0x16, 0x46e762\nADD             R6, SP, #0x10+var_C                                    ; +0x18, 0x46e764\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1a, 0x46e766\nLDR             R3, [R1]                                               ; +0x1c, 0x46e768\nLDR             R3, [R3,#0x60]                                         ; +0x1e, 0x46e76a\nBLX             R3                                                     ; +0x20, 0x46e76c\nLDR             R3, [R7]                                               ; +0x22, 0x46e76e\nMOV             R1, R7                                                 ; +0x24, 0x46e770\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x26, 0x46e772\nMOV             R8, R0                                                 ; +0x2a, 0x46e776\nMOV             R0, R6                                                 ; +0x2c, 0x46e778\nBLX             R3                                                     ; +0x2e, 0x46e77a\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x30, 0x46e77c\nMOV             R0, R8; this                                           ; +0x32, 0x46e77e\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x34, 0x46e780\nVMOV            S17, R0                                                ; +0x38, 0x46e784\nMOV             R0, R7; this                                           ; +0x3c, 0x46e788\nBL              _ZN10GameObject15getObjectRadiusEv; GameObject::getObjectRadius(void) ; +0x3e, 0x46e78a\nLDR             R3, [R5]                                               ; +0x42, 0x46e78e\nLDR.W           R3, [R3,#0x290]                                        ; +0x44, 0x46e790\nVMOV            S16, R0                                                ; +0x48, 0x46e794\nMOV             R0, R5                                                 ; +0x4c, 0x46e798\nBLX             R3                                                     ; +0x4e, 0x46e79a\nVMOV.F32        S15, #0.5                                              ; +0x50, 0x46e79c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x54, 0x46e7a0\nLDR             R3, [R4]                                               ; +0x56, 0x46e7a2\nVLDR            S14, [R0,#8]                                           ; +0x58, 0x46e7a4\nVMLA.F32        S16, S14, S15                                          ; +0x5c, 0x46e7a8\nVCMPE.F32       S17, S16                                               ; +0x60, 0x46e7ac\nVMRS            APSR_nzcv, FPSCR                                       ; +0x64, 0x46e7b0\nITE LS                                                                 ; +0x68, 0x46e7b4\nMOVLS           R0, #1                                                 ; +0x6a, 0x46e7b6\nMOVHI           R0, #0                                                 ; +0x6c, 0x46e7b8\nCMP             R2, R3                                                 ; +0x6e, 0x46e7ba\nBEQ             loc_46E7C2                                             ; +0x70, 0x46e7bc\nBLX             __stack_chk_fail                                       ; +0x72, 0x46e7be\nADD             SP, SP, #0x10                                          ; +0x76, 0x46e7c2\nVPOP            {D8}                                                   ; +0x78, 0x46e7c4\nPOP.W           {R4-R8,PC}                                             ; +0x7c, 0x46e7c8", "xrefs": ["GJBaseGameLayer::playerCircleCollision @ 0x46e7da"], "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"}