{"type": "func", "start": 5369994160, "end": 5369994745, "name": "CurrencyRewardLayer::create", "pseudocode": "// \n// CurrencyRewardLayer::create from 0x140139bb0 to 0x140139df9 (585 bytes)\n// \n// 8 xrefs:\n// > ChallengesPage::claimItem @ 0x14009f31d\n// > DailyLevelPage::claimLevelReward @ 0x140172785\n// > EndLevelLayer::playEndEffect @ 0x140208088\n// > GJGarageLayer::dialogClosed @ 0x14038117e\n// > LevelListLayer::onClaimReward @ 0x14042e1b3\n// > PlayLayer::showNewBest @ 0x140509e5b\n// > RewardUnlockLayer::playRewardEffect @ 0x14056511f\n// > <???> @ 0x140917264\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:27:06 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *__fastcall CurrencyRewardLayer::create(\n        int a1,\n        int a2,\n        int a3,\n        int a4,\n        int a5,\n        int a6,\n        int a7,\n        int a8,\n        const struct cocos2d::CCPoint *a9,\n        int a10,\n        int a11,\n        int a12)\n{\n  char *v16; // r14\n  __int64 v17; // rax\n  char *v19; // [rsp+70h] [rbp-28h] BYREF\n\n  v16 = (char *)operator new(0x280u);\n  v19 = v16;\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v16);\n  *(_QWORD *)v16 = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 40) = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 41) = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 42) = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 43) = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 44) = &CurrencyRewardLayer::`vftable';\n  *((_QWORD *)v16 + 51) = 0;\n  *((_QWORD *)v16 + 52) = 0;\n  *((_QWORD *)v16 + 53) = 0;\n  *((_QWORD *)v16 + 54) = 0;\n  *((_QWORD *)v16 + 56) = 0;\n  *((_QWORD *)v16 + 57) = 0;\n  *((_QWORD *)v16 + 58) = 0;\n  *((_QWORD *)v16 + 59) = 0;\n  *((_QWORD *)v16 + 60) = 0;\n  *((_QWORD *)v16 + 62) = 0;\n  *((_QWORD *)v16 + 63) = 0;\n  *((_QWORD *)v16 + 64) = 0;\n  *((_QWORD *)v16 + 65) = 0;\n  *((_QWORD *)v16 + 66) = 0;\n  *((_QWORD *)v16 + 67) = 0;\n  *((_QWORD *)v16 + 68) = 0;\n  *((_QWORD *)v16 + 69) = 0;\n  *((_QWORD *)v16 + 70) = 0;\n  *((_DWORD *)v16 + 142) = 1065353216;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 572));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 580));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 588));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 596));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 604));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v16 + 612));\n  *((_WORD *)v16 + 310) = 0;\n  *((_QWORD *)v16 + 78) = 0;\n  *((_QWORD *)v16 + 79) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, a9);\n  if ( (unsigned __int8)CurrencyRewardLayer::init((_DWORD)v16, a1, a2, a3, a4, a5, a6, a7, a8, v17, a10, a11, a12) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v16);\n    return v16;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v16 + 8LL))(v16, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CurrencyRewardLayer::create from 0x140139bb0 to 0x140139df9 (585 bytes)\n; \n; 8 xrefs:\n; > ChallengesPage::claimItem @ 0x14009f31d\n; > DailyLevelPage::claimLevelReward @ 0x140172785\n; > EndLevelLayer::playEndEffect @ 0x140208088\n; > GJGarageLayer::dialogClosed @ 0x14038117e\n; > LevelListLayer::onClaimReward @ 0x14042e1b3\n; > PlayLayer::showNewBest @ 0x140509e5b\n; > RewardUnlockLayer::playRewardEffect @ 0x14056511f\n; > <???> @ 0x140917264\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:27:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140139bb0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140139bb5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140139bba\npush    rdi                                                            ; +0xf, 0x140139bbf\npush    r14                                                            ; +0x10, 0x140139bc0\npush    r15                                                            ; +0x12, 0x140139bc2\nsub     rsp, 80h                                                       ; +0x14, 0x140139bc4\nmov     ebx, r9d                                                       ; +0x1b, 0x140139bcb\nmov     edi, r8d                                                       ; +0x1e, 0x140139bce\nmov     esi, edx                                                       ; +0x21, 0x140139bd1\nmov     ebp, ecx                                                       ; +0x23, 0x140139bd3\nmov     ecx, 280h; Size                                                ; +0x25, 0x140139bd5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x140139bda\nmov     r14, rax                                                       ; +0x2f, 0x140139bdf\nmov     [rsp+98h+var_28], rax                                          ; +0x32, 0x140139be2\nmov     rcx, rax                                                       ; +0x37, 0x140139be7\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3a, 0x140139bea\nnop                                                                    ; +0x40, 0x140139bf0\nlea     rax, ??_7CurrencyRewardLayer@@6B@; const CurrencyRewardLayer::`vftable' ; +0x41, 0x140139bf1\nmov     [r14], rax                                                     ; +0x48, 0x140139bf8\nlea     rax, ??_7CurrencyRewardLayer@@6B@_0; const CurrencyRewardLayer::`vftable' ; +0x4b, 0x140139bfb\nmov     [r14+140h], rax                                                ; +0x52, 0x140139c02\nlea     rax, ??_7CurrencyRewardLayer@@6B@_1; const CurrencyRewardLayer::`vftable' ; +0x59, 0x140139c09\nmov     [r14+148h], rax                                                ; +0x60, 0x140139c10\nlea     rax, ??_7CurrencyRewardLayer@@6B@_2; const CurrencyRewardLayer::`vftable' ; +0x67, 0x140139c17\nmov     [r14+150h], rax                                                ; +0x6e, 0x140139c1e\nlea     rax, ??_7CurrencyRewardLayer@@6B@_3; const CurrencyRewardLayer::`vftable' ; +0x75, 0x140139c25\nmov     [r14+158h], rax                                                ; +0x7c, 0x140139c2c\nlea     rax, ??_7CurrencyRewardLayer@@6B@_4; const CurrencyRewardLayer::`vftable' ; +0x83, 0x140139c33\nmov     [r14+160h], rax                                                ; +0x8a, 0x140139c3a\nxor     r15d, r15d                                                     ; +0x91, 0x140139c41\nmov     [r14+198h], r15                                                ; +0x94, 0x140139c44\nmov     [r14+1A0h], r15                                                ; +0x9b, 0x140139c4b\nmov     [r14+1A8h], r15                                                ; +0xa2, 0x140139c52\nmov     [r14+1B0h], r15                                                ; +0xa9, 0x140139c59\nmov     [r14+1C0h], r15                                                ; +0xb0, 0x140139c60\nmov     [r14+1C8h], r15                                                ; +0xb7, 0x140139c67\nmov     [r14+1D0h], r15                                                ; +0xbe, 0x140139c6e\nmov     [r14+1D8h], r15                                                ; +0xc5, 0x140139c75\nmov     [r14+1E0h], r15                                                ; +0xcc, 0x140139c7c\nmov     [r14+1F0h], r15                                                ; +0xd3, 0x140139c83\nmov     [r14+1F8h], r15                                                ; +0xda, 0x140139c8a\nmov     [r14+200h], r15                                                ; +0xe1, 0x140139c91\nmov     [r14+208h], r15                                                ; +0xe8, 0x140139c98\nmov     [r14+210h], r15                                                ; +0xef, 0x140139c9f\nmov     [r14+218h], r15                                                ; +0xf6, 0x140139ca6\nmov     [r14+220h], r15                                                ; +0xfd, 0x140139cad\nmov     [r14+228h], r15                                                ; +0x104, 0x140139cb4\nmov     [r14+230h], r15                                                ; +0x10b, 0x140139cbb\nmov     dword ptr [r14+238h], 3F800000h                                ; +0x112, 0x140139cc2\nlea     rcx, [r14+23Ch]                                                ; +0x11d, 0x140139ccd\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x124, 0x140139cd4\nlea     rcx, [r14+244h]                                                ; +0x12a, 0x140139cda\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x131, 0x140139ce1\nlea     rcx, [r14+24Ch]                                                ; +0x137, 0x140139ce7\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x13e, 0x140139cee\nlea     rcx, [r14+254h]                                                ; +0x144, 0x140139cf4\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x14b, 0x140139cfb\nlea     rcx, [r14+25Ch]                                                ; +0x151, 0x140139d01\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x158, 0x140139d08\nlea     rcx, [r14+264h]                                                ; +0x15e, 0x140139d0e\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x165, 0x140139d15\nmov     [r14+26Ch], r15w                                               ; +0x16b, 0x140139d1b\nmov     [r14+270h], r15                                                ; +0x173, 0x140139d23\nmov     [r14+278h], r15                                                ; +0x17a, 0x140139d2a\nmov     rdx, [rsp+98h+arg_40]                                          ; +0x181, 0x140139d31\nlea     rcx, [rsp+98h+var_28]                                          ; +0x189, 0x140139d39\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x18e, 0x140139d3e\nmov     rcx, rax                                                       ; +0x194, 0x140139d44\nmovss   xmm0, [rsp+98h+arg_58]                                         ; +0x197, 0x140139d47\nmovss   [rsp+98h+var_38], xmm0                                         ; +0x1a0, 0x140139d50\nmovss   xmm1, [rsp+98h+arg_50]                                         ; +0x1a6, 0x140139d56\nmovss   [rsp+98h+var_40], xmm1                                         ; +0x1af, 0x140139d5f\nmov     eax, [rsp+98h+arg_48]                                          ; +0x1b5, 0x140139d65\nmov     [rsp+98h+var_48], eax                                          ; +0x1bc, 0x140139d6c\nmov     [rsp+98h+var_50], rcx                                          ; +0x1c0, 0x140139d70\nmov     eax, [rsp+98h+arg_38]                                          ; +0x1c5, 0x140139d75\nmov     [rsp+98h+var_58], eax                                          ; +0x1cc, 0x140139d7c\nmov     eax, [rsp+98h+arg_30]                                          ; +0x1d0, 0x140139d80\nmov     [rsp+98h+var_60], eax                                          ; +0x1d7, 0x140139d87\nmov     eax, [rsp+98h+arg_28]                                          ; +0x1db, 0x140139d8b\nmov     [rsp+98h+var_68], eax                                          ; +0x1e2, 0x140139d92\nmov     ecx, [rsp+98h+arg_20]                                          ; +0x1e6, 0x140139d96\nmov     [rsp+98h+var_70], ecx                                          ; +0x1ed, 0x140139d9d\nmov     [rsp+98h+var_78], ebx                                          ; +0x1f1, 0x140139da1\nmov     r9d, edi                                                       ; +0x1f5, 0x140139da5\nmov     r8d, esi                                                       ; +0x1f8, 0x140139da8\nmov     edx, ebp                                                       ; +0x1fb, 0x140139dab\nmov     rcx, r14                                                       ; +0x1fd, 0x140139dad\ncall    CurrencyRewardLayer__init                                      ; +0x200, 0x140139db0\ntest    al, al                                                         ; +0x205, 0x140139db5\njz      short loc_140139DC7                                            ; +0x207, 0x140139db7\nmov     rcx, r14                                                       ; +0x209, 0x140139db9\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x20c, 0x140139dbc\nmov     rax, r14                                                       ; +0x212, 0x140139dc2\njmp     short loc_140139DDC                                            ; +0x215, 0x140139dc5\nmov     rcx, [r14]                                                     ; +0x217, 0x140139dc7\nmov     r8, [rcx+8]                                                    ; +0x21a, 0x140139dca\nmov     edx, 1                                                         ; +0x21e, 0x140139dce\nmov     rcx, r14                                                       ; +0x223, 0x140139dd3\ncall    r8                                                             ; +0x226, 0x140139dd6\nmov     rax, r15                                                       ; +0x229, 0x140139dd9\nlea     r11, [rsp+98h+var_18]                                          ; +0x22c, 0x140139ddc\nmov     rbx, [r11+20h]                                                 ; +0x234, 0x140139de4\nmov     rbp, [r11+28h]                                                 ; +0x238, 0x140139de8\nmov     rsi, [r11+30h]                                                 ; +0x23c, 0x140139dec\nmov     rsp, r11                                                       ; +0x240, 0x140139df0\npop     r15                                                            ; +0x243, 0x140139df3\npop     r14                                                            ; +0x245, 0x140139df5\npop     rdi                                                            ; +0x247, 0x140139df7\nretn                                                                   ; +0x248, 0x140139df8", "xrefs": ["ChallengesPage::claimItem @ 0x14009f31d", "DailyLevelPage::claimLevelReward @ 0x140172785", "EndLevelLayer::playEndEffect @ 0x140208088", "GJGarageLayer::dialogClosed @ 0x14038117e", "LevelListLayer::onClaimReward @ 0x14042e1b3", "PlayLayer::showNewBest @ 0x140509e5b", "RewardUnlockLayer::playRewardEffect @ 0x14056511f", "<???> @ 0x140917264"], "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"}