{"type": "func", "start": 4681592, "end": 4681716, "name": "GJBaseGameLayer::shakeCamera", "pseudocode": "// \n// GJBaseGameLayer::shakeCamera from 0x476f78 to 0x476ff4 (124 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::showCompleteEffect @ 0x30fbac\n// > PlayLayer::destroyPlayer @ 0x31409a\n// > EffectGameObject::triggerObject @ 0x3ee156\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::shakeCamera(GJBaseGameLayer *a1, float a2, float a3, float a4)\n{\n  float v7; // s16\n  char v8; // r3\n  PlayerObject *p_m_unkPoint34; // r0\n\n  v7 = a3;\n  if ( a2 > 0.0 && a3 > 0.0 && !a1->m_skipCameraShake )\n  {\n    v8 = (_BYTE)a1 + 48;\n    a1->m_gameState.m_unkUint64_1 = 0.0;\n    p_m_unkPoint34 = (PlayerObject *)&a1->m_gameState.m_unkPoint34;\n    if ( a3 > 100.0 )\n      v7 = 100.0;\n    cocos2d::CCPoint::operator=(p_m_unkPoint34, COERCE_FLOAT(&stru_AC68C0), SLODWORD(a3), v8);\n    a1->m_gameState.m_cameraShakeFactor = a2;\n    a1->m_gameState.m_unkUint16 = a4;\n    a1->m_staticCameraShake = 0;\n    a1->m_gameState.m_unkUint15 = v7;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::shakeCamera from 0x476f78 to 0x476ff4 (124 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::showCompleteEffect @ 0x30fbac\n; > PlayLayer::destroyPlayer @ 0x31409a\n; > EffectGameObject::triggerObject @ 0x3ee156\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            {R4-R6,LR}                                             ; +0x0, 0x476f78\nMOV             R4, R0                                                 ; +0x2, 0x476f7a\nVPUSH           {D8}                                                   ; +0x4, 0x476f7c\nMOV             R6, R3                                                 ; +0x8, 0x476f80\nVMOV            S17, R1                                                ; +0xa, 0x476f82\nVMOV            S16, R2                                                ; +0xe, 0x476f86\nVCMPE.F32       S17, #0.0                                              ; +0x12, 0x476f8a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x16, 0x476f8e\nBLS             loc_476FEE                                             ; +0x1a, 0x476f92\nVCMPE.F32       S16, #0.0                                              ; +0x1c, 0x476f94\nVMRS            APSR_nzcv, FPSCR                                       ; +0x20, 0x476f98\nBLS             loc_476FEE                                             ; +0x24, 0x476f9c\nMOVW            R3, #0x2B05                                            ; +0x26, 0x476f9e\nLDRB            R5, [R0,R3]                                            ; +0x2a, 0x476fa2\nCBNZ            R5, loc_476FEE                                         ; +0x2c, 0x476fa4\nVLDR            S15, =100.0                                            ; +0x2e, 0x476fa6\nADD.W           R3, R0, #0x430                                         ; +0x32, 0x476faa\nMOVS            R1, #0                                                 ; +0x36, 0x476fae\nMOVS            R0, #0                                                 ; +0x38, 0x476fb0\nSTRD.W          R0, R1, [R3]                                           ; +0x3a, 0x476fb2\nADD.W           R0, R4, #0x438                                         ; +0x3e, 0x476fb6\nLDR             R1, =(qword_AC68B8 - 0x476FC4)                         ; +0x42, 0x476fba\nVCMP.F32        S16, S15                                               ; +0x44, 0x476fbc\nADD             R1, PC; qword_AC68B8                                   ; +0x48, 0x476fc0\nADDS            R1, #(stru_AC68C0 - 0xAC68B8)                          ; +0x4a, 0x476fc2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x476fc4\nIT GT                                                                  ; +0x50, 0x476fc8\nVMOVGT.F32      S16, S15                                               ; +0x52, 0x476fca\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x56, 0x476fce\nADDW            R3, R4, #0x424                                         ; +0x5a, 0x476fd2\nADDW            R2, R4, #0x42C                                         ; +0x5e, 0x476fd6\nVSTR            S17, [R3]                                              ; +0x62, 0x476fda\nMOVW            R3, #0x2B04                                            ; +0x66, 0x476fde\nSTR             R6, [R2]                                               ; +0x6a, 0x476fe2\nSTRB            R5, [R4,R3]                                            ; +0x6c, 0x476fe4\nADD.W           R4, R4, #0x428                                         ; +0x6e, 0x476fe6\nVSTR            S16, [R4]                                              ; +0x72, 0x476fea\nVPOP            {D8}                                                   ; +0x76, 0x476fee\nPOP             {R4-R6,PC}                                             ; +0x7a, 0x476ff2", "xrefs": ["PlayLayer::showCompleteEffect @ 0x30fbac", "PlayLayer::destroyPlayer @ 0x31409a", "EffectGameObject::triggerObject @ 0x3ee156"], "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"}