{"type": "func", "start": 5369171488, "end": 5369171728, "name": "ScrollingLayer::getViewRect", "pseudocode": "// \n// ScrollingLayer::getViewRect from 0x140070e20 to 0x140070f10 (240 bytes)\n// \n// 3 xrefs:\n// > ScrollingLayer::visit @ 0x140070fde\n// > ScrollingLayer::ccTouchBegan @ 0x14007105d\n// > <???> @ 0x1406c6180\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::CCRect *ScrollingLayer::getViewRect(cocos2d::CCRect *__return_ptr retstr, ScrollingLayer *a2)\n{\n  cocos2d::CCSize size; // rcx\n  float v5; // xmm6_4\n  double v6; // xmm0_8\n  float v7; // xmm7_4\n  cocos2d::CCSize v8; // rcx\n  double v9; // xmm0_8\n  struct cocos2d::CCPoint v11; // [rsp+60h] [rbp+8h] BYREF\n\n  cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)retstr, &v11);\n  size = retstr[37].size;\n  v5 = 1.0;\n  if ( size )\n  {\n    v6 = (*(double (__fastcall **)(cocos2d::CCSize))(**(_QWORD **)&size + 128LL))(size);\n    v7 = *(float *)&v6;\n  }\n  else\n  {\n    v7 = 1.0;\n  }\n  v8 = retstr[37].size;\n  if ( v8 )\n  {\n    v9 = (*(double (__fastcall **)(cocos2d::CCSize))(**(_QWORD **)&v8 + 144LL))(v8);\n    v5 = *(float *)&v9;\n  }\n  cocos2d::CCRect::CCRect(\n    (cocos2d::CCRect *)a2,\n    (float)((float)(v7 * retstr[34].origin.x) + v11.x) - (float)((float)(retstr[34].size.width * 0.5) * v7),\n    (float)((float)(v5 * retstr[34].origin.y) + v11.y) - (float)((float)(retstr[34].size.height * 0.5) * v5),\n    retstr[34].size.width * v7,\n    retstr[34].size.height * v5);\n  return (cocos2d::CCRect *)a2;\n}", "assembly": "; \n; ScrollingLayer::getViewRect from 0x140070e20 to 0x140070f10 (240 bytes)\n; \n; 3 xrefs:\n; > ScrollingLayer::visit @ 0x140070fde\n; > ScrollingLayer::ccTouchBegan @ 0x14007105d\n; > <???> @ 0x1406c6180\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_8], rbx                                               ; +0x0, 0x140070e20\npush    rdi                                                            ; +0x5, 0x140070e25\nsub     rsp, 50h                                                       ; +0x6, 0x140070e26\nmov     rdi, rdx                                                       ; +0xa, 0x140070e2a\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0xd, 0x140070e2d\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x12, 0x140070e32\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x17, 0x140070e37\nlea     r8, stru_1406C15C8                                             ; +0x1c, 0x140070e3c\nmov     rbx, rcx                                                       ; +0x23, 0x140070e43\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x26, 0x140070e46\nmov     rcx, [rbx+258h]                                                ; +0x2c, 0x140070e4c\nmovss   xmm6, cs:flt_140622C24                                         ; +0x33, 0x140070e53\ntest    rcx, rcx                                                       ; +0x3b, 0x140070e5b\njz      short loc_140070E6E                                            ; +0x3e, 0x140070e5e\nmov     rax, [rcx]                                                     ; +0x40, 0x140070e60\ncall    qword ptr [rax+80h]                                            ; +0x43, 0x140070e63\nmovaps  xmm7, xmm0                                                     ; +0x49, 0x140070e69\njmp     short loc_140070E71                                            ; +0x4c, 0x140070e6c\nmovaps  xmm7, xmm6                                                     ; +0x4e, 0x140070e6e\nmov     rcx, [rbx+258h]                                                ; +0x51, 0x140070e71\ntest    rcx, rcx                                                       ; +0x58, 0x140070e78\njz      short loc_140070E89                                            ; +0x5b, 0x140070e7b\nmov     rax, [rcx]                                                     ; +0x5d, 0x140070e7d\ncall    qword ptr [rax+90h]                                            ; +0x60, 0x140070e80\nmovaps  xmm6, xmm0                                                     ; +0x66, 0x140070e86\nmovss   xmm1, dword ptr [rbx+22Ch]                                     ; +0x69, 0x140070e89\nmovaps  xmm2, xmm6                                                     ; +0x71, 0x140070e91\nmulss   xmm2, dword ptr [rbx+224h]                                     ; +0x74, 0x140070e94\nmovaps  xmm4, xmm1                                                     ; +0x7c, 0x140070e9c\nmov     rcx, rdi                                                       ; +0x7f, 0x140070e9f\nmulss   xmm1, cs:dword_140622B08                                       ; +0x82, 0x140070ea2\nmovss   xmm5, dword ptr [rbx+228h]                                     ; +0x8a, 0x140070eaa\naddss   xmm2, [rsp+58h+arg_4]                                          ; +0x92, 0x140070eb2\nmulss   xmm1, xmm6                                                     ; +0x98, 0x140070eb8\nmovaps  xmm3, xmm5                                                     ; +0x9c, 0x140070ebc\nmulss   xmm5, cs:dword_140622B08                                       ; +0x9f, 0x140070ebf\nsubss   xmm2, xmm1                                                     ; +0xa7, 0x140070ec7\nmulss   xmm4, xmm6                                                     ; +0xab, 0x140070ecb\nmovaps  xmm1, xmm7                                                     ; +0xaf, 0x140070ecf\nmulss   xmm3, xmm7                                                     ; +0xb2, 0x140070ed2\nmulss   xmm1, dword ptr [rbx+220h]                                     ; +0xb6, 0x140070ed6\nmulss   xmm5, xmm7                                                     ; +0xbe, 0x140070ede\naddss   xmm1, [rsp+58h+arg_0]                                          ; +0xc2, 0x140070ee2\nmovss   [rsp+58h+var_38], xmm4                                         ; +0xc8, 0x140070ee8\nsubss   xmm1, xmm5                                                     ; +0xce, 0x140070eee\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xd2, 0x140070ef2\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xd8, 0x140070ef8\nmov     rax, rdi                                                       ; +0xdd, 0x140070efd\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xe0, 0x140070f00\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xe5, 0x140070f05\nadd     rsp, 50h                                                       ; +0xea, 0x140070f0a\npop     rdi                                                            ; +0xee, 0x140070f0e\nretn                                                                   ; +0xef, 0x140070f0f", "xrefs": ["ScrollingLayer::visit @ 0x140070fde", "ScrollingLayer::ccTouchBegan @ 0x14007105d", "<???> @ 0x1406c6180"], "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"}