{"type": "func", "start": 6442506048, "end": 6442506242, "name": "cocos2d::extension::CCScale9Sprite::initWithBatchNode", "pseudocode": "// \n// cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0x18000d740 to 0x18000d802 (194 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180029f78\n// > <???> @ 0x180030650\n// > <???> @ 0x180030660\n// > <???> @ 0x180032408\n// > <???> @ 0x18004bd5c\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 12:15:38 +0000\n// \n\nchar __fastcall cocos2d::extension::CCScale9Sprite::initWithBatchNode(\n        __int64 *a1,\n        __int64 a2,\n        const struct cocos2d::CCRect *a3,\n        unsigned __int8 a4,\n        const struct cocos2d::CCRect *a5)\n{\n  __int64 v9; // rdi\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v15; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v16[40]; // [rsp+40h] [rbp-28h] BYREF\n  char v17; // [rsp+70h] [rbp+8h] BYREF\n\n  if ( a2 )\n  {\n    v9 = *a1;\n    v10 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v15, a5);\n    v11 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, a3);\n    (*(void (__fastcall **)(__int64 *, __int64, __int64, _QWORD, __int64))(v9 + 1064))(a1, a2, v11, a4, v10);\n    v12 = *a1;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, 0.5, 0.5);\n    (*(void (__fastcall **)(__int64 *, __int64))(v12 + 288))(a1, v13);\n    *((_BYTE *)a1 + 432) = 1;\n  }\n  else\n  {\n    *((_BYTE *)a1 + 432) = 1;\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCScale9Sprite::initWithBatchNode from 0x18000d740 to 0x18000d802 (194 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180029f78\n; > <???> @ 0x180030650\n; > <???> @ 0x180030660\n; > <???> @ 0x180032408\n; > <???> @ 0x18004bd5c\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 12:15:38 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x18000d740\nmov     [rax+20h], rbp                                                 ; +0x3, 0x18000d743\npush    rsi                                                            ; +0x7, 0x18000d747\npush    r14                                                            ; +0x8, 0x18000d748\npush    r15                                                            ; +0xa, 0x18000d74a\nsub     rsp, 50h                                                       ; +0xc, 0x18000d74c\nmovzx   r14d, r9b                                                      ; +0x10, 0x18000d750\nmov     r15, r8                                                        ; +0x14, 0x18000d754\nmov     rbp, rdx                                                       ; +0x17, 0x18000d757\nmov     rsi, rcx                                                       ; +0x1a, 0x18000d75a\ntest    rdx, rdx                                                       ; +0x1d, 0x18000d75d\njz      loc_18000D7E7                                                  ; +0x20, 0x18000d760\nmov     rdx, [rsp+68h+arg_20]                                          ; +0x26, 0x18000d766\nmov     [rax+10h], rbx                                                 ; +0x2e, 0x18000d76e\nmov     [rax+18h], rdi                                                 ; +0x32, 0x18000d772\nmov     rdi, [rcx]                                                     ; +0x36, 0x18000d776\nlea     rcx, [rax-38h]                                                 ; +0x39, 0x18000d779\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x3d, 0x18000d77d\nmov     rdx, r15                                                       ; +0x43, 0x18000d783\nlea     rcx, [rsp+68h+var_28]                                          ; +0x46, 0x18000d786\nmov     rbx, rax                                                       ; +0x4b, 0x18000d78b\ncall    cs:??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x4e, 0x18000d78e\nmovzx   r9d, r14b                                                      ; +0x54, 0x18000d794\nmov     [rsp+68h+var_48], rbx                                          ; +0x58, 0x18000d798\nmov     r8, rax                                                        ; +0x5d, 0x18000d79d\nmov     rdx, rbp                                                       ; +0x60, 0x18000d7a0\nmov     rcx, rsi                                                       ; +0x63, 0x18000d7a3\ncall    qword ptr [rdi+428h]                                           ; +0x66, 0x18000d7a6\nmovss   xmm1, cs:dword_18002BBD8                                       ; +0x6c, 0x18000d7ac\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x74, 0x18000d7b4\nmov     rbx, [rsi]                                                     ; +0x79, 0x18000d7b9\nmovaps  xmm2, xmm1                                                     ; +0x7c, 0x18000d7bc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7f, 0x18000d7bf\nmov     rdx, rax                                                       ; +0x85, 0x18000d7c5\nmov     rcx, rsi                                                       ; +0x88, 0x18000d7c8\ncall    qword ptr [rbx+120h]                                           ; +0x8b, 0x18000d7cb\nmov     rdi, [rsp+68h+arg_10]                                          ; +0x91, 0x18000d7d1\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x99, 0x18000d7d9\nmov     byte ptr [rsi+1B0h], 1                                         ; +0x9e, 0x18000d7de\njmp     short loc_18000D7EE                                            ; +0xa5, 0x18000d7e5\nmov     byte ptr [rcx+1B0h], 1                                         ; +0xa7, 0x18000d7e7\nmov     rbp, [rsp+68h+arg_18]                                          ; +0xae, 0x18000d7ee\nmov     al, 1                                                          ; +0xb6, 0x18000d7f6\nadd     rsp, 50h                                                       ; +0xb8, 0x18000d7f8\npop     r15                                                            ; +0xbc, 0x18000d7fc\npop     r14                                                            ; +0xbe, 0x18000d7fe\npop     rsi                                                            ; +0xc0, 0x18000d800\nretn                                                                   ; +0xc1, 0x18000d801", "xrefs": ["<???> @ 0x180029f78", "<???> @ 0x180030650", "<???> @ 0x180030660", "<???> @ 0x180032408", "<???> @ 0x18004bd5c"], "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"}