/* Generated with C2C (Cedar To C)*/ /* Copyright (C) 1993 by Xerox Corporation. All rights reserved. */ /* time: July 28, 1993 10:21:48 am PDT */ /* C2C version: April 20, 1993 (sun4) */ /* ref-counting: off */ /* file: ImagerPixelImpl, module: ImagerPixelImpl */ /* switches: bcfhklnouw */ #include #include static char versionStamp[] = "@(#)mob_version [3188986349,3604261867] ImagerPixelImpl"; typedef unsigned word, *ptr; typedef unsigned char byte, *bPt; typedef unsigned short half, *hPt; typedef word (*fPt)(); typedef struct {word f0, f1, f2, f3, f4, f5;} W6; typedef struct {word f0, f1, f2, f3;} W4; typedef W4 *W4Pt; typedef struct {word f0, f1, f2, f3, f4;} W5; typedef struct {word f0, f1;} W2; typedef struct {word f0, f1, f2, f3, f4, f5, f6, f7;} W8; typedef struct {W8 f; word r;} W9; typedef struct {W8 f; W8 r;} W16; typedef struct {W16 f; W6 r;} W22; typedef W2 *W2Pt; #define SOURCE(p, l) /* source p, l */ static float fc11 = 2147483647.0; #define BCK(idx, lim) ( ((unsigned) idx) >= ((unsigned) lim) ? (XR_RaiseBoundsFault()) : (idx) ) static float fc33 = 0.0; static float fc38 = 65536.0; #define SGNCK(i) ((int) (word) (i) < 0 ? XR_RaiseArithmeticFault(): i ) static float fc68 = 1.0; static float fc71 = 0.5; #define MIN(cast, x, y) ( ( cast x) < ( cast y) ? (x) : (y) ) static void NoName_Q3756(); static void ImagerPixelImpl_P0(); static word NewPixels_P120(); static word ObtainScratchPixels_P180(); static void ReleaseScratchPixels_P240(); static void DoWithScratchPixels_P300(); static word NoName_Q3816(); static word NewPixelMap_P360(); static word MakePixelMap_P420(); static void GetPixels_P480(); static void PutPixels_P540(); static word ScaledFromRealMod_P600(); static void Resample1_P660(); static void boxes_P1668(); static void action_P1728(); static void Resample_P720(); static void boxActionPointSamples_P1884(); static void boxActionInterpolatedSamples_P1944(); static word HalfInteger_P780(); static void NoName_Q3876(); static struct {unsigned f; char r[16];} string1 = {851984, "\257\300\260\302\146\322\300\075\027\134\123\100\214\000\000"}; static struct {unsigned f; char r[12];} string2 = {524296, "\011\000\004\040\040\000\010\001\000\000\000"}; static struct {unsigned f; char r[16];} string3 = {851984, "\257\300\260\302\146\322\300\075\027\134\123\100\354\000\000"}; static struct {unsigned f; char r[12];} string4 = {589833, "\011\000\004\100\240\040\001\030\001\000\000"}; static struct {unsigned f; char r[16];} string5 = {851984, "\257\300\276\024\021\355\300\326\324\253\353\100\164\000\000"}; static struct {unsigned f; char r[8];} string6 = {393222, "\006\001 \004O\377\000"}; static struct {unsigned f; char r[16];} string7 = {851984, "\257\300\213\226\301\143\300\072\355\320\373\100\150\000\000"}; static struct {unsigned f; char r[16];} string8 = {851984, "\257\300\121\117\377\026\300\315\013\026\004\100\150\000\000"}; static struct {unsigned f; char r[16];} string9 = {851984, "\257\300\243\162\130\311\300\344\000\142\023\100\150\000\000"}; static struct {unsigned f; char r[16];} string10 = {851984, "\257\300\260\302\146\322\300\075\027\134\123\100\150\000\000"}; static struct { word f0[26]; word f26; word f27; word f28; word f29; word f30; word f31; word f32; word f33; word f34; word f35; word f36; word f37; word f38; word f39; word f40; word f41; word f42; word f43; word f44; word f45; word f46; word f47; word f48; word f49; word f50; word f51[9]; } globalframe = { {0}, (word) HalfInteger_P780, 0, (word) Resample_P720, 0, (word) Resample1_P660, 0, (word) ScaledFromRealMod_P600, 0, (word) PutPixels_P540, 0, (word) GetPixels_P480, 0, (word) MakePixelMap_P420, 0, (word) NewPixelMap_P360, 0, (word) DoWithScratchPixels_P300, 0, (word) ReleaseScratchPixels_P240, 0, (word) ObtainScratchPixels_P180, 0, (word) NewPixels_P120, 0, (word) ImagerPixelImpl_P0, {0} }; static void NoName_Q3756() { register ptr gf_c0296 = (ptr) &globalframe; word var_c22152; (* (( (ptr) gf_c0296)+23) ) = (word) XR_GetTypeIndex((word) &string1, 0, (word) &string2); (* (( (ptr) gf_c0296)+24) ) = (word) XR_GetTypeIndex((word) &string3, 0, (word) &string4); (void) XR_DeclareGlobalFrame((word) "ImagerPixelImpl", &globalframe, (word) XR_GetTypeIndex((word) &string5, 0, (word) &string6) , (word) (( (bPt) gf_c0296)+200)/* var_c19464 */ ); var_c22152 = (word) XR_ImportInterface((word) "ImagerSample", (word) XR_GetTypeIndexS((word) (&string7)), 60); (* (( (ptr) gf_c0296)+56)/* var_c19720 */ ) = var_c22152; (void) XR_ImportProcS(var_c22152, 67905026); (void) XR_ImportProcS(var_c22152, 1312773); (void) XR_ImportProcS(var_c22152, 2370311); (void) XR_ImportProcS(var_c22152, 2107398); (void) XR_ImportProcS(var_c22152, 68685571); (void) XR_ImportProcS(var_c22152, 67633410); var_c22152 = (word) XR_ImportInterface((word) "ImagerTransformation", (word) XR_GetTypeIndexS((word) (&string8)), 55); (* (( (ptr) gf_c0296)+57)/* var_c20648 */ ) = var_c22152; (void) XR_ImportProcS(var_c22152, 135013634); (void) XR_ImportProcS(var_c22152, 135013890); (void) XR_ImportProcS(var_c22152, 67383297); var_c22152 = (word) XR_ImportInterface((word) "SF", (word) XR_GetTypeIndexS((word) (&string9)), 19); (* (( (ptr) gf_c0296)+58)/* var_c20712 */ ) = var_c22152; (void) XR_ImportProcS(var_c22152, 68160769); var_c22152 = (word) XR_ExportInterface((word) "ImagerPixel", (word) XR_GetTypeIndexS((word) (&string10)), 9); (* (( (ptr) gf_c0296)+59)/* var_c22184 */ ) = var_c22152; (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+192)/* var_c19432 */ , 67895299, (word) "NewPixels"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+184)/* var_c19400 */ , 67633410, (word) "ObtainScratchPixels") ; (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+176)/* var_c19368 */ , 262657, (word) "ReleaseScratchPixels") ; (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+168)/* var_c19336 */ , 787203, (word) "DoWithScratchPixels"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+160)/* var_c19304 */ , 68682755, (word) "NewPixelMap"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+152)/* var_c19272 */ , 68420869, (word) "MakePixelMap"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+144)/* var_c19240 */ , 2098694, (word) "GetPixels"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+136)/* var_c19208 */ , 2361095, (word) "PutPixels"); (void) XR_ExportProcS(var_c22152, (word) (( (bPt) gf_c0296)+112)/* var_c19112 */ , 2361350, (word) "Resample"); } static void ImagerPixelImpl_P0(formal_c025, formal_c024) word formal_c025; word formal_c024; { register ptr gf_c22216 = (ptr) &globalframe; /* ImagerPixelImpl: */ SOURCE(524, 17181) SOURCE(4788, 35) (* (( (ptr) gf_c22216)+20)/* realLastInt_v3168 */ ) = (* (ptr) &fc11 ); } static word NewPixels_P120(samplesPerPixel_v3796, length_v3824, scratch_v3852) word samplesPerPixel_v3796; word length_v3824; word scratch_v3852; { register ptr gf_c22248 = (ptr) &globalframe; word var_c3896; word new_v6144; /* NewPixels: */ SOURCE(1186, 369) SOURCE(1299, 26) new_v6144 = scratch_v3852; SOURCE(1327, 97) if ((new_v6144 == 0) || ((* (( (ptr) new_v6144)+1) ) != samplesPerPixel_v3796)) { SOURCE(1382, 42) { word var_c19560; word var_c19592; word var_c19624; var_c19560 = BCK(samplesPerPixel_v3796, 67108863); var_c19592 = ((word) var_c19560 << 2); var_c19624 = XR_NewObject((8 + var_c19592), (* (( (ptr) gf_c22248)+23) )); (* (( (ptr) var_c19624)+1) ) = var_c19560; new_v6144 = var_c19624; }; }; SOURCE(1426, 86) { register word i_v6188 = 0; register word noName_c19656; noName_c19656 = samplesPerPixel_v3796; if ((i_v6188 >= noName_c19656)) { goto lab_L100000; }; lab_L100003: ; SOURCE(1464, 48) { word var_c19688; { word pd12; pd12 = (* (( (ptr) (* (( (ptr) gf_c22248)+56)/* var_c19720 */ ))+5) ); var_c19688 = (word) ( *( (fPt) ((* (ptr) pd12 ))))(length_v3824, 0, pd12); }; { word limit13; (* ((( (ptr) new_v6144)+2)+( limit13 = (* (( (ptr) new_v6144)+1) ), BCK(i_v6188, limit13) )) ) = var_c19688; }; }; i_v6188 = (i_v6188 + 1); if ((i_v6188 < noName_c19656)) { goto lab_L100003; }; lab_L100000: ; }; SOURCE(1523, 19) (* (ptr) new_v6144 ) = length_v3824; SOURCE(1544, 11) return(new_v6144); } static word ObtainScratchPixels_P180(samplesPerPixel_v3992, length_v4020) word samplesPerPixel_v3992; word length_v4020; { register ptr gf_c22280 = (ptr) &globalframe; word var_c4064; /* ObtainScratchPixels: */ SOURCE(1674, 490) (void) (XR_MonitorEntry((word) (( (bPt) gf_c22280)+16)/* LOCK_v2692 */ )); SOURCE(1775, 307) { register word i_v6232 = 0; lab_L100007: ; { word buf_v6276; SOURCE(1818, 41) buf_v6276 = (* ((( (ptr) gf_c22280)+8)/* scratchPixelBuffers_v2944 */ +BCK(i_v6232, 12)) ); SOURCE(1861, 221) if ( ( ( (buf_v6276 != 0) ? ((* (( (ptr) buf_v6276)+1) ) == samplesPerPixel_v3992) : 0 ) ? ((* (ptr) buf_v6276 ) >= length_v4020) : 0 ) ) { SOURCE(1948, 28) (* ((( (ptr) gf_c22280)+8)/* scratchPixelBuffers_v2944 */ +BCK(i_v6232, 12)) ) = 0; SOURCE(1978, 19) (* (ptr) buf_v6276 ) = length_v4020; SOURCE(1999, 60) { register word j_v6320 = 0; register word noName_c19752; noName_c19752 = samplesPerPixel_v3992; if ((j_v6320 >= noName_c19752)) { goto lab_L100008; }; lab_L100011: ; SOURCE(2037, 22) { word limit14; (* (ptr) (* ((( (ptr) buf_v6276)+2)+( limit14 = (* (( (ptr) buf_v6276)+1) ), BCK(j_v6320, limit14) )) ) ) = length_v4020; }; j_v6320 = (j_v6320 + 1); if ((j_v6320 < noName_c19752)) { goto lab_L100011; }; lab_L100008: ; }; SOURCE(2070, 12) (void) (XR_MonitorExit((word) (( (bPt) gf_c22280)+16)/* LOCK_v2692 */ )); return(buf_v6276); }; }; if ((i_v6232 >= 11)) { goto lab_L100004; }; i_v6232 = (i_v6232 + 1); goto lab_L100007; lab_L100004: ; }; SOURCE(2096, 68) { word var_c19784; var_c19784 = (word) NewPixels_P120(samplesPerPixel_v3992, length_v4020, 0); (void) (XR_MonitorExit((word) (( (bPt) gf_c22280)+16)/* LOCK_v2692 */ )); return(var_c19784); }; } static void ReleaseScratchPixels_P240(pixels_v4124) word pixels_v4124; { register ptr gf_c22312 = (ptr) &globalframe; word var_c19848; word slot_v6364 = 0; /* ReleaseScratchPixels: */ SOURCE(2168, 514) (void) (XR_MonitorEntry((word) (( (bPt) gf_c22312)+16)/* LOCK_v2692 */ )); SOURCE(2249, 41) if (((* (( (ptr) pixels_v4124)+1) ) == 0)) { SOURCE(2284, 6) (void) (XR_MonitorExit((word) (( (bPt) gf_c22312)+16)/* LOCK_v2692 */ )); return; }; SOURCE(2301, 109) { register word j_v6408 = 1; register word noName_c19816; noName_c19816 = (* (( (ptr) pixels_v4124)+1) ); if ((j_v6408 >= noName_c19816)) { goto lab_L100012; }; lab_L100015: ; SOURCE(2346, 64) { word limit15; word limit16; if (((* (( (ptr) (* ((( (ptr) pixels_v4124)+2)+( limit15 = (* (( (ptr) pixels_v4124)+1) ), BCK(j_v6408, limit15) )) ))+1) ) != (* (( (ptr) (* ((( (ptr) pixels_v4124)+2)+( limit16 = (* (( (ptr) pixels_v4124)+1) ), BCK(0, limit16) )) ))+1) ))) { SOURCE(2396, 14) (void) (XR_MonitorExit((word) (( (bPt) gf_c22312)+16)/* LOCK_v2692 */ )); return; }; }; j_v6408 = (j_v6408 + 1); if ((j_v6408 < noName_c19816)) { goto lab_L100015; }; lab_L100012: ; }; SOURCE(2412, 188) { register word i_v6452 = 0; lab_L100019: ; { word t_v6496; SOURCE(2455, 39) t_v6496 = (* ((( (ptr) gf_c22312)+8)/* scratchPixelBuffers_v2944 */ +BCK(i_v6452, 12)) ); SOURCE(2496, 104) if ((t_v6496 == 0)) { SOURCE(2512, 14) slot_v6364 = i_v6452; } else { SOURCE(2526, 74) if ((pixels_v4124 == t_v6496)) { SOURCE(2545, 55) var_c19848 = (* (( (ptr) (* (( (ptr) gf_c22312)+56)/* var_c19720 */ ))+4) ); (void) (XR_MonitorExit((word) (( (bPt) gf_c22312)+16)/* LOCK_v2692 */ )); goto lab_L100020; }; }; }; if ((i_v6452 >= 11)) { goto lab_L100016; }; i_v6452 = (i_v6452 + 1); goto lab_L100019; lab_L100016: ; }; SOURCE(2611, 35) { word limit17; (* (ptr) pixels_v4124 ) = (* (( (ptr) (* ((( (ptr) pixels_v4124)+2)+( limit17 = (* (( (ptr) pixels_v4124)+1) ), BCK(0, limit17) )) ))+1) ); }; SOURCE(2648, 34) (* ((( (ptr) gf_c22312)+8)/* scratchPixelBuffers_v2944 */ +BCK(slot_v6364, 12)) ) = pixels_v4124; SOURCE(2168, 514) (void) (XR_MonitorExit((word) (( (bPt) gf_c22312)+16)/* LOCK_v2692 */ )); return; /* c2c skipped dead code */ lab_L100020: ; SOURCE(2545, 55) (void) XR_RaiseError(var_c19848, 0); } static void DoWithScratchPixels_P300(samplesPerPixel_v4184, length_v4212, formal_c0322) word samplesPerPixel_v4184; word length_v4212; word formal_c0322; { W6 var_c22344; /* declaration of action_v4240 skipped */ /* declaration of scratch_v6540 skipped */ var_c22344.f4/* action_v4240 */ = formal_c0322; /* DoWithScratchPixels: */ SOURCE(2688, 284) SOURCE(2790, 92) var_c22344.f5/* scratch_v6540 */ = (word) ObtainScratchPixels_P180(samplesPerPixel_v4184, length_v4212); SOURCE(2884, 57) { word var_c0314; var_c0314 = (word) &var_c22344; (void) (word) XR_Enable(( ((word) (fPt) NoName_Q3816) ), ( ((word) (fPt) NoName_Q3876) ), var_c0314); }; SOURCE(2943, 29) (void) ReleaseScratchPixels_P240(var_c22344.f5/* scratch_v6540 */ ); } static word NoName_Q3816(formal_c0301) word formal_c0301; { SOURCE(2884, 57) { word pd18; pd18 = (* (( (ptr) formal_c0301)+4) ); (void) ( *( (fPt) ((* (ptr) pd18 ))))((* ((( (ptr) formal_c0301)+5)) ), pd18); }; return(0); } static word NewPixelMap_P360(samplesPerPixel_v4360, box_v4388, maxSample_v4416) word samplesPerPixel_v4360; W4 box_v4388; word maxSample_v4416; { register ptr gf_c22376 = (ptr) &globalframe; word var_c4460; word new_v6584; /* NewPixelMap: */ SOURCE(2978, 473) SOURCE(3084, 49) { word var_c19880; word var_c19912; word var_c19944; var_c19880 = BCK(samplesPerPixel_v4360, 67108863); var_c19912 = ((word) var_c19880 << 2); var_c19944 = XR_NewObject((24 + var_c19912), (* (( (ptr) gf_c22376)+24) )); (* (( (ptr) var_c19944)+5) ) = var_c19880; new_v6584 = var_c19944; }; SOURCE(3135, 279) { register word i_v6628 = 0; register word noName_c19976; noName_c19976 = samplesPerPixel_v4360; if ((i_v6628 >= noName_c19976)) { goto lab_L100024; }; lab_L100027: ; { word bitsPerSample_v6672; SOURCE(3173, 165) { word var_c20008; var_c20008 = (word) ( *( (fPt) ((* (ptr) maxSample_v4416 ))))(i_v6628, maxSample_v4416); { word idx19; bitsPerSample_v6672 = ( idx19 = (word) ( (var_c20008 < 2) ? 1 : ( (var_c20008 < 4) ? 2 : ( (var_c20008 < 16) ? 4 : ( (var_c20008 < 256) ? 8 : ( (var_c20008 <= 65535) ? 16 : 32 ) ) ) ) ) , BCK(idx19, 33) ); }; }; SOURCE(3340, 74) { word var_c20040; { word pd20; pd20 = (* (( (ptr) (* (( (ptr) gf_c22376)+56)/* var_c19720 */ ))+19) ); var_c20040 = (word) ( *( (fPt) ((* (ptr) pd20 ))))(box_v4388, bitsPerSample_v6672, 0, pd20); }; { word limit21; (* ((( (ptr) new_v6584)+6)+( limit21 = (* (( (ptr) new_v6584)+5) ), BCK(i_v6628, limit21) )) ) = var_c20040; }; }; }; i_v6628 = (i_v6628 + 1); if ((i_v6628 < noName_c19976)) { goto lab_L100027; }; lab_L100024: ; }; SOURCE(3425, 13) (* (W4Pt) (( (ptr) new_v6584)+1) ) = box_v4388; SOURCE(3440, 11) return(new_v6584); } static word MakePixelMap_P420(s0_v4520, s1_v4548, s2_v4576, s3_v4604, s4_v4632) word s0_v4520; word s1_v4548; word s2_v4576; word s3_v4604; word s4_v4632; { register ptr gf_c22408 = (ptr) &globalframe; word var_c4676; W5 s_v6716; word n_v6772; word new_v6800; /* MakePixelMap: */ SOURCE(3457, 612) SOURCE(3557, 64) s_v6716.f0 = s0_v4520; s_v6716.f1 = s1_v4548; s_v6716.f2 = s2_v4576; s_v6716.f3 = s3_v4604; s_v6716.f4 = s4_v4632; SOURCE(3716, 16) { word i_v18744; SOURCE(3623, 90) i_v18744 = 0; SOURCE(3666, 47) lab_L100030: ; if ( ( (i_v18744 < 5) ? ((* (( (ptr) &s_v6716)+BCK(i_v18744, 5)) ) != 0) : 0 ) ) { } else { goto lab_L100028; }; SOURCE(3696, 17) i_v18744 = (i_v18744 + 1); goto lab_L100030; lab_L100028: ; SOURCE(3623, 90) n_v6772 = i_v18744; }; SOURCE(3734, 35) { word var_c20136; word var_c20168; word var_c20200; var_c20136 = BCK(n_v6772, 67108863); var_c20168 = ((word) var_c20136 << 2); var_c20200 = XR_NewObject((24 + var_c20168), (* (( (ptr) gf_c22408)+24) )); (* (( (ptr) var_c20200)+5) ) = var_c20136; new_v6800 = var_c20200; }; SOURCE(3771, 99) if ((n_v6772 == 0)) { (* (W4Pt) (( (ptr) new_v6800)+1) ) = (* (W4Pt) (( (ptr) gf_c22408)+52)/* var_c19528 */ ); } else { { W4 var_c20232; word map_v19032; map_v19032 = s_v6716.f0; var_c20232 = (* (W4Pt) map_v19032 ); (* (W4Pt) (( (ptr) new_v6800)+1) ) = var_c20232; }; }; SOURCE(3872, 101) { register word i_v6940 = 0; if ((i_v6940 >= n_v6772)) { goto lab_L100033; }; lab_L100036: ; { word assert_v6984; SOURCE(3896, 62) { word var_c0315; W4 var_c20264; word map_v18984; map_v18984 = (* (( (ptr) &s_v6716)+BCK(i_v6940, 5)) ); var_c20264 = (* (W4Pt) map_v18984 ); var_c0315 = (var_c0315 & 4294967294) | ((word) (1 & (XR_EqualWords(&var_c20264, (( (ptr) new_v6800)+1), 4)))); { word idx22; assert_v6984 = ( idx22 = (word) ( (unsigned) (var_c0315 & 1) - 1), BCK(idx22, 1) ); }; }; SOURCE(3960, 13) { word limit23; (* ((( (ptr) new_v6800)+6)+( limit23 = (* (( (ptr) new_v6800)+5) ), BCK(i_v6940, limit23) )) ) = (* (( (ptr) &s_v6716)+BCK(i_v6940, 5)) ); }; }; i_v6940 = (i_v6940 + 1); if ((i_v6940 < n_v6772)) { goto lab_L100036; }; lab_L100033: ; }; SOURCE(3984, 4) { register word i_v7048; word assert_v7092; i_v7048 = n_v6772; if ((i_v7048 > 4)) { goto lab_L100038; }; lab_L100041: ; SOURCE(4008, 37) { word idx24; assert_v7092 = ( idx24 = (word) ( (unsigned) ((* (( (ptr) &s_v6716)+BCK(i_v7048, 5)) ) == 0) - 1), BCK(idx24, 1) ); }; if ((i_v7048 >= 4)) { goto lab_L100038; }; i_v7048 = (i_v7048 + 1); goto lab_L100041; lab_L100038: ; }; SOURCE(4056, 13) return(new_v6800); } static void GetPixels_P480(self_v4736, initIndex_v4764, delta_v4792, pixels_v4820, start_v4848, count_v4876) word self_v4736; W2 initIndex_v4764; W2 delta_v4792; word pixels_v4820; word start_v4848; word count_v4876; { register ptr gf_c22440 = (ptr) &globalframe; /* GetPixels: */ SOURCE(4073, 307) SOURCE(4262, 118) { register word i_v7156 = 0; register word noName_c20296; noName_c20296 = (* (( (ptr) self_v4736)+5) ); if ((i_v7156 >= noName_c20296)) { goto lab_L100042; }; lab_L100045: ; SOURCE(4305, 75) { word pd25; word limit26; word limit27; pd25 = (* (( (ptr) (* (( (ptr) gf_c22440)+56)/* var_c19720 */ ))+44) ); (void) ( *( (fPt) ((* (ptr) pd25 ))))((* ((( (ptr) self_v4736)+6)+( limit26 = (* (( (ptr) self_v4736)+5) ), BCK(i_v7156, limit26) )) ), initIndex_v4764, delta_v4792, (* ((( (ptr) pixels_v4820)+2)+( limit27 = (* (( (ptr) pixels_v4820)+1) ), BCK(i_v7156, limit27) )) ), start_v4848, count_v4876, pd25); }; i_v7156 = (i_v7156 + 1); if ((i_v7156 < noName_c20296)) { goto lab_L100045; }; lab_L100042: ; }; } static void PutPixels_P540(self_v4936, initIndex_v4964, delta_v4992, pixels_v5020, start_v5048, count_v5076, function_v5104) word self_v4936; W2 initIndex_v4964; W2 delta_v4992; word pixels_v5020; word start_v5048; word count_v5076; word function_v5104; { register ptr gf_c22472 = (ptr) &globalframe; /* PutPixels: */ SOURCE(4395, 378) SOURCE(4645, 128) { register word i_v7200 = 0; register word noName_c20328; noName_c20328 = (* (( (ptr) self_v4936)+5) ); if ((i_v7200 >= noName_c20328)) { goto lab_L100046; }; lab_L100049: ; SOURCE(4688, 85) { word pd28; word limit29; word limit30; pd28 = (* (( (ptr) (* (( (ptr) gf_c22472)+56)/* var_c19720 */ ))+47) ); (void) ( *( (fPt) ((* (ptr) pd28 ))))((* ((( (ptr) self_v4936)+6)+( limit29 = (* (( (ptr) self_v4936)+5) ), BCK(i_v7200, limit29) )) ), initIndex_v4964, delta_v4992, (* ((( (ptr) pixels_v5020)+2)+( limit30 = (* (( (ptr) pixels_v5020)+1) ), BCK(i_v7200, limit30) )) ), start_v5048, count_v5076 , function_v5104, pd28); }; i_v7200 = (i_v7200 + 1); if ((i_v7200 < noName_c20328)) { goto lab_L100049; }; lab_L100046: ; }; } static word ScaledFromRealMod_P600(d_v5164, m_v5192) word d_v5164; word m_v5192; { word var_c5256; word s_v7244 = 0; /* ScaledFromRealMod: */ SOURCE(4826, 495) SOURCE(4933, 365) if ((m_v5192 != 0)) { SOURCE(4947, 358) { word modulus_v7288; SOURCE(4949, 17) { float tf31; modulus_v7288 = ( tf31 = (float)(unsigned)m_v5192, *(word*)&tf31 ); }; SOURCE(4968, 237) { word var_c20392; var_c20392 = d_v5164; { word x32; word x34; word x35; word x36; word x41; word x42; word x43; word x44; if ( ( (( x32 = var_c20392, *(float*)&x32 ) >= ( x34 = (* (ptr) &fc33 ), *(float*)&x34 )) ? (( x35 = var_c20392, *(float*)&x35 ) < ( x36 = modulus_v7288, *(float*)&x36 )) : 0 ) ) { SOURCE(5001, 38) { word x37; word x39; float tf40; s_v7244 = (word) XR_REAL32_Fix(( tf40 = ( /*1*/ x37 = d_v5164, *(float*)&x37 /*1*/ ) * ( /*1*/ x39 = (* (ptr) &fc38 ), *(float*)&x39 /*1*/ ), *(word*)&tf40 )); }; } else { if ( ( (( x41 = var_c20392, *(float*)&x41 ) > - ( x42 = modulus_v7288, *(float*)&x42 )) ? (( x43 = var_c20392, *(float*)&x43 ) < ( x44 = (* (ptr) &fc33 ), *(float*)&x44 )) : 0 ) ) { SOURCE(5061, 51) { word x45; word x46; float tf47; s_v7244 = (((word) m_v5192 << 16) - (word) XR_REAL32_Fix(( /*1*/ tf47 = ( - ( /*1*/ x45 = d_v5164, *(float*)&x45 /*1*/ )) * ( /*1*/ x46 = (* (ptr) &fc38 ), *(float*)&x46 /*1*/ ), *(word*)&tf47 /*1*/ ))); }; } else { SOURCE(5125, 80) { word var_c20424; { word x48; word x49; word x50; word x51; float tf52; word x53; *(float*)&var_c20424 = (( /*1*/ x48 = d_v5164, *(float*)&x48 /*1*/ ) - (( /*1*/ x49 = modulus_v7288, *(float*)&x49 /*1*/ ) * (float)(int)(word) XR_REAL32_Floor(( /*1*/ tf52 = ( /*1*/ x50 = d_v5164, *(float*)&x50 /*1*/ ) / ( /*1*/ x51 = modulus_v7288, *(float*)&x51 /*1*/ ), *(word*)&tf52 /*1*/ )))) * ( /*1*/ x53 = (* (ptr) &fc38 ), *(float*)&x53 /*1*/ ); }; s_v7244 = (word) XR_REAL32_Round(var_c20424); }; }; }; }; }; SOURCE(5207, 33) if (( (int)s_v7244 < (int)0)) { SOURCE(5225, 15) { word idx54; s_v7244 = (s_v7244 & 65535) | (((word) ( idx54 = (word) ( (unsigned) ((unsigned)s_v7244 >> 16) + m_v5192), BCK(idx54, 65536) )) << 16); }; }; SOURCE(5243, 34) if (( (unsigned) ((unsigned)s_v7244 >> 16) >= m_v5192)) { SOURCE(5262, 15) { word idx55; s_v7244 = (s_v7244 & 65535) | (((word) ( idx55 = (word) ( (unsigned) ((unsigned)s_v7244 >> 16) - m_v5192), BCK(idx55, 65536) )) << 16); }; }; SOURCE(5280, 18) if (( (unsigned) ((unsigned)s_v7244 >> 16) >= m_v5192)) { SOURCE(5298, 5) (void) XR_RaiseUnnamedError(); }; }; }; SOURCE(5308, 13) return(s_v7244); } static void Resample1_P660(formal_c0323, source_v5716, m_v5744, interpolate_v5772) word formal_c0323; word source_v5716; word m_v5744; word interpolate_v5772; { W9 var_c22504; /* declaration of dest_v5688 skipped */ /* declaration of var_c20456 skipped */ /* declaration of var_c20488 skipped */ (* (( (ptr) &var_c22504)+4)/* dest_v5688 */ ) = formal_c0323; /* Resample1: */ SOURCE(5835, 391) { word tmpAddr56; tmpAddr56 = (word) (( (ptr) &var_c22504)+5)/* var_c20456 */ ; (* (ptr) tmpAddr56 ) = ( ((word) (fPt) action_P1728) ); (* (( (ptr) tmpAddr56) + 1) ) = 1; }; { word tmpAddr57; tmpAddr57 = (word) (( (ptr) &var_c22504)+7)/* var_c20488 */ ; (* (ptr) tmpAddr57 ) = ( ((word) (fPt) boxes_P1668) ); (* (( (ptr) tmpAddr57) + 1) ) = 1; }; SOURCE(6124, 102) (void) Resample_P720(source_v5716, m_v5744, interpolate_v5772, (word) (( (bPt) &var_c22504)+28)/* var_c20488 */ , (* (W4Pt) ( ( (ptr) (* (( (ptr) &var_c22504)+4)/* dest_v5688 */ ))+1) ), (word) (( (bPt) &var_c22504)+20)/* var_c20456 */ ); } static void boxes_P1668(boxAction_v17380, formal_c22536) word boxAction_v17380; word formal_c22536; { formal_c22536 = (formal_c22536 - 28); /* boxes: */ SOURCE(5918, 45) SOURCE(5944, 19) (void) ( *( (fPt) ((* (ptr) boxAction_v17380 ))))((* (W4Pt) ((( (ptr) (* (( (ptr) formal_c22536)+4) ))+1)) ), boxAction_v17380) ; } static void action_P1728(pixels_v17440, min_v17468, formal_c22600) word pixels_v17440; W2 min_v17468; word formal_c22600; { register ptr gf_c22568 = (ptr) &globalframe; formal_c22600 = (formal_c22600 - 20); /* action: */ SOURCE(5966, 144) SOURCE(5993, 117) { register word j_v7404 = 0; register word noName_c20520; noName_c20520 = (* (( (ptr) pixels_v17440)+1) ); if ((j_v7404 >= noName_c20520)) { goto lab_L100050; }; lab_L100053: ; SOURCE(6038, 72) { W2 var_c20552; var_c20552.f0 = 0; var_c20552.f1 = 1; { word pd58; word limit59; word limit60; pd58 = (* (( (ptr) (* (( (ptr) gf_c22568)+56)/* var_c19720 */ ))+47) ); (void) ( *( (fPt) ((* (ptr) pd58 ))))((* ((( (ptr) (* (( (ptr) formal_c22600)+4) ))+6)+( limit59 = (* (( (ptr) (* (( (ptr) formal_c22600)+4) ))+5) ), BCK(j_v7404, limit59) )) ), min_v17468, var_c20552, (* ((( (ptr) pixels_v17440)+2)+( limit60 = (* (( (ptr) pixels_v17440)+1) ), BCK(j_v7404, limit60) )) ), 0, 2147483647 , 0, pd58); }; }; j_v7404 = (j_v7404 + 1); if ((j_v7404 < noName_c20520)) { goto lab_L100053; }; lab_L100050: ; }; } static void Resample_P720(formal_c0324, m_v5860, interpolate_v5888, boxes_v5916, bounds_v5944, formal_c0325) word formal_c0324; word m_v5860; word interpolate_v5888; word boxes_v5916; W4 bounds_v5944; word formal_c0325; { W22 var_c22632; /* declaration of self_v5832 skipped */ /* declaration of action_v5972 skipped */ register ptr gf_c22664 = (ptr) &globalframe; /* declaration of var_c20584 skipped */ /* declaration of var_c20616 skipped */ (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ) = formal_c0324; (* (( (ptr) &var_c22632)+5)/* action_v5972 */ ) = formal_c0325; /* Resample: */ SOURCE(6232, 11206) { word tmpAddr61; tmpAddr61 = (word) (( (ptr) &var_c22632)+6)/* var_c20584 */ ; (* (ptr) tmpAddr61 ) = ( ((word) (fPt) boxActionInterpolatedSamples_P1944) ); (* (( (ptr) tmpAddr61) + 1) ) = 1; }; { word tmpAddr62; tmpAddr62 = (word) (( (ptr) &var_c22632)+8)/* var_c20616 */ ; (* (ptr) tmpAddr62 ) = ( ((word) (fPt) boxActionPointSamples_P1884) ); (* (( (ptr) tmpAddr62) + 1) ) = 1; }; SOURCE(6377, 11061) { word pd63; pd63 = (* (( (ptr) (* (( (ptr) gf_c22664)+57)/* var_c20648 */ ))+52) ); if ((0 == (word) ( *( (fPt) ((* (ptr) pd63 ))))(m_v5860, pd63))) { SOURCE(6422, 11018) { /* declaration of samplesPerPixel_v7448 skipped */ /* declaration of sSize_v7476 skipped */ /* declaration of fSize_v7504 skipped */ /* declaration of ssDelta_v7532 skipped */ /* declaration of fsDelta_v7560 skipped */ /* declaration of sfDelta_v7588 skipped */ /* declaration of ffDelta_v7616 skipped */ /* declaration of d0_v7644 skipped */ /* declaration of s0_v7672 skipped */ /* declaration of f0_v7700 skipped */ /* declaration of pixels_v7728 skipped */ word rs_v7756; word rf_v7784; SOURCE(6424, 43) (* (( (ptr) &var_c22632)+10)/* samplesPerPixel_v7448 */ ) = (* (( (ptr) (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ))+5) ); SOURCE(6469, 44) { word idx64; (* (( (ptr) &var_c22632)+11)/* sSize_v7476 */ ) = ( idx64 = (word) ((* (( (ptr) (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ))+3) ) - (* (( (ptr) (* (( (ptr) &var_c22632)+4) /* self_v5832 */ ))+1) )), BCK(idx64, 32768) ); }; SOURCE(6560, 44) { word idx65; (* (( (ptr) &var_c22632)+12)/* fSize_v7504 */ ) = ( idx65 = (word) ((* (( (ptr) (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ))+4) ) - (* (( (ptr) (* (( (ptr) &var_c22632)+4) /* self_v5832 */ ))+2) )), BCK(idx65, 32768) ); }; SOURCE(6943, 23) (* (W2Pt) (( (ptr) &var_c22632)+17)/* d0_v7644 */ ) = (* (W2Pt) &bounds_v5944 ); SOURCE(7130, 76) { word var_c20680; { word pd66; word idx67; pd66 = (* (( (ptr) (* (( (ptr) gf_c22664)+58)/* var_c20712 */ ))+17) ); var_c20680 = ( idx67 = (word) ( *( (fPt) ((* (ptr) pd66 ))))(bounds_v5944, pd66), SGNCK(idx67) ); }; (* (( (ptr) &var_c22632)+21)/* pixels_v7728 */ ) = (word) ObtainScratchPixels_P180((* (( (ptr) &var_c22632)+10)/* samplesPerPixel_v7448 */ ), var_c20680) ; }; SOURCE(7208, 18) rs_v7756 = (* (ptr) &fc33 ); rf_v7784 = (* (ptr) &fc33 ); SOURCE(16627, 64) { W2 var_c20776; { W2 var_c0150; { W2 var_c20744; var_c20744.f0 = (* (ptr) &fc33 ); var_c20744.f1 = (* (ptr) &fc68 ); { word pd69; pd69 = (* (( (ptr) (* (( (ptr) gf_c22664)+57)/* var_c20648 */ ))+42) ); (void) ( *( (fPt) ((* (ptr) pd69 ))))((word) &var_c0150, m_v5860, var_c20744, pd69); }; }; var_c20776 = var_c0150; }; rf_v7784 = var_c20776.f1; rs_v7756 = var_c20776.f0; }; SOURCE(16693, 41) (* (( (ptr) &var_c22632)+15)/* sfDelta_v7588 */ ) = (word) ScaledFromRealMod_P600(rs_v7756, (* (( (ptr) &var_c22632)+11) /* sSize_v7476 */ )); SOURCE(16736, 41) (* (( (ptr) &var_c22632)+16)/* ffDelta_v7616 */ ) = (word) ScaledFromRealMod_P600(rf_v7784, (* (( (ptr) &var_c22632)+12) /* fSize_v7504 */ )); SOURCE(16779, 64) { W2 var_c20840; { W2 var_c0153; { W2 var_c20808; var_c20808.f0 = (* (ptr) &fc68 ); var_c20808.f1 = (* (ptr) &fc33 ); { word pd70; pd70 = (* (( (ptr) (* (( (ptr) gf_c22664)+57)/* var_c20648 */ ))+42) ); (void) ( *( (fPt) ((* (ptr) pd70 ))))((word) &var_c0153, m_v5860, var_c20808, pd70); }; }; var_c20840 = var_c0153; }; rf_v7784 = var_c20840.f1; rs_v7756 = var_c20840.f0; }; SOURCE(16845, 41) (* (( (ptr) &var_c22632)+13)/* ssDelta_v7532 */ ) = (word) ScaledFromRealMod_P600(rs_v7756, (* (( (ptr) &var_c22632)+11) /* sSize_v7476 */ )); SOURCE(16888, 41) (* (( (ptr) &var_c22632)+14)/* fsDelta_v7560 */ ) = (word) ScaledFromRealMod_P600(rf_v7784, (* (( (ptr) &var_c22632)+12) /* fSize_v7504 */ )); SOURCE(16931, 75) { W2 var_c20904; { W2 var_c0156; { W2 var_c20872; { word x72; *(float*)&var_c20872.f0 = (float)(int)(* (( (ptr) &var_c22632)+17) ) + ( x72 = (* (ptr) &fc71 ), *(float*)&x72 ); }; { word x73; *(float*)&var_c20872.f1 = (float)(int)(* (( (ptr) &var_c22632)+18) ) + ( x73 = (* (ptr) &fc71 ), *(float*)&x73 ); }; { word pd74; pd74 = (* (( (ptr) (* (( (ptr) gf_c22664)+57)/* var_c20648 */ ))+41) ); (void) ( *( (fPt) ((* (ptr) pd74 ))))((word) &var_c0156, m_v5860, var_c20872, pd74); }; }; var_c20904 = var_c0156; }; rf_v7784 = var_c20904.f1; rs_v7756 = var_c20904.f0; }; SOURCE(17008, 157) { word tc75; word tc76; word tc77; word tc78; if ( ( ( (0 != interpolate_v5888) ? (0 != (word) HalfInteger_P780(rs_v7756)) : 0 ) ? (0 != (word) HalfInteger_P780(rf_v7784) ) : 0 ) ) { tc78 = (word) ( (unsigned) (* (( (hPt) &var_c22632)+31) ) == 0); } else { tc78 = (word) 0; }; if (tc78) { tc77 = (word) ( (unsigned) (* (( (hPt) &var_c22632)+33) ) == 0); } else { tc77 = (word) 0; }; if (tc77) { tc76 = (word) ( (unsigned) (* (( (hPt) &var_c22632)+27) ) == 0); } else { tc76 = (word) 0; }; if (tc76) { tc75 = (word) ( (unsigned) (* (( (hPt) &var_c22632)+29) ) == 0); } else { tc75 = (word) 0; }; if (tc75) { SOURCE(17146, 19) interpolate_v5888 = 0; }; }; SOURCE(17170, 47) if ((0 != interpolate_v5888)) { SOURCE(17192, 11) { word x79; word x80; *(float*)&rs_v7756 = ( x79 = rs_v7756, *(float*)&x79 ) - ( x80 = (* (ptr) &fc71 ), *(float*)&x80 ); }; SOURCE(17205, 12) { word x81; word x82; *(float*)&rf_v7784 = ( x81 = rf_v7784, *(float*)&x81 ) - ( x82 = (* (ptr) &fc71 ), *(float*)&x82 ); }; }; SOURCE(17220, 51) { word x83; float tf84; (* (( (ptr) &var_c22632)+19)/* s0_v7672 */ ) = (word) ScaledFromRealMod_P600(( tf84 = ( x83 = rs_v7756, *(float*)&x83 ) - (float)(int)(* (( (ptr) (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ))+1) ), *(word*)&tf84 ), (* (( (ptr) &var_c22632)+11)/* sSize_v7476 */ )); }; SOURCE(17273, 51) { word x85; float tf86; (* (( (ptr) &var_c22632)+20)/* f0_v7700 */ ) = (word) ScaledFromRealMod_P600(( tf86 = ( x85 = rf_v7784, *(float*)&x85 ) - (float)(int)(* (( (ptr) (* (( (ptr) &var_c22632)+4)/* self_v5832 */ ))+2) ), *(word*)&tf86 ), (* (( (ptr) &var_c22632)+12)/* fSize_v7504 */ )); }; SOURCE(17326, 82) if ((0 != interpolate_v5888)) { (void) ( *( (fPt) ((* (ptr) boxes_v5916 ))))((word) ((( (bPt) &var_c22632)+24)/* var_c20584 */ ), boxes_v5916); } else { (void) ( *( (fPt) ((* (ptr) boxes_v5916 ))))((word) ((( (bPt) &var_c22632)+32)/* var_c20616 */ ), boxes_v5916); }; SOURCE(17410, 28) (void) ReleaseScratchPixels_P240((* ((( (ptr) &var_c22632)+21)/* pixels_v7728 */ ) )); }; }; }; } static void boxActionPointSamples_P1884(box_v17528, formal_c22728) W4 box_v17528; word formal_c22728; { register ptr gf_c22696 = (ptr) &globalframe; word count_v7884; word smax_v7912; word fmax_v7940; word ssup_v7968; word fsup_v7996; word ssdn_v8024; word fsdn_v8052; word sfup_v8080; word ffup_v8108; word sfdn_v8136; word ffdn_v8164; word d1s_v8192; word d1f_v8220; word s1_v8248; word f1_v8276; formal_c22728 = (formal_c22728 - 32); /* boxActionPointSamples: */ SOURCE(7228, 38) SOURCE(7268, 26) { word pd87; word idx88; pd87 = (* (( (ptr) (* (( (ptr) gf_c22696)+58)/* var_c20712 */ ))+17) ); count_v7884 = ( idx88 = (word) ( *( (fPt) ((* (ptr) pd87 ))))(box_v17528, pd87), SGNCK(idx88) ); }; SOURCE(7296, 50) smax_v7912 = ((* (( (ptr) formal_c22728)+11) ) << 16); SOURCE(7348, 50) fmax_v7940 = ((* (( (ptr) formal_c22728)+12) ) << 16); SOURCE(7400, 33) ssup_v7968 = (* (( (ptr) formal_c22728)+13) ); SOURCE(7435, 33) fsup_v7996 = (* (( (ptr) formal_c22728)+14) ); SOURCE(7470, 47) ssdn_v8024 = (smax_v7912 - ssup_v7968); SOURCE(7519, 47) fsdn_v8052 = (fmax_v7940 - fsup_v7996); SOURCE(7568, 33) sfup_v8080 = (* (( (ptr) formal_c22728)+15) ); SOURCE(7603, 33) ffup_v8108 = (* (( (ptr) formal_c22728)+16) ); SOURCE(7638, 47) sfdn_v8136 = (smax_v7912 - sfup_v8080); SOURCE(7687, 47) ffdn_v8164 = (fmax_v7940 - ffup_v8108); SOURCE(7801, 26) s1_v8248 = (* (( (ptr) formal_c22728)+19) ); SOURCE(7869, 26) f1_v8276 = (* (( (ptr) formal_c22728)+20) ); SOURCE(7937, 15) { W2 var_c21128; var_c21128 = (* (W2Pt) (( (ptr) formal_c22728)+17) ); d1f_v8220 = var_c21128.f1; d1s_v8192 = var_c21128.f0; }; SOURCE(7954, 178) lab_L100056: ; if (( (int)d1s_v8192 < (int)box_v17528.f0)) { } else { goto lab_L100054; }; SOURCE(7977, 11) d1s_v8192 = (d1s_v8192 + 1); SOURCE(7990, 70) if ((s1_v8248 < ssdn_v8024)) { SOURCE(8012, 27) s1_v8248 = (s1_v8248 + ssup_v7968); } else { SOURCE(8039, 21) s1_v8248 = (s1_v8248 - ssdn_v8024); }; SOURCE(8062, 70) if ((f1_v8276 < fsdn_v8052)) { SOURCE(8084, 27) f1_v8276 = (f1_v8276 + fsup_v7996); } else { SOURCE(8111, 21) f1_v8276 = (f1_v8276 - fsdn_v8052); }; goto lab_L100056; lab_L100054: ; SOURCE(8143, 180) lab_L100059: ; if (( (int)d1s_v8192 > (int)box_v17528.f0)) { } else { goto lab_L100057; }; SOURCE(8166, 11) d1s_v8192 = (d1s_v8192 - 1); SOURCE(8179, 71) if ((s1_v8248 >= ssup_v7968)) { SOURCE(8202, 27) s1_v8248 = (s1_v8248 - ssup_v7968); } else { SOURCE(8229, 21) s1_v8248 = (s1_v8248 + ssdn_v8024); }; SOURCE(8252, 71) if ((f1_v8276 >= fsup_v7996)) { SOURCE(8275, 27) f1_v8276 = (f1_v8276 - fsup_v7996); } else { SOURCE(8302, 21) f1_v8276 = (f1_v8276 + fsdn_v8052); }; goto lab_L100059; lab_L100057: ; SOURCE(8334, 15) (* (( (ptr) formal_c22728)+17) ) = d1s_v8192; (* (( (ptr) formal_c22728)+18) ) = d1f_v8220; SOURCE(8351, 13) (* (( (ptr) formal_c22728)+19) ) = s1_v8248; SOURCE(8366, 13) (* (( (ptr) formal_c22728)+20) ) = f1_v8276; SOURCE(8381, 178) lab_L100062: ; if (( (int)d1f_v8220 < (int)box_v17528.f1)) { } else { goto lab_L100060; }; SOURCE(8404, 11) d1f_v8220 = (d1f_v8220 + 1); SOURCE(8417, 70) if ((s1_v8248 < sfdn_v8136)) { SOURCE(8439, 27) s1_v8248 = (s1_v8248 + sfup_v8080); } else { SOURCE(8466, 21) s1_v8248 = (s1_v8248 - sfdn_v8136); }; SOURCE(8489, 70) if ((f1_v8276 < ffdn_v8164)) { SOURCE(8511, 27) f1_v8276 = (f1_v8276 + ffup_v8108); } else { SOURCE(8538, 21) f1_v8276 = (f1_v8276 - ffdn_v8164); }; goto lab_L100062; lab_L100060: ; SOURCE(8570, 180) lab_L100065: ; if (( (int)d1f_v8220 > (int)box_v17528.f1)) { } else { goto lab_L100063; }; SOURCE(8593, 11) d1f_v8220 = (d1f_v8220 - 1); SOURCE(8606, 71) if ((s1_v8248 >= sfup_v8080)) { SOURCE(8629, 27) s1_v8248 = (s1_v8248 - sfup_v8080); } else { SOURCE(8656, 21) s1_v8248 = (s1_v8248 + sfdn_v8136); }; SOURCE(8679, 71) if ((f1_v8276 >= ffup_v8108)) { SOURCE(8702, 27) f1_v8276 = (f1_v8276 - ffup_v8108); } else { SOURCE(8729, 21) f1_v8276 = (f1_v8276 + ffdn_v8164); }; goto lab_L100065; lab_L100063: ; SOURCE(8761, 21) (* (ptr) (* (( (ptr) formal_c22728)+21) ) ) = count_v7884; SOURCE(8784, 3435) lab_L100068: ; SOURCE(8817, 3164) { register word i_v8320 = 0; if ((i_v8320 >= (* (( (ptr) formal_c22728)+10) ))) { goto lab_L100069; }; lab_L100072: ; { word map_v8364; word rasterMap_v8392; word easyLineCalc_v8420; word samples_v8448; word s_v8476; word f_v8504; SOURCE(8855, 37) { word limit89; map_v8364 = (* ((( (ptr) (* (( (ptr) formal_c22728)+4) ))+6)+( limit89 = (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+5) ), BCK(i_v8320, limit89) )) ); }; SOURCE(8894, 63) { word var_c21160; var_c21160 = map_v8364; if ((var_c21160 == 0)) { goto lab_L100073; }; if (((* (( (ptr) var_c21160)+6) ) == 0)) { rasterMap_v8392 = var_c21160; } else { lab_L100073: ; rasterMap_v8392 = 0; }; }; SOURCE(9010, 107) easyLineCalc_v8420 = (unsigned) ( ( (rasterMap_v8392 != 0) ? ((* (( (ptr) rasterMap_v8392)+9) ) == 0) : 0 ) ? (((* (( (ptr) rasterMap_v8392)+7) ) & 037) == 0) : 0 ) ; SOURCE(9119, 46) { word limit90; samples_v8448 = (* ((( (ptr) (* (( (ptr) formal_c22728)+21) ))+2)+( limit90 = (* (( (ptr) (* (( (ptr) formal_c22728)+21) ))+1) ), BCK(i_v8320, limit90) )) ); }; SOURCE(9167, 25) s_v8476 = s1_v8248; SOURCE(9194, 25) f_v8504 = f1_v8276; if ( ( ( (int)(* (( (ptr) formal_c22728)+15) ) == (int)0) ? ((* (( (ptr) formal_c22728)+16) ) == 65536) : 0 ) ) { SOURCE(9291, 537) { word count1_v8592; word count2_v8620; word count3_v8648; SOURCE(9293, 37) { word x91; count1_v8592 = (x91 = ((* (( (ptr) formal_c22728)+12) ) - (unsigned) ((unsigned)f_v8504 >> 16)), MIN((int)(word), count_v7884, x91)); }; SOURCE(9332, 38) { word x92; count2_v8620 = (x92 = (unsigned) ((unsigned)f_v8504 >> 16), MIN((int)(word), (count_v7884 - count1_v8592), x92)); }; SOURCE(9372, 33) count3_v8648 = ((count_v7884 - count1_v8592) - count2_v8620); SOURCE(9407, 136) { W2 var_c21224; W2 var_c21256; var_c21224.f0 = ( (unsigned) ((unsigned)s_v8476 >> 16) + (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+1) )); var_c21224.f1 = ( (unsigned) ((unsigned)f_v8504 >> 16) + (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+2) )); var_c21256.f0 = 0; var_c21256.f1 = 1; { word pd93; pd93 = (* (( (ptr) (* (( (ptr) gf_c22696)+56)/* var_c19720 */ ))+44) ); (void) ( *( (fPt) ((* (ptr) pd93 ))))(map_v8364, var_c21224, var_c21256, samples_v8448, 0, count1_v8592, pd93); }; }; SOURCE(9545, 155) if ((count2_v8620 != 0)) { SOURCE(9564, 136) { W2 var_c21288; W2 var_c21320; var_c21288.f0 = ( (unsigned) ((unsigned)s_v8476 >> 16) + (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+1) )); var_c21288.f1 = (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+2) ); var_c21320.f0 = 0; var_c21320.f1 = 1; { word pd94; pd94 = (* (( (ptr) (* (( (ptr) gf_c22696)+56)/* var_c19720 */ ))+44) ); (void) ( *( (fPt) ((* (ptr) pd94 ))))(map_v8364, var_c21288, var_c21320, samples_v8448, count1_v8592, count2_v8620, pd94) ; }; }; }; SOURCE(9702, 124) if ((count3_v8648 != 0)) { SOURCE(9721, 105) { word pd95; pd95 = (* (( (ptr) (* (( (ptr) gf_c22696)+56)/* var_c19720 */ ))+12) ); (void) ( *( (fPt) ((* (ptr) pd95 ))))(samples_v8448, samples_v8448, SGNCK((count1_v8592 + count2_v8620)), 0, count3_v8648, pd95) ; }; }; }; } else { if ( ( (0 != easyLineCalc_v8420) ? ((* (( (ptr) rasterMap_v8392)+5) ) == 1) : 0 ) ) { SOURCE(9877, 497) { word base_v8692; word upl_v8720; word result_v8748; word lastSHi_v8776; word line_v8804; SOURCE(9879, 46) base_v8692 = (* (( (ptr) rasterMap_v8392)+8) ); SOURCE(9927, 44) upl_v8720 = ((* (( (ptr) rasterMap_v8392)+7) ) >> 3); SOURCE(9973, 65) { word check_v6104; check_v6104 = ((* (( (ptr) samples_v8448)+1) ) - count_v7884); SOURCE(1099, 81) result_v8748 = (samples_v8448 + 8); }; SOURCE(10040, 24) lastSHi_v8776 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(10066, 33) line_v8804 = (base_v8692 + (lastSHi_v8776 * upl_v8720)); SOURCE(10101, 262) { register word k_v8848 = 0; if ((k_v8848 >= count_v7884)) { goto lab_L100075; }; lab_L100078: ; SOURCE(10129, 63) if ((lastSHi_v8776 != (unsigned) ((unsigned)s_v8476 >> 16))) { SOURCE(10153, 14) lastSHi_v8776 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(10169, 23) line_v8804 = (base_v8692 + (lastSHi_v8776 * upl_v8720)); }; SOURCE(10203, 25) SOURCE(10205, 23) { word ix96; (* (( (ptr) result_v8748)+k_v8848) ) = (unsigned) ( ix96 = ((unsigned)f_v8504 >> 16), ((* (ptr) (( (ptr) line_v8804) + ((word) ix96 >> 5)) ) >> (31 - ((word) (ix96 & 037)))) & 1 ); }; SOURCE(10231, 65) if ((s_v8476 < sfdn_v8136)) { SOURCE(10252, 25) s_v8476 = (s_v8476 + sfup_v8080); } else { SOURCE(10277, 19) s_v8476 = (s_v8476 - sfdn_v8136); }; SOURCE(10298, 65) if ((f_v8504 < ffdn_v8164)) { SOURCE(10319, 25) f_v8504 = (f_v8504 + ffup_v8108); } else { SOURCE(10344, 19) f_v8504 = (f_v8504 - ffdn_v8164); }; k_v8848 = (k_v8848 + 1); if ((k_v8848 < count_v7884)) { goto lab_L100078; }; lab_L100075: ; }; }; } else { if ( ( (0 != easyLineCalc_v8420) ? ((* (( (ptr) rasterMap_v8392)+5) ) == 8) : 0 ) ) { SOURCE(10423, 713) { word base_v8892; word upl_v8920; word result_v8948; SOURCE(10425, 46) base_v8892 = (* (( (ptr) rasterMap_v8392)+8) ); SOURCE(10473, 44) upl_v8920 = ((* (( (ptr) rasterMap_v8392)+7) ) >> 3); SOURCE(10519, 65) { word check_v18684; check_v18684 = ((* (( (ptr) samples_v8448)+1) ) - count_v7884); SOURCE(1099, 81) result_v8948 = (samples_v8448 + 8); }; SOURCE(10586, 536) if ((sfup_v8080 == 0)) { SOURCE(10604, 180) { word line_v8992; SOURCE(10606, 36) line_v8992 = (base_v8892 + ( (unsigned) ((unsigned)s_v8476 >> 16) * upl_v8920)); SOURCE(10644, 129) { /*1*/ register word k_v9036 = 0; /*1*/ if ((k_v9036 >= count_v7884)) { /*1*/ goto lab_L100080; /*1*/ }; /*1*/ lab_L100083: ; SOURCE(10680, 25) SOURCE(10682, 23) /*1*/ (* (( (ptr) result_v8948)+k_v9036) ) = (unsigned) (word) (* (( (bPt) line_v8992)+((unsigned)f_v8504 >> 16)) ); SOURCE(10708, 65) /*1*/ if ((f_v8504 < ffdn_v8164)) { SOURCE(10729, 25) /*1*/ f_v8504 = (f_v8504 + ffup_v8108); /*1*/ } /*1*/ else { SOURCE(10754, 19) /*1*/ f_v8504 = (f_v8504 - ffdn_v8164); /*1*/ }; /*1*/ k_v9036 = (k_v9036 + 1); /*1*/ if ((k_v9036 < count_v7884)) { /*1*/ goto lab_L100083; /*1*/ }; /*1*/ lab_L100080: ; /*1*/ }; }; } else { SOURCE(10791, 342) { word lastSHi_v9080; word line_v9108; SOURCE(10793, 24) lastSHi_v9080 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(10819, 39) line_v9108 = (base_v8892 + (lastSHi_v9080 * upl_v8920)); SOURCE(10860, 262) { /*1*/ register word k_v9152 = 0; /*1*/ if ((k_v9152 >= count_v7884)) { /*1*/ goto lab_L100084; /*1*/ }; /*1*/ lab_L100087: ; SOURCE(10888, 63) /*1*/ if ((lastSHi_v9080 != (unsigned) ((unsigned)s_v8476 >> 16))) { SOURCE(10912, 14) /*1*/ lastSHi_v9080 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(10928, 23) /*1*/ line_v9108 = (base_v8892 + (lastSHi_v9080 * upl_v8920)); /*1*/ }; SOURCE(10962, 25) SOURCE(10964, 23) /*1*/ (* (( (ptr) result_v8948)+k_v9152) ) = (unsigned) (word) (* (( (bPt) line_v9108)+((unsigned)f_v8504 >> 16)) ); SOURCE(10990, 65) /*1*/ if ((s_v8476 < sfdn_v8136)) { SOURCE(11011, 25) /*1*/ s_v8476 = (s_v8476 + sfup_v8080); /*1*/ } /*1*/ else { SOURCE(11036, 19) /*1*/ s_v8476 = (s_v8476 - sfdn_v8136); /*1*/ }; SOURCE(11057, 65) /*1*/ if ((f_v8504 < ffdn_v8164)) { SOURCE(11078, 25) /*1*/ f_v8504 = (f_v8504 + ffup_v8108); /*1*/ } /*1*/ else { SOURCE(11103, 19) /*1*/ f_v8504 = (f_v8504 - ffdn_v8164); /*1*/ }; /*1*/ k_v9152 = (k_v9152 + 1); /*1*/ if ((k_v9152 < count_v7884)) { /*1*/ goto lab_L100087; /*1*/ }; /*1*/ lab_L100084: ; /*1*/ }; }; }; }; } else { if ( ( (0 != easyLineCalc_v8420) ? ((* (( (ptr) rasterMap_v8392)+5) ) == 16) : 0 ) ) { SOURCE(11186, 505) { word base_v9196; word upl_v9224; word result_v9252; word lastSHi_v9280; word line_v9308; SOURCE(11188, 47) base_v9196 = (* (( (ptr) rasterMap_v8392)+8) ); SOURCE(11237, 44) upl_v9224 = ((* (( (ptr) rasterMap_v8392)+7) ) >> 3); SOURCE(11283, 65) { word check_v18640; check_v18640 = ((* (( (ptr) samples_v8448)+1) ) - count_v7884); SOURCE(1099, 81) result_v9252 = (samples_v8448 + 8); }; SOURCE(11350, 24) lastSHi_v9280 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(11376, 40) line_v9308 = (base_v9196 + (lastSHi_v9280 * upl_v9224)); SOURCE(11418, 262) { register word k_v9352 = 0; if ((k_v9352 >= count_v7884)) { /*1*/ goto lab_L100089; /*1*/ }; lab_L100092: ; SOURCE(11446, 63) if ((lastSHi_v9280 != (unsigned) ((unsigned)s_v8476 >> 16))) { SOURCE(11470, 14) /*1*/ lastSHi_v9280 = (unsigned) ((unsigned)s_v8476 >> 16); SOURCE(11486, 23) /*1*/ line_v9308 = (base_v9196 + (lastSHi_v9280 * upl_v9224)); /*1*/ }; SOURCE(11520, 25) SOURCE(11522, 23) (* (( (ptr) result_v9252)+k_v9352) ) = (unsigned) (word) (* (( (hPt) line_v9308)+((unsigned)f_v8504 >> 16)) ); SOURCE(11548, 65) if ((s_v8476 < sfdn_v8136)) { SOURCE(11569, 25) /*1*/ s_v8476 = (s_v8476 + sfup_v8080); /*1*/ } else { SOURCE(11594, 19) /*1*/ s_v8476 = (s_v8476 - sfdn_v8136); /*1*/ }; SOURCE(11615, 65) if ((f_v8504 < ffdn_v8164)) { SOURCE(11636, 25) /*1*/ f_v8504 = (f_v8504 + ffup_v8108); /*1*/ } else { SOURCE(11661, 19) /*1*/ f_v8504 = (f_v8504 - ffdn_v8164); /*1*/ }; k_v9352 = (k_v9352 + 1); if ((k_v9352 < count_v7884)) { /*1*/ goto lab_L100092; /*1*/ }; lab_L100089: ; }; }; } else { SOURCE(11735, 246) { register word k_v9396 = 0; if ((k_v9396 >= count_v7884)) { goto lab_L100093; }; lab_L100096: ; SOURCE(11763, 84) { word var_c21448; { /*1*/ W2 var_c21480; /*1*/ var_c21480.f0 = ( (unsigned) ((unsigned)s_v8476 >> 16) + (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+1) )); /*1*/ var_c21480.f1 = ( (unsigned) ((unsigned)f_v8504 >> 16) + (* (( (ptr) (* (( (ptr) formal_c22728)+4) ))+2) )); /*1*/ { /*1*/ word pd97; /*1*/ pd97 = (* (( (ptr) (* (( (ptr) gf_c22696)+56)/* var_c19720 */ ))+42) ); /*1*/ var_c21448 = (word) ( *( (fPt) ((* (ptr) pd97 ))))(map_v8364, var_c21480, pd97); /*1*/ }; /*1*/ }; { /*1*/ word limit98; /*1*/ (* ((( (ptr) samples_v8448)+2)+( /*1*/ limit98 = (* (( (ptr) samples_v8448)+1) ), /*1*/ BCK(k_v9396, limit98) /*1*/ )) ) = var_c21448; /*1*/ }; }; SOURCE(11849, 65) if ((s_v8476 < sfdn_v8136)) { SOURCE(11870, 25) s_v8476 = (s_v8476 + sfup_v8080); } else { SOURCE(11895, 19) s_v8476 = (s_v8476 - sfdn_v8136); }; SOURCE(11916, 65) if ((f_v8504 < ffdn_v8164)) { SOURCE(11937, 25) f_v8504 = (f_v8504 + ffup_v8108); } else { SOURCE(11962, 19) f_v8504 = (f_v8504 - ffdn_v8164); }; k_v9396 = (k_v9396 + 1); if ((k_v9396 < count_v7884)) { goto lab_L100096; }; lab_L100093: ; }; }; }; }; }; }; i_v8320 = (i_v8320 + 1); if ((i_v8320 < (* (( (ptr) formal_c22728)+10) ))) { goto lab_L100072; }; lab_L100069: ; }; SOURCE(12004, 26) { W2 var_c21512; var_c21512.f0 = d1s_v8192; var_c21512.f1 = d1f_v8220; { word pd99; pd99 = (* (( (ptr) formal_c22728)+5) ); (void) ( *( (fPt) ((* (ptr) pd99 ))))((* (( (ptr) formal_c22728)+21) ), var_c21512, pd99); }; }; SOURCE(12032, 11) d1s_v8192 = (d1s_v8192 + 1); SOURCE(12045, 26) if (( (int)d1s_v8192 >= (int)box_v17528.f2)) { SOURCE(12071, 4) goto lab_L100067; }; SOURCE(12077, 70) if ((s1_v8248 < ssdn_v8024)) { SOURCE(12099, 27) s1_v8248 = (s1_v8248 + ssup_v7968); } else { SOURCE(12126, 21) s1_v8248 = (s1_v8248 - ssdn_v8024); }; SOURCE(12149, 70) if ((f1_v8276 < fsdn_v8052)) { SOURCE(12171, 27) f1_v8276 = (f1_v8276 + fsup_v7996); } else { SOURCE(12198, 21) f1_v8276 = (f1_v8276 - fsdn_v8052); }; goto lab_L100068; lab_L100067: ; } static void boxActionInterpolatedSamples_P1944(box_v17588, formal_c22792) W4 box_v17588; word formal_c22792; { register ptr gf_c22760 = (ptr) &globalframe; word count_v9440; word smax_v9468; word fmax_v9496; word ssup_v9524; word fsup_v9552; word ssdn_v9580; word fsdn_v9608; word sfup_v9636; word ffup_v9664; word sfdn_v9692; word ffdn_v9720; word isdn_v9804; word ifdn_v9832; word d1s_v9860; word d1f_v9888; word s1_v9916; word f1_v9944; formal_c22792 = (formal_c22792 - 24); /* boxActionInterpolatedSamples: */ SOURCE(12233, 45) SOURCE(12280, 26) { word pd100; word idx101; pd100 = (* (( (ptr) (* (( (ptr) gf_c22760)+58)/* var_c20712 */ ))+17) ); count_v9440 = ( idx101 = (word) ( *( (fPt) ((* (ptr) pd100 ))))(box_v17588, pd100), SGNCK(idx101) ); }; SOURCE(12308, 50) smax_v9468 = ((* (( (ptr) formal_c22792)+11) ) << 16); SOURCE(12360, 50) fmax_v9496 = ((* (( (ptr) formal_c22792)+12) ) << 16); SOURCE(12412, 33) ssup_v9524 = (* (( (ptr) formal_c22792)+13) ); SOURCE(12447, 33) fsup_v9552 = (* (( (ptr) formal_c22792)+14) ); SOURCE(12482, 47) ssdn_v9580 = (smax_v9468 - ssup_v9524); SOURCE(12531, 47) fsdn_v9608 = (fmax_v9496 - fsup_v9552); SOURCE(12580, 33) sfup_v9636 = (* (( (ptr) formal_c22792)+15) ); SOURCE(12615, 33) ffup_v9664 = (* (( (ptr) formal_c22792)+16) ); SOURCE(12650, 47) sfdn_v9692 = (smax_v9468 - sfup_v9636); SOURCE(12699, 47) ffdn_v9720 = (fmax_v9496 - ffup_v9664); SOURCE(12788, 29) { word idx102; isdn_v9804 = ( idx102 = (word) ( (unsigned) ((unsigned)smax_v9468 >> 16) - 1), SGNCK(idx102) ); }; SOURCE(12819, 29) { word idx103; ifdn_v9832 = ( idx103 = (word) ( (unsigned) ((unsigned)fmax_v9496 >> 16) - 1), SGNCK(idx103) ); }; SOURCE(12915, 26) s1_v9916 = (* (( (ptr) formal_c22792)+19) ); SOURCE(12983, 26) f1_v9944 = (* (( (ptr) formal_c22792)+20) ); SOURCE(13051, 15) { W2 var_c21736; var_c21736 = (* (W2Pt) (( (ptr) formal_c22792)+17) ); d1f_v9888 = var_c21736.f1; d1s_v9860 = var_c21736.f0; }; SOURCE(13068, 178) lab_L100099: ; if (( (int)d1s_v9860 < (int)box_v17588.f0)) { } else { goto lab_L100097; }; SOURCE(13091, 11) d1s_v9860 = (d1s_v9860 + 1); SOURCE(13104, 70) if ((s1_v9916 < ssdn_v9580)) { SOURCE(13126, 27) s1_v9916 = (s1_v9916 + ssup_v9524); } else { SOURCE(13153, 21) s1_v9916 = (s1_v9916 - ssdn_v9580); }; SOURCE(13176, 70) if ((f1_v9944 < fsdn_v9608)) { SOURCE(13198, 27) f1_v9944 = (f1_v9944 + fsup_v9552); } else { SOURCE(13225, 21) f1_v9944 = (f1_v9944 - fsdn_v9608); }; goto lab_L100099; lab_L100097: ; SOURCE(13257, 180) lab_L100102: ; if (( (int)d1s_v9860 > (int)box_v17588.f0)) { } else { goto lab_L100100; }; SOURCE(13280, 11) d1s_v9860 = (d1s_v9860 - 1); SOURCE(13293, 71) if ((s1_v9916 >= ssup_v9524)) { SOURCE(13316, 27) s1_v9916 = (s1_v9916 - ssup_v9524); } else { SOURCE(13343, 21) s1_v9916 = (s1_v9916 + ssdn_v9580); }; SOURCE(13366, 71) if ((f1_v9944 >= fsup_v9552)) { SOURCE(13389, 27) f1_v9944 = (f1_v9944 - fsup_v9552); } else { SOURCE(13416, 21) f1_v9944 = (f1_v9944 + fsdn_v9608); }; goto lab_L100102; lab_L100100: ; SOURCE(13448, 15) (* (( (ptr) formal_c22792)+17) ) = d1s_v9860; (* (( (ptr) formal_c22792)+18) ) = d1f_v9888; SOURCE(13465, 13) (* (( (ptr) formal_c22792)+19) ) = s1_v9916; SOURCE(13480, 13) (* (( (ptr) formal_c22792)+20) ) = f1_v9944; SOURCE(13495, 178) lab_L100105: ; if (( (int)d1f_v9888 < (int)box_v17588.f1)) { } else { goto lab_L100103; }; SOURCE(13518, 11) d1f_v9888 = (d1f_v9888 + 1); SOURCE(13531, 70) if ((s1_v9916 < sfdn_v9692)) { SOURCE(13553, 27) s1_v9916 = (s1_v9916 + sfup_v9636); } else { SOURCE(13580, 21) s1_v9916 = (s1_v9916 - sfdn_v9692); }; SOURCE(13603, 70) if ((f1_v9944 < ffdn_v9720)) { SOURCE(13625, 27) f1_v9944 = (f1_v9944 + ffup_v9664); } else { SOURCE(13652, 21) f1_v9944 = (f1_v9944 - ffdn_v9720); }; goto lab_L100105; lab_L100103: ; SOURCE(13684, 180) lab_L100108: ; if (( (int)d1f_v9888 > (int)box_v17588.f1)) { } else { goto lab_L100106; }; SOURCE(13707, 11) d1f_v9888 = (d1f_v9888 - 1); SOURCE(13720, 71) if ((s1_v9916 >= sfup_v9636)) { SOURCE(13743, 27) s1_v9916 = (s1_v9916 - sfup_v9636); } else { SOURCE(13770, 21) s1_v9916 = (s1_v9916 + sfdn_v9692); }; SOURCE(13793, 71) if ((f1_v9944 >= ffup_v9664)) { SOURCE(13816, 27) f1_v9944 = (f1_v9944 - ffup_v9664); } else { SOURCE(13843, 21) f1_v9944 = (f1_v9944 + ffdn_v9720); }; goto lab_L100108; lab_L100106: ; SOURCE(13875, 21) (* (ptr) (* (( (ptr) formal_c22792)+21) ) ) = count_v9440; SOURCE(13898, 2715) lab_L100111: ; SOURCE(13931, 2444) { register word i_v9988 = 0; if ((i_v9988 >= (* (( (ptr) formal_c22792)+10) ))) { goto lab_L100112; }; lab_L100115: ; { word map_v10032; word rasterMap_v10060; word samples_v10088; word s_v10116; word f_v10144; SOURCE(13969, 37) { word limit104; map_v10032 = (* ((( (ptr) (* (( (ptr) formal_c22792)+4) ))+6)+( limit104 = (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+5) ), BCK(i_v9988, limit104) )) ); }; SOURCE(14008, 63) { word var_c21768; var_c21768 = map_v10032; if ((var_c21768 == 0)) { goto lab_L100116; }; if (((* (( (ptr) var_c21768)+6) ) == 0)) { rasterMap_v10060 = var_c21768; } else { lab_L100116: ; rasterMap_v10060 = 0; }; }; SOURCE(14124, 46) { word limit105; samples_v10088 = (* ((( (ptr) (* (( (ptr) formal_c22792)+21) ))+2)+( limit105 = (* (( (ptr) (* (( (ptr) formal_c22792)+21) ))+1) ), BCK(i_v9988, limit105) )) ); }; SOURCE(14172, 25) s_v10116 = s1_v9916; SOURCE(14199, 25) f_v10144 = f1_v9944; SOURCE(14226, 2149) if ( ( ( ( (rasterMap_v10060 != 0) ? ((* (( (ptr) rasterMap_v10060)+9) ) == 0) : 0 ) ? (((* (( (ptr) rasterMap_v10060)+7) ) & 037) == 0) : 0 ) ? ((* (( (ptr) rasterMap_v10060)+5) ) == 8) : 0 ) ) { SOURCE(14349, 1034) { word base_v10232; word unitsPerLine_v10260; word result_v10288; SOURCE(14351, 46) base_v10232 = (* (( (ptr) rasterMap_v10060)+8) ); SOURCE(14399, 53) unitsPerLine_v10260 = ((* (( (ptr) rasterMap_v10060)+7) ) >> 3); SOURCE(14454, 78) { word check_v18596; check_v18596 = ((* (( (ptr) samples_v10088)+1) ) - count_v9440); SOURCE(1099, 81) result_v10288 = (samples_v10088 + 8); }; SOURCE(14534, 838) { register word k_v10344 = 0; if ((k_v10344 >= count_v9440)) { goto lab_L100118; }; lab_L100121: ; { word is0_v10388; word is1_v10416; word if0_v10444; word if1_v10472; word w11_v10500; word w10_v10528; word w01_v10556; word w00_v10584; word line0_v10612; word line1_v10640; SOURCE(14562, 20) is0_v10388 = (unsigned) ((unsigned)s_v10116 >> 16); SOURCE(14584, 55) is1_v10416 = ( (is0_v10388 < isdn_v9804) ? (is0_v10388 + 1) : (is0_v10388 - isdn_v9804) ) ; SOURCE(14641, 20) if0_v10444 = (unsigned) ((unsigned)f_v10144 >> 16); SOURCE(14663, 55) if1_v10472 = ( (if0_v10444 < ifdn_v9832) ? (if0_v10444 + 1) : (if0_v10444 - ifdn_v9832) ) ; SOURCE(14720, 63) { word n_v18936; n_v18936 = (( (unsigned) ( (((unsigned)s_v10116 << 16) >> 16) ) * (unsigned) ( (((unsigned)f_v10144 << 16) >> 16) )) + 65535); w11_v10500 = ((word) n_v18936 >> 16); }; SOURCE(14785, 24) w10_v10528 = ( (unsigned) ( (((unsigned)s_v10116 << 16) >> 16) ) - w11_v10500); SOURCE(14811, 24) w01_v10556 = ( (unsigned) ( (((unsigned)f_v10144 << 16) >> 16) ) - w11_v10500); SOURCE(14837, 40) w00_v10584 = (((65535 - w01_v10556) - w10_v10528) - w11_v10500); SOURCE(14879, 45) line0_v10612 = (base_v10232 + (is0_v10388 * unitsPerLine_v10260)); SOURCE(14926, 45) line1_v10640 = (base_v10232 + (is1_v10416 * unitsPerLine_v10260)); SOURCE(14981, 256) { word v00_v10684; word v01_v10712; word v10_v10740; word v11_v10768; word value_v10796; SOURCE(14983, 26) v00_v10684 = (unsigned) (word) (* (( (bPt) line0_v10612)+if0_v10444) ); SOURCE(15011, 26) v01_v10712 = (unsigned) (word) (* (( (bPt) line0_v10612)+if1_v10472) ); SOURCE(15039, 26) v10_v10740 = (unsigned) (word) (* (( (bPt) line1_v10640)+if0_v10444) ); SOURCE(15067, 26) v11_v10768 = (unsigned) (word) (* (( (bPt) line1_v10640)+if1_v10472) ); SOURCE(15095, 121) { word n_v18888; n_v18888 = (((((w00_v10584 * v00_v10684) + (w01_v10556 * v01_v10712)) + (w10_v10528 * v10_v10740)) + (w11_v10500 * v11_v10768)) + 65535); value_v10796 = ((word) n_v18888 >> 16); }; SOURCE(15218, 17) (* (( (ptr) result_v10288)+k_v10344) ) = value_v10796; }; SOURCE(15240, 65) if ((s_v10116 < sfdn_v9692)) { SOURCE(15261, 25) s_v10116 = (s_v10116 + sfup_v9636); } else { SOURCE(15286, 19) s_v10116 = (s_v10116 - sfdn_v9692); }; SOURCE(15307, 65) if ((f_v10144 < ffdn_v9720)) { SOURCE(15328, 25) f_v10144 = (f_v10144 + ffup_v9664); } else { SOURCE(15353, 19) f_v10144 = (f_v10144 - ffdn_v9720); }; }; k_v10344 = (k_v10344 + 1); if ((k_v10344 < count_v9440)) { goto lab_L100121; }; lab_L100118: ; }; }; } else { SOURCE(15420, 955) { register word k_v10840 = 0; if ((k_v10840 >= count_v9440)) { goto lab_L100124; }; lab_L100127: ; { word is0_v10884; word is1_v10912; word if0_v10940; word if1_v10968; word w11_v10996; word w10_v11024; word w01_v11052; word w00_v11080; word v00_v11108; word v01_v11136; word v10_v11164; word v11_v11192; word value_v11220; SOURCE(15448, 20) is0_v10884 = (unsigned) ((unsigned)s_v10116 >> 16); SOURCE(15470, 55) is1_v10912 = ( (is0_v10884 < isdn_v9804) ? (is0_v10884 + 1) : (is0_v10884 - isdn_v9804) ) ; SOURCE(15527, 20) if0_v10940 = (unsigned) ((unsigned)f_v10144 >> 16); SOURCE(15549, 55) if1_v10968 = ( (if0_v10940 < ifdn_v9832) ? (if0_v10940 + 1) : (if0_v10940 - ifdn_v9832) ) ; SOURCE(15606, 63) { word n_v18840; n_v18840 = (( (unsigned) ( (((unsigned)s_v10116 << 16) >> 16) ) * (unsigned) ( (((unsigned)f_v10144 << 16) >> 16) )) + 65535); w11_v10996 = ((word) n_v18840 >> 16); }; SOURCE(15671, 24) w10_v11024 = ( (unsigned) ( (((unsigned)s_v10116 << 16) >> 16) ) - w11_v10996); SOURCE(15697, 24) w01_v11052 = ( (unsigned) ( (((unsigned)f_v10144 << 16) >> 16) ) - w11_v10996); SOURCE(15723, 40) w00_v11080 = (((65535 - w01_v11052) - w10_v11024) - w11_v10996); SOURCE(15802, 75) { W2 var_c21928; var_c21928.f0 = (is0_v10884 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+1) )); var_c21928.f1 = (if0_v10940 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+2) )); { word pd106; pd106 = (* (( (ptr) (* (( (ptr) gf_c22760)+56)/* var_c19720 */ ))+42) ); v00_v11108 = (word) ( *( (fPt) ((* (ptr) pd106 ))))(map_v10032, var_c21928, pd106); }; }; SOURCE(15879, 75) { W2 var_c21960; var_c21960.f0 = (is0_v10884 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+1) )); var_c21960.f1 = (if1_v10968 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+2) )); { word pd107; pd107 = (* (( (ptr) (* (( (ptr) gf_c22760)+56)/* var_c19720 */ ))+42) ); v01_v11136 = (word) ( *( (fPt) ((* (ptr) pd107 ))))(map_v10032, var_c21960, pd107); }; }; SOURCE(15956, 75) { W2 var_c21992; var_c21992.f0 = (is1_v10912 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+1) )); var_c21992.f1 = (if0_v10940 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+2) )); { word pd108; pd108 = (* (( (ptr) (* (( (ptr) gf_c22760)+56)/* var_c19720 */ ))+42) ); v10_v11164 = (word) ( *( (fPt) ((* (ptr) pd108 ))))(map_v10032, var_c21992, pd108); }; }; SOURCE(16033, 75) { W2 var_c22024; var_c22024.f0 = (is1_v10912 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+1) )); var_c22024.f1 = (if1_v10968 + (* (( (ptr) (* (( (ptr) formal_c22792)+4) ))+2) )); { word pd109; pd109 = (* (( (ptr) (* (( (ptr) gf_c22760)+56)/* var_c19720 */ ))+42) ); v11_v11192 = (word) ( *( (fPt) ((* (ptr) pd109 ))))(map_v10032, var_c22024, pd109); }; }; SOURCE(16110, 111) { word n_v18792; n_v18792 = (((((w00_v11080 * v00_v11108) + (w01_v11052 * v01_v11136)) + (w10_v11024 * v10_v11164)) + (w11_v10996 * v11_v11192)) + 65535); value_v11220 = ((word) n_v18792 >> 16); }; SOURCE(16223, 18) { word limit110; (* ((( (ptr) samples_v10088)+2)+( limit110 = (* (( (ptr) samples_v10088)+1) ), BCK(k_v10840, limit110) )) ) = value_v11220; }; SOURCE(16243, 65) if ((s_v10116 < sfdn_v9692)) { SOURCE(16264, 25) s_v10116 = (s_v10116 + sfup_v9636); } else { SOURCE(16289, 19) s_v10116 = (s_v10116 - sfdn_v9692); }; SOURCE(16310, 65) if ((f_v10144 < ffdn_v9720)) { SOURCE(16331, 25) f_v10144 = (f_v10144 + ffup_v9664); } else { SOURCE(16356, 19) f_v10144 = (f_v10144 - ffdn_v9720); }; }; k_v10840 = (k_v10840 + 1); if ((k_v10840 < count_v9440)) { goto lab_L100127; }; lab_L100124: ; }; }; }; i_v9988 = (i_v9988 + 1); if ((i_v9988 < (* (( (ptr) formal_c22792)+10) ))) { goto lab_L100115; }; lab_L100112: ; }; SOURCE(16398, 26) { W2 var_c22088; var_c22088.f0 = d1s_v9860; var_c22088.f1 = d1f_v9888; { word pd111; pd111 = (* (( (ptr) formal_c22792)+5) ); (void) ( *( (fPt) ((* (ptr) pd111 ))))((* (( (ptr) formal_c22792)+21) ), var_c22088, pd111); }; }; SOURCE(16426, 11) d1s_v9860 = (d1s_v9860 + 1); SOURCE(16439, 26) if (( (int)d1s_v9860 >= (int)box_v17588.f2)) { SOURCE(16465, 4) goto lab_L100110; }; SOURCE(16471, 70) if ((s1_v9916 < ssdn_v9580)) { SOURCE(16493, 27) s1_v9916 = (s1_v9916 + ssup_v9524); } else { SOURCE(16520, 21) s1_v9916 = (s1_v9916 - ssdn_v9580); }; SOURCE(16543, 70) if ((f1_v9944 < fsdn_v9608)) { SOURCE(16565, 27) f1_v9944 = (f1_v9944 + fsup_v9552); } else { SOURCE(16592, 21) f1_v9944 = (f1_v9944 - fsdn_v9608); }; goto lab_L100111; lab_L100110: ; } static word HalfInteger_P780(r_v6032) word r_v6032; { word var_c6076; word n_v11376; word halfInteger_v11404; /* HalfInteger: */ SOURCE(17447, 258) SOURCE(17592, 52) n_v11376 = (word) ScaledFromRealMod_P600(r_v6032, 1); SOURCE(17646, 36) halfInteger_v11404 = (unsigned) ((( (((unsigned)n_v11376 << 16) >> 16) ) - 32760) <= 16); SOURCE(17684, 21) return(halfInteger_v11404); } static void NoName_Q3876(formal_c0295, formal_c200000, formal_c200001, formal_c200002, formal_c200003) word formal_c0295; word formal_c200000; word formal_c200001; word formal_c200002; word formal_c200003; { if ((formal_c200001 == XR_Unwind)) { SOURCE(2911, 30) (void) ReleaseScratchPixels_P240((* ((( (ptr) formal_c200000)+5)) )); }; (* (ptr) formal_c0295 ) = 0; (* (( (ptr) formal_c0295)+1) ) = 0; return; } /* file: ImagerPixelImpl, module: ImagerPixelImpl, compiled at: July 28, 1993 10:21:47 am PDT */ extern void XR_install_ImagerPixelImpl() { NoName_Q3756(); } extern void XR_run_ImagerPixelImpl() { XR_Start(&globalframe); }