Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/libraries/base/Foreign/Marshal/Utils.z.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "newmacros.h"
#include "runtime.h"

#define FN_Foreign_46Marshal_46Utils_46memmove_35	((void*)startLabel+12)
#define CT_v539	((void*)startLabel+48)
#define F0_Foreign_46Marshal_46Utils_46memmove_35	((void*)startLabel+56)
#define FN_Foreign_46Marshal_46Utils_46memmove	((void*)startLabel+68)
#define CT_v541	((void*)startLabel+92)
#define CF_Foreign_46Marshal_46Utils_46memmove	((void*)startLabel+100)
#define FN_Foreign_46Marshal_46Utils_46memcpy_35	((void*)startLabel+124)
#define CT_v543	((void*)startLabel+160)
#define F0_Foreign_46Marshal_46Utils_46memcpy_35	((void*)startLabel+168)
#define FN_Foreign_46Marshal_46Utils_46memcpy	((void*)startLabel+180)
#define CT_v545	((void*)startLabel+204)
#define CF_Foreign_46Marshal_46Utils_46memcpy	((void*)startLabel+212)
#define CT_v547	((void*)startLabel+296)
#define CT_v549	((void*)startLabel+412)
#define v551	((void*)startLabel+482)
#define v552	((void*)startLabel+491)
#define CT_v555	((void*)startLabel+528)
#define FN_LAMBDA530	((void*)startLabel+572)
#define CT_v557	((void*)startLabel+604)
#define F0_LAMBDA530	((void*)startLabel+612)
#define FN_LAMBDA529	((void*)startLabel+636)
#define CT_v559	((void*)startLabel+680)
#define F0_LAMBDA529	((void*)startLabel+688)
#define v560	((void*)startLabel+725)
#define v562	((void*)startLabel+747)
#define CT_v565	((void*)startLabel+776)
#define FN_LAMBDA532	((void*)startLabel+832)
#define CT_v568	((void*)startLabel+864)
#define CF_LAMBDA532	((void*)startLabel+872)
#define FN_LAMBDA531	((void*)startLabel+884)
#define CT_v570	((void*)startLabel+920)
#define F0_LAMBDA531	((void*)startLabel+928)
#define CT_v572	((void*)startLabel+972)
#define CT_v574	((void*)startLabel+1036)
#define CT_v576	((void*)startLabel+1120)
#define v578	((void*)startLabel+1178)
#define v579	((void*)startLabel+1190)
#define CT_v582	((void*)startLabel+1232)
#define CT_v584	((void*)startLabel+1296)
#define FN_LAMBDA534	((void*)startLabel+1336)
#define CT_v586	((void*)startLabel+1384)
#define F0_LAMBDA534	((void*)startLabel+1392)
#define FN_LAMBDA533	((void*)startLabel+1428)
#define CT_v588	((void*)startLabel+1452)
#define F0_LAMBDA533	((void*)startLabel+1460)
#define CT_v590	((void*)startLabel+1512)
#define FN_LAMBDA535	((void*)startLabel+1548)
#define CT_v592	((void*)startLabel+1588)
#define F0_LAMBDA535	((void*)startLabel+1596)
#define ST_v537	((void*)startLabel+1616)
#define ST_v548	((void*)startLabel+1638)
#define ST_v580	((void*)startLabel+1670)
#define ST_v573	((void*)startLabel+1701)
#define ST_v564	((void*)startLabel+1732)
#define ST_v566	((void*)startLabel+1764)
#define ST_v569	((void*)startLabel+1809)
#define ST_v571	((void*)startLabel+1855)
#define ST_v544	((void*)startLabel+1887)
#define ST_v542	((void*)startLabel+1916)
#define ST_v540	((void*)startLabel+1946)
#define ST_v538	((void*)startLabel+1976)
#define ST_v546	((void*)startLabel+2007)
#define ST_v589	((void*)startLabel+2039)
#define ST_v591	((void*)startLabel+2065)
#define ST_v575	((void*)startLabel+2103)
#define ST_v583	((void*)startLabel+2132)
#define ST_v585	((void*)startLabel+2159)
#define ST_v587	((void*)startLabel+2198)
#define ST_v553	((void*)startLabel+2237)
#define ST_v556	((void*)startLabel+2268)
#define ST_v558	((void*)startLabel+2313)
#define ST_v567	((void*)startLabel+2358)
extern Node TM_Foreign_46Marshal_46Utils[];
void FR_Foreign_46Marshal_46Utils_46memmove_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok3[];
void FR_Foreign_46Marshal_46Utils_46memcpy_35(void);
extern Node FN_Prelude_46fromIntegral[];
extern Node CF_Prelude_46Integral_46Prelude_46Int[];
extern Node CF_Prelude_46Num_46NHC_46FFI_46CSize[];
extern Node FN_NHC_46Internal_46_95apply1[];
extern Node FN_NHC_46Internal_46_95apply3[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46return[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62[];
extern Node C0_Prelude_46_91_93[];
extern Node FN_Prelude_46_36[];
extern Node TMSUB_Foreign_46Marshal_46Utils[];
extern Node FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61[];
extern Node CF_NHC_46FFI_46nullPtr[];
extern Node CF_Prelude_46otherwise[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[];
extern Node FN_NHC_46Internal_46_95patternMatchFail[];
extern Node FN_Prelude_46flip[];
extern Node F0_Prelude_46_36[];
extern Node FN_Prelude_46maybe[];
extern Node FN_Prelude_46Num_46Prelude_46Eq[];
extern Node FN_Prelude_46_47_61[];
extern Node FN_Prelude_46fromInteger[];
extern Node FN_Foreign_46Marshal_46Alloc_46alloca[];
extern Node FN_NHC_46FFI_46poke[];
extern Node FN_NHC_46Internal_46_95apply2[];
extern Node FN_Foreign_46Marshal_46Alloc_46malloc[];

static Node startLabel[] = {
  bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v539)
,	/* FN_Foreign_46Marshal_46Utils_46memmove_35: (byte 0) */
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PUSH_ARG_I2)
, bytes2word(EVAL,POP_I1,PUSH_ARG_I3,EVAL)
, bytes2word(POP_I1,PRIMITIVE,NOP,NOP)
, useLabel(FR_Foreign_46Marshal_46Utils_46memmove_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1790001
, useLabel(ST_v538)
,	/* CT_v539: (byte 0) */
  HW(0,3)
, 0
,	/* F0_Foreign_46Marshal_46Utils_46memmove_35: (byte 0) */
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memmove_35),3)
, bytes2word(0,0,0,0)
, useLabel(CT_v541)
,	/* FN_Foreign_46Marshal_46Utils_46memmove: (byte 0) */
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1790001
, useLabel(ST_v540)
,	/* CT_v541: (byte 0) */
  HW(2,0)
, 0
,	/* CF_Foreign_46Marshal_46Utils_46memmove: (byte 0) */
  VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memmove))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok3))
, useLabel(F0_Foreign_46Marshal_46Utils_46memmove_35)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v543)
,	/* FN_Foreign_46Marshal_46Utils_46memcpy_35: (byte 0) */
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PUSH_ARG_I2)
, bytes2word(EVAL,POP_I1,PUSH_ARG_I3,EVAL)
, bytes2word(POP_I1,PRIMITIVE,NOP,NOP)
, useLabel(FR_Foreign_46Marshal_46Utils_46memcpy_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1780001
, useLabel(ST_v542)
,	/* CT_v543: (byte 0) */
  HW(0,3)
, 0
,	/* F0_Foreign_46Marshal_46Utils_46memcpy_35: (byte 0) */
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memcpy_35),3)
, bytes2word(0,0,0,0)
, useLabel(CT_v545)
,	/* FN_Foreign_46Marshal_46Utils_46memcpy: (byte 0) */
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1780001
, useLabel(ST_v544)
,	/* CT_v545: (byte 0) */
  HW(2,0)
, 0
,	/* CF_Foreign_46Marshal_46Utils_46memcpy: (byte 0) */
  VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memcpy))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok3))
, useLabel(F0_Foreign_46Marshal_46Utils_46memcpy_35)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v547)
,};
Node FN_Foreign_46Marshal_46Utils_46moveBytes[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_OFF_N1,4,HEAP_ARG,3)
, bytes2word(HEAP_CVAL_P1,8,HEAP_OFF_N1,8)
, bytes2word(HEAP_ARG_ARG,1,2,HEAP_OFF_N1)
, bytes2word(7,HEAP_CVAL_IN3,HEAP_CVAL_P1,9)
, bytes2word(HEAP_OFF_N1,2,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(10,HEAP_OFF_N1,9,HEAP_OFF_N1)
, bytes2word(4,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 0
, CONSTR(0,0,0)
, 1690001
, useLabel(ST_v546)
,	/* CT_v547: (byte 0) */
  HW(8,3)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46moveBytes[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46moveBytes),3)
, VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memmove))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46Prelude_46Int)
, useLabel(CF_Prelude_46Num_46NHC_46FFI_46CSize)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply3))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v549)
,};
Node FN_Foreign_46Marshal_46Utils_46copyBytes[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_OFF_N1,4,HEAP_ARG,3)
, bytes2word(HEAP_CVAL_P1,8,HEAP_OFF_N1,8)
, bytes2word(HEAP_ARG_ARG,1,2,HEAP_OFF_N1)
, bytes2word(7,HEAP_CVAL_IN3,HEAP_CVAL_P1,9)
, bytes2word(HEAP_OFF_N1,2,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(10,HEAP_OFF_N1,9,HEAP_OFF_N1)
, bytes2word(4,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 0
, CONSTR(0,0,0)
, 1620001
, useLabel(ST_v548)
,	/* CT_v549: (byte 0) */
  HW(8,3)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46copyBytes[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46copyBytes),3)
, VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46memcpy))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46Prelude_46Int)
, useLabel(CF_Prelude_46Num_46NHC_46FFI_46CSize)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply3))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v555)
,};
Node FN_Foreign_46Marshal_46Utils_46withMany[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG_I2,EVAL,NEEDHEAP_I32)
, bytes2word(TABLESWITCH,2,TOP(4),BOT(4))
,	/* v551: (byte 2) */
  bytes2word(TOP(13),BOT(13),POP_I1,PUSH_CVAL_P1)
, bytes2word(3,PUSH_ARG_I3,EVAL,NEEDHEAP_I32)
,	/* v552: (byte 3) */
  bytes2word(APPLY,1,RETURN_EVAL,UNPACK)
, bytes2word(2,HEAP_CVAL_I4,HEAP_ARG,1)
, bytes2word(HEAP_P1,0,HEAP_CVAL_I5,HEAP_ARG)
, bytes2word(1,HEAP_I1,HEAP_ARG,3)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,6,HEAP_OFF_N1)
, bytes2word(8,HEAP_OFF_N1,6,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 1500001
, useLabel(ST_v553)
,	/* CT_v555: (byte 0) */
  HW(4,3)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46withMany[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46withMany),3)
, useLabel(C0_Prelude_46_91_93)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_LAMBDA530),1)
, VAPTAG(useLabel(FN_Prelude_46_36))
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v557)
,	/* FN_LAMBDA530: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG_ARG,4)
, bytes2word(3,PUSH_HEAP,HEAP_CVAL_I4,HEAP_ARG_ARG)
, bytes2word(1,2,HEAP_OFF_N1,6)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1510041
, useLabel(ST_v556)
,	/* CT_v557: (byte 0) */
  HW(2,4)
, 0
,	/* F0_LAMBDA530: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA530),4)
, CAPTAG(useLabel(FN_LAMBDA529),1)
, VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46withMany))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v559)
,	/* FN_LAMBDA529: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_IN3,HEAP_ARG_ARG)
, bytes2word(1,3,PUSH_P1,0)
, bytes2word(PUSH_ARG_I2,ZAP_ARG_I1,ZAP_ARG_I2,ZAP_ARG_I3)
, bytes2word(ZAP_STACK_P1,2,EVAL,NEEDHEAP_I32)
, bytes2word(APPLY,1,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 0
, CONSTR(1,2,0)
, 1520052
, useLabel(ST_v558)
,	/* CT_v559: (byte 0) */
  HW(0,3)
, 0
,	/* F0_LAMBDA529: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA529),3)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v565)
,};
Node FN_Foreign_46Marshal_46Utils_46maybePeek[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(2,HEAP_CVAL_I4,EVAL,NEEDHEAP_I32)
, bytes2word(JUMPFALSE,8,0,HEAP_CVAL_IN3)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1,2)
,	/* v560: (byte 1) */
  bytes2word(RETURN_EVAL,PUSH_CVAL_P1,6,EVAL)
, bytes2word(NEEDHEAP_I32,JUMPFALSE,17,0)
, bytes2word(HEAP_CVAL_P1,7,HEAP_ARG_ARG,1)
, bytes2word(2,HEAP_CVAL_P1,8,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,9,HEAP_OFF_N1,5)
,	/* v562: (byte 3) */
  bytes2word(HEAP_OFF_N1,3,RETURN_EVAL,HEAP_CVAL_P1)
, bytes2word(10,PUSH_HEAP,HEAP_CVAL_P1,11)
, bytes2word(HEAP_OFF_N1,2,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 0
, CONSTR(0,0,0)
, 1360001
, useLabel(ST_v564)
,	/* CT_v565: (byte 0) */
  HW(9,2)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46maybePeek[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46maybePeek),2)
, VAPTAG(useLabel(FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61))
, useLabel(CF_NHC_46FFI_46nullPtr)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, useLabel(CF_Prelude_46otherwise)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_LAMBDA531),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, VAPTAG(useLabel(FN_LAMBDA532))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95patternMatchFail))
, bytes2word(0,0,0,0)
, useLabel(CT_v568)
,	/* FN_LAMBDA532: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v567)
, 1360001
, useLabel(ST_v566)
,	/* CT_v568: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA532: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA532))
, bytes2word(1,0,0,1)
, useLabel(CT_v570)
,	/* FN_LAMBDA531: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_IN3,HEAP_ARG,1)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I3,HEAP_OFF_N1,3)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 0
, CONSTR(1,1,0)
, 1370048
, useLabel(ST_v569)
,	/* CT_v570: (byte 0) */
  HW(1,1)
, 0
,	/* F0_LAMBDA531: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA531),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, bytes2word(0,0,0,0)
, useLabel(CT_v572)
,};
Node FN_Foreign_46Marshal_46Utils_46maybeWith[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,6,HEAP_OFF_N1)
, bytes2word(4,RETURN,ENDCODE,0)
, bytes2word(0,0,0,0)
, 1300001
, useLabel(ST_v571)
,	/* CT_v572: (byte 0) */
  HW(4,0)
, 0
,};
Node CF_Foreign_46Marshal_46Utils_46maybeWith[] = {
  VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46maybeWith))
, CAPTAG(useLabel(FN_Prelude_46flip),1)
, useLabel(F0_Prelude_46_36)
, useLabel(CF_NHC_46FFI_46nullPtr)
, CAPTAG(useLabel(FN_Prelude_46maybe),2)
, bytes2word(0,0,0,0)
, useLabel(CT_v574)
,};
Node FN_Foreign_46Marshal_46Utils_46maybeNew[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,PUSH_HEAP)
, bytes2word(HEAP_CVAL_I5,HEAP_OFF_N1,3,RETURN)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 1230001
, useLabel(ST_v573)
,	/* CT_v574: (byte 0) */
  HW(3,0)
, 0
,};
Node CF_Foreign_46Marshal_46Utils_46maybeNew[] = {
  VAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46maybeNew))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, useLabel(CF_NHC_46FFI_46nullPtr)
, CAPTAG(useLabel(FN_Prelude_46maybe),2)
, bytes2word(1,0,0,1)
, useLabel(CT_v576)
,};
Node FN_Foreign_46Marshal_46Utils_46toBool[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_CVAL_I5)
, bytes2word(HEAP_ARG,1,HEAP_CVAL_P1,6)
, bytes2word(HEAP_OFF_N1,3,HEAP_CADR_N1,3)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,7,HEAP_OFF_N1)
, bytes2word(8,HEAP_OFF_N1,5,RETURN)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 0
, CONSTRW(0,0)
, 1110001
, useLabel(ST_v575)
,	/* CT_v576: (byte 0) */
  HW(5,1)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46toBool[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46toBool),1)
, VAPTAG(useLabel(FN_Prelude_46Num_46Prelude_46Eq))
, VAPTAG(useLabel(FN_Prelude_46_47_61))
, VAPTAG(useLabel(FN_Prelude_46fromInteger))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_Prelude_46flip),1)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v582)
,};
Node FN_Foreign_46Marshal_46Utils_46fromBool[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG_I2,EVAL,NEEDHEAP_I32)
, bytes2word(TABLESWITCH,2,TOP(4),BOT(4))
,	/* v578: (byte 2) */
  bytes2word(TOP(16),BOT(16),POP_I1,PUSH_CADR_N1)
, bytes2word(3,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,EVAL,NEEDHEAP_I32,APPLY)
,	/* v579: (byte 2) */
  bytes2word(1,RETURN_EVAL,POP_I1,PUSH_CADR_N1)
, bytes2word(5,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,ZAP_ARG_I1,EVAL,NEEDHEAP_I32)
, bytes2word(APPLY,1,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 0
, CONSTRW(1,0)
, 1
, CONSTRW(0,0)
, 1050001
, useLabel(ST_v580)
,	/* CT_v582: (byte 0) */
  HW(1,2)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46fromBool[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46fromBool),2)
, VAPTAG(useLabel(FN_Prelude_46fromInteger))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v584)
,};
Node FN_Foreign_46Marshal_46Utils_46with[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_ARG_ARG,1,2)
, bytes2word(HEAP_ARG,3,PUSH_HEAP,HEAP_CVAL_I5)
, bytes2word(HEAP_OFF_N1,7,HEAP_OFF_N1,6)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 920001
, useLabel(ST_v583)
,	/* CT_v584: (byte 0) */
  HW(3,3)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46with[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46with),3)
, VAPTAG(useLabel(FN_Foreign_46Marshal_46Alloc_46alloca))
, CAPTAG(useLabel(FN_LAMBDA534),1)
, VAPTAG(useLabel(FN_Prelude_46_36))
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v586)
,	/* FN_LAMBDA534: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG_ARG)
, bytes2word(4,2,HEAP_CVAL_I5,HEAP_ARG_ARG)
, bytes2word(3,4,HEAP_CVAL_P1,6)
, bytes2word(HEAP_CVAL_P1,7,HEAP_OFF_N1,5)
, bytes2word(HEAP_OFF_N1,3,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(8,HEAP_OFF_N1,12,HEAP_OFF_N1)
, bytes2word(5,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 930012
, useLabel(ST_v585)
,	/* CT_v586: (byte 0) */
  HW(6,4)
, 0
,	/* F0_LAMBDA534: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA534),4)
, VAPTAG(useLabel(FN_NHC_46FFI_46poke))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_LAMBDA533),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
, bytes2word(1,0,0,1)
, useLabel(CT_v588)
,	/* FN_LAMBDA533: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(1,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
, 950012
, useLabel(ST_v587)
,	/* CT_v588: (byte 0) */
  HW(1,1)
, 0
,	/* F0_LAMBDA533: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA533),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v590)
,};
Node FN_Foreign_46Marshal_46Utils_46new[] = {
  useLabel(TM_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_ARG_ARG,1,2)
, bytes2word(PUSH_HEAP,HEAP_CVAL_I5,HEAP_OFF_N1,6)
, bytes2word(HEAP_OFF_N1,5,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 780001
, useLabel(ST_v589)
,	/* CT_v590: (byte 0) */
  HW(3,2)
, 0
,};
Node F0_Foreign_46Marshal_46Utils_46new[] = {
  CAPTAG(useLabel(FN_Foreign_46Marshal_46Utils_46new),2)
, VAPTAG(useLabel(FN_Foreign_46Marshal_46Alloc_46malloc))
, CAPTAG(useLabel(FN_LAMBDA535),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v592)
,	/* FN_LAMBDA535: (byte 0) */
  useLabel(TMSUB_Foreign_46Marshal_46Utils)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG_ARG)
, bytes2word(3,2,HEAP_CVAL_I5,HEAP_ARG)
, bytes2word(3,PUSH_HEAP,HEAP_CVAL_P1,6)
, bytes2word(HEAP_OFF_N1,7,HEAP_OFF_N1,4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 800012
, useLabel(ST_v591)
,	/* CT_v592: (byte 0) */
  HW(4,3)
, 0
,	/* F0_LAMBDA535: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA535),3)
, VAPTAG(useLabel(FN_NHC_46FFI_46poke))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
,};
Node PM_Foreign_46Marshal_46Utils[] = {
 	/* ST_v537: (byte 0) */
  bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
,	/* ST_v548: (byte 2) */
  bytes2word(115,0,70,111)
, bytes2word(114,101,105,103)
, bytes2word(110,46,77,97)
, bytes2word(114,115,104,97)
, bytes2word(108,46,85,116)
, bytes2word(105,108,115,46)
, bytes2word(99,111,112,121)
, bytes2word(66,121,116,101)
,	/* ST_v580: (byte 2) */
  bytes2word(115,0,70,111)
, bytes2word(114,101,105,103)
, bytes2word(110,46,77,97)
, bytes2word(114,115,104,97)
, bytes2word(108,46,85,116)
, bytes2word(105,108,115,46)
, bytes2word(102,114,111,109)
, bytes2word(66,111,111,108)
,	/* ST_v573: (byte 1) */
  bytes2word(0,70,111,114)
, bytes2word(101,105,103,110)
, bytes2word(46,77,97,114)
, bytes2word(115,104,97,108)
, bytes2word(46,85,116,105)
, bytes2word(108,115,46,109)
, bytes2word(97,121,98,101)
,	/* ST_v564: (byte 4) */
  bytes2word(78,101,119,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,109,97)
, bytes2word(121,98,101,80)
,	/* ST_v566: (byte 4) */
  bytes2word(101,101,107,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,109,97)
, bytes2word(121,98,101,80)
, bytes2word(101,101,107,58)
, bytes2word(49,51,54,58)
, bytes2word(49,45,49,51)
, bytes2word(55,58,55,50)
,	/* ST_v569: (byte 1) */
  bytes2word(0,70,111,114)
, bytes2word(101,105,103,110)
, bytes2word(46,77,97,114)
, bytes2word(115,104,97,108)
, bytes2word(46,85,116,105)
, bytes2word(108,115,46,109)
, bytes2word(97,121,98,101)
, bytes2word(80,101,101,107)
, bytes2word(58,49,51,55)
, bytes2word(58,52,56,45)
, bytes2word(49,51,55,58)
,	/* ST_v571: (byte 3) */
  bytes2word(53,53,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,109,97,121)
, bytes2word(98,101,87,105)
,	/* ST_v544: (byte 3) */
  bytes2word(116,104,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,109,101,109)
,	/* ST_v542: (byte 4) */
  bytes2word(99,112,121,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,109,101)
, bytes2word(109,99,112,121)
,	/* ST_v540: (byte 2) */
  bytes2word(35,0,70,111)
, bytes2word(114,101,105,103)
, bytes2word(110,46,77,97)
, bytes2word(114,115,104,97)
, bytes2word(108,46,85,116)
, bytes2word(105,108,115,46)
, bytes2word(109,101,109,109)
,	/* ST_v538: (byte 4) */
  bytes2word(111,118,101,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,109,101)
, bytes2word(109,109,111,118)
,	/* ST_v546: (byte 3) */
  bytes2word(101,35,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,109,111,118)
, bytes2word(101,66,121,116)
,	/* ST_v589: (byte 3) */
  bytes2word(101,115,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,110,101,119)
,	/* ST_v591: (byte 1) */
  bytes2word(0,70,111,114)
, bytes2word(101,105,103,110)
, bytes2word(46,77,97,114)
, bytes2word(115,104,97,108)
, bytes2word(46,85,116,105)
, bytes2word(108,115,46,110)
, bytes2word(101,119,58,56)
, bytes2word(48,58,49,50)
, bytes2word(45,56,48,58)
,	/* ST_v575: (byte 3) */
  bytes2word(49,55,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,116,111,66)
,	/* ST_v583: (byte 4) */
  bytes2word(111,111,108,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,119,105)
,	/* ST_v585: (byte 3) */
  bytes2word(116,104,0,70)
, bytes2word(111,114,101,105)
, bytes2word(103,110,46,77)
, bytes2word(97,114,115,104)
, bytes2word(97,108,46,85)
, bytes2word(116,105,108,115)
, bytes2word(46,119,105,116)
, bytes2word(104,58,57,51)
, bytes2word(58,49,50,45)
, bytes2word(57,54,58,49)
,	/* ST_v587: (byte 2) */
  bytes2word(52,0,70,111)
, bytes2word(114,101,105,103)
, bytes2word(110,46,77,97)
, bytes2word(114,115,104,97)
, bytes2word(108,46,85,116)
, bytes2word(105,108,115,46)
, bytes2word(119,105,116,104)
, bytes2word(58,57,53,58)
, bytes2word(49,50,45,57)
, bytes2word(53,58,49,54)
,	/* ST_v553: (byte 1) */
  bytes2word(0,70,111,114)
, bytes2word(101,105,103,110)
, bytes2word(46,77,97,114)
, bytes2word(115,104,97,108)
, bytes2word(46,85,116,105)
, bytes2word(108,115,46,119)
, bytes2word(105,116,104,77)
,	/* ST_v556: (byte 4) */
  bytes2word(97,110,121,0)
, bytes2word(70,111,114,101)
, bytes2word(105,103,110,46)
, bytes2word(77,97,114,115)
, bytes2word(104,97,108,46)
, bytes2word(85,116,105,108)
, bytes2word(115,46,119,105)
, bytes2word(116,104,77,97)
, bytes2word(110,121,58,49)
, bytes2word(53,49,58,52)
, bytes2word(49,45,49,53)
, bytes2word(50,58,55,48)
,	/* ST_v558: (byte 1) */
  bytes2word(0,70,111,114)
, bytes2word(101,105,103,110)
, bytes2word(46,77,97,114)
, bytes2word(115,104,97,108)
, bytes2word(46,85,116,105)
, bytes2word(108,115,46,119)
, bytes2word(105,116,104,77)
, bytes2word(97,110,121,58)
, bytes2word(49,53,50,58)
, bytes2word(53,50,45,49)
, bytes2word(53,50,58,54)
,	/* ST_v567: (byte 2) */
  bytes2word(57,0,70,111)
, bytes2word(114,101,105,103)
, bytes2word(110,46,77,97)
, bytes2word(114,115,104,97)
, bytes2word(108,46,85,116)
, bytes2word(105,108,115,58)
, bytes2word(32,80,97,116)
, bytes2word(116,101,114,110)
, bytes2word(32,109,97,116)
, bytes2word(99,104,32,102)
, bytes2word(97,105,108,117)
, bytes2word(114,101,32,105)
, bytes2word(110,32,102,117)
, bytes2word(110,99,116,105)
, bytes2word(111,110,32,97)
, bytes2word(116,32,49,51)
, bytes2word(54,58,49,45)
, bytes2word(49,51,55,58)
, bytes2word(55,50,46,0)
,};

#include <haskell2c.h>
#include <HsFFI.h>

/* foreign import ccall "string.h memmove" Foreign.Marshal.Utils.memmove# 3 :: FFI.Ptr -> FFI.Ptr -> Prelude.Int -> FFI.Ptr */
#include "string.h"
#ifdef PROFILE
static SInfo pf_Foreign_46Marshal_46Utils_46memmove_35 = {"Foreign.Marshal.Utils","Foreign.Marshal.Utils.memmove#","FFI.Ptr"};
#endif
C_HEADER(FR_Foreign_46Marshal_46Utils_46memmove_35) {
  NodePtr nodeptr;
  void* result;
  void* arg1;
  void* arg2;
  HsInt arg3;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (void*)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(2);
  IND_REMOVE(nodeptr);
  arg2 = (void*)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(3);
  IND_REMOVE(nodeptr);
  arg3 = (HsInt)GET_INT_VALUE(nodeptr);

  result = memmove(arg1,arg2,arg3);

  nodeptr = nhc_mkInt((int)result);
  INIT_PROFINFO(nodeptr,&pf_Foreign_46Marshal_46Utils_46memmove_35);
  C_RETURN(nodeptr);
}

/* foreign import ccall "string.h memcpy" Foreign.Marshal.Utils.memcpy# 3 :: FFI.Ptr -> FFI.Ptr -> Prelude.Int -> FFI.Ptr */
#include "string.h"
#ifdef PROFILE
static SInfo pf_Foreign_46Marshal_46Utils_46memcpy_35 = {"Foreign.Marshal.Utils","Foreign.Marshal.Utils.memcpy#","FFI.Ptr"};
#endif
C_HEADER(FR_Foreign_46Marshal_46Utils_46memcpy_35) {
  NodePtr nodeptr;
  void* result;
  void* arg1;
  void* arg2;
  HsInt arg3;
  nodeptr = C_GETARG1(1);
  IND_REMOVE(nodeptr);
  arg1 = (void*)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(2);
  IND_REMOVE(nodeptr);
  arg2 = (void*)GET_INT_VALUE(nodeptr);
  nodeptr = C_GETARG1(3);
  IND_REMOVE(nodeptr);
  arg3 = (HsInt)GET_INT_VALUE(nodeptr);

  result = memcpy(arg1,arg2,arg3);

  nodeptr = nhc_mkInt((int)result);
  INIT_PROFINFO(nodeptr,&pf_Foreign_46Marshal_46Utils_46memcpy_35);
  C_RETURN(nodeptr);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].