{"type": "func", "start": 4298672640, "end": 4298672812, "name": "LabelGameObject::setupCustomSprites", "pseudocode": "// \n// LabelGameObject::setupCustomSprites from 0x100388a00 to 0x100388aac (172 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007f6608\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 LabelGameObject::setupCustomSprites(__int64 a1, __int64 a2)\n{\n  void *v3[2]; // [xsp+8h] [xbp-48h] BYREF\n  char v4; // [xsp+1Fh] [xbp-31h]\n  void *__p[2]; // [xsp+20h] [xbp-30h] BYREF\n  __int64 v6; // [xsp+30h] [xbp-20h]\n\n  if ( *(char *)(a2 + 23) < 0 )\n  {\n    sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)a2;\n    v6 = *(_QWORD *)(a2 + 16);\n  }\n  GameObject::setupCustomSprites(a1, __p);\n  if ( SHIBYTE(v6) < 0 )\n    operator delete(__p[0]);\n  if ( *(_DWORD *)(a1 + 1028) == 1615 )\n  {\n    *(_BYTE *)(a1 + 559) = 1;\n    sub_100009900(v3, \"0\");\n    LabelGameObject::createLabel(a1, v3);\n    if ( v4 < 0 )\n      operator delete(v3[0]);\n  }\n}", "assembly": "; \n; LabelGameObject::setupCustomSprites from 0x100388a00 to 0x100388aac (172 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007f6608\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x100388a00\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x100388a04\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x100388a08\nADD             X29, SP, #0x50                                         ; +0xc, 0x100388a0c\nMOV             X19, X0                                                ; +0x10, 0x100388a10\nLDRSB           W8, [X1,#0x17]                                         ; +0x14, 0x100388a14\nTBNZ            W8, #0x1F, loc_100388A30                               ; +0x18, 0x100388a18\nLDR             Q0, [X1]                                               ; +0x1c, 0x100388a1c\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x20, 0x100388a20\nLDR             X8, [X1,#0x10]                                         ; +0x24, 0x100388a24\nSTR             X8, [SP,#0x50+var_20]                                  ; +0x28, 0x100388a28\nB               loc_100388A40                                          ; +0x2c, 0x100388a2c\nLDP             X8, X2, [X1]                                           ; +0x30, 0x100388a30\nADD             X0, SP, #0x50+__p; __dst                               ; +0x34, 0x100388a34\nMOV             X1, X8; __src                                          ; +0x38, 0x100388a38\nBL              sub_1000097D0                                          ; +0x3c, 0x100388a3c\nADD             X1, SP, #0x50+__p                                      ; +0x40, 0x100388a40\nMOV             X0, X19                                                ; +0x44, 0x100388a44\nBL              GameObject__setupCustomSprites                         ; +0x48, 0x100388a48\nLDRSB           W8, [SP,#0x50+var_20+7]                                ; +0x4c, 0x100388a4c\nTBZ             W8, #0x1F, loc_100388A5C                               ; +0x50, 0x100388a50\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x54, 0x100388a54\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x100388a58\nLDR             W8, [X19,#0x404]                                       ; +0x5c, 0x100388a5c\nCMP             W8, #0x64F                                             ; +0x60, 0x100388a60\nB.NE            loc_100388A9C                                          ; +0x64, 0x100388a64\nMOV             W8, #1                                                 ; +0x68, 0x100388a68\nSTRB            W8, [X19,#0x22F]                                       ; +0x6c, 0x100388a6c\nADRL            X1, a0; \"0\"                                            ; +0x70, 0x100388a70\nADD             X0, SP, #0x50+var_48; int                              ; +0x78, 0x100388a78\nBL              sub_100009900                                          ; +0x7c, 0x100388a7c\nADD             X1, SP, #0x50+var_48                                   ; +0x80, 0x100388a80\nMOV             X0, X19                                                ; +0x84, 0x100388a84\nBL              LabelGameObject__createLabel                           ; +0x88, 0x100388a88\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0x8c, 0x100388a8c\nTBZ             W8, #0x1F, loc_100388A9C                               ; +0x90, 0x100388a90\nLDR             X0, [SP,#0x50+var_48]; __p                             ; +0x94, 0x100388a94\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x100388a98\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x9c, 0x100388a9c\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xa0, 0x100388aa0\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa4, 0x100388aa4\nRET                                                                    ; +0xa8, 0x100388aa8", "xrefs": ["<???> @ 0x1007f6608"], "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"}