{"type": "func", "start": 7927404, "end": 7927972, "name": "AudioEffectsLayer::getBGSquare", "pseudocode": "// \n// AudioEffectsLayer::getBGSquare from 0x78f66c to 0x78f8a4 (568 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x91c98\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\ncocos2d::CCSprite *AudioEffectsLayer::getBGSquare(AudioEffectsLayer *a1)\n{\n  unsigned int v1; // w19\n  float v2; // s8\n  float v3; // s0\n  float v4; // s1\n  cocos2d::CCSprite *v5; // x19\n  float v7; // s0\n  float v8; // s1\n  float v9; // s0\n  float v10; // s1\n  float v11; // s0\n  float v12; // s1\n  float v13; // s0\n  float v14; // s1\n  cocos2d::CCPoint v15; // [xsp+48h] [xbp+48h] BYREF\n  cocos2d::CCPoint v16; // [xsp+50h] [xbp+50h] BYREF\n\n  v1 = llroundf((float)((float)rand() * 4.6566e-10) * 14.0);\n  cocos2d::CCPoint::CCPoint(&v15);\n  switch ( v1 )\n  {\n    case 0u:\n      cocos2d::CCPoint::CCPoint(&v16, 60.0, 60.0);\n      cocos2d::CCPoint::operator=(&v15, v11, v12);\n      goto LABEL_7;\n    case 1u:\n      v7 = 170.0;\n      v8 = 40.0;\n      goto LABEL_6;\n    case 2u:\n      v7 = 280.0;\n      v8 = 60.0;\n      goto LABEL_6;\n    case 3u:\n      v7 = 430.0;\n      v8 = 77.0;\n      goto LABEL_6;\n    case 4u:\n      cocos2d::CCPoint::CCPoint(&v16, 25.0, 150.0);\n      cocos2d::CCPoint::operator=(&v15, v13, v14);\n      goto LABEL_7;\n    case 5u:\n      v7 = 90.0;\n      v8 = 150.0;\n      goto LABEL_6;\n    case 6u:\n      v7 = 170.0;\n      v8 = 380.0;\n      goto LABEL_6;\n    case 7u:\n      v7 = 280.0;\n      goto LABEL_9;\n    case 8u:\n      v7 = 360.0;\n      v8 = 186.0;\n      goto LABEL_6;\n    case 9u:\n      v7 = 360.0;\n      v8 = 230.0;\n      goto LABEL_6;\n    case 0xAu:\n      v7 = 446.0;\n      v8 = 230.0;\n      goto LABEL_6;\n    case 0xBu:\n      v7 = 40.0;\n      v8 = 234.0;\n      goto LABEL_6;\n    case 0xCu:\n      v7 = 150.0;\n      v8 = 250.0;\n      goto LABEL_6;\n    case 0xDu:\n      v7 = 300.0;\n      v8 = 325.0;\n      goto LABEL_6;\n    case 0xEu:\n      v7 = 0.0;\nLABEL_9:\n      v8 = 177.0;\nLABEL_6:\n      cocos2d::CCPoint::CCPoint(&v16, v7, v8);\n      cocos2d::CCPoint::operator=(&v15, v9, v10);\nLABEL_7:\n      v2 = flt_ECEBF0[v1];\n      break;\n    default:\n      v2 = 10.0;\n      cocos2d::CCPoint::CCPoint(&v16, 0.0, 0.0);\n      cocos2d::CCPoint::operator=(&v15, v3, v4);\n      break;\n  }\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(\"whiteSquare60_001.png\");\n  v5->setPosition(v5, &v15);\n  v5->setScale(v5, v2 / v5->m_obRect.size.width);\n  return v5;\n}", "assembly": "; \n; AudioEffectsLayer::getBGSquare from 0x78f66c to 0x78f8a4 (568 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x91c98\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x78f66c\nMOV             X29, SP                                                ; +0x4, 0x78f670\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x78f674\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x78f678\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x78f67c\nSTR             D8, [SP,#0x60+var_38]                                  ; +0x14, 0x78f680\nADD             X21, X29, #0x60+var_18                                 ; +0x18, 0x78f684\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x78f688\nLDR             X0, [X0]                                               ; +0x20, 0x78f68c\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x24, 0x78f690\nBL              .rand                                                  ; +0x28, 0x78f694\nSCVTF           S0, W0                                                 ; +0x2c, 0x78f698\nMOV             X0, X21; this                                          ; +0x30, 0x78f69c\nLDR             S1, =0x30000000                                        ; +0x34, 0x78f6a0\nFMUL            S0, S0, S1                                             ; +0x38, 0x78f6a4\nFMOV            S1, #14.0                                              ; +0x3c, 0x78f6a8\nFMUL            S0, S0, S1                                             ; +0x40, 0x78f6ac\nFCVTAS          W19, S0                                                ; +0x44, 0x78f6b0\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x48, 0x78f6b4\nCMP             W19, #0xE; switch 15 cases                             ; +0x4c, 0x78f6b8\nB.LS            loc_78F74C                                             ; +0x50, 0x78f6bc\nFMOV            S0, WZR; jumptable 000000000078F760 default case       ; +0x54, 0x78f6c0\nADD             X1, X29, #0x60+var_10                                  ; +0x58, 0x78f6c4\nMOV             X0, X1; this                                           ; +0x5c, 0x78f6c8\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x60, 0x78f6cc\nFMOV            S8, #10.0                                              ; +0x64, 0x78f6d0\nFMOV            S1, S0; float                                          ; +0x68, 0x78f6d4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x6c, 0x78f6d8\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x70, 0x78f6dc\nMOV             X0, X21                                                ; +0x74, 0x78f6e0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x78, 0x78f6e4\nADRL            X0, aWhitesquare600; \"whiteSquare60_001.png\"           ; +0x7c, 0x78f6e8\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x84, 0x78f6f0\nLDR             X2, [X0]                                               ; +0x88, 0x78f6f4\nMOV             X1, X21                                                ; +0x8c, 0x78f6f8\nMOV             X19, X0                                                ; +0x90, 0x78f6fc\nLDR             X2, [X2,#0xB8]                                         ; +0x94, 0x78f700\nBLR             X2                                                     ; +0x98, 0x78f704\nLDR             S0, [X19,#0x1B0]                                       ; +0x9c, 0x78f708\nLDR             X1, [X19]                                              ; +0xa0, 0x78f70c\nMOV             X0, X19                                                ; +0xa4, 0x78f710\nFDIV            S0, S8, S0                                             ; +0xa8, 0x78f714\nLDR             X1, [X1,#0xA0]                                         ; +0xac, 0x78f718\nBLR             X1                                                     ; +0xb0, 0x78f71c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb4, 0x78f720\nMOV             X0, X19                                                ; +0xb8, 0x78f724\nLDR             X19, [X29,#0x60+var_8]                                 ; +0xbc, 0x78f728\nLDR             X1, [X20]                                              ; +0xc0, 0x78f72c\nCMP             X19, X1                                                ; +0xc4, 0x78f730\nB.NE            loc_78F8A0                                             ; +0xc8, 0x78f734\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xcc, 0x78f738\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xd0, 0x78f73c\nLDR             D8, [SP,#0x60+var_38]                                  ; +0xd4, 0x78f740\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xd8, 0x78f744\nRET                                                                    ; +0xdc, 0x78f748\nADRL            X0, jpt_78F760                                         ; +0xe0, 0x78f74c\nLDRB            W0, [X0,W19,UXTW]                                      ; +0xe8, 0x78f754\nADR             X1, loc_78F764; jumptable 000000000078F760 case 13     ; +0xec, 0x78f758\nADD             X0, X1, W0,SXTB#2                                      ; +0xf0, 0x78f75c\nBR              X0; switch jump                                        ; +0xf4, 0x78f760\nLDR             S0, flt_78F8E8; jumptable 000000000078F760 case 13     ; +0xf8, 0x78f764\nADD             X1, X29, #0x60+var_10                                  ; +0xfc, 0x78f768\nLDR             S1, flt_78F8EC; float                                  ; +0x100, 0x78f76c\nMOV             X0, X1; this                                           ; +0x104, 0x78f770\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x108, 0x78f774\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x10c, 0x78f778\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x110, 0x78f77c\nMOV             X0, X21                                                ; +0x114, 0x78f780\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x118, 0x78f784\nADRL            X0, flt_ECEBF0                                         ; +0x11c, 0x78f788\nLDR             S8, [X0,W19,UXTW#2]                                    ; +0x124, 0x78f790\nB               loc_78F6E8                                             ; +0x128, 0x78f794\nFMOV            S0, WZR; jumptable 000000000078F760 case 14            ; +0x12c, 0x78f798\nADD             X1, X29, #0x60+var_10                                  ; +0x130, 0x78f79c\nLDR             S1, =0x43310000                                        ; +0x134, 0x78f7a0\nB               loc_78F770                                             ; +0x138, 0x78f7a4\nLDR             S0, flt_78F8A8; jumptable 000000000078F760 case 0      ; +0x13c, 0x78f7a8\nADD             X1, X29, #0x60+var_10                                  ; +0x140, 0x78f7ac\nMOV             X0, X1; this                                           ; +0x144, 0x78f7b0\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x148, 0x78f7b4\nFMOV            S1, S0; float                                          ; +0x14c, 0x78f7b8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x150, 0x78f7bc\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x154, 0x78f7c0\nMOV             X0, X21                                                ; +0x158, 0x78f7c4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x15c, 0x78f7c8\nB               loc_78F788                                             ; +0x160, 0x78f7cc\nLDR             S0, =0x432A0000; jumptable 000000000078F760 case 1     ; +0x164, 0x78f7d0\nADD             X1, X29, #0x60+var_10                                  ; +0x168, 0x78f7d4\nLDR             S1, =0x42200000                                        ; +0x16c, 0x78f7d8\nB               loc_78F770                                             ; +0x170, 0x78f7dc\nLDR             S0, =0x438C0000; jumptable 000000000078F760 case 2     ; +0x174, 0x78f7e0\nADD             X1, X29, #0x60+var_10                                  ; +0x178, 0x78f7e4\nLDR             S1, flt_78F8A8                                         ; +0x17c, 0x78f7e8\nB               loc_78F770                                             ; +0x180, 0x78f7ec\nLDR             S0, =0x43D70000; jumptable 000000000078F760 case 3     ; +0x184, 0x78f7f0\nADD             X1, X29, #0x60+var_10                                  ; +0x188, 0x78f7f4\nLDR             S1, =0x429A0000                                        ; +0x18c, 0x78f7f8\nB               loc_78F770                                             ; +0x190, 0x78f7fc\nLDR             S1, flt_78F8C0; jumptable 000000000078F760 case 4      ; +0x194, 0x78f800\nADD             X1, X29, #0x60+var_10                                  ; +0x198, 0x78f804\nMOV             X0, X1; this                                           ; +0x19c, 0x78f808\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x1a0, 0x78f80c\nFMOV            S0, #25.0; float                                       ; +0x1a4, 0x78f810\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a8, 0x78f814\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x1ac, 0x78f818\nMOV             X0, X21                                                ; +0x1b0, 0x78f81c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x1b4, 0x78f820\nB               loc_78F788                                             ; +0x1b8, 0x78f824\nLDR             S0, =0x42B40000; jumptable 000000000078F760 case 5     ; +0x1bc, 0x78f828\nADD             X1, X29, #0x60+var_10                                  ; +0x1c0, 0x78f82c\nLDR             S1, flt_78F8C0                                         ; +0x1c4, 0x78f830\nB               loc_78F770                                             ; +0x1c8, 0x78f834\nLDR             S0, =0x432A0000; jumptable 000000000078F760 case 6     ; +0x1cc, 0x78f838\nADD             X1, X29, #0x60+var_10                                  ; +0x1d0, 0x78f83c\nLDR             S1, =0x43BE0000                                        ; +0x1d4, 0x78f840\nB               loc_78F770                                             ; +0x1d8, 0x78f844\nLDR             S0, =0x438C0000; jumptable 000000000078F760 case 7     ; +0x1dc, 0x78f848\nB               loc_78F79C                                             ; +0x1e0, 0x78f84c\nLDR             S0, =0x43B40000; jumptable 000000000078F760 case 8     ; +0x1e4, 0x78f850\nADD             X1, X29, #0x60+var_10                                  ; +0x1e8, 0x78f854\nLDR             S1, =0x433A0000                                        ; +0x1ec, 0x78f858\nB               loc_78F770                                             ; +0x1f0, 0x78f85c\nLDR             S0, =0x43B40000; jumptable 000000000078F760 case 9     ; +0x1f4, 0x78f860\nADD             X1, X29, #0x60+var_10                                  ; +0x1f8, 0x78f864\nLDR             S1, =0x43660000                                        ; +0x1fc, 0x78f868\nB               loc_78F770                                             ; +0x200, 0x78f86c\nLDR             S0, =0x43DF0000; jumptable 000000000078F760 case 10    ; +0x204, 0x78f870\nADD             X1, X29, #0x60+var_10                                  ; +0x208, 0x78f874\nLDR             S1, =0x43660000                                        ; +0x20c, 0x78f878\nB               loc_78F770                                             ; +0x210, 0x78f87c\nLDR             S0, =0x42200000; jumptable 000000000078F760 case 11    ; +0x214, 0x78f880\nADD             X1, X29, #0x60+var_10                                  ; +0x218, 0x78f884\nLDR             S1, =0x436A0000                                        ; +0x21c, 0x78f888\nB               loc_78F770                                             ; +0x220, 0x78f88c\nLDR             S0, flt_78F8C0; jumptable 000000000078F760 case 12     ; +0x224, 0x78f890\nADD             X1, X29, #0x60+var_10                                  ; +0x228, 0x78f894\nLDR             S1, =0x437A0000                                        ; +0x22c, 0x78f898\nB               loc_78F770                                             ; +0x230, 0x78f89c\nBL              .__stack_chk_fail                                      ; +0x234, 0x78f8a0", "xrefs": ["<???> @ 0x91c98"], "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"}