; ; BN_reciprocal from 0xa85ed8 to 0xa85f54 (124 bytes) ; ; 2 xrefs: ; > BN_div_recp @ 0xa86020 ; > @ 0x838ac ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; 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:08:52 +0000 ; PUSH {R4-R8,LR} ; +0x0, 0xa85ed8 MOV R4, R3 ; +0x4, 0xa85edc SUB SP, SP, #8 ; +0x8, 0xa85ee0 MOV R8, R0 ; +0xc, 0xa85ee4 MOV R0, R3 ; +0x10, 0xa85ee8 MOV R6, R1 ; +0x14, 0xa85eec MOV R5, R2 ; +0x18, 0xa85ef0 BL BN_CTX_start ; +0x1c, 0xa85ef4 MOV R0, R4 ; +0x20, 0xa85ef8 BL BN_CTX_get ; +0x24, 0xa85efc SUBS R7, R0, #0 ; +0x28, 0xa85f00 BEQ loc_A85F4C ; +0x2c, 0xa85f04 MOV R1, R5 ; +0x30, 0xa85f08 BL BN_set_bit ; +0x34, 0xa85f0c CMP R0, #0 ; +0x38, 0xa85f10 BEQ loc_A85F4C ; +0x3c, 0xa85f14 STR R4, [SP,#8+var_8] ; +0x40, 0xa85f18 MOV R0, R8 ; +0x44, 0xa85f1c MOV R2, R7 ; +0x48, 0xa85f20 MOV R3, R6 ; +0x4c, 0xa85f24 MOV R1, #0 ; +0x50, 0xa85f28 BL BN_div ; +0x54, 0xa85f2c CMP R0, #0 ; +0x58, 0xa85f30 BEQ loc_A85F4C ; +0x5c, 0xa85f34 MOV R0, R4 ; +0x60, 0xa85f38 BL BN_CTX_end ; +0x64, 0xa85f3c MOV R0, R5 ; +0x68, 0xa85f40 ADD SP, SP, #8 ; +0x6c, 0xa85f44 POP {R4-R8,PC} ; +0x70, 0xa85f48 MOV R5, #0xFFFFFFFF ; +0x74, 0xa85f4c B loc_A85F38 ; +0x78, 0xa85f50