{"type": "func", "start": 6846012, "end": 6846764, "name": "BonusDropdown::init", "pseudocode": "// \n// BonusDropdown::init from 0x68763c to 0x68792c (752 bytes)\n// \n// 2 xrefs:\n// > BonusDropdown::create @ 0x6879d0\n// > <???> @ 0x84be0\n// \n// This function is hookable on this platform (idp: arm, 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:50:31 +0000\n// \n\n__int64 __fastcall BonusDropdown::init(float *a1, __int64 a2, unsigned int a3)\n{\n  cocos2d::CCDirector *v5; // x0\n  const char *v6; // x1\n  __int64 v7; // x20\n  void (__fastcall *v8)(__int64, __int64 *); // x22\n  __int64 v9; // x0\n  float v10; // s1\n  float v11; // s0\n  float v12; // s1\n  __int64 v13; // x0\n  __int64 v14; // x3\n  __int64 v15; // x22\n  void (__fastcall *v16)(__int64, __int64 *); // x26\n  int v17; // w1\n  __int64 v18; // x22\n  void (__fastcall *v19)(__int64, __int64 *); // x26\n  __int64 v20; // x27\n  void (__fastcall *v21)(__int64, __int64 *); // x26\n  const char *v22; // x2\n  cocos2d::CCLabelBMFont *v23; // x0\n  __int64 v24; // x22\n  __int64 v25; // x0\n  __int64 (__fastcall *v26)(__int64); // x1\n  void (__fastcall *v27)(__int64, __int64 *); // x20\n  __int64 v28; // x25\n  void (__fastcall *v29)(__int64, __int64 *); // x20\n  float v32; // [xsp+70h] [xbp+70h]\n  __int64 v33; // [xsp+80h] [xbp+80h] BYREF\n  _BYTE v34[8]; // [xsp+88h] [xbp+88h] BYREF\n  __int64 v35; // [xsp+90h] [xbp+90h] BYREF\n\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);\n  cocos2d::CCDirector::getWinSize(&v33, v5);\n  v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)\"shopTabBG_001.png\", v6);\n  v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL);\n  v32 = *(float *)&v33 * 0.5;\n  v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, v32, *(float *)(v9 + 4) * 0.5);\n  v8(v7, &v35);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 128LL))(v7, 1.8);\n  v10 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7) + 4);\n  v11 = *(float *)&v33;\n  LODWORD(v35) = 0;\n  v12 = v10 - 2.0;\n  a1[82] = v12;\n  v13 = cocos2d::CCLayerColor::create(&v35, v11, v12);\n  v14 = *(_QWORD *)a1;\n  *((_QWORD *)a1 + 40) = v13;\n  (*(void (__fastcall **)(float *))(v14 + 456))(a1);\n  v15 = *((_QWORD *)a1 + 40);\n  v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 0.0, *((float *)&v33 + 1));\n  v16(v15, &v35);\n  (*(void (__fastcall **)(__int64, __int64))(**((_QWORD **)a1 + 40) + 456LL))(*((_QWORD *)a1 + 40), v7);\n  v18 = PriceLabel::create((PriceLabel *)a3, v17);\n  v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);\n  v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 100.0, -4.0);\n  cocos2d::CCPoint::operator+(&v35, v20, v34);\n  v19(v18, &v35);\n  v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 296LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 1.0, 0.5);\n  v21(v18, &v35);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.9);\n  (*(void (__fastcall **)(__int64, __int64))(**((_QWORD **)a1 + 40) + 456LL))(*((_QWORD *)a1 + 40), v18);\n  v23 = (cocos2d::CCLabelBMFont *)(a2 + 1);\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n    v23 = *(cocos2d::CCLabelBMFont **)(a2 + 16);\n  v24 = cocos2d::CCLabelBMFont::create(v23, \"bigFont.fnt\", v22);\n  v25 = v7;\n  v26 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL);\n  v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL);\n  v28 = v26(v25);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, -134.0, -1.0);\n  cocos2d::CCPoint::operator+(&v35, v28, v34);\n  v27(v24, &v35);\n  v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 296LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 0.0, 0.5);\n  v29(v24, &v35);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.9);\n  (*(void (__fastcall **)(__int64, __int64, __int64))(**((_QWORD **)a1 + 40) + 464LL))(*((_QWORD *)a1 + 40), v24, 2);\n  return 1;\n}", "assembly": "; \n; BonusDropdown::init from 0x68763c to 0x68792c (752 bytes)\n; \n; 2 xrefs:\n; > BonusDropdown::create @ 0x6879d0\n; > <???> @ 0x84be0\n; \n; This function is hookable on this platform (idp: arm, 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:50:31 +0000\n; \nSTP             X29, X30, [SP,#var_A0]!                                ; +0x0, 0x68763c\nMOV             X29, SP                                                ; +0x4, 0x687640\nSTP             X23, X24, [SP,#0xA0+var_70]                            ; +0x8, 0x687644\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x687648\nSTR             X27, [SP,#0xA0+var_50]                                 ; +0x10, 0x68764c\nSTP             X21, X22, [SP,#0xA0+var_80]                            ; +0x14, 0x687650\nMOV             X21, X0                                                ; +0x18, 0x687654\nSTR             X2, [X29,#0xA0+var_38]                                 ; +0x1c, 0x687658\nLDR             X0, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68765c\nADD             X24, X29, #0xA0+var_18                                 ; +0x24, 0x687660\nSTP             X19, X20, [SP,#0xA0+var_90]                            ; +0x28, 0x687664\nSTP             X25, X26, [SP,#0xA0+var_60]                            ; +0x2c, 0x687668\nSTR             D8, [SP,#0xA0+var_48]                                  ; +0x30, 0x68766c\nMOV             X25, X1                                                ; +0x34, 0x687670\nLDR             X0, [X0]; this                                         ; +0x38, 0x687674\nADD             X19, X29, #0xA0+var_10                                 ; +0x3c, 0x687678\nFMOV            S8, #0.5                                               ; +0x40, 0x68767c\nSTR             X0, [X29,#0xA0+var_8]                                  ; +0x44, 0x687680\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x48, 0x687684\nADD             X8, X29, #0xA0+var_20                                  ; +0x4c, 0x687688\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x50, 0x68768c\nADRL            X0, aShoptabbg001Pn; \"shopTabBG_001.png\"               ; +0x54, 0x687690\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x5c, 0x687698\nLDR             X1, [X0]                                               ; +0x60, 0x68769c\nLDR             S0, [X29,#0xA0+var_20]                                 ; +0x64, 0x6876a0\nMOV             X20, X0                                                ; +0x68, 0x6876a4\nFMUL            S0, S0, S8                                             ; +0x6c, 0x6876a8\nLDR             X3, [X1,#0x148]                                        ; +0x70, 0x6876ac\nLDR             X22, [X1,#0xB8]                                        ; +0x74, 0x6876b0\nSTR             Q0, [X29,#0xA0+var_30]                                 ; +0x78, 0x6876b4\nBLR             X3                                                     ; +0x7c, 0x6876b8\nLDR             S1, [X0,#4]                                            ; +0x80, 0x6876bc\nMOV             X0, X19; this                                          ; +0x84, 0x6876c0\nLDR             Q0, [X29,#0xA0+var_30]; float                          ; +0x88, 0x6876c4\nFMUL            S1, S1, S8; float                                      ; +0x8c, 0x6876c8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x6876cc\nMOV             X0, X20                                                ; +0x94, 0x6876d0\nMOV             X1, X19                                                ; +0x98, 0x6876d4\nBLR             X22                                                    ; +0x9c, 0x6876d8\nLDR             X1, [X20]                                              ; +0xa0, 0x6876dc\nMOV             X0, X20                                                ; +0xa4, 0x6876e0\nLDR             S0, =0x3FE66666                                        ; +0xa8, 0x6876e4\nLDR             X1, [X1,#0x80]                                         ; +0xac, 0x6876e8\nBLR             X1                                                     ; +0xb0, 0x6876ec\nLDR             X1, [X20]                                              ; +0xb4, 0x6876f0\nMOV             X0, X20                                                ; +0xb8, 0x6876f4\nLDR             X1, [X1,#0x148]                                        ; +0xbc, 0x6876f8\nBLR             X1                                                     ; +0xc0, 0x6876fc\nFMOV            S2, #2.0                                               ; +0xc4, 0x687700\nLDR             S1, [X0,#4]                                            ; +0xc8, 0x687704\nMOV             X0, X19                                                ; +0xcc, 0x687708\nLDR             S0, [X29,#0xA0+var_20]                                 ; +0xd0, 0x68770c\nSTRB            WZR, [X29,#0xA0+var_10]                                ; +0xd4, 0x687710\nFSUB            S2, S1, S2                                             ; +0xd8, 0x687714\nSTRB            WZR, [X29,#0xA0+var_F]                                 ; +0xdc, 0x687718\nSTRB            WZR, [X29,#0xA0+var_E]                                 ; +0xe0, 0x68771c\nSTRB            WZR, [X29,#0xA0+var_D]                                 ; +0xe4, 0x687720\nFMOV            S1, S2                                                 ; +0xe8, 0x687724\nSTR             S2, [X21,#0x148]                                       ; +0xec, 0x687728\nBL              _ZN7cocos2d12CCLayerColor6createERKNS_10_ccColor4BEff; cocos2d::CCLayerColor::create(cocos2d::_ccColor4B const&,float,float) ; +0xf0, 0x68772c\nMOV             X1, X0                                                 ; +0xf4, 0x687730\nLDR             X3, [X21]                                              ; +0xf8, 0x687734\nMOV             X0, X21                                                ; +0xfc, 0x687738\nSTR             X1, [X21,#0x140]                                       ; +0x100, 0x68773c\nLDR             X3, [X3,#0x1C8]                                        ; +0x104, 0x687740\nBLR             X3                                                     ; +0x108, 0x687744\nLDR             X22, [X21,#0x140]                                      ; +0x10c, 0x687748\nFMOV            S0, WZR; float                                         ; +0x110, 0x68774c\nMOV             X0, X19; this                                          ; +0x114, 0x687750\nLDR             S1, [X29,#0xA0+var_1C]; float                          ; +0x118, 0x687754\nLDR             X1, [X22]                                              ; +0x11c, 0x687758\nLDR             X26, [X1,#0xB8]                                        ; +0x120, 0x68775c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x124, 0x687760\nMOV             X0, X22                                                ; +0x128, 0x687764\nMOV             X1, X19                                                ; +0x12c, 0x687768\nBLR             X26                                                    ; +0x130, 0x68776c\nLDR             X3, [X21,#0x140]                                       ; +0x134, 0x687770\nMOV             X1, X20                                                ; +0x138, 0x687774\nMOV             X0, X3                                                 ; +0x13c, 0x687778\nLDR             X3, [X3]                                               ; +0x140, 0x68777c\nLDR             X3, [X3,#0x1C8]                                        ; +0x144, 0x687780\nBLR             X3                                                     ; +0x148, 0x687784\nLDR             X2, [X29,#0xA0+var_38]                                 ; +0x14c, 0x687788\nMOV             W0, W2; this                                           ; +0x150, 0x68778c\nBL              _ZN10PriceLabel6createEi; PriceLabel::create(int)      ; +0x154, 0x687790\nMOV             X22, X0                                                ; +0x158, 0x687794\nLDR             X1, [X20]                                              ; +0x15c, 0x687798\nMOV             X0, X20                                                ; +0x160, 0x68779c\nLDR             X2, [X22]                                              ; +0x164, 0x6877a0\nLDR             X1, [X1,#0xC0]                                         ; +0x168, 0x6877a4\nLDR             X26, [X2,#0xB8]                                        ; +0x16c, 0x6877a8\nBLR             X1                                                     ; +0x170, 0x6877ac\nMOV             X27, X0                                                ; +0x174, 0x6877b0\nLDR             S0, flt_687930; float                                  ; +0x178, 0x6877b4\nMOV             X0, X24; this                                          ; +0x17c, 0x6877b8\nFMOV            S1, #-4.0; float                                       ; +0x180, 0x6877bc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x184, 0x6877c0\nMOV             X8, X19                                                ; +0x188, 0x6877c4\nMOV             X0, X27                                                ; +0x18c, 0x6877c8\nMOV             X1, X24                                                ; +0x190, 0x6877cc\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x194, 0x6877d0\nMOV             X0, X22                                                ; +0x198, 0x6877d4\nMOV             X1, X19                                                ; +0x19c, 0x6877d8\nBLR             X26                                                    ; +0x1a0, 0x6877dc\nFMOV            S1, S8; float                                          ; +0x1a4, 0x6877e0\nLDR             X1, [X22]                                              ; +0x1a8, 0x6877e4\nFMOV            S0, #1.0; float                                        ; +0x1ac, 0x6877e8\nMOV             X0, X19; this                                          ; +0x1b0, 0x6877ec\nLDR             X26, [X1,#0x128]                                       ; +0x1b4, 0x6877f0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b8, 0x6877f4\nMOV             X0, X22                                                ; +0x1bc, 0x6877f8\nMOV             X1, X19                                                ; +0x1c0, 0x6877fc\nBLR             X26                                                    ; +0x1c4, 0x687800\nLDR             S8, =0x3F666666                                        ; +0x1c8, 0x687804\nLDR             X1, [X22]                                              ; +0x1cc, 0x687808\nMOV             X0, X22                                                ; +0x1d0, 0x68780c\nFMOV            S0, S8                                                 ; +0x1d4, 0x687810\nLDR             X1, [X1,#0xA0]                                         ; +0x1d8, 0x687814\nBLR             X1                                                     ; +0x1dc, 0x687818\nLDR             X2, [X21,#0x140]                                       ; +0x1e0, 0x68781c\nMOV             X1, X22                                                ; +0x1e4, 0x687820\nMOV             X0, X2                                                 ; +0x1e8, 0x687824\nLDR             X2, [X2]                                               ; +0x1ec, 0x687828\nLDR             X2, [X2,#0x1C8]                                        ; +0x1f0, 0x68782c\nBLR             X2                                                     ; +0x1f4, 0x687830\nMOV             X0, X25                                                ; +0x1f8, 0x687834\nLDRB            W1, [X0],#1                                            ; +0x1fc, 0x687838\nTBZ             W1, #0, loc_687844                                     ; +0x200, 0x68783c\nLDR             X0, [X25,#0x10]; this                                  ; +0x204, 0x687840\nADRL            X1, aBigfontFnt; \"bigFont.fnt\"                         ; +0x208, 0x687844\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x210, 0x68784c\nMOV             X22, X0                                                ; +0x214, 0x687850\nLDR             X1, [X20]                                              ; +0x218, 0x687854\nMOV             X0, X20                                                ; +0x21c, 0x687858\nLDR             X2, [X22]                                              ; +0x220, 0x68785c\nLDR             X1, [X1,#0xC0]                                         ; +0x224, 0x687860\nLDR             X20, [X2,#0xB8]                                        ; +0x228, 0x687864\nBLR             X1                                                     ; +0x22c, 0x687868\nMOV             X25, X0                                                ; +0x230, 0x68786c\nLDR             S0, flt_687938; float                                  ; +0x234, 0x687870\nMOV             X0, X24; this                                          ; +0x238, 0x687874\nFMOV            S1, #-1.0; float                                       ; +0x23c, 0x687878\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x240, 0x68787c\nMOV             X8, X19                                                ; +0x244, 0x687880\nMOV             X0, X25                                                ; +0x248, 0x687884\nMOV             X1, X24                                                ; +0x24c, 0x687888\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x250, 0x68788c\nMOV             X0, X22                                                ; +0x254, 0x687890\nMOV             X1, X19                                                ; +0x258, 0x687894\nBLR             X20                                                    ; +0x25c, 0x687898\nFMOV            S0, WZR; float                                         ; +0x260, 0x68789c\nLDR             X1, [X22]                                              ; +0x264, 0x6878a0\nFMOV            S1, #0.5; float                                        ; +0x268, 0x6878a4\nMOV             X0, X19; this                                          ; +0x26c, 0x6878a8\nLDR             X20, [X1,#0x128]                                       ; +0x270, 0x6878ac\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x274, 0x6878b0\nMOV             X0, X22                                                ; +0x278, 0x6878b4\nMOV             X1, X19                                                ; +0x27c, 0x6878b8\nBLR             X20                                                    ; +0x280, 0x6878bc\nLDR             X1, [X22]                                              ; +0x284, 0x6878c0\nMOV             X0, X22                                                ; +0x288, 0x6878c4\nFMOV            S0, S8                                                 ; +0x28c, 0x6878c8\nLDR             X1, [X1,#0xA0]                                         ; +0x290, 0x6878cc\nBLR             X1                                                     ; +0x294, 0x6878d0\nLDR             X3, [X21,#0x140]                                       ; +0x298, 0x6878d4\nMOV             X1, X22                                                ; +0x29c, 0x6878d8\nMOV             W2, #2                                                 ; +0x2a0, 0x6878dc\nMOV             X0, X3                                                 ; +0x2a4, 0x6878e0\nLDR             X3, [X3]                                               ; +0x2a8, 0x6878e4\nLDR             X3, [X3,#0x1D0]                                        ; +0x2ac, 0x6878e8\nBLR             X3                                                     ; +0x2b0, 0x6878ec\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2b4, 0x6878f0\nLDR             X2, [X29,#0xA0+var_8]                                  ; +0x2b8, 0x6878f4\nMOV             W0, #1                                                 ; +0x2bc, 0x6878f8\nLDR             X1, [X23]                                              ; +0x2c0, 0x6878fc\nCMP             X2, X1                                                 ; +0x2c4, 0x687900\nB.NE            loc_687928                                             ; +0x2c8, 0x687904\nLDP             X19, X20, [SP,#0xA0+var_90]                            ; +0x2cc, 0x687908\nLDP             X21, X22, [SP,#0xA0+var_80]                            ; +0x2d0, 0x68790c\nLDP             X23, X24, [SP,#0xA0+var_70]                            ; +0x2d4, 0x687910\nLDP             X25, X26, [SP,#0xA0+var_60]                            ; +0x2d8, 0x687914\nLDR             X27, [SP,#0xA0+var_50]                                 ; +0x2dc, 0x687918\nLDR             D8, [SP,#0xA0+var_48]                                  ; +0x2e0, 0x68791c\nLDP             X29, X30, [SP+0xA0+var_A0],#0xA0                       ; +0x2e4, 0x687920\nRET                                                                    ; +0x2e8, 0x687924\nBL              .__stack_chk_fail                                      ; +0x2ec, 0x687928", "xrefs": ["BonusDropdown::create @ 0x6879d0", "<???> @ 0x84be0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}