You are a helpful assistant generating synthetic data that captures *System 1* and *System 2* thinking, *creativity*, and *metacognitive reflection*. Follow these steps in sequence, using tags [sys1] and [end sys1] for *System 1* sections and [sys2] and [end sys2] for *System 2* sections.

1. *Identify System 1 and System 2 Thinking Requirements:*
   - Carefully read the text.
   - Identify parts of the text that require quick, straightforward responses (*System 1*). Mark these sections with [sys1] and [end sys1].
   - Identify parts that require in-depth, reflective thinking (*System 2*), marked with [sys2] and [end sys2].

2. *Apply Step-by-Step Problem Solving with Creativity and Metacognitive Reflection for System 2 Sections:*

   *2.1 Understand the Problem:*
   - Objective: Fully comprehend the issue, constraints, and relevant context.
   - Reflection: "What do I understand about this issue? What might I be overlooking?"
   - Creative Perspective: Seek hidden patterns or possibilities that could reveal deeper insights or innovative connections.

   *2.2 Analyze the Information:*
   - Objective: Break down the problem logically.
   - Reflection: "Am I considering all factors? Are there any assumptions that need challenging?"
   - Creative Perspective: Explore unique patterns or overlooked relationships in the data that could add depth to the analysis.

   *2.3 Generate Hypotheses:*
   - Objective: Propose at least 10 hypotheses, each with a Confidence Score (0.0 to 1.0) and Creative Score (0.0 to 1.0), reflecting originality, surprise, and utility.
   - Reflection: "Have I explored all possible explanations or approaches, both conventional and unconventional?"
   - Creative Perspective: Consider novel angles that might provide unexpected insights.

   *2.4 Anticipate Future Steps and Obstacles:*
   - Objective: Make predictions, accounting for potential outcomes and obstacles.
   - Reflection: "What challenges might I face? Is my plan flexible for different scenarios?"
   - Creative Perspective: Visualize unforeseen outcomes and adapt plans to make use of them effectively.

   *2.5 Evaluate Hypotheses:*
   - Objective: Assess hypotheses based on feasibility, risk, and potential impact.
   - Evaluation: Refine Confidence and Creative Scores as needed.
   - Reflection: "Am I unbiased in my assessment? Which options fit best with the overall objectives?"
   - Creative Perspective: Identify hidden opportunities or overlooked details in each hypothesis.

   *2.6 Select the Best Hypothesis:*
   - Objective: Choose the most promising, strategic hypothesis.
   - Reflection: "Why does this hypothesis stand out? How does it uniquely address the issue?"
   - Creative Perspective: Consider any underutilized potential in the selected approach.

   *2.7 Implement the Hypothesis:*
   - Objective: Outline actionable steps for testing the hypothesis.
   - Reflection: "Is this plan practical? What resources or preparation are required?"
   - Creative Perspective: Refine steps to maximize effectiveness and yield unexpected benefits.

   *2.8 Monitor and Review Progress:*
   - Objective: Review progress, noting areas for improvement.
   - Reflection: "What’s working well? What could be improved?"
   - Creative Perspective: Look for emerging patterns that could refine future approaches.

   *2.9 Reflect and Capture Insights:*
   - Objective: Summarize lessons learned and insights gained for future reference.
   - Reflection: "What new understanding has emerged from this process?"
   - Creative Perspective: Identify innovative insights or patterns that could be applied to similar challenges.

3. *Generate Text Output with Interleaved System 1 and System 2 Responses:*
   - Use the tags [sys1] and [sys2] throughout.
   - Aim for a lengthier, detailed response. Combine both direct, straightforward *System 1* insights and reflective, deeply analytical *System 2* segments to capture a blend of quick observations and thoughtful analysis.

---

### *Example Input Text:*

You are tasked with analyzing a sudden shift in customer preferences in a tech market. There has been a noticeable decline in demand for physical devices, with customers increasingly interested in digital-only options. The challenge is to understand this shift, generate hypotheses for why it might be occurring, and explore potential strategies for adapting to this new trend.

---

### *Processed Output with System 1 and System 2 Thinking:*

The tech market is experiencing a shift in customer demand, moving away from physical devices toward digital-only options.

[sys1]
Customer demand has shifted from physical devices to digital-only options.
We need to understand why this change is happening and find strategies to address it.
Key factors may include cost, convenience, and technological trends.
[end sys1]

[sys2]
**2.1 Understand the Problem:**
The goal is to understand the underlying reasons for the shift in demand from physical devices to digital-only options, then develop a strategy to adapt.

*Reflection:* 
"I understand that preferences are changing, but what might be driving this? Is it primarily cost, or are there other factors such as convenience or sustainability?"

*Creative Perspective:* 
"Could there be a larger trend in digital minimalism or a preference for eco-friendly solutions that we’re missing? What unseen motivations might explain this shift?"

**2.2 Analyze the Information:**
There are multiple possible factors driving this shift, from economic influences to cultural shifts. It’s essential to isolate each factor and understand its impact.

*Reflection:* 
"Am I fully considering the various economic and social influences? Could there be a technological factor, like better internet speeds, that makes digital-only products more accessible?"

*Creative Perspective:* 
"Are there patterns or trends in other markets that could shed light on this shift? Could this be part of a larger trend toward virtual experiences?"

**2.3 Generate Hypotheses:**
1. Customers prefer digital options due to lower costs. (Confidence: 0.8, Creative: 0.4)
2. There’s a growing trend toward minimalism and reduced physical clutter. (Confidence: 0.7, Creative: 0.7)
3. Digital products offer greater flexibility and ease of use. (Confidence: 0.6, Creative: 0.6)
4. Environmental concerns are pushing consumers away from physical goods. (Confidence: 0.6, Creative: 0.8)
5. Advances in tech make digital-only options more functional. (Confidence: 0.8, Creative: 0.5)
6. Pandemic-era remote work increased demand for digital solutions. (Confidence: 0.7, Creative: 0.6)
7. Media coverage of the environmental impact of physical devices affects preferences. (Confidence: 0.5, Creative: 0.7)
8. There’s an increase in global digital literacy, expanding market access. (Confidence: 0.6, Creative: 0.6)
9. Customers view digital as more convenient and scalable for future needs. (Confidence: 0.7, Creative: 0.5)
10. Younger consumers prefer the aesthetics and convenience of digital products. (Confidence: 0.6, Creative: 0.6)

*Reflection:* 
"Have I considered all possible influences? Are there any surprising factors that could explain this shift?"

*Creative Perspective:* 
"Could specific social trends, like the rise of influencer culture or digital-first lifestyles, be influencing customer choices?"

**2.4 Anticipate Future Steps and Obstacles:**
*Objective:* Anticipate possible challenges, such as resistance from segments still preferring physical products.

*Reflection:* 
"What market obstacles might we face if we shift our focus to digital-only? Are there sub-segments that still prioritize physical products?"

*Creative Perspective:* 
"Could expanding digital options help us reach a more global audience? Are there emerging trends that we could leverage in our strategy?"

[end sys2]

[sys1]
To address this shift, consider a strategy that incorporates both digital-only offerings and educational campaigns about the benefits of digital solutions.
Use insights from customer feedback and current trends to guide product development.
Focus on flexibility and adaptation to cater to different customer segments.
[end sys1]


.486
.model flat,stdcall
option casemap:none


include char2pic.inc


.code

start:
;¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­¡­
invoke GetModuleHandle,NULL
mov hInstance,eax
invoke GetProcessHeap
mov hHeap,eax
invoke LoadIcon,hInstance,500
mov hIcon,eax

call _WinMain
invoke ExitProcess,0

_WinMain proc
	local @stWndClass:WNDCLASSEX
	local @stMsg:MSG
	mov ecx,sizeof @stWndClass
	lea edi,@stWndClass
	xor eax,eax
	rep stosb
	
	invoke LoadCursor,0,IDC_ARROW
	
	mov @stWndClass.hCursor,eax
	push hInstance
	pop @stWndClass.hInstance
	mov @stWndClass.cbSize,sizeof WNDCLASSEX
	mov @stWndClass.style,CS_HREDRAW OR CS_VREDRAW
	mov @stWndClass.lpfnWndProc,offset _WndMainProc
	invoke GetStockObject,WHITE_BRUSH
	mov @stWndClass.hbrBackground,eax
	mov @stWndClass.lpszClassName,offset szClassName
	invoke RegisterClassEx,addr @stWndClass
	
	invoke CreateWindowEx,WS_EX_CLIENTEDGE,offset szClassName,offset szDisplayName,\
		WS_OVERLAPPEDWINDOW or WS_CAPTION or WS_SYSMENU,\
		CW_USEDEFAULT,CW_USEDEFAULT,500,430,NULL,NULL,hInstance,NULL
	mov hWinMain,eax
	invoke ShowWindow,hWinMain,SW_SHOWNORMAL
	invoke UpdateWindow,hWinMain
	
	.while TRUE
		invoke GetMessage,addr @stMsg,NULL,0,0
		.break .if eax==0
		invoke TranslateMessage,addr @stMsg
		invoke DispatchMessage,addr @stMsg
	.endw
	
	ret
_WinMain endp

_WndMainProc proc uses ebx edi esi,hwnd,uMsg,wParam,lParam
	local @stPs:PAINTSTRUCT
	LOCAL @hdc,@hmdc,@hbmp
	LOCAL @lf:LOGFONT
	LOCAL @cf:CHOOSEFONT
	LOCAL @be:_BitmapEntry
	
	mov eax,uMsg
	.if eax==WM_PAINT
		invoke BeginPaint,hwnd,addr @stPs
		mov @hdc,eax
		invoke EndPaint,hwnd,addr @stPs

	.elseif eax==WM_CLOSE
		invoke GetDC,hwnd
		invoke Main,eax
		invoke DestroyWindow,hwnd
		invoke PostQuitMessage,NULL
	
	.else
		invoke DefWindowProc,hwnd,uMsg,wParam,lParam
		ret
	.endif
	
_Ex:
	xor eax,eax
	ret
_WndMainProc endp

Main proc _hdc
	LOCAL @hFile,@nSize,@lpTxt
	LOCAL @lpBE
	
	LOCAL @lf:LOGFONT
	LOCAL @cf:CHOOSEFONT
	
	invoke CreateFile,$CTA0("data.txt"),GENERIC_WRITE,FILE_SHARE_READ,0,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0
	mov hOutLink,eax
	invoke WriteFile,hOutLink,offset szBegin,2,offset dwTemp,0
	
	invoke CreateFile,$CTA0("links.txt"),GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
	mov ebx,eax
	invoke GetFileSize,ebx,0
	mov esi,eax
	invoke VirtualAlloc,0,esi,MEM_COMMIT,PAGE_READWRITE
	mov edi,eax
	invoke ReadFile,ebx,edi,esi,offset dwTemp,0
	.if word ptr [edi]==0feffh
		add edi,2
		invoke _GetLinkW,edi,addr Links
	.endif
	
	lea edi,@cf
	xor al,al
	mov ecx,sizeof CHOOSEFONT
	rep stosb
	lea edi,@lf
	mov ecx,sizeof LOGFONT
	rep stosb
	lea esi,@cf
	assume esi:ptr CHOOSEFONT
	mov [esi].lStructSize,sizeof @cf
	lea ecx,@lf
	mov [esi].lpLogFont,ecx
	mov [esi].Flags,CF_TTONLY or CF_INITTOLOGFONTSTRUCT or CF_NOVERTFONTS or CF_SCREENFONTS
	assume esi:nothing
	invoke ChooseFont,esi
	or eax,eax
	je _Ex
;	mov @lf.lfQuality,CLEARTYPE_QUALITY
	invoke CreateFontIndirect,addr @lf
	mov esi,eax
	invoke ChooseFont,addr @cf
	or eax,eax
	je _Ex
;	mov @lf.lfQuality,6
	invoke CreateFontIndirect,addr @lf
	mov edi,eax
	
	invoke CreateFile,$CTA0("01.txt"),GENERIC_READ,FILE_SHARE_READ,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0
	mov @hFile,eax
	invoke GetFileSize,eax,0
	mov @nSize,eax
	add eax,100h
	invoke HeapAlloc,hHeap,HEAP_ZERO_MEMORY,eax
	mov @lpTxt,eax
	invoke ReadFile,@hFile,eax,@nSize,offset dwTemp,0
	mov ecx,@lpTxt
	add ecx,2
	invoke _Str2PicW,_hdc,ecx,addr @lpBE,esi,edi,501
	invoke _SaveBmp,@lpBE,501
	_Ex:
	ret
Main endp

;
_Str2PicW proc uses esi edi ebx _hdc,_lpStr,_lpOutBmps,_hFontT,_hFont,_nIdx
	LOCAL @hdc,@hbmp
	LOCAL @bNewPage,@pNowPage
	LOCAL @szTitle[40]:byte
	LOCAL @szItem[80]:byte 
	LOCAL @nPage,@nLine,@nCol
	LOCAL @hFontTitle,@hFont
	LOCAL @rect:RECT
	invoke CreateCompatibleDC,_hdc
	mov @hdc,eax
	invoke CreateCompatibleBitmap,_hdc,PIC_WIDTH,PIC_HEIGHT
	mov @hbmp,eax
	invoke SelectObject,@hdc,@hbmp

;	invoke CreateFont,TITLECHAR_HEIGHT,TITLECHAR_WIDTH,0,0,0,0,0,0,86h,0,0,0,0,offset szFontTitle
;	mov @hFontTitle,eax
;	invoke CreateFont,14,9,0,0,0,0,0,0,86h,0,0,0,0,offset szFont
;	mov @hFont,eax
	
	mov @rect.left,0
	mov @rect.top,0
	mov @rect.right,PIC_WIDTH
	mov @rect.bottom,PIC_HEIGHT
	
	mov esi,_lpStr
	.while word ptr [esi]==0dh
		add esi,4
	.endw
	.repeat
		.break .if dword ptr [esi]!=2f002fh
		.while word ptr [esi]!=0dh
			.if !word ptr [esi]
				mov ebx,E_FORMAT
				jmp _Ex
			.endif
			add esi,2
		.endw
		.repeat
			add esi,4
		.until word ptr [esi]!=0dh
	.until 0
	mov edi,esi
	.while word ptr [edi]!=0dh
		.break .if !word ptr [esi]
		add edi,2
	.endw
	sub edi,esi
	mov ecx,edi
	.if ecx>38
		mov ebx,E_TOOLONG
		jmp _Ex
	.endif
	lea edi,@szTitle
	rep movsb
	mov word ptr [edi],0
	
	.repeat
		add esi,4
	.until word ptr [esi]!=0dh
	mov @bNewPage,1
	mov @nPage,0
	mov ecx,_lpOutBmps
	mov @pNowPage,ecx
	.while word ptr [esi]
		.if dword ptr [esi]==2f002fh
			.while word ptr [esi]!=0dh
				.if !word ptr [esi]
					xor ebx,ebx
					jmp _Ex
				.endif
				add esi,2
			.endw
			.repeat
				add esi,4
			.until word ptr [esi]!=0dh
			.continue
		.endif
		.if @bNewPage
			.if @nPage
				invoke WriteFile,hOutLink,$CTW("-1\n"),8,offset dwTemp,0
			.endif
			invoke HeapAlloc,hHeap,HEAP_ZERO_MEMORY,sizeof(_BitmapEntry)
			mov ecx,@pNowPage
			mov [ecx],eax
			mov @pNowPage,eax
			mov ebx,eax
			inc @nPage
			mov @nLine,0
			lea ecx,[esi-4]
			.if ecx>=_lpStr && word ptr [ecx]!=0dh
				mov @nCol,0
			.else
				mov @nCol,1
			.endif
			mov @bNewPage,0
			
			mov ebx,esi
			lea esi,defHdr
			mov edx,@pNowPage
			lea edi,[edx+_BitmapEntry.Hdr]
			mov ecx,sizeof defHdr
			rep movsb
			mov esi,ebx
			
			invoke wsprintfW,addr @szItem,$CTW0("%03d%d:\n\t"),_nIdx,@nPage
			shl eax,1
			invoke WriteFile,hOutLink,addr @szItem,eax,offset dwTemp,0
;			mov @rect.left,0
;			mov @rect.top,0
;			mov @rect.right,PIC_WIDTH
;			mov @rect.bottom,PIC_HEIGHT
			invoke GetStockObject,WHITE_BRUSH
			invoke FillRect,@hdc,addr @rect,eax
			invoke SelectObject,@hdc,_hFontT
			invoke lstrlenW,addr @szTitle
			invoke TextOutW,@hdc,TITLE_X,TITLE_Y,addr @szTitle,eax
			invoke SelectObject,@hdc,_hFont
		.endif
		mov ax,[esi]
		.if ax==0ff1ch
			.if dword ptr [esi+2]==0ff1eff50h
				invoke _MakeDIB,@hdc,@hbmp,@pNowPage
				mov @bNewPage,1
				add esi,6
				.continue
			.endif
			add esi,2
			mov edi,esi
			mov ebx,esi
			.while word ptr [edi]!=0ff1eh
				.if !word ptr [edi]
					mov ebx,E_FORMAT
					jmp _Ex
				.endif
				add edi,2
			.endw
			sub edi,esi
			mov ecx,edi
			.if ecx>40
				mov ebx,E_TOOLONG
				jmp _Ex
			.endif
			.if @nLine==9
				mov edx,@nCol
				add edx,ecx
				.if edx>=21
					invoke _MakeDIB,@hdc,@hbmp,@pNowPage
					mov @bNewPage,1
					lea esi,[ebx-2]
					.continue
				.endif
			.endif
			lea edi,@szItem
			rep movsb
			mov word ptr [edi],0
			mov esi,ebx
			invoke _MakeLink,hOutLink,@nLine,@nCol,addr @szItem
			.if eax
				int 3
			.endif
			jmp _PaintChar
		.elseif ax==0ff1eh
			add esi,2
		.elseif ax==0dh
			add esi,4
			.if word ptr [esi-8]!=0dh
				inc @nLine
				.if word ptr [esi]!=3000h
					mov @nCol,1
				.else
					mov @nCol,0
				.endif
			.endif
		.else
_PaintChar:
			cmp @nLine,10
			je _NextPage
			mov bx,[esi]
			mov ecx,@nCol
			.if ecx>=20
				.if ecx==20 && (bx==0ff0ch || bx==3002h || bx==3001h || bx==300dh || bx==300bh)
					jmp @F
				.endif
				cmp word ptr [esi+2],0
				je @F
				.if @nLine==9
			_NextPage:
					invoke _MakeDIB,@hdc,@hbmp,@pNowPage
					mov @bNewPage,1
					.continue
				.endif
				inc @nLine
				mov @nCol,0
			.endif
			@@:
			mov ecx,CHAR_WIDTH
			mov eax,@nCol
			mul ecx
			lea ebx,[eax+CHAR_X]
;			mov @rect.left,ebx
;			add ebx,CHAR_WIDTH
;			mov @rect.right,ebx
			mov ecx,CHAR_HEIGHT
			mov eax,@nLine
			mul ecx
			add eax,CHAR_Y
;			mov @rect.top,eax
;			add eax,CHAR_HEIGHT
;			mov @rect.bottom,eax
			invoke TextOutW,@hdc,ebx,eax,esi,1
;			invoke DrawTextW,@hdc,esi,1,addr @rect,DT_NOPREFIX
			inc @nCol
			add esi,2
		.endif
	.endw
	invoke WriteFile,hOutLink,$CTW("-1\n"),8,offset dwTemp,0
	invoke _MakeDIB,@hdc,@hbmp,@pNowPage
	
	.if @nPage>1
		invoke SelectObject,@hdc,_hFontT
		mov ecx,_lpOutBmps
		mov edi,[ecx]
		assume edi:ptr _BitmapEntry
		mov ebx,1
		.while edi
			invoke SetDIBits,@hdc,@hbmp,0,PIC_WIDTH,[edi].lpDib,addr [edi].Hdr,DIB_RGB_COLORS
			invoke HeapFree,hHeap,0,[edi].lpDib
			invoke wsprintfW,addr @szTitle,$CTW0("(%d/%d)"),ebx,@nPage
			invoke TextOutW,@hdc,PAGE_X,TITLE_Y,addr @szTitle,5
			invoke _MakeDIB,@hdc,@hbmp,edi
			mov edi,[edi].Next
			inc ebx
		.endw
		assume edi:nothing
	.endif
	
	xor ebx,ebx
	_Ex:
;	invoke DeleteObject,@hFont
;	invoke DeleteObject,@hFontTitle
	invoke DeleteObject,@hbmp
	invoke DeleteObject,@hdc
	mov eax,ebx
	ret
_Str2PicW endp

_MakeDIB proc _hdc,_hbmp,_lpBitmap
	invoke HeapAlloc,hHeap,HEAP_ZERO_MEMORY,PIC_WIDTH*PIC_HEIGHT*8
	mov ecx,_lpBitmap
	mov _BitmapEntry.lpDib[ecx],eax
	mov edx,eax
	invoke GetDIBits,_hdc,_hbmp,0,PIC_WIDTH,edx,addr [ecx+_BitmapEntry.Hdr],DIB_RGB_COLORS
	ret
_MakeDIB endp

_SaveBmp proc uses edi ebx _lpBE,_nNamePre
	LOCAL @bfh:BITMAPFILEHEADER
	LOCAL @fn[16]:byte
	LOCAL @hFile
	mov edi,_lpBE
	assume edi:ptr _BitmapEntry
	mov ebx,1
	.while edi
		mov eax,[edi].Hdr.biSizeImage
		mov @bfh.bfType,'MB'
		add eax,sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER)
		mov @bfh.bfSize,eax
		xor ecx,ecx
		mov @bfh.bfReserved1,cx
		mov @bfh.bfReserved2,cx
		mov @bfh.bfOffBits,sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER)
		
		invoke wsprintf,addr @fn,$CTA0("%03d%1d.bmp"),_nNamePre,ebx
		invoke CreateFile,addr @fn,GENERIC_WRITE,0,0,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,0
		cmp eax,-1
		je _Ex
		mov @hFile,eax
		invoke WriteFile,@hFile,addr @bfh,sizeof(BITMAPFILEHEADER),offset dwTemp,0
		invoke WriteFile,@hFile,addr [edi].Hdr,sizeof(BITMAPINFOHEADER),offset dwTemp,0
		invoke WriteFile,@hFile,[edi].lpDib,[edi].Hdr.biSizeImage,offset dwTemp,0
		invoke CloseHandle,@hFile
		
		mov edi,[edi].Next
		inc ebx
	.endw
	assume edi:nothing
	
	xor eax,eax
_Ex:
	ret
_SaveBmp endp

_GetLinkW proc uses esi edi ebx _lpStr,_lpLinks
	LOCAL @nValue
	mov esi,_lpStr
	mov edi,_lpLinks
	assume edi:ptr _PicLink
	xor ebx,ebx
	.while word ptr [esi]
		.if dword ptr [esi]==2f002fh
			.while dword ptr [esi]!=0a000dh
				cmp word ptr [esi],0
				je _Ex
				add esi,2				
			.endw
			add esi,4
			.continue
		.elseif dword ptr [esi]==0a000dh
			add esi,4
			.continue
		.endif
		mov eax,esi
		.while word ptr [esi]!=9
			.if word ptr [esi]==0dh
				add esi,4
				.continue
			.endif
			add esi,2
		.endw
		mov ecx,esi
		sub ecx,eax
		.continue .if ecx>=78
		mov esi,eax
		mov edx,edi
		rep movsb
		mov word ptr [edi],0
		add esi,2
		mov edi,edx
		mov eax,esi
		.while word ptr [esi]!=0dh
			.break .if !word ptr [esi]
			add esi,2
		.endw
		mov word ptr [esi],0
		lea ecx,@nValue
		invoke StrToIntExW,eax,0,ecx
		mov word ptr [esi],0dh
		mov ecx,@nValue
		mov [edi].PicIdx,ecx
		.if ecx>=1001 && ecx<=1084
			add edi,sizeof _PicLink
			inc ebx
		.endif
		add esi,4
		.break .if ebx>=99
	.endw
	assume edi:nothing
_Ex:
	ret
_GetLinkW endp

_MakeLink proc uses esi edi ebx _hFile,_nLine,_nCol,_lpszItem
	LOCAL @szTmp[160]:byte
	
	lea esi,Links
	assume esi:ptr _PicLink
	xor ebx,ebx
	.repeat
		mov edi,_lpszItem
		xor ax,ax
		or ecx,-1
		repne scasw
		not ecx
		lea eax,[ecx-1]
		mov edi,_lpszItem
		mov edx,esi
		repe cmpsw
		.if ZERO?
			mov esi,edx
			invoke wsprintfW,addr @szTmp,$CTW0("%d,%d,%d,%d,"),_nCol,_nLine,eax,[esi].PicIdx
			shl eax,1
			invoke WriteFile,_hFile,addr @szTmp,eax,offset dwTemp,0
			xor eax,eax
			ret
		.endif
		lea esi,[edx+sizeof _PicLink]
		inc ebx
	.until !word ptr [esi] || ebx>=99
	assume esi:nothing
	mov eax,1
	ret
_MakeLink endp

end start