{"type": "func", "start": 4297061136, "end": 4297061348, "name": "GJBaseGameLayer::updateGuideArt", "pseudocode": "// \n// GJBaseGameLayer::updateGuideArt from 0x1001ff310 to 0x1001ff3e4 (212 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::update @ 0x1001fef94\n// > GJBaseGameLayer::update @ 0x1001ff244\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 __fastcall GJBaseGameLayer::updateGuideArt(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *m_indicatorSprites; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  cocos2d::CCObject **arr; // x21\n  unsigned __int64 v6; // x22\n  cocos2d::CCObject *v7; // x20\n  __int64 v8; // x0\n  __n128 v9; // q0\n\n  m_indicatorSprites = a1->m_indicatorSprites;\n  if ( m_indicatorSprites )\n  {\n    data = m_indicatorSprites->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v6 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        v7 = *arr;\n        if ( !*arr )\n          break;\n        v8 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v7->__vftable[6].~CCObject_0)(*arr);\n        if ( *(_BYTE *)(v8 + 773) == 1 )\n        {\n          if ( *(_DWORD *)(v8 + 1028) == 84 && a1->m_player1->m_isUpsideDown )\n            v9.n128_f32[0] = 180.0 - (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 352LL))(v8);\n          else\n            v9.n128_f32[0] = -(*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 352LL))(v8);\n          ((void (__fastcall *)(cocos2d::CCObject *, __n128))v7->__vftable[4].isEqual)(v7, v9);\n        }\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v6 );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateGuideArt from 0x1001ff310 to 0x1001ff3e4 (212 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::update @ 0x1001fef94\n; > GJBaseGameLayer::update @ 0x1001ff244\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\nLDR             X8, [X0,#0x32A0]                                       ; +0x0, 0x1001ff310\nCBZ             X8, locret_1001FF3E0                                   ; +0x4, 0x1001ff314\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x8, 0x1001ff318\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0xc, 0x1001ff31c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x10, 0x1001ff320\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x14, 0x1001ff324\nADD             X29, SP, #0x30                                         ; +0x18, 0x1001ff328\nLDR             X9, [X8,#0x38]                                         ; +0x1c, 0x1001ff32c\nLDR             W8, [X9]                                               ; +0x20, 0x1001ff330\nCBZ             W8, loc_1001FF3D0                                      ; +0x24, 0x1001ff334\nMOV             X19, X0                                                ; +0x28, 0x1001ff338\nLDR             X21, [X9,#0x10]                                        ; +0x2c, 0x1001ff33c\nADD             X8, X21, X8,LSL#3                                      ; +0x30, 0x1001ff340\nSUB             X22, X8, #8                                            ; +0x34, 0x1001ff344\nMOV             W23, #0x43340000                                       ; +0x38, 0x1001ff348\nLDR             X20, [X21]                                             ; +0x3c, 0x1001ff34c\nCBZ             X20, loc_1001FF3D0                                     ; +0x40, 0x1001ff350\nLDR             X8, [X20]                                              ; +0x44, 0x1001ff354\nLDR             X8, [X8,#0x1F0]                                        ; +0x48, 0x1001ff358\nMOV             X0, X20                                                ; +0x4c, 0x1001ff35c\nBLR             X8                                                     ; +0x50, 0x1001ff360\nLDRB            W8, [X0,#0x305]                                        ; +0x54, 0x1001ff364\nCMP             W8, #1                                                 ; +0x58, 0x1001ff368\nB.NE            loc_1001FF3C4                                          ; +0x5c, 0x1001ff36c\nLDR             W8, [X0,#0x404]                                        ; +0x60, 0x1001ff370\nCMP             W8, #0x54 ; 'T'                                        ; +0x64, 0x1001ff374\nB.NE            loc_1001FF3A4                                          ; +0x68, 0x1001ff378\nLDR             X8, [X19,#0xCC8]                                       ; +0x6c, 0x1001ff37c\nLDRB            W8, [X8,#0x977]                                        ; +0x70, 0x1001ff380\nCMP             W8, #1                                                 ; +0x74, 0x1001ff384\nB.NE            loc_1001FF3A4                                          ; +0x78, 0x1001ff388\nLDR             X8, [X0]                                               ; +0x7c, 0x1001ff38c\nLDR             X8, [X8,#0x160]                                        ; +0x80, 0x1001ff390\nBLR             X8                                                     ; +0x84, 0x1001ff394\nFMOV            S1, W23                                                ; +0x88, 0x1001ff398\nFSUB            S0, S1, S0                                             ; +0x8c, 0x1001ff39c\nB               loc_1001FF3B4                                          ; +0x90, 0x1001ff3a0\nLDR             X8, [X0]                                               ; +0x94, 0x1001ff3a4\nLDR             X8, [X8,#0x160]                                        ; +0x98, 0x1001ff3a8\nBLR             X8                                                     ; +0x9c, 0x1001ff3ac\nFNEG            S0, S0                                                 ; +0xa0, 0x1001ff3b0\nLDR             X8, [X20]                                              ; +0xa4, 0x1001ff3b4\nLDR             X8, [X8,#0x158]                                        ; +0xa8, 0x1001ff3b8\nMOV             X0, X20                                                ; +0xac, 0x1001ff3bc\nBLR             X8                                                     ; +0xb0, 0x1001ff3c0\nADD             X21, X21, #8                                           ; +0xb4, 0x1001ff3c4\nCMP             X21, X22                                               ; +0xb8, 0x1001ff3c8\nB.LS            loc_1001FF34C                                          ; +0xbc, 0x1001ff3cc\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc0, 0x1001ff3d0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc4, 0x1001ff3d4\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xc8, 0x1001ff3d8\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xcc, 0x1001ff3dc\nRET                                                                    ; +0xd0, 0x1001ff3e0", "xrefs": ["GJBaseGameLayer::update @ 0x1001fef94", "GJBaseGameLayer::update @ 0x1001ff244"], "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"}