{"type": "func", "start": 4298023440, "end": 4298023539, "name": "GJEffectManager::addCountToItem", "pseudocode": "// \n// GJEffectManager::addCountToItem from 0x1002ea210 to 0x1002ea273 (99 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::collectedObject @ 0x10014bb36\n// > GJBaseGameLayer::addPickupTrigger @ 0x10014c10e\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 GJEffectManager::addCountToItem(GJEffectManager *a1, int a2, int a3)\n{\n  __m128 v3; // xmm0\n  int v5; // eax\n  int v6; // ecx\n  _QWORD *v7; // rax\n  int *v8; // [rsp+0h] [rbp-20h] BYREF\n  int v9; // [rsp+8h] [rbp-18h] BYREF\n\n  v5 = 0;\n  if ( a2 > 0 )\n    v5 = a2;\n  v6 = 9999;\n  if ( v5 < 9999 )\n    v6 = v5;\n  v9 = v6;\n  v8 = &v9;\n  v7 = sub_100055BA0((float *)&a1->m_itemCountMap, &v9, v3, (__int64)&unk_100819506, &v8);\n  GJEffectManager::updateCountForItem(a1, v9, *((_DWORD *)v7 + 5) + a3);\n}", "assembly": "; \n; GJEffectManager::addCountToItem from 0x1002ea210 to 0x1002ea273 (99 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::collectedObject @ 0x10014bb36\n; > GJBaseGameLayer::addPickupTrigger @ 0x10014c10e\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\npush    rbp                                                            ; +0x0, 0x1002ea210\nmov     rbp, rsp                                                       ; +0x1, 0x1002ea211\npush    r14                                                            ; +0x4, 0x1002ea214\npush    rbx                                                            ; +0x6, 0x1002ea216\nsub     rsp, 10h                                                       ; +0x7, 0x1002ea217\nmov     ebx, edx                                                       ; +0xb, 0x1002ea21b\nmov     r14, rdi                                                       ; +0xd, 0x1002ea21d\nxor     eax, eax                                                       ; +0x10, 0x1002ea220\ntest    esi, esi                                                       ; +0x12, 0x1002ea222\ncmovg   eax, esi                                                       ; +0x14, 0x1002ea224\ncmp     eax, 270Fh                                                     ; +0x17, 0x1002ea227\nmov     ecx, 270Fh                                                     ; +0x1c, 0x1002ea22c\ncmovl   ecx, eax                                                       ; +0x21, 0x1002ea231\nmov     [rbp+var_18], ecx                                              ; +0x24, 0x1002ea234\nadd     rdi, 2C8h                                                      ; +0x27, 0x1002ea237\nlea     rsi, [rbp+var_18]                                              ; +0x2e, 0x1002ea23e\nmov     [rbp+var_20], rsi                                              ; +0x32, 0x1002ea242\nlea     rdx, unk_100819506                                             ; +0x36, 0x1002ea246\nlea     rcx, [rbp+var_20]                                              ; +0x3d, 0x1002ea24d\nlea     r8, [rbp+var_11]                                               ; +0x41, 0x1002ea251\ncall    sub_100055BA0                                                  ; +0x45, 0x1002ea255\nadd     ebx, [rax+14h]                                                 ; +0x4a, 0x1002ea25a\nmov     esi, [rbp+var_18]                                              ; +0x4d, 0x1002ea25d\nmov     rdi, r14                                                       ; +0x50, 0x1002ea260\nmov     edx, ebx                                                       ; +0x53, 0x1002ea263\ncall    GJEffectManager__updateCountForItem                            ; +0x55, 0x1002ea265\nadd     rsp, 10h                                                       ; +0x5a, 0x1002ea26a\npop     rbx                                                            ; +0x5e, 0x1002ea26e\npop     r14                                                            ; +0x5f, 0x1002ea26f\npop     rbp                                                            ; +0x61, 0x1002ea271\nretn                                                                   ; +0x62, 0x1002ea272", "xrefs": ["GJBaseGameLayer::collectedObject @ 0x10014bb36", "GJBaseGameLayer::addPickupTrigger @ 0x10014c10e"], "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"}