{"type": "func", "start": 5370398112, "end": 5370398389, "name": "GameObject::getScalePosDelta", "pseudocode": "// \n// GameObject::getScalePosDelta from 0x14019c5a0 to 0x14019c6b5 (277 bytes)\n// \n// 7 xrefs:\n// > PlayerObject::postCollision @ 0x14038e5af\n// > PlayerObject::postCollision @ 0x14038e7cf\n// > PlayerObject::collidedWithObjectInternal @ 0x140391d44\n// > PlayerObject::collidedWithObjectInternal @ 0x140391d53\n// > PlayerObject::collidedWithObjectInternal @ 0x1403932ac\n// > PlayerObject::collidedWithObjectInternal @ 0x1403932c6\n// > <???> @ 0x1406cbd84\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 GameObject::getScalePosDelta(GameObject *a1)\n{\n  cocos2d::CCPoint *v1; // rdx\n  float *v2; // rbx\n  const struct cocos2d::CCRect *v4; // rax\n  float width; // xmm2_4\n  float height; // xmm1_4\n  int v7; // eax\n  cocos2d::CCRect v9; // [rsp+20h] [rbp-18h] BYREF\n\n  v2 = (float *)v1;\n  cocos2d::CCPoint::CCPoint(v1);\n  v4 = a1->getObjectRect_0(a1);\n  cocos2d::CCRect::CCRect(&v9, v4);\n  if ( a1->m_isRotationAligned )\n  {\n    width = v9.size.width;\n    height = v9.size.height;\n  }\n  else\n  {\n    width = v9.size.height;\n    height = v9.size.width;\n  }\n  if ( COERCE_INT(a1->m_scaleX * 10000.0) != COERCE_INT(a1->m_customScaleX * 10000.0) )\n    *v2 = (float)(height - (float)((float)(height / a1->m_scaleX) * a1->m_customScaleX)) * 0.5;\n  if ( COERCE_INT(a1->m_scaleY * 10000.0) != COERCE_INT(a1->m_customScaleY * 10000.0) )\n    v2[1] = (float)(width - (float)((float)(width / a1->m_scaleY) * a1->m_customScaleY)) * 0.5;\n  if ( a1->m_isRotationAligned )\n  {\n    v7 = *((_DWORD *)v2 + 1);\n    v2[1] = *v2;\n    *(_DWORD *)v2 = v7;\n  }\n  return (cocos2d::CCPoint)v2;\n}", "assembly": "; \n; GameObject::getScalePosDelta from 0x14019c5a0 to 0x14019c6b5 (277 bytes)\n; \n; 7 xrefs:\n; > PlayerObject::postCollision @ 0x14038e5af\n; > PlayerObject::postCollision @ 0x14038e7cf\n; > PlayerObject::collidedWithObjectInternal @ 0x140391d44\n; > PlayerObject::collidedWithObjectInternal @ 0x140391d53\n; > PlayerObject::collidedWithObjectInternal @ 0x1403932ac\n; > PlayerObject::collidedWithObjectInternal @ 0x1403932c6\n; > <???> @ 0x1406cbd84\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14019c5a0\npush    rdi                                                            ; +0x5, 0x14019c5a5\nsub     rsp, 30h                                                       ; +0x6, 0x14019c5a6\nmov     rbx, rdx                                                       ; +0xa, 0x14019c5aa\nmov     rdi, rcx                                                       ; +0xd, 0x14019c5ad\nmov     rcx, rbx                                                       ; +0x10, 0x14019c5b0\nlea     rdx, stru_1406C1C08                                            ; +0x13, 0x14019c5b3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1a, 0x14019c5ba\nmov     rax, [rdi]                                                     ; +0x20, 0x14019c5c0\nmov     rcx, rdi                                                       ; +0x23, 0x14019c5c3\ncall    qword ptr [rax+490h]                                           ; +0x26, 0x14019c5c6\nmov     rdx, rax                                                       ; +0x2c, 0x14019c5cc\nlea     rcx, [rsp+38h+var_18]                                          ; +0x2f, 0x14019c5cf\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x34, 0x14019c5d4\ncmp     byte ptr [rdi+390h], 0                                         ; +0x3a, 0x14019c5da\njz      short loc_14019C5F1                                            ; +0x41, 0x14019c5e1\nmovss   xmm2, [rsp+38h+var_10]                                         ; +0x43, 0x14019c5e3\nmovss   xmm1, [rsp+38h+var_C]                                          ; +0x49, 0x14019c5e9\njmp     short loc_14019C5FD                                            ; +0x4f, 0x14019c5ef\nmovss   xmm2, [rsp+38h+var_C]                                          ; +0x51, 0x14019c5f1\nmovss   xmm1, [rsp+38h+var_10]                                         ; +0x57, 0x14019c5f7\nmovss   xmm3, cs:dword_140623614                                       ; +0x5d, 0x14019c5fd\nmovss   xmm5, dword ptr [rdi+3E4h]                                     ; +0x65, 0x14019c605\nmovss   xmm4, dword ptr [rdi+488h]                                     ; +0x6d, 0x14019c60d\nmovaps  xmm0, xmm5                                                     ; +0x75, 0x14019c615\nmulss   xmm0, xmm3                                                     ; +0x78, 0x14019c618\ncvttss2si ecx, xmm0                                                    ; +0x7c, 0x14019c61c\nmovaps  xmm0, xmm4                                                     ; +0x80, 0x14019c620\nmulss   xmm0, xmm3                                                     ; +0x83, 0x14019c623\ncvttss2si eax, xmm0                                                    ; +0x87, 0x14019c627\ncmp     eax, ecx                                                       ; +0x8b, 0x14019c62b\njz      short loc_14019C64A                                            ; +0x8d, 0x14019c62d\nmovaps  xmm0, xmm1                                                     ; +0x8f, 0x14019c62f\ndivss   xmm0, xmm4                                                     ; +0x92, 0x14019c632\nmulss   xmm0, xmm5                                                     ; +0x96, 0x14019c636\nsubss   xmm1, xmm0                                                     ; +0x9a, 0x14019c63a\nmulss   xmm1, cs:dword_140622B08                                       ; +0x9e, 0x14019c63e\nmovss   dword ptr [rbx], xmm1                                          ; +0xa6, 0x14019c646\nmovss   xmm4, dword ptr [rdi+48Ch]                                     ; +0xaa, 0x14019c64a\nmovss   xmm5, dword ptr [rdi+3E8h]                                     ; +0xb2, 0x14019c652\nmovaps  xmm1, xmm4                                                     ; +0xba, 0x14019c65a\nmovaps  xmm0, xmm5                                                     ; +0xbd, 0x14019c65d\nmulss   xmm1, xmm3                                                     ; +0xc0, 0x14019c660\nmulss   xmm0, xmm3                                                     ; +0xc4, 0x14019c664\ncvttss2si eax, xmm1                                                    ; +0xc8, 0x14019c668\ncvttss2si ecx, xmm0                                                    ; +0xcc, 0x14019c66c\ncmp     eax, ecx                                                       ; +0xd0, 0x14019c670\njz      short loc_14019C690                                            ; +0xd2, 0x14019c672\nmovaps  xmm0, xmm2                                                     ; +0xd4, 0x14019c674\ndivss   xmm0, xmm4                                                     ; +0xd7, 0x14019c677\nmulss   xmm0, xmm5                                                     ; +0xdb, 0x14019c67b\nsubss   xmm2, xmm0                                                     ; +0xdf, 0x14019c67f\nmulss   xmm2, cs:dword_140622B08                                       ; +0xe3, 0x14019c683\nmovss   dword ptr [rbx+4], xmm2                                        ; +0xeb, 0x14019c68b\ncmp     byte ptr [rdi+390h], 0                                         ; +0xf0, 0x14019c690\njz      short loc_14019C6A7                                            ; +0xf7, 0x14019c697\nmovss   xmm0, dword ptr [rbx]                                          ; +0xf9, 0x14019c699\nmov     eax, [rbx+4]                                                   ; +0xfd, 0x14019c69d\nmovss   dword ptr [rbx+4], xmm0                                        ; +0x100, 0x14019c6a0\nmov     [rbx], eax                                                     ; +0x105, 0x14019c6a5\nmov     rax, rbx                                                       ; +0x107, 0x14019c6a7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x10a, 0x14019c6aa\nadd     rsp, 30h                                                       ; +0x10f, 0x14019c6af\npop     rdi                                                            ; +0x113, 0x14019c6b3\nretn                                                                   ; +0x114, 0x14019c6b4", "xrefs": ["PlayerObject::postCollision @ 0x14038e5af", "PlayerObject::postCollision @ 0x14038e7cf", "PlayerObject::collidedWithObjectInternal @ 0x140391d44", "PlayerObject::collidedWithObjectInternal @ 0x140391d53", "PlayerObject::collidedWithObjectInternal @ 0x1403932ac", "PlayerObject::collidedWithObjectInternal @ 0x1403932c6", "<???> @ 0x1406cbd84"], "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"}