// // GJPathPage::showCantAffordMessage from 0xa71804 to 0xa71e58 (1620 bytes) // // 2 xrefs: // > GJPathPage::onUnlock @ 0xa71f3c // > @ 0x3ea60 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJPathPage::showCantAffordMessage(GJPathPage *a1, GJStoreItem *a2) { char *v4; // x1 int m_dialogIndex; // w0 int v6; // w26 DialogObject *v7; // x0 DialogLayer *v8; // x23 void *v9; // x0 void *v10; // x0 __int64 v11; // x1 void *v12; // x0 void *v13; // x0 __int64 *v14; // x0 void *v15; // x0 void *v16; // x0 __int64 *v17; // x0 void *v18; // x0 void *v19; // x0 unsigned int *v20; // x1 int v21; // w2 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 unsigned int *v30; // x1 int v31; // w2 unsigned int *v32; // x1 int v33; // w2 unsigned int *v34; // x1 int v35; // w2 __int64 v36; // [xsp+58h] [xbp+58h] BYREF __int64 v37; // [xsp+60h] [xbp+60h] BYREF __int64 v38; // [xsp+68h] [xbp+68h] BYREF __int64 v39; // [xsp+70h] [xbp+70h] BYREF __int64 v40; // [xsp+78h] [xbp+78h] BYREF __int64 v41; // [xsp+80h] [xbp+80h] BYREF sub_D153B8((int)&v36, &byte_F288A0); if ( a2->m_shopType == Diamond ) v4 = "Diamond Shards"; else v4 = "Mana Orbs"; sub_D153B8((int)&v37, v4); m_dialogIndex = a1->m_dialogIndex; if ( m_dialogIndex > 2 ) { a1->m_dialogIndex = 0; goto LABEL_5; } if ( m_dialogIndex == 1 ) { sub_583094("Collect more ", &v37, &v38); v17 = (__int64 *)sub_D15FD4(&v38, &byte_EEFB80, 1); v41 = *v17; *v17 = (__int64)&byte_124B6C8; sub_D163D4(&v36, &v41); v18 = (void *)(v41 - 24); if ( (__int64 *)(v41 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v41 - 8); do v35 = __ldaxr(v34); while ( __stlxr(v35 - 1, v34) ); } else { v35 = *(_DWORD *)(v41 - 8); *(_DWORD *)(v41 - 8) = v35 - 1; } if ( v35 <= 0 ) operator delete(v18); } v19 = (void *)(v38 - 24); if ( (__int64 *)(v38 - 24) == &qword_124B6B0 ) goto LABEL_19; if ( &pthread_create ) { v28 = (unsigned int *)(v38 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v38 - 8); *(_DWORD *)(v38 - 8) = v29 - 1; } if ( v29 > 0 ) { LABEL_19: v6 = 5; } else { v6 = 5; operator delete(v19); } } else { if ( m_dialogIndex != 2 ) { if ( m_dialogIndex ) { sub_D1798C(&v36, " ", 1); goto LABEL_6; } LABEL_5: sub_D1798C(&v36, "You cannot afford that path.", 44); LABEL_6: v6 = 5; goto LABEL_7; } sub_583094("You do not have enough ", &v37, &v39); v14 = (__int64 *)sub_D15FD4(&v39, &byte_EEFB80, 1); v41 = *v14; *v14 = (__int64)&byte_124B6C8; sub_D163D4(&v36, &v41); v15 = (void *)(v41 - 24); if ( (__int64 *)(v41 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v41 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *(_DWORD *)(v41 - 8); *(_DWORD *)(v41 - 8) = v31 - 1; } if ( v31 <= 0 ) operator delete(v15); } v16 = (void *)(v39 - 24); if ( (__int64 *)(v39 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v39 - 8); do v33 = __ldaxr(v32); while ( __stlxr(v33 - 1, v32) ); } else { v33 = *(_DWORD *)(v39 - 8); *(_DWORD *)(v39 - 8) = v33 - 1; } if ( v33 <= 0 ) operator delete(v16); } v6 = 6; } LABEL_7: sub_D153B8((int)&v40, "The Shopkeeper"); sub_D18D28(&v41); v7 = (DialogObject *)DialogObject::create(1.0, (__int64)&v40, (__int64)&v41, v6, 0, (int)&unk_FFFFFF); v8 = DialogLayer::create(v7, (int)&dword_0 + 2); v9 = (void *)(v41 - 24); if ( (__int64 *)(v41 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v41 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v41 - 8); *(_DWORD *)(v41 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v9); } v10 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v40 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v10); } a1->addChild_0(a1, v8, 100); DialogLayer::updateChatPlacement(v8, Center); DialogLayer::animateIn(v8, FromCenter); v11 = v37; ++a1->m_dialogIndex; v12 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v11 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v12); } v13 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v36 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v27 - 1; } if ( v27 <= 0 ) operator delete(v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source