{"type": "func", "start": 3018100, "end": 3018566, "name": "BonusDropdown::init", "pseudocode": "// \n// BonusDropdown::init from 0x2e0d74 to 0x2e0f46 (466 bytes)\n// \n// 1 xrefs:\n// > BonusDropdown::create @ 0x2e0fb6\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall BonusDropdown::init(float *a1, int a2, int a3)\n{\n  cocos2d::CCDirector *v5; // r0\n  cocos2d::CCSprite *v6; // r0\n  float v7; // s17\n  cocos2d::CCSprite *v8; // r5\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7\n  int v10; // r0\n  int v11; // r0\n  float width; // r1\n  float v13; // s15\n  int v14; // r0\n  float v15; // r3\n  int v16; // r7\n  void (__fastcall *v17)(int, cocos2d::CCPoint *); // r11\n  PriceLabel *v18; // r7\n  int v19; // r11\n  void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11\n  cocos2d::CCLabelBMFont *v21; // r7\n  void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10\n  int v23; // r5\n  void (__fastcall *v24)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r5\n  void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+4h] [bp-28h]\n  cocos2d::CCSize v27; // [sp+Ch] [bp-20h] BYREF\n  cocos2d::CCPoint v28; // [sp+14h] [bp-18h] BYREF\n  cocos2d::CCPoint v29; // [sp+1Ch] [bp-10h] BYREF\n\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v27, v5);\n  v6 = cocos2d::CCSprite::createWithSpriteFrameName(\"shopTabBG_001.png\");\n  v7 = v27.width * 0.5;\n  v8 = v6;\n  setPosition = v6->setPosition;\n  v10 = (int)v6->getContentSize(v6);\n  cocos2d::CCPoint::CCPoint(&v29, v7, *(float *)(v10 + 4) * 0.5);\n  setPosition(v8, &v29);\n  ((void (__fastcall *)(cocos2d::CCSprite *, int))v8->setScaleX)(v8, 1072064102);\n  v11 = (int)v8->getContentSize(v8);\n  width = v27.width;\n  v13 = *(float *)(v11 + 4);\n  v29.x = 0.0;\n  a1[67] = v13 - 2.0;\n  v14 = cocos2d::CCLayerColor::create(\n          (cocos2d::CCLayerColor *)&v29,\n          (const cocos2d::_ccColor4B *)LODWORD(width),\n          v13 - 2.0,\n          0.0);\n  v15 = *a1;\n  *((_DWORD *)a1 + 66) = v14;\n  (*(void (__fastcall **)(float *, int))(LODWORD(v15) + 220))(a1, v14);\n  v16 = *((_DWORD *)a1 + 66);\n  v17 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v16 + 92);\n  cocos2d::CCPoint::CCPoint(&v29, 0.0, v27.height);\n  v17(v16, &v29);\n  (*(void (__fastcall **)(int, cocos2d::CCSprite *))(**((_DWORD **)a1 + 66) + 220))(*((_DWORD *)a1 + 66), v8);\n  v18 = PriceLabel::create(a3);\n  v26 = v18->setPosition;\n  v19 = (int)v8->getPosition(v8);\n  cocos2d::CCPoint::CCPoint(&v28, 100.0, -4.0);\n  cocos2d::CCPoint::operator+(&v29, v19, &v28);\n  v26(v18, &v29);\n  setAnchorPoint = v18->setAnchorPoint;\n  cocos2d::CCPoint::CCPoint(&v29, 1.0, 0.5);\n  setAnchorPoint(v18, &v29);\n  ((void (__fastcall *)(PriceLabel *, int))v18->setScale)(v18, 1063675494);\n  (*(void (__fastcall **)(int, PriceLabel *))(**((_DWORD **)a1 + 66) + 220))(*((_DWORD *)a1 + 66), v18);\n  v21 = cocos2d::CCLabelBMFont::create();\n  v22 = v21->setPosition;\n  v23 = (int)v8->getPosition(v8);\n  cocos2d::CCPoint::CCPoint(&v28, -134.0, -1.0);\n  cocos2d::CCPoint::operator+(&v29, v23, &v28);\n  v22(v21, &v29);\n  v24 = v21->setAnchorPoint;\n  cocos2d::CCPoint::CCPoint(&v29, 0.0, 0.5);\n  v24(v21, &v29);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v21->setScale)(v21, 1063675494);\n  (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(**((_DWORD **)a1 + 66) + 224))(\n    *((_DWORD *)a1 + 66),\n    v21,\n    2);\n  return 1;\n}", "assembly": "; \n; BonusDropdown::init from 0x2e0d74 to 0x2e0f46 (466 bytes)\n; \n; 1 xrefs:\n; > BonusDropdown::create @ 0x2e0fb6\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x2e0d74\nMOV             R6, R0                                                 ; +0x4, 0x2e0d78\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x2E0D8A)                ; +0x6, 0x2e0d7a\nMOV             R9, R2                                                 ; +0xa, 0x2e0d7e\nVPUSH           {D8}                                                   ; +0xc, 0x2e0d80\nMOV             R10, R1                                                ; +0x10, 0x2e0d84\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x12, 0x2e0d86\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x14, 0x2e0d88\nLDR.W           R3, [R8]                                               ; +0x18, 0x2e0d8c\nVMOV.F32        S16, #0.5                                              ; +0x1c, 0x2e0d90\nSUB             SP, SP, #0x2C                                          ; +0x20, 0x2e0d94\nADD             R4, SP, #0x2C+var_10                                   ; +0x22, 0x2e0d96\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x24, 0x2e0d98\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x26, 0x2e0d9a\nMOV             R1, R0                                                 ; +0x2a, 0x2e0d9e\nADD             R0, SP, #0x2C+var_20; this                             ; +0x2c, 0x2e0da0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x2e, 0x2e0da2\nLDR             R0, =(aShoptabbg001Pn - 0x2E0DAC); \"shopTabBG_001.png\" ; +0x32, 0x2e0da6\nADD             R0, PC; \"shopTabBG_001.png\"                            ; +0x34, 0x2e0da8\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x36, 0x2e0daa\nVLDR            S17, [SP,#0x2C+var_20]                                 ; +0x3a, 0x2e0dae\nVMUL.F32        S17, S17, S16                                          ; +0x3e, 0x2e0db2\nLDR             R3, [R0]                                               ; +0x42, 0x2e0db6\nMOV             R5, R0                                                 ; +0x44, 0x2e0db8\nLDR             R7, [R3,#0x5C]                                         ; +0x46, 0x2e0dba\nLDR.W           R3, [R3,#0x9C]                                         ; +0x48, 0x2e0dbc\nBLX             R3                                                     ; +0x4c, 0x2e0dc0\nVMOV            R1, S17; float                                         ; +0x4e, 0x2e0dc2\nVLDR            S15, [R0,#4]                                           ; +0x52, 0x2e0dc6\nMOV             R0, R4; this                                           ; +0x56, 0x2e0dca\nVMUL.F32        S15, S15, S16                                          ; +0x58, 0x2e0dcc\nVMOV            R2, S15; float                                         ; +0x5c, 0x2e0dd0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x60, 0x2e0dd4\nMOV             R0, R5                                                 ; +0x64, 0x2e0dd8\nMOV             R1, R4                                                 ; +0x66, 0x2e0dda\nBLX             R7                                                     ; +0x68, 0x2e0ddc\nLDR             R3, [R5]                                               ; +0x6a, 0x2e0dde\nMOV             R0, R5                                                 ; +0x6c, 0x2e0de0\nLDR             R1, =0x3FE66666                                        ; +0x6e, 0x2e0de2\nLDR             R3, [R3,#0x40]                                         ; +0x70, 0x2e0de4\nBLX             R3                                                     ; +0x72, 0x2e0de6\nLDR             R3, [R5]                                               ; +0x74, 0x2e0de8\nMOV             R0, R5                                                 ; +0x76, 0x2e0dea\nLDR.W           R3, [R3,#0x9C]                                         ; +0x78, 0x2e0dec\nBLX             R3                                                     ; +0x7c, 0x2e0df0\nVMOV.F32        S14, #2.0                                              ; +0x7e, 0x2e0df2\nLDR             R1, [SP,#0x2C+var_20]                                  ; +0x82, 0x2e0df6\nMOVS            R3, #0                                                 ; +0x84, 0x2e0df8\nVLDR            S15, [R0,#4]                                           ; +0x86, 0x2e0dfa\nMOV             R0, R4                                                 ; +0x8a, 0x2e0dfe\nSTRB.W          R3, [SP,#0x2C+var_10]                                  ; +0x8c, 0x2e0e00\nSTRB.W          R3, [SP,#0x2C+var_F]                                   ; +0x90, 0x2e0e04\nSTRB.W          R3, [SP,#0x2C+var_E]                                   ; +0x94, 0x2e0e08\nVSUB.F32        S15, S15, S14                                          ; +0x98, 0x2e0e0c\nSTRB.W          R3, [SP,#0x2C+var_D]                                   ; +0x9c, 0x2e0e10\nVMOV            R2, S15                                                ; +0xa0, 0x2e0e14\nVSTR            S15, [R6,#0x10C]                                       ; +0xa4, 0x2e0e18\nBL              _ZN7cocos2d12CCLayerColor6createERKNS_10_ccColor4BEff; cocos2d::CCLayerColor::create(cocos2d::_ccColor4B const&,float,float) ; +0xa8, 0x2e0e1c\nLDR             R3, [R6]                                               ; +0xac, 0x2e0e20\nMOV             R1, R0                                                 ; +0xae, 0x2e0e22\nSTR.W           R0, [R6,#0x108]                                        ; +0xb0, 0x2e0e24\nMOV             R0, R6                                                 ; +0xb4, 0x2e0e28\nLDR.W           R3, [R3,#0xDC]                                         ; +0xb6, 0x2e0e2a\nBLX             R3                                                     ; +0xba, 0x2e0e2e\nLDR.W           R7, [R6,#0x108]                                        ; +0xbc, 0x2e0e30\nLDR             R2, [SP,#0x2C+var_1C]; float                           ; +0xc0, 0x2e0e34\nMOVS            R1, #0; float                                          ; +0xc2, 0x2e0e36\nMOV             R0, R4; this                                           ; +0xc4, 0x2e0e38\nLDR             R3, [R7]                                               ; +0xc6, 0x2e0e3a\nLDR.W           R11, [R3,#0x5C]                                        ; +0xc8, 0x2e0e3c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xcc, 0x2e0e40\nMOV             R0, R7                                                 ; +0xd0, 0x2e0e44\nMOV             R1, R4                                                 ; +0xd2, 0x2e0e46\nBLX             R11                                                    ; +0xd4, 0x2e0e48\nLDR.W           R0, [R6,#0x108]                                        ; +0xd6, 0x2e0e4a\nMOV             R1, R5                                                 ; +0xda, 0x2e0e4e\nLDR             R3, [R0]                                               ; +0xdc, 0x2e0e50\nLDR.W           R3, [R3,#0xDC]                                         ; +0xde, 0x2e0e52\nBLX             R3                                                     ; +0xe2, 0x2e0e56\nMOV             R0, R9; this                                           ; +0xe4, 0x2e0e58\nBL              _ZN10PriceLabel6createEi; PriceLabel::create(int)      ; +0xe6, 0x2e0e5a\nADD.W           R9, SP, #0x2C+var_18                                   ; +0xea, 0x2e0e5e\nLDR             R3, [R0]                                               ; +0xee, 0x2e0e62\nMOV             R7, R0                                                 ; +0xf0, 0x2e0e64\nMOV             R0, R5                                                 ; +0xf2, 0x2e0e66\nLDR             R3, [R3,#0x5C]                                         ; +0xf4, 0x2e0e68\nSTR             R3, [SP,#0x2C+var_28]                                  ; +0xf6, 0x2e0e6a\nLDR             R3, [R5]                                               ; +0xf8, 0x2e0e6c\nLDR             R3, [R3,#0x60]                                         ; +0xfa, 0x2e0e6e\nBLX             R3                                                     ; +0xfc, 0x2e0e70\nLDR             R1, flt_2E0F4C; float                                  ; +0xfe, 0x2e0e72\nLDR             R2, flt_2E0F50; float                                  ; +0x100, 0x2e0e74\nMOV             R11, R0                                                ; +0x102, 0x2e0e76\nMOV             R0, R9; this                                           ; +0x104, 0x2e0e78\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x2e0e7a\nMOV             R1, R11                                                ; +0x10a, 0x2e0e7e\nMOV             R2, R9                                                 ; +0x10c, 0x2e0e80\nMOV             R0, R4                                                 ; +0x10e, 0x2e0e82\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x110, 0x2e0e84\nMOV             R0, R7                                                 ; +0x114, 0x2e0e88\nMOV             R1, R4                                                 ; +0x116, 0x2e0e8a\nLDR             R3, [SP,#0x2C+var_28]                                  ; +0x118, 0x2e0e8c\nBLX             R3                                                     ; +0x11a, 0x2e0e8e\nLDR             R3, [R7]                                               ; +0x11c, 0x2e0e90\nVMOV            R2, S16; float                                         ; +0x11e, 0x2e0e92\nMOV.W           R1, #0x3F800000; float                                 ; +0x122, 0x2e0e96\nMOV             R0, R4; this                                           ; +0x126, 0x2e0e9a\nLDR.W           R11, [R3,#0x8C]                                        ; +0x128, 0x2e0e9c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x12c, 0x2e0ea0\nMOV             R0, R7                                                 ; +0x130, 0x2e0ea4\nMOV             R1, R4                                                 ; +0x132, 0x2e0ea6\nBLX             R11                                                    ; +0x134, 0x2e0ea8\nLDR             R3, [R7]                                               ; +0x136, 0x2e0eaa\nMOV             R0, R7                                                 ; +0x138, 0x2e0eac\nLDR             R1, =0x3F666666                                        ; +0x13a, 0x2e0eae\nLDR             R3, [R3,#0x50]                                         ; +0x13c, 0x2e0eb0\nBLX             R3                                                     ; +0x13e, 0x2e0eb2\nLDR.W           R0, [R6,#0x108]                                        ; +0x140, 0x2e0eb4\nMOV             R1, R7                                                 ; +0x144, 0x2e0eb8\nLDR             R3, [R0]                                               ; +0x146, 0x2e0eba\nLDR.W           R3, [R3,#0xDC]                                         ; +0x148, 0x2e0ebc\nBLX             R3                                                     ; +0x14c, 0x2e0ec0\nLDR             R1, =(aBigfontFnt - 0x2E0ECC); \"bigFont.fnt\"           ; +0x14e, 0x2e0ec2\nLDR.W           R0, [R10]; this                                        ; +0x150, 0x2e0ec4\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x154, 0x2e0ec8\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x156, 0x2e0eca\nLDR             R3, [R0]                                               ; +0x15a, 0x2e0ece\nMOV             R7, R0                                                 ; +0x15c, 0x2e0ed0\nMOV             R0, R5                                                 ; +0x15e, 0x2e0ed2\nLDR.W           R10, [R3,#0x5C]                                        ; +0x160, 0x2e0ed4\nLDR             R3, [R5]                                               ; +0x164, 0x2e0ed8\nLDR             R3, [R3,#0x60]                                         ; +0x166, 0x2e0eda\nBLX             R3                                                     ; +0x168, 0x2e0edc\nLDR             R1, flt_2E0F58; float                                  ; +0x16a, 0x2e0ede\nLDR             R2, flt_2E0F5C; float                                  ; +0x16c, 0x2e0ee0\nMOV             R5, R0                                                 ; +0x16e, 0x2e0ee2\nMOV             R0, R9; this                                           ; +0x170, 0x2e0ee4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x172, 0x2e0ee6\nMOV             R1, R5                                                 ; +0x176, 0x2e0eea\nMOV             R2, R9                                                 ; +0x178, 0x2e0eec\nMOV             R0, R4                                                 ; +0x17a, 0x2e0eee\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x17c, 0x2e0ef0\nMOV             R0, R7                                                 ; +0x180, 0x2e0ef4\nMOV             R1, R4                                                 ; +0x182, 0x2e0ef6\nBLX             R10                                                    ; +0x184, 0x2e0ef8\nLDR             R3, [R7]                                               ; +0x186, 0x2e0efa\nVMOV            R2, S16; float                                         ; +0x188, 0x2e0efc\nMOVS            R1, #0; float                                          ; +0x18c, 0x2e0f00\nMOV             R0, R4; this                                           ; +0x18e, 0x2e0f02\nLDR.W           R5, [R3,#0x8C]                                         ; +0x190, 0x2e0f04\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x194, 0x2e0f08\nMOV             R0, R7                                                 ; +0x198, 0x2e0f0c\nMOV             R1, R4                                                 ; +0x19a, 0x2e0f0e\nBLX             R5                                                     ; +0x19c, 0x2e0f10\nLDR             R3, [R7]                                               ; +0x19e, 0x2e0f12\nMOV             R0, R7                                                 ; +0x1a0, 0x2e0f14\nLDR             R1, =0x3F666666                                        ; +0x1a2, 0x2e0f16\nLDR             R3, [R3,#0x50]                                         ; +0x1a4, 0x2e0f18\nBLX             R3                                                     ; +0x1a6, 0x2e0f1a\nLDR.W           R0, [R6,#0x108]                                        ; +0x1a8, 0x2e0f1c\nMOVS            R2, #2                                                 ; +0x1ac, 0x2e0f20\nMOV             R1, R7                                                 ; +0x1ae, 0x2e0f22\nLDR             R3, [R0]                                               ; +0x1b0, 0x2e0f24\nLDR.W           R3, [R3,#0xE0]                                         ; +0x1b2, 0x2e0f26\nBLX             R3                                                     ; +0x1b6, 0x2e0f2a\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x1b8, 0x2e0f2c\nLDR.W           R3, [R8]                                               ; +0x1ba, 0x2e0f2e\nMOVS            R0, #1                                                 ; +0x1be, 0x2e0f32\nCMP             R2, R3                                                 ; +0x1c0, 0x2e0f34\nBEQ             loc_2E0F3C                                             ; +0x1c2, 0x2e0f36\nBLX             __stack_chk_fail                                       ; +0x1c4, 0x2e0f38\nADD             SP, SP, #0x2C ; ','                                    ; +0x1c8, 0x2e0f3c\nVPOP            {D8}                                                   ; +0x1ca, 0x2e0f3e\nPOP.W           {R4-R11,PC}                                            ; +0x1ce, 0x2e0f42", "xrefs": ["BonusDropdown::create @ 0x2e0fb6"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}