{"type": "func", "start": 4691140, "end": 4691294, "name": "GJBaseGameLayer::updateGuideArt", "pseudocode": "// \n// GJBaseGameLayer::updateGuideArt from 0x4794c4 to 0x47955e (154 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::update @ 0x4971c4\n// > GJBaseGameLayer::update @ 0x497d2c\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\nvoid GJBaseGameLayer::updateGuideArt(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *m_indicatorSprites; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r4\n  cocos2d::CCObject **v5; // r6\n  int *v6; // r5\n  int *v7; // t1\n  int v8; // r0\n  int v9; // lr\n  int v10; // r2\n  void (__fastcall *v11)(int *, _DWORD); // r8\n  float v12; // s15\n  int *v13; // r0\n  float v14; // r1\n\n  m_indicatorSprites = a1->m_indicatorSprites;\n  if ( m_indicatorSprites )\n  {\n    data = m_indicatorSprites->data;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v5 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v5 )\n      {\n        v7 = (int *)*arr++;\n        v6 = v7;\n        if ( !v7 )\n          break;\n        v8 = (*(int (__fastcall **)(int *))(*v6 + 248))(v6);\n        if ( *(_BYTE *)(v8 + 657) )\n        {\n          v9 = *v6;\n          v10 = *(_DWORD *)v8;\n          if ( *(_DWORD *)(v8 + 884) == 84 && a1->m_player1->m_isUpsideDown )\n          {\n            v11 = *(void (__fastcall **)(int *, _DWORD))(v9 + 172);\n            v12 = COERCE_FLOAT((*(int (**)(void))(v10 + 176))());\n            v13 = v6;\n            v14 = 180.0 - v12;\n          }\n          else\n          {\n            v11 = *(void (__fastcall **)(int *, _DWORD))(v9 + 172);\n            LODWORD(v14) = (*(int (__fastcall **)(int))(v10 + 176))(v8) ^ 0x80000000;\n            v13 = v6;\n          }\n          v11(v13, LODWORD(v14));\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateGuideArt from 0x4794c4 to 0x47955e (154 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::update @ 0x4971c4\n; > GJBaseGameLayer::update @ 0x497d2c\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\nMOVW            R3, #0x2C10                                            ; +0x0, 0x4794c4\nLDR             R3, [R0,R3]                                            ; +0x4, 0x4794c8\nPUSH.W          {R4-R8,LR}                                             ; +0x6, 0x4794ca\nMOV             R7, R0                                                 ; +0xa, 0x4794ce\nVPUSH           {D8}                                                   ; +0xc, 0x4794d0\nCMP             R3, #0                                                 ; +0x10, 0x4794d4\nBEQ             loc_479556                                             ; +0x12, 0x4794d6\nLDR             R2, [R3,#0x34]                                         ; +0x14, 0x4794d8\nLDR             R3, [R2]                                               ; +0x16, 0x4794da\nCMP             R3, #0                                                 ; +0x18, 0x4794dc\nBEQ             loc_479556                                             ; +0x1a, 0x4794de\nADD.W           R3, R3, #0x40000000                                    ; +0x1c, 0x4794e0\nLDR             R4, [R2,#0xC]                                          ; +0x20, 0x4794e4\nSUBS            R3, #1                                                 ; +0x22, 0x4794e6\nVLDR            S16, =180.0                                            ; +0x24, 0x4794e8\nADD.W           R6, R4, R3,LSL#2                                       ; +0x28, 0x4794ec\nCMP             R4, R6                                                 ; +0x2c, 0x4794f0\nBHI             loc_479556                                             ; +0x2e, 0x4794f2\nLDR.W           R5, [R4],#4                                            ; +0x30, 0x4794f4\nCBZ             R5, loc_479556                                         ; +0x34, 0x4794f8\nLDR             R3, [R5]                                               ; +0x36, 0x4794fa\nMOV             R0, R5                                                 ; +0x38, 0x4794fc\nLDR.W           R3, [R3,#0xF8]                                         ; +0x3a, 0x4794fe\nBLX             R3                                                     ; +0x3e, 0x479502\nLDRB.W          R2, [R0,#0x291]                                        ; +0x40, 0x479504\nMOV             R3, R0                                                 ; +0x44, 0x479508\nCMP             R2, #0                                                 ; +0x46, 0x47950a\nBEQ             loc_4794F0                                             ; +0x48, 0x47950c\nLDR.W           R2, [R3,#0x374]                                        ; +0x4a, 0x47950e\nLDR.W           LR, [R5]                                               ; +0x4e, 0x479512\nCMP             R2, #0x54 ; 'T'                                        ; +0x52, 0x479516\nLDR             R2, [R3]                                               ; +0x54, 0x479518\nBNE             loc_479540                                             ; +0x56, 0x47951a\nLDR.W           R1, [R7,#0x8B8]                                        ; +0x58, 0x47951c\nLDRB.W          R1, [R1,#0x7B7]                                        ; +0x5c, 0x479520\nCBZ             R1, loc_479540                                         ; +0x60, 0x479524\nLDR.W           R3, [R2,#0xB0]                                         ; +0x62, 0x479526\nLDR.W           R8, [LR,#0xAC]                                         ; +0x66, 0x47952a\nBLX             R3                                                     ; +0x6a, 0x47952e\nVMOV            S15, R0                                                ; +0x6c, 0x479530\nMOV             R0, R5                                                 ; +0x70, 0x479534\nVSUB.F32        S15, S16, S15                                          ; +0x72, 0x479536\nVMOV            R1, S15                                                ; +0x76, 0x47953a\nB               loc_479552                                             ; +0x7a, 0x47953e\nLDR.W           R2, [R2,#0xB0]                                         ; +0x7c, 0x479540\nMOV             R0, R3                                                 ; +0x80, 0x479544\nLDR.W           R8, [LR,#0xAC]                                         ; +0x82, 0x479546\nBLX             R2                                                     ; +0x86, 0x47954a\nEOR.W           R1, R0, #0x80000000                                    ; +0x88, 0x47954c\nMOV             R0, R5                                                 ; +0x8c, 0x479550\nBLX             R8                                                     ; +0x8e, 0x479552\nB               loc_4794F0                                             ; +0x90, 0x479554\nVPOP            {D8}                                                   ; +0x92, 0x479556\nPOP.W           {R4-R8,PC}                                             ; +0x96, 0x47955a", "xrefs": ["GJBaseGameLayer::update @ 0x4971c4", "GJBaseGameLayer::update @ 0x497d2c"], "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"}