; ; AnimatedShopKeeper::init from 0x100313e20 to 0x100313ec9 (169 bytes) ; ; 0 xrefs: ; ; 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:28:39 +0000 ; push rbp ; +0x0, 0x100313e20 mov rbp, rsp ; +0x1, 0x100313e21 push r14 ; +0x4, 0x100313e24 push rbx ; +0x6, 0x100313e26 mov rbx, rdi ; +0x7, 0x100313e27 mov [rdi+2D0h], esi ; +0xa, 0x100313e2a dec esi ; +0x10, 0x100313e30 cmp esi, 3 ; +0x12, 0x100313e32 ja short loc_100313E46 ; +0x15, 0x100313e35 mov eax, esi ; +0x17, 0x100313e37 lea rcx, off_100B1C7B8; "GJShopKeeper2" ; +0x19, 0x100313e39 mov rsi, [rcx+rax*8] ; +0x20, 0x100313e40 jmp short loc_100313E4D ; +0x24, 0x100313e44 lea rsi, aGjshopkeeper; "GJShopKeeper" ; +0x26, 0x100313e46 mov rdi, rbx ; +0x2d, 0x100313e4d xor edx, edx ; +0x30, 0x100313e50 xor ecx, ecx ; +0x32, 0x100313e52 call CCAnimatedSprite__initWithType ; +0x34, 0x100313e54 test al, al ; +0x39, 0x100313e59 jz short loc_100313EC4 ; +0x3b, 0x100313e5b mov r14d, eax ; +0x3d, 0x100313e5d call _rand ; +0x40, 0x100313e60 cvtsi2ss xmm0, eax ; +0x45, 0x100313e65 mulss xmm0, cs:dword_100A03A50 ; +0x49, 0x100313e69 mulss xmm0, cs:flt_100A035C0 ; +0x51, 0x100313e71 addss xmm0, cs:dword_100A035BC ; +0x59, 0x100313e79 cvttss2si eax, xmm0 ; +0x61, 0x100313e81 mov [rbx+2D8h], eax ; +0x65, 0x100313e85 call _rand ; +0x6b, 0x100313e8b xorps xmm0, xmm0 ; +0x70, 0x100313e90 cvtsi2ss xmm0, eax ; +0x73, 0x100313e93 mulss xmm0, cs:dword_100A03A50 ; +0x77, 0x100313e97 addss xmm0, xmm0 ; +0x7f, 0x100313e9f addss xmm0, cs:alpha ; +0x83, 0x100313ea3 cvttss2si eax, xmm0 ; +0x8b, 0x100313eab mov [rbx+2D4h], eax ; +0x8f, 0x100313eaf mov rdi, [rbx+288h] ; +0x95, 0x100313eb5 call SpriteAnimationManager__stopAnimations ; +0x9c, 0x100313ebc mov eax, r14d ; +0xa1, 0x100313ec1 pop rbx ; +0xa4, 0x100313ec4 pop r14 ; +0xa5, 0x100313ec5 pop rbp ; +0xa7, 0x100313ec7 retn ; +0xa8, 0x100313ec8