; ; ChanceTriggerGameObject::remapChanceObjects from 0x1001a3540 to 0x1001a3681 (321 bytes) ; ; 1 xrefs: ; > GJBaseGameLayer::applyRemap @ 0x10010ab1e ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:26:00 +0000 ; mov r8, [rdi+730h] ; +0x0, 0x1001a3540 mov rdi, [rdi+738h] ; +0x7, 0x1001a3547 cmp r8, rdi ; +0xe, 0x1001a354e jz locret_1001A3680 ; +0x11, 0x1001a3551 mov r10, [rsi+8] ; +0x17, 0x1001a3557 mov rax, r10 ; +0x1b, 0x1001a355b sub rax, 1 ; +0x1e, 0x1001a355e jb locret_1001A3680 ; +0x22, 0x1001a3562 push rbp ; +0x28, 0x1001a3568 mov rbp, rsp ; +0x29, 0x1001a3569 lea rcx, [r10-1] ; +0x2c, 0x1001a356c mov r9, [rsi] ; +0x30, 0x1001a3570 test r10, rcx ; +0x33, 0x1001a3573 jnz short loc_1001A35ED ; +0x36, 0x1001a3576 jmp short loc_1001A358D ; +0x38, 0x1001a3578 mov ecx, [rsi+14h] ; +0x3a, 0x1001a357a mov [r8], ecx ; +0x3d, 0x1001a357d add r8, 10h ; +0x40, 0x1001a3580 cmp r8, rdi ; +0x44, 0x1001a3584 jz loc_1001A367F ; +0x47, 0x1001a3587 movsxd rcx, dword ptr [r8] ; +0x4d, 0x1001a358d mov rdx, rax ; +0x50, 0x1001a3590 and rdx, rcx ; +0x53, 0x1001a3593 mov rsi, [r9+rdx*8] ; +0x56, 0x1001a3596 test rsi, rsi ; +0x5a, 0x1001a359a jnz short loc_1001A35B8 ; +0x5d, 0x1001a359d jmp short loc_1001A3580 ; +0x5f, 0x1001a359f align 10h ; +0x61, 0x1001a35a1 and r10, rax ; +0x70, 0x1001a35b0 cmp r10, rdx ; +0x73, 0x1001a35b3 jnz short loc_1001A3580 ; +0x76, 0x1001a35b6 mov rsi, [rsi] ; +0x78, 0x1001a35b8 test rsi, rsi ; +0x7b, 0x1001a35bb jz short loc_1001A3580 ; +0x7e, 0x1001a35be mov r10, [rsi+8] ; +0x80, 0x1001a35c0 cmp r10, rcx ; +0x84, 0x1001a35c4 jnz short loc_1001A35B0 ; +0x87, 0x1001a35c7 cmp [rsi+10h], ecx ; +0x89, 0x1001a35c9 jnz short loc_1001A35B8 ; +0x8c, 0x1001a35cc jmp short loc_1001A357A ; +0x8e, 0x1001a35ce mov eax, [r11+14h] ; +0x90, 0x1001a35d0 mov [r8], eax ; +0x94, 0x1001a35d4 nop word ptr [rax+rax+00000000h] ; +0x97, 0x1001a35d7 add r8, 10h ; +0xa0, 0x1001a35e0 cmp r8, rdi ; +0xa4, 0x1001a35e4 jz loc_1001A367F ; +0xa7, 0x1001a35e7 movsxd rcx, dword ptr [r8] ; +0xad, 0x1001a35ed mov rsi, rcx ; +0xb0, 0x1001a35f0 cmp r10, rcx ; +0xb3, 0x1001a35f3 ja short loc_1001A360F ; +0xb6, 0x1001a35f6 mov rax, rcx ; +0xb8, 0x1001a35f8 or rax, r10 ; +0xbb, 0x1001a35fb shr rax, 20h ; +0xbe, 0x1001a35fe jz short loc_1001A3668 ; +0xc2, 0x1001a3602 mov rax, rcx ; +0xc4, 0x1001a3604 xor edx, edx ; +0xc7, 0x1001a3607 div r10 ; +0xc9, 0x1001a3609 mov rsi, rdx ; +0xcc, 0x1001a360c mov rax, [r9+rsi*8] ; +0xcf, 0x1001a360f test rax, rax ; +0xd3, 0x1001a3613 jz short loc_1001A35E0 ; +0xd6, 0x1001a3616 mov r11, [rax] ; +0xd8, 0x1001a3618 jmp short loc_1001A3629 ; +0xdb, 0x1001a361b align 20h ; +0xdd, 0x1001a361d cmp [r11+10h], ecx ; +0xe0, 0x1001a3620 jz short loc_1001A35D0 ; +0xe4, 0x1001a3624 mov r11, [r11] ; +0xe6, 0x1001a3626 test r11, r11 ; +0xe9, 0x1001a3629 jz short loc_1001A35E0 ; +0xec, 0x1001a362c mov rax, [r11+8] ; +0xee, 0x1001a362e cmp rax, rcx ; +0xf2, 0x1001a3632 jz short loc_1001A3620 ; +0xf5, 0x1001a3635 cmp rax, r10 ; +0xf7, 0x1001a3637 jb short loc_1001A3650 ; +0xfa, 0x1001a363a mov rdx, rax ; +0xfc, 0x1001a363c or rdx, r10 ; +0xff, 0x1001a363f shr rdx, 20h ; +0x102, 0x1001a3642 jz short loc_1001A3657 ; +0x106, 0x1001a3646 xor edx, edx ; +0x108, 0x1001a3648 div r10 ; +0x10a, 0x1001a364a mov rax, rdx ; +0x10d, 0x1001a364d cmp rax, rsi ; +0x110, 0x1001a3650 jz short loc_1001A3626 ; +0x113, 0x1001a3653 jmp short loc_1001A35E0 ; +0x115, 0x1001a3655 xor edx, edx ; +0x117, 0x1001a3657 div r10d ; +0x119, 0x1001a3659 mov eax, edx ; +0x11c, 0x1001a365c cmp rax, rsi ; +0x11e, 0x1001a365e jz short loc_1001A3626 ; +0x121, 0x1001a3661 jmp loc_1001A35E0 ; +0x123, 0x1001a3663 mov eax, ecx ; +0x128, 0x1001a3668 xor edx, edx ; +0x12a, 0x1001a366a div r10d ; +0x12c, 0x1001a366c mov esi, edx ; +0x12f, 0x1001a366f mov rax, [r9+rsi*8] ; +0x131, 0x1001a3671 test rax, rax ; +0x135, 0x1001a3675 jnz short loc_1001A3618 ; +0x138, 0x1001a3678 jmp loc_1001A35E0 ; +0x13a, 0x1001a367a pop rbp ; +0x13f, 0x1001a367f retn ; +0x140, 0x1001a3680