{"type": "func", "start": 5372706752, "end": 5372707082, "name": "InfoLayer::getSpriteButton", "pseudocode": "// \n// InfoLayer::getSpriteButton from 0x1403cffc0 to 0x1403d010a (330 bytes)\n// \n// 6 xrefs:\n// > InfoLayer::init @ 0x1403cf434\n// > InfoLayer::init @ 0x1403cf489\n// > InfoLayer::init @ 0x1403cf4f1\n// > InfoLayer::init @ 0x1403cf555\n// > InfoLayer::init @ 0x1403cf619\n// > <???> @ 0x140924674\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:31:34 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall InfoLayer::getSpriteButton(\n        int a1,\n        const char *a2,\n        __int64 a3,\n        __int64 a4,\n        int a5,\n        const struct cocos2d::CCPoint *a6)\n{\n  struct cocos2d::CCSprite *v9; // rsi\n  cocos2d::CCObject *v10; // rbx\n  __int64 v11; // r9\n  __int64 v12; // rax\n  cocos2d::CCObject *v13; // rbx\n  int v14; // xmm6_4\n  __int64 v16; // [rsp+30h] [rbp-48h]\n  void *v17; // [rsp+98h] [rbp+20h] BYREF\n\n  v9 = cocos2d::CCSprite::createWithSpriteFrameName(a2);\n  v17 = operator new(0x2C8u);\n  v10 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v17);\n  if ( v10 )\n  {\n    if ( ButtonSprite::init((__int64 *)v10, (__int64)v9, 32, v11, 32.0, 1065353216, v16, \"GJ_button_01.png\", 0, 0) )\n    {\n      cocos2d::CCObject::autorelease(v10);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1);\n      v10 = nullptr;\n    }\n  }\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, a6);\n  cocos2d::CCPoint::operator=((char *)v10 + 672, v12);\n  ButtonSprite::updateSpriteBGSize((__int64 *)v10);\n  v13 = CCMenuItemSpriteExtra::create((int)v10, 0, a1, a3);\n  v14 = a5;\n  (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v13 + 160LL))(v13);\n  *((_DWORD *)v13 + 101) = v14;\n  if ( a4 )\n    (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a4 + 464LL))(a4, v13);\n  return v13;\n}", "assembly": "; \n; InfoLayer::getSpriteButton from 0x1403cffc0 to 0x1403d010a (330 bytes)\n; \n; 6 xrefs:\n; > InfoLayer::init @ 0x1403cf434\n; > InfoLayer::init @ 0x1403cf489\n; > InfoLayer::init @ 0x1403cf4f1\n; > InfoLayer::init @ 0x1403cf555\n; > InfoLayer::init @ 0x1403cf619\n; > <???> @ 0x140924674\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:31:34 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403cffc0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403cffc5\npush    rsi                                                            ; +0xa, 0x1403cffca\npush    rdi                                                            ; +0xb, 0x1403cffcb\npush    r14                                                            ; +0xc, 0x1403cffcc\nsub     rsp, 60h                                                       ; +0xe, 0x1403cffce\nmovaps  [rsp+78h+var_28], xmm6                                         ; +0x12, 0x1403cffd2\nmov     rdi, r9                                                        ; +0x17, 0x1403cffd7\nmov     rbp, r8                                                        ; +0x1a, 0x1403cffda\nmov     r14, rcx                                                       ; +0x1d, 0x1403cffdd\nmov     rcx, rdx                                                       ; +0x20, 0x1403cffe0\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x23, 0x1403cffe3\nmov     rsi, rax                                                       ; +0x29, 0x1403cffe9\nmov     ecx, 2C8h; Size                                                ; +0x2c, 0x1403cffec\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1403cfff1\nmov     [rsp+78h+arg_18], rax                                          ; +0x36, 0x1403cfff6\nmov     rcx, rax                                                       ; +0x3e, 0x1403cfffe\ncall    ButtonSprite__ButtonSprite                                     ; +0x41, 0x1403d0001\nmov     rbx, rax                                                       ; +0x46, 0x1403d0006\ntest    rax, rax                                                       ; +0x49, 0x1403d0009\njz      short loc_1403D0071                                            ; +0x4c, 0x1403d000c\nxorps   xmm0, xmm0                                                     ; +0x4e, 0x1403d000e\nmovss   [rsp+78h+var_30], xmm0                                         ; +0x51, 0x1403d0011\nmov     [rsp+78h+var_38], 0                                            ; +0x57, 0x1403d0017\nlea     rax, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x5c, 0x1403d001c\nmov     [rsp+78h+var_40], rax                                          ; +0x63, 0x1403d0023\nmovss   xmm0, cs:flt_140835080                                         ; +0x68, 0x1403d0028\nmovss   [rsp+78h+var_50], xmm0                                         ; +0x70, 0x1403d0030\nmovss   xmm1, cs:dword_140835640                                       ; +0x76, 0x1403d0036\nmovss   [rsp+78h+var_58], xmm1                                         ; +0x7e, 0x1403d003e\nmov     r8d, 20h ; ' '                                                 ; +0x84, 0x1403d0044\nmov     rdx, rsi                                                       ; +0x8a, 0x1403d004a\nmov     rcx, rbx                                                       ; +0x8d, 0x1403d004d\ncall    ButtonSprite__init                                             ; +0x90, 0x1403d0050\nmov     rcx, rbx                                                       ; +0x95, 0x1403d0055\ntest    al, al                                                         ; +0x98, 0x1403d0058\njz      short loc_1403D0064                                            ; +0x9a, 0x1403d005a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x9c, 0x1403d005c\njmp     short loc_1403D0071                                            ; +0xa2, 0x1403d0062\nmov     rax, [rbx]                                                     ; +0xa4, 0x1403d0064\nmov     edx, 1                                                         ; +0xa7, 0x1403d0067\ncall    qword ptr [rax+8]                                              ; +0xac, 0x1403d006c\nxor     ebx, ebx                                                       ; +0xaf, 0x1403d006f\nmov     rdx, [rsp+78h+arg_28]                                          ; +0xb1, 0x1403d0071\nlea     rcx, [rsp+78h+arg_18]                                          ; +0xb9, 0x1403d0079\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc1, 0x1403d0081\nlea     rcx, [rbx+2A0h]                                                ; +0xc7, 0x1403d0087\nmov     rdx, rax                                                       ; +0xce, 0x1403d008e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xd1, 0x1403d0091\nmov     rcx, rbx                                                       ; +0xd7, 0x1403d0097\ncall    ButtonSprite__updateSpriteBGSize                               ; +0xda, 0x1403d009a\nmov     r9, rbp                                                        ; +0xdf, 0x1403d009f\nmov     r8, r14                                                        ; +0xe2, 0x1403d00a2\nxor     edx, edx                                                       ; +0xe5, 0x1403d00a5\nmov     rcx, rbx                                                       ; +0xe7, 0x1403d00a7\ncall    CCMenuItemSpriteExtra__create                                  ; +0xea, 0x1403d00aa\nmov     rbx, rax                                                       ; +0xef, 0x1403d00af\nmov     rcx, [rax]                                                     ; +0xf2, 0x1403d00b2\nmov     rdx, [rcx+0A0h]                                                ; +0xf5, 0x1403d00b5\nmovss   xmm6, [rsp+78h+arg_20]                                         ; +0xfc, 0x1403d00bc\nmovaps  xmm1, xmm6                                                     ; +0x105, 0x1403d00c5\nmov     rcx, rax                                                       ; +0x108, 0x1403d00c8\ncall    rdx                                                            ; +0x10b, 0x1403d00cb\nmovss   dword ptr [rbx+194h], xmm6                                     ; +0x10d, 0x1403d00cd\ntest    rdi, rdi                                                       ; +0x115, 0x1403d00d5\njz      short loc_1403D00ED                                            ; +0x118, 0x1403d00d8\nmov     rcx, [rdi]                                                     ; +0x11a, 0x1403d00da\nmov     r8, [rcx+1D0h]                                                 ; +0x11d, 0x1403d00dd\nmov     rdx, rbx                                                       ; +0x124, 0x1403d00e4\nmov     rcx, rdi                                                       ; +0x127, 0x1403d00e7\ncall    r8                                                             ; +0x12a, 0x1403d00ea\nmov     rax, rbx                                                       ; +0x12d, 0x1403d00ed\nlea     r11, [rsp+78h+var_18]                                          ; +0x130, 0x1403d00f0\nmov     rbx, [r11+20h]                                                 ; +0x135, 0x1403d00f5\nmov     rbp, [r11+28h]                                                 ; +0x139, 0x1403d00f9\nmovaps  xmm6, [rsp+78h+var_28]                                         ; +0x13d, 0x1403d00fd\nmov     rsp, r11                                                       ; +0x142, 0x1403d0102\npop     r14                                                            ; +0x145, 0x1403d0105\npop     rdi                                                            ; +0x147, 0x1403d0107\npop     rsi                                                            ; +0x148, 0x1403d0108\nretn                                                                   ; +0x149, 0x1403d0109", "xrefs": ["InfoLayer::init @ 0x1403cf434", "InfoLayer::init @ 0x1403cf489", "InfoLayer::init @ 0x1403cf4f1", "InfoLayer::init @ 0x1403cf555", "InfoLayer::init @ 0x1403cf619", "<???> @ 0x140924674"], "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"}