{"type": "func", "start": 4684604, "end": 4684964, "name": "GJBaseGameLayer::spawnParticleTrigger", "pseudocode": "// \n// GJBaseGameLayer::spawnParticleTrigger from 0x477b3c to 0x477ca4 (360 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3edfc4\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\nvoid GJBaseGameLayer::spawnParticleTrigger(GJBaseGameLayer *a1, SpawnParticleGameObject *a2)\n{\n  float m_rotation; // s17\n  int v5; // r0\n  float m_scale; // s18\n  float v7; // s17\n  int v8; // r0\n  float v9; // s18\n  const cocos2d::CCPoint *v10; // r0\n  int m_centerGroupID; // r1\n  GameObject *Object; // r0\n  GameObject *v13; // r6\n  float v14; // r0\n  int v15; // r2\n  bool v16; // r3\n  float x; // s19\n  int v18; // r0\n  float y; // s19\n  int v20; // r0\n  int m_targetGroupID; // r6\n  cocos2d::CCPoint v22; // [sp+Ch] [bp+0h] BYREF\n  cocos2d::CCPoint v23; // [sp+14h] [bp+8h] BYREF\n\n  m_rotation = a2->m_rotation;\n  v5 = rand();\n  m_scale = a2->m_scale;\n  v7 = m_rotation\n     + (float)((float)((float)((float)((float)v5 * 4.6566e-10) + (float)((float)v5 * 4.6566e-10)) - 1.0)\n             * a2->m_rotationVariance);\n  v8 = rand();\n  v9 = m_scale\n     + (float)((float)((float)((float)((float)v8 * 4.6566e-10) + (float)((float)v8 * 4.6566e-10)) - 1.0)\n             * a2->m_scaleVariance);\n  v10 = a2->getPosition(a2);\n  cocos2d::CCPoint::CCPoint(&v22, v10);\n  m_centerGroupID = a2->m_centerGroupID;\n  if ( m_centerGroupID > 0 )\n  {\n    Object = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);\n    v13 = Object;\n    if ( Object )\n    {\n      v14 = ((float (__fastcall *)(GameObject *))Object->getPosition)(Object);\n      cocos2d::CCPoint::operator=((PlayerObject *)&v22, v14, v15, v16);\n      if ( a2->m_matchRotation )\n        v7 = v7 + v13->getRotation(v13);\n    }\n  }\n  x = a2->m_offset.x;\n  v18 = rand();\n  v22.x = v22.x\n        + (float)(x\n                + (float)((float)((float)((float)((float)v18 * 4.6566e-10) + (float)((float)v18 * 4.6566e-10)) - 1.0)\n                        * a2->m_offsetVariance.x));\n  y = a2->m_offset.y;\n  v20 = rand();\n  m_targetGroupID = a2->m_targetGroupID;\n  v22.y = v22.y\n        + (float)(y\n                + (float)((float)((float)((float)((float)v20 * 4.6566e-10) + (float)((float)v20 * 4.6566e-10)) - 1.0)\n                        * a2->m_offsetVariance.y));\n  cocos2d::CCPoint::CCPoint(&v23, &v22);\n  GJBaseGameLayer::spawnParticleTrigger(a1, m_targetGroupID, &v23, v7, v9);\n}", "assembly": "; \n; GJBaseGameLayer::spawnParticleTrigger from 0x477b3c to 0x477ca4 (360 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3edfc4\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, 0x477b3c\nMOV             R4, R1                                                 ; +0x4, 0x477b40\nLDR             R5, =(__stack_chk_guard_ptr - 0x477B4E)                ; +0x6, 0x477b42\nMOV             R8, R0                                                 ; +0x8, 0x477b44\nVPUSH           {D8-D10}                                               ; +0xa, 0x477b46\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x477b4a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x477b4c\nLDR             R3, [R5]                                               ; +0x12, 0x477b4e\nVMOV.F32        S20, #1.0                                              ; +0x14, 0x477b50\nSUB             SP, SP, #0x20                                          ; +0x18, 0x477b54\nVLDR            S16, =4.6566e-10                                       ; +0x1a, 0x477b56\nADD             R7, SP, #0xC                                           ; +0x1e, 0x477b5a\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x20, 0x477b5c\nADD.W           R3, R1, #0x678                                         ; +0x22, 0x477b5e\nVLDR            S17, [R3]                                              ; +0x26, 0x477b62\nBLX             rand                                                   ; +0x2a, 0x477b66\nADDW            R3, R4, #0x67C                                         ; +0x2e, 0x477b6a\nVLDR            S14, [R3]                                              ; +0x32, 0x477b6e\nADD.W           R3, R4, #0x680                                         ; +0x36, 0x477b72\nVLDR            S18, [R3]                                              ; +0x3a, 0x477b76\nVMOV            S15, R0                                                ; +0x3e, 0x477b7a\nVCVT.F32.S32    S15, S15                                               ; +0x42, 0x477b7e\nVMUL.F32        S15, S15, S16                                          ; +0x46, 0x477b82\nVADD.F32        S15, S15, S15                                          ; +0x4a, 0x477b86\nVSUB.F32        S15, S15, S20                                          ; +0x4e, 0x477b8a\nVMLA.F32        S17, S15, S14                                          ; +0x52, 0x477b8e\nBLX             rand                                                   ; +0x56, 0x477b92\nADDW            R3, R4, #0x684                                         ; +0x5a, 0x477b96\nVLDR            S14, [R3]                                              ; +0x5e, 0x477b9a\nLDR             R3, [R4]                                               ; +0x62, 0x477b9e\nLDR             R3, [R3,#0x60]                                         ; +0x64, 0x477ba0\nVMOV            S15, R0                                                ; +0x66, 0x477ba2\nMOV             R0, R4                                                 ; +0x6a, 0x477ba6\nVCVT.F32.S32    S15, S15                                               ; +0x6c, 0x477ba8\nVMUL.F32        S15, S15, S16                                          ; +0x70, 0x477bac\nVADD.F32        S15, S15, S15                                          ; +0x74, 0x477bb0\nVSUB.F32        S15, S15, S20                                          ; +0x78, 0x477bb4\nVMLA.F32        S18, S15, S14                                          ; +0x7c, 0x477bb8\nBLX             R3                                                     ; +0x80, 0x477bbc\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x82, 0x477bbe\nMOV             R0, R7; this                                           ; +0x84, 0x477bc0\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x86, 0x477bc2\nLDR.W           R1, [R4,#0x500]; int                                   ; +0x8a, 0x477bc6\nCMP             R1, #0                                                 ; +0x8e, 0x477bca\nBLE             loc_477BFE                                             ; +0x90, 0x477bcc\nMOV             R0, R8; this                                           ; +0x92, 0x477bce\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0x94, 0x477bd0\nMOV             R6, R0                                                 ; +0x98, 0x477bd4\nCBZ             R0, loc_477BFE                                         ; +0x9a, 0x477bd6\nLDR             R3, [R0]                                               ; +0x9c, 0x477bd8\nLDR             R3, [R3,#0x60]                                         ; +0x9e, 0x477bda\nBLX             R3                                                     ; +0xa0, 0x477bdc\nMOV             R1, R0                                                 ; +0xa2, 0x477bde\nMOV             R0, R7                                                 ; +0xa4, 0x477be0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa6, 0x477be2\nLDRB.W          R3, [R4,#0x674]                                        ; +0xaa, 0x477be6\nCBZ             R3, loc_477BFE                                         ; +0xae, 0x477bea\nLDR             R3, [R6]                                               ; +0xb0, 0x477bec\nMOV             R0, R6                                                 ; +0xb2, 0x477bee\nLDR.W           R3, [R3,#0xB0]                                         ; +0xb4, 0x477bf0\nBLX             R3                                                     ; +0xb8, 0x477bf4\nVMOV            S15, R0                                                ; +0xba, 0x477bf6\nVADD.F32        S17, S17, S15                                          ; +0xbe, 0x477bfa\nADDW            R3, R4, #0x664                                         ; +0xc2, 0x477bfe\nVLDR            S19, [R3]                                              ; +0xc6, 0x477c02\nBLX             rand                                                   ; +0xca, 0x477c06\nADDW            R3, R4, #0x66C                                         ; +0xce, 0x477c0a\nVLDR            S14, [R3]                                              ; +0xd2, 0x477c0e\nADD.W           R3, R4, #0x668                                         ; +0xd6, 0x477c12\nVMOV            S15, R0                                                ; +0xda, 0x477c16\nVCVT.F32.S32    S15, S15                                               ; +0xde, 0x477c1a\nVMUL.F32        S15, S15, S16                                          ; +0xe2, 0x477c1e\nVADD.F32        S15, S15, S15                                          ; +0xe6, 0x477c22\nVSUB.F32        S15, S15, S20                                          ; +0xea, 0x477c26\nVMLA.F32        S19, S15, S14                                          ; +0xee, 0x477c2a\nVLDR            S15, [SP,#0x20+var_14]                                 ; +0xf2, 0x477c2e\nVADD.F32        S19, S15, S19                                          ; +0xf6, 0x477c32\nVSTR            S19, [SP,#0x20+var_14]                                 ; +0xfa, 0x477c36\nVLDR            S19, [R3]                                              ; +0xfe, 0x477c3a\nBLX             rand                                                   ; +0x102, 0x477c3e\nADD.W           R3, R4, #0x670                                         ; +0x106, 0x477c42\nLDR.W           R6, [R4,#0x4FC]                                        ; +0x10a, 0x477c46\nADD             R4, SP, #0x20+var_C                                    ; +0x10e, 0x477c4a\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x110, 0x477c4c\nVLDR            S14, [R3]                                              ; +0x112, 0x477c4e\nVMOV            S15, R0                                                ; +0x116, 0x477c52\nMOV             R0, R4; this                                           ; +0x11a, 0x477c56\nVCVT.F32.S32    S15, S15                                               ; +0x11c, 0x477c58\nVMUL.F32        S15, S15, S16                                          ; +0x120, 0x477c5c\nVADD.F32        S15, S15, S15                                          ; +0x124, 0x477c60\nVSUB.F32        S15, S15, S20                                          ; +0x128, 0x477c64\nVMLA.F32        S19, S15, S14                                          ; +0x12c, 0x477c68\nVLDR            S15, [SP,#0x20+var_10]                                 ; +0x130, 0x477c6c\nVADD.F32        S14, S15, S19                                          ; +0x134, 0x477c70\nVSTR            S14, [SP,#0x20+var_10]                                 ; +0x138, 0x477c74\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x13c, 0x477c78\nMOV             R2, R4                                                 ; +0x140, 0x477c7c\nMOV             R0, R8                                                 ; +0x142, 0x477c7e\nMOV             R1, R6                                                 ; +0x144, 0x477c80\nVMOV            R3, S17                                                ; +0x146, 0x477c82\nVSTR            S18, [SP,#0x20+var_20]                                 ; +0x14a, 0x477c86\nBL              _ZN15GJBaseGameLayer20spawnParticleTriggerEiN7cocos2d7CCPointEff; GJBaseGameLayer::spawnParticleTrigger(int,cocos2d::CCPoint,float,float) ; +0x14e, 0x477c8a\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x152, 0x477c8e\nLDR             R3, [R5]                                               ; +0x154, 0x477c90\nCMP             R2, R3                                                 ; +0x156, 0x477c92\nBEQ             loc_477C9A                                             ; +0x158, 0x477c94\nBLX             __stack_chk_fail                                       ; +0x15a, 0x477c96\nADD             SP, SP, #0x20 ; ' '                                    ; +0x15e, 0x477c9a\nVPOP            {D8-D10}                                               ; +0x160, 0x477c9c\nPOP.W           {R4-R8,PC}                                             ; +0x164, 0x477ca0", "xrefs": ["EffectGameObject::triggerObject @ 0x3edfc4"], "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"}