{"type": "func", "start": 5372298720, "end": 5372299329, "name": "GJEffectManager::updateSpawnTriggers", "pseudocode": "// \n// GJEffectManager::updateSpawnTriggers from 0x14036c5e0 to 0x14036c841 (609 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x14033e8be\n// > GJBaseGameLayer::update @ 0x140340cf5\n// > <???> @ 0x1409219d4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:57 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJEffectManager::updateSpawnTriggers(_QWORD *a1, float a2)\n{\n  unsigned __int64 v3; // r14\n  int v4; // esi\n  __int64 v5; // rbx\n  __int64 v6; // rdi\n  double v7; // xmm0_8\n  bool v8; // al\n  __int64 v9; // r8\n  __int64 v10; // rdx\n  __int64 *v11; // rcx\n  __int64 v12; // r10\n  __int64 v13; // rsi\n  __int64 v14; // rbx\n  __int64 i; // rdi\n  __int64 v16; // rsi\n  __int64 v17; // rdi\n  __int64 j; // rbx\n  _QWORD v19[4]; // [rsp+40h] [rbp-48h] BYREF\n\n  v3 = (a1[183] - a1[182]) / 72LL;\n  v4 = 0;\n  if ( !v3 )\n    goto LABEL_15;\n  v5 = 0;\n  while ( 1 )\n  {\n    v6 = a1[182];\n    if ( !*(_BYTE *)(v6 + v5) )\n    {\n      if ( *(_BYTE *)(v6 + v5 + 1) )\n        goto LABEL_12;\n      v7 = a2 + *(double *)(v6 + v5 + 16);\n      *(double *)(v6 + v5 + 16) = v7;\n      v8 = v7 >= *(double *)(v6 + v5 + 8);\n      *(_BYTE *)(v6 + v5) = v8;\n      if ( !v8 )\n        goto LABEL_12;\n    }\n    if ( !a1[40] )\n      goto LABEL_12;\n    sub_14018CFB0(v19, v5 + v6 + 48);\n    v10 = *(_QWORD *)(v6 + v5 + 40);\n    v11 = (__int64 *)a1[40];\n    v12 = *v11;\n    if ( v10 )\n      (*(void (__fastcall **)(__int64 *, __int64, __int64, _QWORD *))(v12 + 16))(v11, v10, v9, v19);\n    else\n      (*(void (__fastcall **)(__int64 *, _QWORD, _QWORD))(v12 + 8))(\n        v11,\n        *(unsigned int *)(v6 + v5 + 24),\n        *(unsigned __int8 *)(v6 + v5 + 36));\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)a1[40] + 24LL))(a1[40]) )\n      break;\n    sub_140069730((__int64)v19);\nLABEL_12:\n    ++v4;\n    v5 += 72;\n    if ( v4 >= v3 )\n      goto LABEL_15;\n  }\n  sub_140069730((__int64)v19);\nLABEL_15:\n  v13 = a1[183];\n  v14 = a1[182];\n  if ( v14 != v13 )\n  {\n    do\n    {\n      if ( *(_BYTE *)v14 )\n        break;\n      v14 += 72;\n    }\n    while ( v14 != v13 );\n    if ( v14 != v13 )\n    {\n      for ( i = v14 + 72; i != v13; i += 72 )\n      {\n        if ( !*(_BYTE *)i )\n        {\n          *(_BYTE *)v14 = 0;\n          *(_BYTE *)(v14 + 1) = *(_BYTE *)(i + 1);\n          *(_QWORD *)(v14 + 8) = *(_QWORD *)(i + 8);\n          *(_QWORD *)(v14 + 16) = *(_QWORD *)(i + 16);\n          *(_DWORD *)(v14 + 24) = *(_DWORD *)(i + 24);\n          *(_DWORD *)(v14 + 28) = *(_DWORD *)(i + 28);\n          *(_DWORD *)(v14 + 32) = *(_DWORD *)(i + 32);\n          *(_BYTE *)(v14 + 36) = *(_BYTE *)(i + 36);\n          *(_QWORD *)(v14 + 40) = *(_QWORD *)(i + 40);\n          sub_1400C2A20((_QWORD *)(v14 + 48), (_QWORD *)(i + 48));\n          v14 += 72;\n        }\n      }\n      if ( v14 != v13 )\n      {\n        v16 = sub_140371090(v13, a1[183]);\n        v17 = a1[183];\n        for ( j = v16; j != v17; j += 72 )\n          sub_140069730(j + 48);\n        a1[183] = v16;\n      }\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::updateSpawnTriggers from 0x14036c5e0 to 0x14036c841 (609 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x14033e8be\n; > GJBaseGameLayer::update @ 0x140340cf5\n; > <???> @ 0x1409219d4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:57 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14036c5e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14036c5e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14036c5ea\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14036c5ef\npush    r14                                                            ; +0x14, 0x14036c5f4\nsub     rsp, 80h                                                       ; +0x16, 0x14036c5f6\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x1d, 0x14036c5fd\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x22, 0x14036c602\nmovaps  xmm7, xmm1                                                     ; +0x27, 0x14036c607\nmov     rbp, rcx                                                       ; +0x2a, 0x14036c60a\nmov     rdx, [rcx+5B8h]                                                ; +0x2d, 0x14036c60d\nsub     rdx, [rcx+5B0h]                                                ; +0x34, 0x14036c614\nmov     rax, 0E38E38E38E38E39h                                         ; +0x3b, 0x14036c61b\nimul    rdx                                                            ; +0x45, 0x14036c625\nmov     r14, rdx                                                       ; +0x48, 0x14036c628\nsar     r14, 2                                                         ; +0x4b, 0x14036c62b\nmov     rax, r14                                                       ; +0x4f, 0x14036c62f\nshr     rax, 3Fh                                                       ; +0x52, 0x14036c632\nadd     r14, rax                                                       ; +0x56, 0x14036c636\nmov     esi, 0                                                         ; +0x59, 0x14036c639\njz      loc_14036C73E                                                  ; +0x5e, 0x14036c63e\nmov     ebx, esi                                                       ; +0x64, 0x14036c644\nnop     word ptr [rax+rax+00000000h]                                   ; +0x66, 0x14036c646\nmov     rdi, [rbp+5B0h]                                                ; +0x70, 0x14036c650\nmovzx   eax, byte ptr [rdi+rbx]                                        ; +0x77, 0x14036c657\ntest    al, al                                                         ; +0x7b, 0x14036c65b\njnz     short loc_14036C690                                            ; +0x7d, 0x14036c65d\ncmp     [rdi+rbx+1], al                                                ; +0x7f, 0x14036c65f\njnz     loc_14036C725                                                  ; +0x83, 0x14036c663\nxorps   xmm0, xmm0                                                     ; +0x89, 0x14036c669\ncvtss2sd xmm0, xmm7                                                    ; +0x8c, 0x14036c66c\naddsd   xmm0, qword ptr [rdi+rbx+10h]                                  ; +0x90, 0x14036c670\nmovsd   qword ptr [rdi+rbx+10h], xmm0                                  ; +0x96, 0x14036c676\ncomisd  xmm0, qword ptr [rdi+rbx+8]                                    ; +0x9c, 0x14036c67c\nsetnb   al                                                             ; +0xa2, 0x14036c682\nmov     [rdi+rbx], al                                                  ; +0xa5, 0x14036c685\ntest    al, al                                                         ; +0xa8, 0x14036c688\njz      loc_14036C725                                                  ; +0xaa, 0x14036c68a\ncmp     qword ptr [rbp+140h], 0                                        ; +0xb0, 0x14036c690\njz      loc_14036C725                                                  ; +0xb8, 0x14036c698\nmovsd   xmm6, qword ptr [rdi+rbx+10h]                                  ; +0xbe, 0x14036c69e\nsubsd   xmm6, qword ptr [rdi+rbx+8]                                    ; +0xc4, 0x14036c6a4\nlea     rdx, [rdi+30h]                                                 ; +0xca, 0x14036c6aa\nadd     rdx, rbx                                                       ; +0xce, 0x14036c6ae\nlea     rcx, [rsp+88h+var_48]                                          ; +0xd1, 0x14036c6b1\ncall    sub_14018CFB0                                                  ; +0xd6, 0x14036c6b6\nnop                                                                    ; +0xdb, 0x14036c6bb\nmov     rdx, [rdi+rbx+28h]                                             ; +0xdc, 0x14036c6bc\nmov     rcx, [rbp+140h]                                                ; +0xe1, 0x14036c6c1\nmov     r10, [rcx]                                                     ; +0xe8, 0x14036c6c8\ntest    rdx, rdx                                                       ; +0xeb, 0x14036c6cb\njz      short loc_14036C6DE                                            ; +0xee, 0x14036c6ce\nlea     r9, [rsp+88h+var_48]                                           ; +0xf0, 0x14036c6d0\nmovaps  xmm2, xmm6                                                     ; +0xf5, 0x14036c6d5\ncall    qword ptr [r10+10h]                                            ; +0xf8, 0x14036c6d8\njmp     short loc_14036C709                                            ; +0xfc, 0x14036c6dc\nmov     eax, [rdi+rbx+20h]                                             ; +0xfe, 0x14036c6de\nmov     [rsp+88h+var_58], eax                                          ; +0x102, 0x14036c6e2\nmov     eax, [rdi+rbx+1Ch]                                             ; +0x106, 0x14036c6e6\nmov     [rsp+88h+var_60], eax                                          ; +0x10a, 0x14036c6ea\nlea     rax, [rsp+88h+var_48]                                          ; +0x10e, 0x14036c6ee\nmov     [rsp+88h+var_68], rax                                          ; +0x113, 0x14036c6f3\nmovaps  xmm3, xmm6                                                     ; +0x118, 0x14036c6f8\nmovzx   r8d, byte ptr [rdi+rbx+24h]                                    ; +0x11b, 0x14036c6fb\nmov     edx, [rdi+rbx+18h]                                             ; +0x121, 0x14036c701\ncall    qword ptr [r10+8]                                              ; +0x125, 0x14036c705\nmov     rcx, [rbp+140h]                                                ; +0x129, 0x14036c709\nmov     rax, [rcx]                                                     ; +0x130, 0x14036c710\ncall    qword ptr [rax+18h]                                            ; +0x133, 0x14036c713\nnop                                                                    ; +0x136, 0x14036c716\nlea     rcx, [rsp+88h+var_48]                                          ; +0x137, 0x14036c717\ntest    al, al                                                         ; +0x13c, 0x14036c71c\njnz     short loc_14036C739                                            ; +0x13e, 0x14036c71e\ncall    sub_140069730                                                  ; +0x140, 0x14036c720\ninc     esi                                                            ; +0x145, 0x14036c725\nadd     rbx, 48h ; 'H'                                                 ; +0x147, 0x14036c727\nmovsxd  rax, esi                                                       ; +0x14b, 0x14036c72b\ncmp     rax, r14                                                       ; +0x14e, 0x14036c72e\njb      loc_14036C650                                                  ; +0x151, 0x14036c731\njmp     short loc_14036C73E                                            ; +0x157, 0x14036c737\ncall    sub_140069730                                                  ; +0x159, 0x14036c739\nmov     rsi, [rbp+5B8h]                                                ; +0x15e, 0x14036c73e\nmov     rbx, [rbp+5B0h]                                                ; +0x165, 0x14036c745\ncmp     rbx, rsi                                                       ; +0x16c, 0x14036c74c\njz      loc_14036C819                                                  ; +0x16f, 0x14036c74f\ncmp     byte ptr [rbx], 0                                              ; +0x175, 0x14036c755\njnz     short loc_14036C763                                            ; +0x178, 0x14036c758\nadd     rbx, 48h ; 'H'                                                 ; +0x17a, 0x14036c75a\ncmp     rbx, rsi                                                       ; +0x17e, 0x14036c75e\njnz     short loc_14036C755                                            ; +0x181, 0x14036c761\ncmp     rbx, rsi                                                       ; +0x183, 0x14036c763\njz      loc_14036C819                                                  ; +0x186, 0x14036c766\nlea     rdi, [rbx+48h]                                                 ; +0x18c, 0x14036c76c\ncmp     rdi, rsi                                                       ; +0x190, 0x14036c770\njz      short loc_14036C7CF                                            ; +0x193, 0x14036c773\ncmp     byte ptr [rdi], 0                                              ; +0x195, 0x14036c775\njnz     short loc_14036C7C6                                            ; +0x198, 0x14036c778\nmov     byte ptr [rbx], 0                                              ; +0x19a, 0x14036c77a\nmovzx   eax, byte ptr [rdi+1]                                          ; +0x19d, 0x14036c77d\nmov     [rbx+1], al                                                    ; +0x1a1, 0x14036c781\nmov     rax, [rdi+8]                                                   ; +0x1a4, 0x14036c784\nmov     [rbx+8], rax                                                   ; +0x1a8, 0x14036c788\nmov     rax, [rdi+10h]                                                 ; +0x1ac, 0x14036c78c\nmov     [rbx+10h], rax                                                 ; +0x1b0, 0x14036c790\nmov     eax, [rdi+18h]                                                 ; +0x1b4, 0x14036c794\nmov     [rbx+18h], eax                                                 ; +0x1b7, 0x14036c797\nmov     eax, [rdi+1Ch]                                                 ; +0x1ba, 0x14036c79a\nmov     [rbx+1Ch], eax                                                 ; +0x1bd, 0x14036c79d\nmov     eax, [rdi+20h]                                                 ; +0x1c0, 0x14036c7a0\nmov     [rbx+20h], eax                                                 ; +0x1c3, 0x14036c7a3\nmovzx   eax, byte ptr [rdi+24h]                                        ; +0x1c6, 0x14036c7a6\nmov     [rbx+24h], al                                                  ; +0x1ca, 0x14036c7aa\nmov     rax, [rdi+28h]                                                 ; +0x1cd, 0x14036c7ad\nmov     [rbx+28h], rax                                                 ; +0x1d1, 0x14036c7b1\nlea     rdx, [rdi+30h]                                                 ; +0x1d5, 0x14036c7b5\nlea     rcx, [rbx+30h]                                                 ; +0x1d9, 0x14036c7b9\ncall    sub_1400C2A20                                                  ; +0x1dd, 0x14036c7bd\nadd     rbx, 48h ; 'H'                                                 ; +0x1e2, 0x14036c7c2\nadd     rdi, 48h ; 'H'                                                 ; +0x1e6, 0x14036c7c6\ncmp     rdi, rsi                                                       ; +0x1ea, 0x14036c7ca\njnz     short loc_14036C775                                            ; +0x1ed, 0x14036c7cd\ncmp     rbx, rsi                                                       ; +0x1ef, 0x14036c7cf\njz      short loc_14036C819                                            ; +0x1f2, 0x14036c7d2\nmov     r8, rbx                                                        ; +0x1f4, 0x14036c7d4\nmov     rdx, [rbp+5B8h]                                                ; +0x1f7, 0x14036c7d7\nmov     rcx, rsi                                                       ; +0x1fe, 0x14036c7de\ncall    sub_140371090                                                  ; +0x201, 0x14036c7e1\nmov     rsi, rax                                                       ; +0x206, 0x14036c7e6\nmov     rdi, [rbp+5B8h]                                                ; +0x209, 0x14036c7e9\nmov     rbx, rax                                                       ; +0x210, 0x14036c7f0\ncmp     rax, rdi                                                       ; +0x213, 0x14036c7f3\njz      short loc_14036C812                                            ; +0x216, 0x14036c7f6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x218, 0x14036c7f8\nlea     rcx, [rbx+30h]                                                 ; +0x220, 0x14036c800\ncall    sub_140069730                                                  ; +0x224, 0x14036c804\nadd     rbx, 48h ; 'H'                                                 ; +0x229, 0x14036c809\ncmp     rbx, rdi                                                       ; +0x22d, 0x14036c80d\njnz     short loc_14036C800                                            ; +0x230, 0x14036c810\nmov     [rbp+5B8h], rsi                                                ; +0x232, 0x14036c812\nlea     r11, [rsp+88h+var_8]                                           ; +0x239, 0x14036c819\nmov     rbx, [r11+10h]                                                 ; +0x241, 0x14036c821\nmov     rbp, [r11+18h]                                                 ; +0x245, 0x14036c825\nmov     rsi, [r11+20h]                                                 ; +0x249, 0x14036c829\nmov     rdi, [r11+28h]                                                 ; +0x24d, 0x14036c82d\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x251, 0x14036c831\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x256, 0x14036c836\nmov     rsp, r11                                                       ; +0x25b, 0x14036c83b\npop     r14                                                            ; +0x25e, 0x14036c83e\nretn                                                                   ; +0x260, 0x14036c840", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x14033e8be", "GJBaseGameLayer::update @ 0x140340cf5", "<???> @ 0x1409219d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}