{"type": "func", "start": 4646400, "end": 4646726, "name": "GJBaseGameLayer::objectIntersectsCircle", "pseudocode": "// \n// GJBaseGameLayer::objectIntersectsCircle from 0x46e600 to 0x46e746 (326 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::playerCircleCollision @ 0x46e7de\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::objectIntersectsCircle(GJBaseGameLayer *a1, GameObject *a2, GameObject *a3)\n{\n  const cocos2d::CCRect *v4; // r0\n  float ObjectRadius; // s16\n  float v6; // r10\n  float v7; // r8\n  float v8; // r7\n  float v9; // r9\n  cocos2d::CCPoint v11; // [sp+4h] [bp-3Ch] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-34h] BYREF\n  cocos2d::CCPoint v13; // [sp+14h] [bp-2Ch] BYREF\n  cocos2d::CCPoint v14; // [sp+1Ch] [bp-24h] BYREF\n  cocos2d::CCPoint v15; // [sp+24h] [bp-1Ch] BYREF\n  cocos2d::CCRect v16; // [sp+2Ch] [bp-14h] BYREF\n\n  v4 = a2->getObjectRect(a2);\n  cocos2d::CCRect::CCRect(&v16, v4);\n  ObjectRadius = GameObject::getObjectRadius(a3);\n  a3->getRealPosition(&v11, a3);\n  v6 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(&v16));\n  v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX(&v16));\n  v8 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(&v16));\n  v9 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v16));\n  if ( cocos2d::CCRect::containsPoint(&v16, &v11) )\n    return 1;\n  cocos2d::CCPoint::CCPoint(&v12, v6, v8);\n  if ( fabsf(cocos2d::ccpDistance(&v12, &v11)) < ObjectRadius )\n    return 1;\n  cocos2d::CCPoint::CCPoint(&v13, v6, v9);\n  if ( fabsf(cocos2d::ccpDistance(&v13, &v11)) < ObjectRadius )\n    return 1;\n  cocos2d::CCPoint::CCPoint(&v14, v7, v9);\n  if ( fabsf(cocos2d::ccpDistance(&v14, &v11)) < ObjectRadius )\n    return 1;\n  cocos2d::CCPoint::CCPoint(&v15, v7, v8);\n  return fabsf(cocos2d::ccpDistance(&v15, &v11)) < ObjectRadius;\n}", "assembly": "; \n; GJBaseGameLayer::objectIntersectsCircle from 0x46e600 to 0x46e746 (326 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::playerCircleCollision @ 0x46e7de\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-R10,LR}                                            ; +0x0, 0x46e600\nMOV             R0, R1                                                 ; +0x4, 0x46e604\nLDR             R5, =(__stack_chk_guard_ptr - 0x46E612)                ; +0x6, 0x46e606\nMOV             R7, R2                                                 ; +0x8, 0x46e608\nVPUSH           {D8}                                                   ; +0xa, 0x46e60a\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x46e60e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x46e610\nLDR             R3, [R5]                                               ; +0x12, 0x46e612\nSUB             SP, SP, #0x40                                          ; +0x14, 0x46e614\nADD             R4, SP, #0x40+var_14                                   ; +0x16, 0x46e616\nADD             R6, SP, #0x40+var_3C                                   ; +0x18, 0x46e618\nSTR             R3, [SP,#0x40+var_4]                                   ; +0x1a, 0x46e61a\nLDR             R3, [R1]                                               ; +0x1c, 0x46e61c\nLDR.W           R3, [R3,#0x290]                                        ; +0x1e, 0x46e61e\nBLX             R3                                                     ; +0x22, 0x46e622\nMOV             R1, R0; cocos2d::CCRect *                              ; +0x24, 0x46e624\nMOV             R0, R4; this                                           ; +0x26, 0x46e626\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x28, 0x46e628\nMOV             R0, R7; this                                           ; +0x2c, 0x46e62c\nBL              _ZN10GameObject15getObjectRadiusEv; GameObject::getObjectRadius(void) ; +0x2e, 0x46e62e\nLDR             R3, [R7]                                               ; +0x32, 0x46e632\nMOV             R1, R7                                                 ; +0x34, 0x46e634\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x36, 0x46e636\nVMOV            S16, R0                                                ; +0x3a, 0x46e63a\nMOV             R0, R6                                                 ; +0x3e, 0x46e63e\nBLX             R3                                                     ; +0x40, 0x46e640\nMOV             R0, R4; this                                           ; +0x42, 0x46e642\nBL              _ZNK7cocos2d6CCRect7getMaxXEv; cocos2d::CCRect::getMaxX(void) ; +0x44, 0x46e644\nMOV             R10, R0                                                ; +0x48, 0x46e648\nMOV             R0, R4; this                                           ; +0x4a, 0x46e64a\nBL              _ZNK7cocos2d6CCRect7getMinXEv; cocos2d::CCRect::getMinX(void) ; +0x4c, 0x46e64c\nMOV             R8, R0                                                 ; +0x50, 0x46e650\nMOV             R0, R4; this                                           ; +0x52, 0x46e652\nBL              _ZNK7cocos2d6CCRect7getMaxYEv; cocos2d::CCRect::getMaxY(void) ; +0x54, 0x46e654\nMOV             R7, R0                                                 ; +0x58, 0x46e658\nMOV             R0, R4; this                                           ; +0x5a, 0x46e65a\nBL              _ZNK7cocos2d6CCRect7getMinYEv; cocos2d::CCRect::getMinY(void) ; +0x5c, 0x46e65c\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x60, 0x46e660\nMOV             R9, R0                                                 ; +0x62, 0x46e662\nMOV             R0, R4; this                                           ; +0x64, 0x46e664\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x66, 0x46e666\nCMP             R0, #0                                                 ; +0x6a, 0x46e66a\nBNE             loc_46E72A                                             ; +0x6c, 0x46e66c\nB               loc_46E672                                             ; +0x6e, 0x46e66e\nB               loc_46E738                                             ; +0x70, 0x46e670\nADD             R4, SP, #0x40+var_34                                   ; +0x72, 0x46e672\nMOV             R1, R10; float                                         ; +0x74, 0x46e674\nMOV             R2, R7; float                                          ; +0x76, 0x46e676\nMOV             R0, R4; this                                           ; +0x78, 0x46e678\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7a, 0x46e67a\nB               loc_46E682                                             ; +0x7e, 0x46e67e\nB               loc_46E738                                             ; +0x80, 0x46e680\nMOV             R0, R4; this                                           ; +0x82, 0x46e682\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x84, 0x46e684\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x86, 0x46e686\nVMOV            S15, R0                                                ; +0x8a, 0x46e68a\nVABS.F32        S15, S15                                               ; +0x8e, 0x46e68e\nVCMPE.F32       S15, S16                                               ; +0x92, 0x46e692\nVMRS            APSR_nzcv, FPSCR                                       ; +0x96, 0x46e696\nBMI             loc_46E72A                                             ; +0x9a, 0x46e69a\nB               loc_46E6A0                                             ; +0x9c, 0x46e69c\nB               loc_46E738                                             ; +0x9e, 0x46e69e\nADD             R4, SP, #0x40+var_2C                                   ; +0xa0, 0x46e6a0\nMOV             R1, R10; float                                         ; +0xa2, 0x46e6a2\nMOV             R2, R9; float                                          ; +0xa4, 0x46e6a4\nMOV             R0, R4; this                                           ; +0xa6, 0x46e6a6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa8, 0x46e6a8\nB               loc_46E6B0                                             ; +0xac, 0x46e6ac\nB               loc_46E738                                             ; +0xae, 0x46e6ae\nMOV             R0, R4; this                                           ; +0xb0, 0x46e6b0\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0xb2, 0x46e6b2\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0xb4, 0x46e6b4\nVMOV            S15, R0                                                ; +0xb8, 0x46e6b8\nVABS.F32        S15, S15                                               ; +0xbc, 0x46e6bc\nVCMPE.F32       S15, S16                                               ; +0xc0, 0x46e6c0\nVMRS            APSR_nzcv, FPSCR                                       ; +0xc4, 0x46e6c4\nBMI             loc_46E72A                                             ; +0xc8, 0x46e6c8\nB               loc_46E6CE                                             ; +0xca, 0x46e6ca\nB               loc_46E738                                             ; +0xcc, 0x46e6cc\nADD             R4, SP, #0x40+var_24                                   ; +0xce, 0x46e6ce\nMOV             R1, R8; float                                          ; +0xd0, 0x46e6d0\nMOV             R2, R9; float                                          ; +0xd2, 0x46e6d2\nMOV             R0, R4; this                                           ; +0xd4, 0x46e6d4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd6, 0x46e6d6\nB               loc_46E6DE                                             ; +0xda, 0x46e6da\nB               loc_46E738                                             ; +0xdc, 0x46e6dc\nMOV             R0, R4; this                                           ; +0xde, 0x46e6de\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0xe0, 0x46e6e0\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0xe2, 0x46e6e2\nVMOV            S15, R0                                                ; +0xe6, 0x46e6e6\nVABS.F32        S15, S15                                               ; +0xea, 0x46e6ea\nVCMPE.F32       S15, S16                                               ; +0xee, 0x46e6ee\nVMRS            APSR_nzcv, FPSCR                                       ; +0xf2, 0x46e6f2\nBMI             loc_46E72A                                             ; +0xf6, 0x46e6f6\nADD             R4, SP, #0x40+var_1C                                   ; +0xf8, 0x46e6f8\nMOV             R1, R8; float                                          ; +0xfa, 0x46e6fa\nMOV             R2, R7; float                                          ; +0xfc, 0x46e6fc\nMOV             R0, R4; this                                           ; +0xfe, 0x46e6fe\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x100, 0x46e700\nB               loc_46E708                                             ; +0x104, 0x46e704\nB               loc_46E738                                             ; +0x106, 0x46e706\nMOV             R0, R4; this                                           ; +0x108, 0x46e708\nMOV             R1, R6; cocos2d::CCPoint *                             ; +0x10a, 0x46e70a\nBL              _ZN7cocos2d11ccpDistanceERKNS_7CCPointES2_; cocos2d::ccpDistance(cocos2d::CCPoint const&,cocos2d::CCPoint const&) ; +0x10c, 0x46e70c\nVMOV            S15, R0                                                ; +0x110, 0x46e710\nVABS.F32        S15, S15                                               ; +0x114, 0x46e714\nVCMPE.F32       S15, S16                                               ; +0x118, 0x46e718\nVMRS            APSR_nzcv, FPSCR                                       ; +0x11c, 0x46e71c\nITE MI                                                                 ; +0x120, 0x46e720\nMOVMI           R0, #1                                                 ; +0x122, 0x46e722\nMOVPL           R0, #0                                                 ; +0x124, 0x46e724\nB               loc_46E72C                                             ; +0x126, 0x46e726\nB               loc_46E738                                             ; +0x128, 0x46e728\nMOVS            R0, #1                                                 ; +0x12a, 0x46e72a\nLDR             R2, [SP,#0x40+var_4]                                   ; +0x12c, 0x46e72c\nLDR             R3, [R5]                                               ; +0x12e, 0x46e72e\nCMP             R2, R3                                                 ; +0x130, 0x46e730\nBEQ             loc_46E73C                                             ; +0x132, 0x46e732\nBLX             __stack_chk_fail                                       ; +0x134, 0x46e734\nBL              __cxa_end_cleanup                                      ; +0x138, 0x46e738\nADD             SP, SP, #0x40 ; '@'                                    ; +0x13c, 0x46e73c\nVPOP            {D8}                                                   ; +0x13e, 0x46e73e\nPOP.W           {R4-R10,PC}                                            ; +0x142, 0x46e742", "xrefs": ["GJBaseGameLayer::playerCircleCollision @ 0x46e7de"], "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"}