{"type": "func", "start": 5372031648, "end": 5372031914, "name": "GJBaseGameLayer::speedForShaderTarget", "pseudocode": "// \n// GJBaseGameLayer::speedForShaderTarget from 0x14032b2a0 to 0x14032b3aa (266 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::updateShaderLayer @ 0x14032a432\n// > GJBaseGameLayer::updateShaderLayer @ 0x14032a459\n// > <???> @ 0x14091f154\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:30:29 +0000\n// \n\ncocos2d::CCPoint *__fastcall GJBaseGameLayer::speedForShaderTarget(__int64 a1, cocos2d::CCPoint *a2, int a3)\n{\n  __int64 v6; // rbx\n  __int64 MainObject; // rax\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  char *v10; // rdx\n  char *v11; // rax\n  char *v12; // rax\n  __int64 v13; // rax\n  _BYTE v15[24]; // [rsp+20h] [rbp-18h] BYREF\n  char v16; // [rsp+48h] [rbp+10h] BYREF\n  char v17; // [rsp+58h] [rbp+20h] BYREF\n\n  cocos2d::CCPoint::CCPoint(a2);\n  if ( a3 == -1 )\n    goto LABEL_10;\n  if ( a3 == -2 )\n  {\n    if ( *(_BYTE *)(a1 + 1058) )\n    {\n      v6 = *(_QWORD *)(a1 + 3520);\nLABEL_11:\n      v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 200LL))(v6);\n      cocos2d::CCPoint::operator-(v13, &v16, v6 + 1232);\n      v10 = &v16;\n      goto LABEL_12;\n    }\nLABEL_10:\n    v6 = *(_QWORD *)(a1 + 3512);\n    goto LABEL_11;\n  }\n  if ( a3 < 1 )\n  {\n    cocos2d::CCPoint::operator-(a1 + 1244, &v16);\n    v10 = v12;\n  }\n  else\n  {\n    MainObject = GJBaseGameLayer::tryGetMainObject(a1, (unsigned int)a3);\n    v8 = MainObject;\n    if ( MainObject )\n    {\n      v9 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)MainObject + 1208LL))(MainObject, &v17);\n      cocos2d::CCPoint::operator-(v9, &v16, v8 + 1232);\n      v10 = &v16;\n    }\n    else\n    {\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (const struct cocos2d::CCPoint *)&dword_14090AA70);\n      v10 = v11;\n    }\n  }\nLABEL_12:\n  cocos2d::CCPoint::operator=(a2, v10);\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::speedForShaderTarget from 0x14032b2a0 to 0x14032b3aa (266 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::updateShaderLayer @ 0x14032a432\n; > GJBaseGameLayer::updateShaderLayer @ 0x14032a459\n; > <???> @ 0x14091f154\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:30:29 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14032b2a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14032b2a5\npush    rdi                                                            ; +0xa, 0x14032b2aa\nsub     rsp, 30h                                                       ; +0xb, 0x14032b2ab\nmov     rsi, rcx                                                       ; +0xf, 0x14032b2af\nmov     ebx, r8d                                                       ; +0x12, 0x14032b2b2\nmov     rcx, rdx                                                       ; +0x15, 0x14032b2b5\nmov     rdi, rdx                                                       ; +0x18, 0x14032b2b8\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1b, 0x14032b2bb\ncmp     ebx, 0FFFFFFFFh                                                ; +0x21, 0x14032b2c1\njz      loc_14032B361                                                  ; +0x24, 0x14032b2c4\ncmp     ebx, 0FFFFFFFEh                                                ; +0x2a, 0x14032b2ca\njnz     short loc_14032B2E8                                            ; +0x2d, 0x14032b2cd\ncmp     byte ptr [rsi+422h], 0                                         ; +0x2f, 0x14032b2cf\njz      loc_14032B361                                                  ; +0x36, 0x14032b2d6\nmov     rbx, [rsi+0DC0h]                                               ; +0x3c, 0x14032b2dc\njmp     loc_14032B368                                                  ; +0x43, 0x14032b2e3\ncmp     ebx, 1                                                         ; +0x48, 0x14032b2e8\njl      short loc_14032B34A                                            ; +0x4b, 0x14032b2eb\nmov     edx, ebx                                                       ; +0x4d, 0x14032b2ed\nmov     rcx, rsi                                                       ; +0x4f, 0x14032b2ef\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0x52, 0x14032b2f2\nmov     rbx, rax                                                       ; +0x57, 0x14032b2f7\ntest    rax, rax                                                       ; +0x5a, 0x14032b2fa\njz      short loc_14032B333                                            ; +0x5d, 0x14032b2fd\nmov     rcx, [rax]                                                     ; +0x5f, 0x14032b2ff\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x62, 0x14032b302\nmov     r8, [rcx+4B8h]                                                 ; +0x67, 0x14032b307\nmov     rcx, rax                                                       ; +0x6e, 0x14032b30e\ncall    r8                                                             ; +0x71, 0x14032b311\nlea     r8, [rbx+4D0h]                                                 ; +0x74, 0x14032b314\nmov     rcx, rax                                                       ; +0x7b, 0x14032b31b\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x7e, 0x14032b31e\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x83, 0x14032b323\nlea     rax, [rsp+38h+arg_8]                                           ; +0x89, 0x14032b329\nmov     rdx, rax                                                       ; +0x8e, 0x14032b32e\njmp     short loc_14032B38E                                            ; +0x91, 0x14032b331\nlea     rdx, dword_14090AA70                                           ; +0x93, 0x14032b333\nlea     rcx, [rsp+38h+var_18]                                          ; +0x9a, 0x14032b33a\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x9f, 0x14032b33f\nmov     rdx, rax                                                       ; +0xa5, 0x14032b345\njmp     short loc_14032B38E                                            ; +0xa8, 0x14032b348\nlea     rcx, [rsi+4DCh]                                                ; +0xaa, 0x14032b34a\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xb1, 0x14032b351\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@XZ; cocos2d::CCPoint::operator-(void) ; +0xb6, 0x14032b356\nmov     rdx, rax                                                       ; +0xbc, 0x14032b35c\njmp     short loc_14032B38E                                            ; +0xbf, 0x14032b35f\nmov     rbx, [rsi+0DB8h]                                               ; +0xc1, 0x14032b361\nmov     rax, [rbx]                                                     ; +0xc8, 0x14032b368\nmov     rcx, rbx                                                       ; +0xcb, 0x14032b36b\ncall    qword ptr [rax+0C8h]                                           ; +0xce, 0x14032b36e\nmov     rcx, rax                                                       ; +0xd4, 0x14032b374\nlea     r8, [rbx+4D0h]                                                 ; +0xd7, 0x14032b377\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xde, 0x14032b37e\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0xe3, 0x14032b383\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xe9, 0x14032b389\nmov     rcx, rdi                                                       ; +0xee, 0x14032b38e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xf1, 0x14032b391\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf7, 0x14032b397\nmov     rax, rdi                                                       ; +0xfc, 0x14032b39c\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xff, 0x14032b39f\nadd     rsp, 30h                                                       ; +0x104, 0x14032b3a4\npop     rdi                                                            ; +0x108, 0x14032b3a8\nretn                                                                   ; +0x109, 0x14032b3a9", "xrefs": ["GJBaseGameLayer::updateShaderLayer @ 0x14032a432", "GJBaseGameLayer::updateShaderLayer @ 0x14032a459", "<???> @ 0x14091f154"], "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"}