From 5e9ad31fe23727bc37e4b50aec6abc5a6bc0c78d Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 31 Jan 2009 00:54:56 +0100 Subject: [PATCH] fn_597c8 implemented --- rsb-lz.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/rsb-lz.c b/rsb-lz.c index 4f077b1..4dc9ba6 100644 --- a/rsb-lz.c +++ b/rsb-lz.c @@ -443,8 +443,8 @@ void fn_59788() } struct s_59b78 { - unsigned char *start; - unsigned char *stop; + unsigned char *start; /* 0 */ + unsigned char *stop; /* 4 */ unsigned char y; /* 8 */ unsigned char x; /* 9 */ }; @@ -455,10 +455,25 @@ unsigned int fn_59848(struct s_59b78 *data) return 0; } -unsigned int fn_597c8(struct s_59b78 *r11_data) +unsigned int fn_597c8(struct s_59b78 *r6_data) { - fprintf(stderr,"%s\n", __func__); - return 0; + unsigned char *r0; + unsigned char *r1; + unsigned char r5; + + r5 = 0; + + r0 = r6_data->start; + r1 = r6_data->stop; + + if (r1 < r0) + fn_59788(); + + r5 = *r0; + r0++; + r6_data->start = r0; + + return r5; } unsigned int fn_598b4(struct s_59b78 *r11_data, unsigned int r10_arg2) @@ -468,8 +483,6 @@ unsigned int fn_598b4(struct s_59b78 *r11_data, unsigned int r10_arg2) unsigned int r6; unsigned int r7; - fprintf(stderr,"%s\n", __func__); - r1 = r10_arg2 - 1; r6 = 1 << r1; -- 2.39.5