{"type": "func", "start": 4672220, "end": 4672418, "name": "GJBaseGameLayer::claimMoveAction", "pseudocode": "// \n// GJBaseGameLayer::claimMoveAction from 0x474adc to 0x474ba2 (198 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processRotationActions @ 0x47f5e0\n// > GJBaseGameLayer::processTransformActions @ 0x47fbe6\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\ncocos2d::CCPoint *GJBaseGameLayer::claimMoveAction(\n        cocos2d::CCPoint *__return_ptr retstr,\n        GJBaseGameLayer *a2,\n        int a3,\n        bool a4)\n{\n  GJEffectManager *m_effectManager; // r4\n  _BOOL4 v6; // r8\n  std::_Hashtable<int, std::pair<const int, CCMoveCNode *>, std::allocator<std::pair<const int, CCMoveCNode *>>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>>::size_type M_bucket_count; // r7\n  std::_Hashtable<int, std::pair<const int, CCMoveCNode *>, std::allocator<std::pair<const int, CCMoveCNode *>>, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>>::__bucket_type v8; // r4\n  std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_base *i; // r3\n  std::__detail::_Hash_node_base *v10; // r3\n  double v11; // d6\n  std::__detail::_Hash_node_base *M_nxt; // r4\n  double v13; // d7\n  std::__detail::_Hash_node_base *v14; // r3\n  float v15; // s12\n  float v16; // s14\n  std::__detail::_Hash_node_base *v17; // t1\n\n  m_effectManager = a2->m_effectManager;\n  v6 = a4;\n  M_bucket_count = m_effectManager->m_unkMap618._M_h._M_bucket_count;\n  v8 = m_effectManager->m_unkMap618._M_h._M_buckets[a3 % M_bucket_count];\n  if ( !v8 )\n    goto LABEL_17;\n  for ( i = v8->_M_nxt; (std::__detail::_Hash_node_base *)a3 != i[1]._M_nxt; i = i->_M_nxt )\n  {\n    if ( !i->_M_nxt )\n      goto LABEL_17;\n    v8 = i;\n    if ( (unsigned int)i->_M_nxt[1]._M_nxt % M_bucket_count != a3 % M_bucket_count )\n      goto LABEL_17;\n  }\n  if ( v8->_M_nxt && (v10 = v8->_M_nxt[2]._M_nxt) != nullptr && !LOBYTE(v10[51]._M_nxt) && !BYTE1(v10[51]._M_nxt) )\n  {\n    LOBYTE(v10[51]._M_nxt) = 1;\n    if ( v6 )\n    {\n      v15 = *(double *)&v10[36]._M_nxt;\n      v16 = *(double *)&v10[38]._M_nxt;\n    }\n    else\n    {\n      v11 = *(double *)&v10[14]._M_nxt;\n      M_nxt = v10[53]._M_nxt;\n      v13 = *(double *)&v10[16]._M_nxt;\n      v14 = v10[52]._M_nxt;\n      v15 = v11;\n      v16 = v13;\n      while ( v14 != M_nxt )\n      {\n        v17 = v14->_M_nxt;\n        ++v14;\n        *(_QWORD *)&v17[88]._M_nxt = 0;\n        *(_QWORD *)&v17[90]._M_nxt = 0;\n      }\n    }\n  }\n  else\n  {\nLABEL_17:\n    v16 = 0.0;\n    v15 = 0.0;\n  }\n  cocos2d::CCPoint::CCPoint(retstr, v15, v16);\n  return retstr;\n}", "assembly": "; \n; GJBaseGameLayer::claimMoveAction from 0x474adc to 0x474ba2 (198 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processRotationActions @ 0x47f5e0\n; > GJBaseGameLayer::processTransformActions @ 0x47fbe6\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, 0x474adc\nMOV             R6, R0                                                 ; +0x4, 0x474ae0\nLDR.W           R4, [R1,#0x690]                                        ; +0x6, 0x474ae2\nMOV             R0, R2                                                 ; +0xa, 0x474ae6\nMOV             R8, R3                                                 ; +0xc, 0x474ae8\nMOV             R10, R2                                                ; +0xe, 0x474aea\nLDR.W           R7, [R4,#0x3B0]                                        ; +0x10, 0x474aec\nMOV             R1, R7                                                 ; +0x14, 0x474af0\nBLX             __aeabi_uidivmod                                       ; +0x16, 0x474af2\nLDR.W           R3, [R4,#0x3AC]                                        ; +0x1a, 0x474af6\nLDR.W           R4, [R3,R1,LSL#2]                                      ; +0x1e, 0x474afa\nMOV             R9, R1                                                 ; +0x22, 0x474afe\nCMP             R4, #0                                                 ; +0x24, 0x474b00\nBEQ             loc_474B86                                             ; +0x26, 0x474b02\nLDR             R3, [R4]                                               ; +0x28, 0x474b04\nLDR             R2, [R3,#4]                                            ; +0x2a, 0x474b06\nCMP             R10, R2                                                ; +0x2c, 0x474b08\nBNE             loc_474B12                                             ; +0x2e, 0x474b0a\nLDR             R3, [R4]                                               ; +0x30, 0x474b0c\nCBNZ            R3, loc_474B28                                         ; +0x32, 0x474b0e\nB               loc_474B86                                             ; +0x34, 0x474b10\nLDR             R5, [R3]                                               ; +0x36, 0x474b12\nCBZ             R5, loc_474B86                                         ; +0x38, 0x474b14\nLDR             R0, [R5,#4]                                            ; +0x3a, 0x474b16\nMOV             R1, R7                                                 ; +0x3c, 0x474b18\nMOV             R4, R3                                                 ; +0x3e, 0x474b1a\nBLX             __aeabi_uidivmod                                       ; +0x40, 0x474b1c\nCMP             R1, R9                                                 ; +0x44, 0x474b20\nBNE             loc_474B86                                             ; +0x46, 0x474b22\nMOV             R3, R5                                                 ; +0x48, 0x474b24\nB               loc_474B06                                             ; +0x4a, 0x474b26\nLDR             R3, [R3,#8]                                            ; +0x4c, 0x474b28\nCBZ             R3, loc_474B86                                         ; +0x4e, 0x474b2a\nLDRB.W          R2, [R3,#0xCC]                                         ; +0x50, 0x474b2c\nCBNZ            R2, loc_474B86                                         ; +0x54, 0x474b30\nLDRB.W          R2, [R3,#0xCD]                                         ; +0x56, 0x474b32\nCBNZ            R2, loc_474B86                                         ; +0x5a, 0x474b36\nMOVS            R2, #1                                                 ; +0x5c, 0x474b38\nSTRB.W          R2, [R3,#0xCC]                                         ; +0x5e, 0x474b3a\nCMP.W           R8, #0                                                 ; +0x62, 0x474b3e\nBNE             loc_474B62                                             ; +0x66, 0x474b42\nVLDR            D6, [R3,#0x38]                                         ; +0x68, 0x474b44\nMOVS            R0, #0                                                 ; +0x6c, 0x474b48\nLDR.W           R4, [R3,#0xD4]                                         ; +0x6e, 0x474b4a\nMOVS            R1, #0                                                 ; +0x72, 0x474b4e\nVLDR            D7, [R3,#0x40]                                         ; +0x74, 0x474b50\nLDR.W           R3, [R3,#0xD0]                                         ; +0x78, 0x474b54\nVCVT.F32.F64    S12, D6                                                ; +0x7c, 0x474b58\nVCVT.F32.F64    S14, D7                                                ; +0x80, 0x474b5c\nB               loc_474B74                                             ; +0x84, 0x474b60\nVLDR            D6, [R3,#0x90]                                         ; +0x86, 0x474b62\nVLDR            D7, [R3,#0x98]                                         ; +0x8a, 0x474b66\nVCVT.F32.F64    S12, D6                                                ; +0x8e, 0x474b6a\nVCVT.F32.F64    S14, D7                                                ; +0x92, 0x474b6e\nB               loc_474B8E                                             ; +0x96, 0x474b72\nCMP             R3, R4                                                 ; +0x98, 0x474b74\nBEQ             loc_474B8E                                             ; +0x9a, 0x474b76\nLDR.W           R2, [R3],#4                                            ; +0x9c, 0x474b78\nSTRD.W          R0, R1, [R2,#0x160]                                    ; +0xa0, 0x474b7c\nSTRD.W          R0, R1, [R2,#0x168]                                    ; +0xa4, 0x474b80\nB               loc_474B74                                             ; +0xa8, 0x474b84\nVLDR            S14, =0.0                                              ; +0xaa, 0x474b86\nVMOV.F32        S12, S14                                               ; +0xae, 0x474b8a\nMOV             R0, R6; this                                           ; +0xb2, 0x474b8e\nVMOV            R1, S12; float                                         ; +0xb4, 0x474b90\nVMOV            R2, S14; float                                         ; +0xb8, 0x474b94\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xbc, 0x474b98\nMOV             R0, R6                                                 ; +0xc0, 0x474b9c\nPOP.W           {R4-R10,PC}                                            ; +0xc2, 0x474b9e", "xrefs": ["GJBaseGameLayer::processRotationActions @ 0x47f5e0", "GJBaseGameLayer::processTransformActions @ 0x47fbe6"], "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"}