Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/FFI/MarshalUtils.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_NHC_46FFI_46_95memmove_35	((void*)startLabel+12)
#define CT_v512	((void*)startLabel+48)
#define F0_NHC_46FFI_46_95memmove_35	((void*)startLabel+56)
#define FN_NHC_46FFI_46_95memmove	((void*)startLabel+68)
#define CT_v514	((void*)startLabel+92)
#define CF_NHC_46FFI_46_95memmove	((void*)startLabel+100)
#define FN_NHC_46FFI_46_95memcpy_35	((void*)startLabel+124)
#define CT_v516	((void*)startLabel+160)
#define F0_NHC_46FFI_46_95memcpy_35	((void*)startLabel+168)
#define FN_NHC_46FFI_46_95memcpy	((void*)startLabel+180)
#define CT_v518	((void*)startLabel+204)
#define CF_NHC_46FFI_46_95memcpy	((void*)startLabel+212)
#define CT_v520	((void*)startLabel+296)
#define CT_v522	((void*)startLabel+412)
#define v524	((void*)startLabel+482)
#define v525	((void*)startLabel+491)
#define CT_v528	((void*)startLabel+528)
#define FN_LAMBDA503	((void*)startLabel+572)
#define CT_v530	((void*)startLabel+604)
#define F0_LAMBDA503	((void*)startLabel+612)
#define FN_LAMBDA502	((void*)startLabel+636)
#define CT_v532	((void*)startLabel+680)
#define F0_LAMBDA502	((void*)startLabel+688)
#define v533	((void*)startLabel+725)
#define v535	((void*)startLabel+747)
#define CT_v538	((void*)startLabel+776)
#define FN_LAMBDA505	((void*)startLabel+832)
#define CT_v541	((void*)startLabel+864)
#define CF_LAMBDA505	((void*)startLabel+872)
#define FN_LAMBDA504	((void*)startLabel+884)
#define CT_v543	((void*)startLabel+920)
#define F0_LAMBDA504	((void*)startLabel+928)
#define CT_v545	((void*)startLabel+972)
#define CT_v547	((void*)startLabel+1036)
#define CT_v549	((void*)startLabel+1120)
#define v551	((void*)startLabel+1178)
#define v552	((void*)startLabel+1190)
#define CT_v555	((void*)startLabel+1232)
#define CT_v557	((void*)startLabel+1296)
#define FN_LAMBDA507	((void*)startLabel+1336)
#define CT_v559	((void*)startLabel+1388)
#define F0_LAMBDA507	((void*)startLabel+1396)
#define FN_LAMBDA506	((void*)startLabel+1436)
#define CT_v561	((void*)startLabel+1476)
#define F0_LAMBDA506	((void*)startLabel+1484)
#define CT_v563	((void*)startLabel+1548)
#define FN_LAMBDA508	((void*)startLabel+1584)
#define CT_v565	((void*)startLabel+1624)
#define F0_LAMBDA508	((void*)startLabel+1632)
#define ST_v517	((void*)startLabel+1652)
#define ST_v515	((void*)startLabel+1668)
#define ST_v513	((void*)startLabel+1685)
#define ST_v511	((void*)startLabel+1702)
#define ST_v521	((void*)startLabel+1720)
#define ST_v553	((void*)startLabel+1738)
#define ST_v546	((void*)startLabel+1755)
#define ST_v537	((void*)startLabel+1772)
#define ST_v539	((void*)startLabel+1790)
#define ST_v542	((void*)startLabel+1819)
#define ST_v544	((void*)startLabel+1849)
#define ST_v519	((void*)startLabel+1867)
#define ST_v562	((void*)startLabel+1885)
#define ST_v564	((void*)startLabel+1897)
#define ST_v548	((void*)startLabel+1921)
#define ST_v556	((void*)startLabel+1936)
#define ST_v558	((void*)startLabel+1949)
#define ST_v560	((void*)startLabel+1974)
#define ST_v526	((void*)startLabel+1999)
#define ST_v529	((void*)startLabel+2016)
#define ST_v531	((void*)startLabel+2047)
#define ST_v540	((void*)startLabel+2078)
extern Node TM_NHC_46FFI[];
void FR_NHC_46FFI_46_95memmove_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok3[];
void FR_NHC_46FFI_46_95memcpy_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_NHC_46FFI[];
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_NHC_46FFI_46alloca[];
extern Node FN_NHC_46FFI_46poke[];
extern Node FN_NHC_46Internal_46_95apply2[];
extern Node FN_NHC_46FFI_46destruct[];
extern Node FN_NHC_46FFI_46malloc[];

static Node startLabel[] = {
  bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v512)
,	/* FN_NHC_46FFI_46_95memmove_35: (byte 0) */
  useLabel(TM_NHC_46FFI)
, 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_NHC_46FFI_46_95memmove_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1370001
, useLabel(ST_v511)
,	/* CT_v512: (byte 0) */
  HW(0,3)
, 0
,	/* F0_NHC_46FFI_46_95memmove_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46_95memmove_35),3)
, bytes2word(0,0,0,0)
, useLabel(CT_v514)
,	/* FN_NHC_46FFI_46_95memmove: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1370001
, useLabel(ST_v513)
,	/* CT_v514: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46FFI_46_95memmove: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46FFI_46_95memmove))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok3))
, useLabel(F0_NHC_46FFI_46_95memmove_35)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v516)
,	/* FN_NHC_46FFI_46_95memcpy_35: (byte 0) */
  useLabel(TM_NHC_46FFI)
, 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_NHC_46FFI_46_95memcpy_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1360001
, useLabel(ST_v515)
,	/* CT_v516: (byte 0) */
  HW(0,3)
, 0
,	/* F0_NHC_46FFI_46_95memcpy_35: (byte 0) */
  CAPTAG(useLabel(FN_NHC_46FFI_46_95memcpy_35),3)
, bytes2word(0,0,0,0)
, useLabel(CT_v518)
,	/* FN_NHC_46FFI_46_95memcpy: (byte 0) */
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 1360001
, useLabel(ST_v517)
,	/* CT_v518: (byte 0) */
  HW(2,0)
, 0
,	/* CF_NHC_46FFI_46_95memcpy: (byte 0) */
  VAPTAG(useLabel(FN_NHC_46FFI_46_95memcpy))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok3))
, useLabel(F0_NHC_46FFI_46_95memcpy_35)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v520)
,};
Node FN_NHC_46FFI_46moveBytes[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 1280001
, useLabel(ST_v519)
,	/* CT_v520: (byte 0) */
  HW(8,3)
, 0
,};
Node F0_NHC_46FFI_46moveBytes[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46moveBytes),3)
, VAPTAG(useLabel(FN_NHC_46FFI_46_95memmove))
, 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_v522)
,};
Node FN_NHC_46FFI_46copyBytes[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 1220001
, useLabel(ST_v521)
,	/* CT_v522: (byte 0) */
  HW(8,3)
, 0
,};
Node F0_NHC_46FFI_46copyBytes[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46copyBytes),3)
, VAPTAG(useLabel(FN_NHC_46FFI_46_95memcpy))
, 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_v528)
,};
Node FN_NHC_46FFI_46withMany[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG_I2,EVAL,NEEDHEAP_I32)
, bytes2word(TABLESWITCH,2,TOP(4),BOT(4))
,	/* v524: (byte 2) */
  bytes2word(TOP(13),BOT(13),POP_I1,PUSH_CVAL_P1)
, bytes2word(3,PUSH_ARG_I3,EVAL,NEEDHEAP_I32)
,	/* v525: (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)
, 1100001
, useLabel(ST_v526)
,	/* CT_v528: (byte 0) */
  HW(4,3)
, 0
,};
Node F0_NHC_46FFI_46withMany[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46withMany),3)
, useLabel(C0_Prelude_46_91_93)
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_LAMBDA503),1)
, VAPTAG(useLabel(FN_Prelude_46_36))
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v530)
,	/* FN_LAMBDA503: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, 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)
, 1110041
, useLabel(ST_v529)
,	/* CT_v530: (byte 0) */
  HW(2,4)
, 0
,	/* F0_LAMBDA503: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA503),4)
, CAPTAG(useLabel(FN_LAMBDA502),1)
, VAPTAG(useLabel(FN_NHC_46FFI_46withMany))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v532)
,	/* FN_LAMBDA502: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, 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)
, 1120052
, useLabel(ST_v531)
,	/* CT_v532: (byte 0) */
  HW(0,3)
, 0
,	/* F0_LAMBDA502: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA502),3)
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v538)
,};
Node FN_NHC_46FFI_46maybePeek[] = {
  useLabel(TM_NHC_46FFI)
, 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)
,	/* v533: (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)
,	/* v535: (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)
, 960001
, useLabel(ST_v537)
,	/* CT_v538: (byte 0) */
  HW(9,2)
, 0
,};
Node F0_NHC_46FFI_46maybePeek[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_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_LAMBDA504),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, VAPTAG(useLabel(FN_LAMBDA505))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95patternMatchFail))
, bytes2word(0,0,0,0)
, useLabel(CT_v541)
,	/* FN_LAMBDA505: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,4,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v540)
, 960001
, useLabel(ST_v539)
,	/* CT_v541: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA505: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA505))
, bytes2word(1,0,0,1)
, useLabel(CT_v543)
,	/* FN_LAMBDA504: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, 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)
, 970048
, useLabel(ST_v542)
,	/* CT_v543: (byte 0) */
  HW(1,1)
, 0
,	/* F0_LAMBDA504: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA504),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, bytes2word(0,0,0,0)
, useLabel(CT_v545)
,};
Node FN_NHC_46FFI_46maybeWith[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 900001
, useLabel(ST_v544)
,	/* CT_v545: (byte 0) */
  HW(4,0)
, 0
,};
Node CF_NHC_46FFI_46maybeWith[] = {
  VAPTAG(useLabel(FN_NHC_46FFI_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_v547)
,};
Node FN_NHC_46FFI_46maybeNew[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 830001
, useLabel(ST_v546)
,	/* CT_v547: (byte 0) */
  HW(3,0)
, 0
,};
Node CF_NHC_46FFI_46maybeNew[] = {
  VAPTAG(useLabel(FN_NHC_46FFI_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_v549)
,};
Node FN_NHC_46FFI_46toBool[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 710001
, useLabel(ST_v548)
,	/* CT_v549: (byte 0) */
  HW(5,1)
, 0
,};
Node F0_NHC_46FFI_46toBool[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_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_v555)
,};
Node FN_NHC_46FFI_46fromBool[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG_I2,EVAL,NEEDHEAP_I32)
, bytes2word(TABLESWITCH,2,TOP(4),BOT(4))
,	/* v551: (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)
,	/* v552: (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)
, 650001
, useLabel(ST_v553)
,	/* CT_v555: (byte 0) */
  HW(1,2)
, 0
,};
Node F0_NHC_46FFI_46fromBool[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46fromBool),2)
, VAPTAG(useLabel(FN_Prelude_46fromInteger))
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v557)
,};
Node FN_NHC_46FFI_46with[] = {
  useLabel(TM_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_ARG_ARG,2,3)
, bytes2word(HEAP_ARG,1,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)
, 510001
, useLabel(ST_v556)
,	/* CT_v557: (byte 0) */
  HW(3,3)
, 0
,};
Node F0_NHC_46FFI_46with[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46with),3)
, VAPTAG(useLabel(FN_NHC_46FFI_46alloca))
, CAPTAG(useLabel(FN_LAMBDA507),1)
, VAPTAG(useLabel(FN_Prelude_46_36))
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v559)
,	/* FN_LAMBDA507: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,3)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG_ARG)
, bytes2word(4,1,HEAP_CVAL_I5,HEAP_ARG_ARG)
, bytes2word(2,4,HEAP_CVAL_P1,6)
, bytes2word(HEAP_ARG_ARG,3,4,HEAP_CVAL_P1)
, bytes2word(7,HEAP_OFF_N1,7,HEAP_OFF_N1)
, bytes2word(5,PUSH_HEAP,HEAP_CVAL_P1,8)
, bytes2word(HEAP_OFF_N1,14,HEAP_OFF_N1,5)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 520012
, useLabel(ST_v558)
,	/* CT_v559: (byte 0) */
  HW(6,4)
, 0
,	/* F0_LAMBDA507: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA507),4)
, VAPTAG(useLabel(FN_NHC_46FFI_46poke))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, CAPTAG(useLabel(FN_LAMBDA506),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(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v561)
,	/* FN_LAMBDA506: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG,1)
, bytes2word(HEAP_CVAL_I4,HEAP_OFF_N1,3,HEAP_ARG)
, bytes2word(2,HEAP_CVAL_I5,HEAP_ARG,3)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,6,HEAP_OFF_N1)
, bytes2word(6,HEAP_OFF_N1,4,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
, 540012
, useLabel(ST_v560)
,	/* CT_v561: (byte 0) */
  HW(4,3)
, 0
,	/* F0_LAMBDA506: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA506),3)
, VAPTAG(useLabel(FN_NHC_46FFI_46destruct))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v563)
,};
Node FN_NHC_46FFI_46new[] = {
  useLabel(TM_NHC_46FFI)
, 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)
, 400001
, useLabel(ST_v562)
,	/* CT_v563: (byte 0) */
  HW(3,2)
, 0
,};
Node F0_NHC_46FFI_46new[] = {
  CAPTAG(useLabel(FN_NHC_46FFI_46new),2)
, VAPTAG(useLabel(FN_NHC_46FFI_46malloc))
, CAPTAG(useLabel(FN_LAMBDA508),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_v565)
,	/* FN_LAMBDA508: (byte 0) */
  useLabel(TMSUB_NHC_46FFI)
, 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)
, 420012
, useLabel(ST_v564)
,	/* CT_v565: (byte 0) */
  HW(4,3)
, 0
,	/* F0_LAMBDA508: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA508),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))
,	/* ST_v517: (byte 0) */
  bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(95,109,101,109)
,	/* ST_v515: (byte 4) */
  bytes2word(99,112,121,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(95,109,101,109)
, bytes2word(99,112,121,35)
,	/* ST_v513: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,95,109,101)
, bytes2word(109,109,111,118)
,	/* ST_v511: (byte 2) */
  bytes2word(101,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,95,109)
, bytes2word(101,109,109,111)
,	/* ST_v521: (byte 4) */
  bytes2word(118,101,35,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(99,111,112,121)
, bytes2word(66,121,116,101)
,	/* ST_v553: (byte 2) */
  bytes2word(115,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,102,114)
, bytes2word(111,109,66,111)
,	/* ST_v546: (byte 3) */
  bytes2word(111,108,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,109)
, bytes2word(97,121,98,101)
,	/* ST_v537: (byte 4) */
  bytes2word(78,101,119,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(109,97,121,98)
, bytes2word(101,80,101,101)
,	/* ST_v539: (byte 2) */
  bytes2word(107,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,109,97)
, bytes2word(121,98,101,80)
, bytes2word(101,101,107,58)
, bytes2word(57,54,58,49)
, bytes2word(45,57,55,58)
,	/* ST_v542: (byte 3) */
  bytes2word(55,50,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,109)
, bytes2word(97,121,98,101)
, bytes2word(80,101,101,107)
, bytes2word(58,57,55,58)
, bytes2word(52,56,45,57)
, bytes2word(55,58,53,53)
,	/* ST_v544: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,109,97,121)
, bytes2word(98,101,87,105)
,	/* ST_v519: (byte 3) */
  bytes2word(116,104,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,109)
, bytes2word(111,118,101,66)
, bytes2word(121,116,101,115)
,	/* ST_v562: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,110,101,119)
,	/* ST_v564: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,110,101,119)
, bytes2word(58,52,50,58)
, bytes2word(49,50,45,52)
, bytes2word(50,58,49,55)
,	/* ST_v548: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,116,111,66)
,	/* ST_v556: (byte 4) */
  bytes2word(111,111,108,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(119,105,116,104)
,	/* ST_v558: (byte 1) */
  bytes2word(0,78,72,67)
, bytes2word(46,70,70,73)
, bytes2word(46,119,105,116)
, bytes2word(104,58,53,50)
, bytes2word(58,49,50,45)
, bytes2word(53,54,58,49)
,	/* ST_v560: (byte 2) */
  bytes2word(52,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,46,119,105)
, bytes2word(116,104,58,53)
, bytes2word(52,58,49,50)
, bytes2word(45,53,52,58)
,	/* ST_v526: (byte 3) */
  bytes2word(49,54,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,119)
, bytes2word(105,116,104,77)
,	/* ST_v529: (byte 4) */
  bytes2word(97,110,121,0)
, bytes2word(78,72,67,46)
, bytes2word(70,70,73,46)
, bytes2word(119,105,116,104)
, bytes2word(77,97,110,121)
, bytes2word(58,49,49,49)
, bytes2word(58,52,49,45)
, bytes2word(49,49,50,58)
,	/* ST_v531: (byte 3) */
  bytes2word(55,48,0,78)
, bytes2word(72,67,46,70)
, bytes2word(70,73,46,119)
, bytes2word(105,116,104,77)
, bytes2word(97,110,121,58)
, bytes2word(49,49,50,58)
, bytes2word(53,50,45,49)
, bytes2word(49,50,58,54)
,	/* ST_v540: (byte 2) */
  bytes2word(57,0,78,72)
, bytes2word(67,46,70,70)
, bytes2word(73,58,32,80)
, bytes2word(97,116,116,101)
, bytes2word(114,110,32,109)
, bytes2word(97,116,99,104)
, bytes2word(32,102,97,105)
, bytes2word(108,117,114,101)
, bytes2word(32,105,110,32)
, bytes2word(102,117,110,99)
, bytes2word(116,105,111,110)
, bytes2word(32,97,116,32)
, bytes2word(57,54,58,49)
, bytes2word(45,57,55,58)
, bytes2word(55,50,46,0)
,};

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

/* foreign import ccall "memmove" NHC.FFI._memmove# 3 :: FFI.Ptr -> FFI.Ptr -> Prelude.Int -> FFI.Ptr */
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46_95memmove_35 = {"NHC.FFI","NHC.FFI._memmove#","FFI.Ptr"};
#endif
C_HEADER(FR_NHC_46FFI_46_95memmove_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_NHC_46FFI_46_95memmove_35);
  C_RETURN(nodeptr);
}

/* foreign import ccall "memcpy" NHC.FFI._memcpy# 3 :: FFI.Ptr -> FFI.Ptr -> Prelude.Int -> FFI.Ptr */
#ifdef PROFILE
static SInfo pf_NHC_46FFI_46_95memcpy_35 = {"NHC.FFI","NHC.FFI._memcpy#","FFI.Ptr"};
#endif
C_HEADER(FR_NHC_46FFI_46_95memcpy_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_NHC_46FFI_46_95memcpy_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].