{"type": "func", "start": 5371434464, "end": 5371434741, "name": "GameObject::getScalePosDelta", "pseudocode": "// \n// GameObject::getScalePosDelta from 0x1402995e0 to 0x1402996f5 (277 bytes)\n// \n// 7 xrefs:\n// > PlayerObject::postCollision @ 0x1404ec8de\n// > PlayerObject::postCollision @ 0x1404ecb19\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f0017\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f0022\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f14dc\n// > PlayerObject::collidedWithObjectInternal @ 0x1404f14f6\n// > <???> @ 0x14091d708\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:11 +0000\n// \n\nfloat *__fastcall GameObject::getScalePosDelta(__int64 a1, float *a2)\n{\n  const struct cocos2d::CCRect *v4; // rax\n  float v5; // xmm2_4\n  float v6; // xmm1_4\n  int v7; // eax\n  _BYTE v9[8]; // [rsp+20h] [rbp-18h] BYREF\n  float v10; // [rsp+28h] [rbp-10h]\n  float v11; // [rsp+2Ch] [rbp-Ch]\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a2, (const struct cocos2d::CCPoint *)&unk_14090A8F0);\n  v4 = (const struct cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1184LL))(a1);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v9, v4);\n  if ( *(_BYTE *)(a1 + 912) )\n  {\n    v5 = v10;\n    v6 = v11;\n  }\n  else\n  {\n    v5 = v11;\n    v6 = v10;\n  }\n  if ( COERCE_INT(*(float *)(a1 + 1160) * 10000.0) != COERCE_INT(*(float *)(a1 + 996) * 10000.0) )\n    *a2 = (float)(v6 - (float)((float)(v6 / *(float *)(a1 + 1160)) * *(float *)(a1 + 996))) * 0.5;\n  if ( COERCE_INT(*(float *)(a1 + 1164) * 10000.0) != COERCE_INT(*(float *)(a1 + 1000) * 10000.0) )\n    a2[1] = (float)(v5 - (float)((float)(v5 / *(float *)(a1 + 1164)) * *(float *)(a1 + 1000))) * 0.5;\n  if ( *(_BYTE *)(a1 + 912) )\n  {\n    v7 = *((_DWORD *)a2 + 1);\n    a2[1] = *a2;\n    *(_DWORD *)a2 = v7;\n  }\n  return a2;\n}", "assembly": "; \n; GameObject::getScalePosDelta from 0x1402995e0 to 0x1402996f5 (277 bytes)\n; \n; 7 xrefs:\n; > PlayerObject::postCollision @ 0x1404ec8de\n; > PlayerObject::postCollision @ 0x1404ecb19\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f0017\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f0022\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f14dc\n; > PlayerObject::collidedWithObjectInternal @ 0x1404f14f6\n; > <???> @ 0x14091d708\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:11 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402995e0\npush    rdi                                                            ; +0x5, 0x1402995e5\nsub     rsp, 30h                                                       ; +0x6, 0x1402995e6\nmov     rbx, rdx                                                       ; +0xa, 0x1402995ea\nmov     rdi, rcx                                                       ; +0xd, 0x1402995ed\nmov     rcx, rbx                                                       ; +0x10, 0x1402995f0\nlea     rdx, unk_14090A8F0                                             ; +0x13, 0x1402995f3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1a, 0x1402995fa\nmov     rax, [rdi]                                                     ; +0x20, 0x140299600\nmov     rcx, rdi                                                       ; +0x23, 0x140299603\ncall    qword ptr [rax+4A0h]                                           ; +0x26, 0x140299606\nmov     rdx, rax                                                       ; +0x2c, 0x14029960c\nlea     rcx, [rsp+38h+var_18]                                          ; +0x2f, 0x14029960f\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x34, 0x140299614\ncmp     byte ptr [rdi+390h], 0                                         ; +0x3a, 0x14029961a\njz      short loc_140299631                                            ; +0x41, 0x140299621\nmovss   xmm2, [rsp+38h+var_10]                                         ; +0x43, 0x140299623\nmovss   xmm1, [rsp+38h+var_C]                                          ; +0x49, 0x140299629\njmp     short loc_14029963D                                            ; +0x4f, 0x14029962f\nmovss   xmm2, [rsp+38h+var_C]                                          ; +0x51, 0x140299631\nmovss   xmm1, [rsp+38h+var_10]                                         ; +0x57, 0x140299637\nmovss   xmm3, cs:dword_140835BAC                                       ; +0x5d, 0x14029963d\nmovss   xmm5, dword ptr [rdi+3E4h]                                     ; +0x65, 0x140299645\nmovss   xmm4, dword ptr [rdi+488h]                                     ; +0x6d, 0x14029964d\nmovaps  xmm0, xmm5                                                     ; +0x75, 0x140299655\nmulss   xmm0, xmm3                                                     ; +0x78, 0x140299658\ncvttss2si ecx, xmm0                                                    ; +0x7c, 0x14029965c\nmovaps  xmm0, xmm4                                                     ; +0x80, 0x140299660\nmulss   xmm0, xmm3                                                     ; +0x83, 0x140299663\ncvttss2si eax, xmm0                                                    ; +0x87, 0x140299667\ncmp     eax, ecx                                                       ; +0x8b, 0x14029966b\njz      short loc_14029968A                                            ; +0x8d, 0x14029966d\nmovaps  xmm0, xmm1                                                     ; +0x8f, 0x14029966f\ndivss   xmm0, xmm4                                                     ; +0x92, 0x140299672\nmulss   xmm0, xmm5                                                     ; +0x96, 0x140299676\nsubss   xmm1, xmm0                                                     ; +0x9a, 0x14029967a\nmulss   xmm1, cs:dword_140834F20                                       ; +0x9e, 0x14029967e\nmovss   dword ptr [rbx], xmm1                                          ; +0xa6, 0x140299686\nmovss   xmm4, dword ptr [rdi+48Ch]                                     ; +0xaa, 0x14029968a\nmovss   xmm5, dword ptr [rdi+3E8h]                                     ; +0xb2, 0x140299692\nmovaps  xmm1, xmm4                                                     ; +0xba, 0x14029969a\nmovaps  xmm0, xmm5                                                     ; +0xbd, 0x14029969d\nmulss   xmm1, xmm3                                                     ; +0xc0, 0x1402996a0\nmulss   xmm0, xmm3                                                     ; +0xc4, 0x1402996a4\ncvttss2si eax, xmm1                                                    ; +0xc8, 0x1402996a8\ncvttss2si ecx, xmm0                                                    ; +0xcc, 0x1402996ac\ncmp     eax, ecx                                                       ; +0xd0, 0x1402996b0\njz      short loc_1402996D0                                            ; +0xd2, 0x1402996b2\nmovaps  xmm0, xmm2                                                     ; +0xd4, 0x1402996b4\ndivss   xmm0, xmm4                                                     ; +0xd7, 0x1402996b7\nmulss   xmm0, xmm5                                                     ; +0xdb, 0x1402996bb\nsubss   xmm2, xmm0                                                     ; +0xdf, 0x1402996bf\nmulss   xmm2, cs:dword_140834F20                                       ; +0xe3, 0x1402996c3\nmovss   dword ptr [rbx+4], xmm2                                        ; +0xeb, 0x1402996cb\ncmp     byte ptr [rdi+390h], 0                                         ; +0xf0, 0x1402996d0\njz      short loc_1402996E7                                            ; +0xf7, 0x1402996d7\nmovss   xmm0, dword ptr [rbx]                                          ; +0xf9, 0x1402996d9\nmov     eax, [rbx+4]                                                   ; +0xfd, 0x1402996dd\nmovss   dword ptr [rbx+4], xmm0                                        ; +0x100, 0x1402996e0\nmov     [rbx], eax                                                     ; +0x105, 0x1402996e5\nmov     rax, rbx                                                       ; +0x107, 0x1402996e7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x10a, 0x1402996ea\nadd     rsp, 30h                                                       ; +0x10f, 0x1402996ef\npop     rdi                                                            ; +0x113, 0x1402996f3\nretn                                                                   ; +0x114, 0x1402996f4", "xrefs": ["PlayerObject::postCollision @ 0x1404ec8de", "PlayerObject::postCollision @ 0x1404ecb19", "PlayerObject::collidedWithObjectInternal @ 0x1404f0017", "PlayerObject::collidedWithObjectInternal @ 0x1404f0022", "PlayerObject::collidedWithObjectInternal @ 0x1404f14dc", "PlayerObject::collidedWithObjectInternal @ 0x1404f14f6", "<???> @ 0x14091d708"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}