; Listing generated by Microsoft (R) Optimizing Compiler Version 15.00.21022.08 

	TITLE	c:\Develop\DScaler423a\DScaler\BT848Card_PMS.cpp
	.686P
	.XMM
	include listing.inc
	.model	flat

INCLUDELIB OLDNAMES

PUBLIC	??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z ; SmartPtr<CSAA7118>::operator=
;	COMDAT xdata$x
; File c:\develop\dscaler423a\dscaler\smartptr.h
xdata$x	SEGMENT
__unwindtable$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z DD 0ffffffffH
	DD	FLAT:__unwindfunclet$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z$0
__ehfuncinfo$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z DD 019930522H
	DD	01H
	DD	FLAT:__unwindtable$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z
	DD	2 DUP(00H)
	DD	2 DUP(00H)
	DD	00H
	DD	00H
; Function compile flags: /Odtp
xdata$x	ENDS
;	COMDAT ??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z
_TEXT	SEGMENT
tv75 = -28						; size = 4
_this$ = -24						; size = 4
$T316528 = -20						; size = 4
$T316527 = -16						; size = 4
__$EHRec$ = -12						; size = 12
_raw$ = 8						; size = 4
??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z PROC	; SmartPtr<CSAA7118>::operator=, COMDAT
; _this$ = ecx

; 153  :     {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	6a ff		 push	 -1
  00005	68 00 00 00 00	 push	 __ehhandler$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z
  0000a	64 a1 00 00 00
	00		 mov	 eax, DWORD PTR fs:0
  00010	50		 push	 eax
  00011	83 ec 10	 sub	 esp, 16			; 00000010H
  00014	a1 00 00 00 00	 mov	 eax, DWORD PTR ___security_cookie
  00019	33 c5		 xor	 eax, ebp
  0001b	50		 push	 eax
  0001c	8d 45 f4	 lea	 eax, DWORD PTR __$EHRec$[ebp]
  0001f	64 a3 00 00 00
	00		 mov	 DWORD PTR fs:0, eax
  00025	89 4d e8	 mov	 DWORD PTR _this$[ebp], ecx

; 154  : 
; 155  :         Clear();

  00028	8b 4d e8	 mov	 ecx, DWORD PTR _this$[ebp]
  0002b	e8 00 00 00 00	 call	 ?Clear@?$SmartPtr@VCSAA7118@@@@QAEXXZ ; SmartPtr<CSAA7118>::Clear

; 156  :         if (raw)

  00030	83 7d 08 00	 cmp	 DWORD PTR _raw$[ebp], 0
  00034	74 4e		 je	 SHORT $LN1@operator@377

; 157  :         {
; 158  :             counter = new Counter;

  00036	6a 04		 push	 4
  00038	e8 00 00 00 00	 call	 ??2@YAPAXI@Z		; operator new
  0003d	83 c4 04	 add	 esp, 4
  00040	89 45 ec	 mov	 DWORD PTR $T316528[ebp], eax
  00043	c7 45 fc 00 00
	00 00		 mov	 DWORD PTR __$EHRec$[ebp+8], 0
  0004a	83 7d ec 00	 cmp	 DWORD PTR $T316528[ebp], 0
  0004e	74 0f		 je	 SHORT $LN4@operator@377
  00050	6a 01		 push	 1
  00052	8b 4d ec	 mov	 ecx, DWORD PTR $T316528[ebp]
  00055	e8 00 00 00 00	 call	 ??0Counter@@QAE@I@Z	; Counter::Counter
  0005a	89 45 e4	 mov	 DWORD PTR tv75[ebp], eax
  0005d	eb 07		 jmp	 SHORT $LN5@operator@377
$LN4@operator@377:
  0005f	c7 45 e4 00 00
	00 00		 mov	 DWORD PTR tv75[ebp], 0
$LN5@operator@377:
  00066	8b 45 e4	 mov	 eax, DWORD PTR tv75[ebp]
  00069	89 45 f0	 mov	 DWORD PTR $T316527[ebp], eax
  0006c	c7 45 fc ff ff
	ff ff		 mov	 DWORD PTR __$EHRec$[ebp+8], -1
  00073	8b 4d e8	 mov	 ecx, DWORD PTR _this$[ebp]
  00076	8b 55 f0	 mov	 edx, DWORD PTR $T316527[ebp]
  00079	89 51 04	 mov	 DWORD PTR [ecx+4], edx

; 159  :             rawPtr = raw;

  0007c	8b 45 e8	 mov	 eax, DWORD PTR _this$[ebp]
  0007f	8b 4d 08	 mov	 ecx, DWORD PTR _raw$[ebp]
  00082	89 08		 mov	 DWORD PTR [eax], ecx
$LN1@operator@377:

; 160  :         }
; 161  :         return *this;

  00084	8b 45 e8	 mov	 eax, DWORD PTR _this$[ebp]

; 162  :     }

  00087	8b 4d f4	 mov	 ecx, DWORD PTR __$EHRec$[ebp]
  0008a	64 89 0d 00 00
	00 00		 mov	 DWORD PTR fs:0, ecx
  00091	59		 pop	 ecx
  00092	8b e5		 mov	 esp, ebp
  00094	5d		 pop	 ebp
  00095	c2 04 00	 ret	 4
_TEXT	ENDS
;	COMDAT text$x
text$x	SEGMENT
__unwindfunclet$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z$0:
  00000	8b 45 ec	 mov	 eax, DWORD PTR $T316528[ebp]
  00003	50		 push	 eax
  00004	e8 00 00 00 00	 call	 ??3@YAXPAX@Z		; operator delete
  00009	59		 pop	 ecx
  0000a	c3		 ret	 0
__ehhandler$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z:
  0000b	8b 54 24 08	 mov	 edx, DWORD PTR [esp+8]
  0000f	8d 42 0c	 lea	 eax, DWORD PTR [edx+12]
  00012	8b 4a ec	 mov	 ecx, DWORD PTR [edx-20]
  00015	33 c8		 xor	 ecx, eax
  00017	e8 00 00 00 00	 call	 @__security_check_cookie@4
  0001c	b8 00 00 00 00	 mov	 eax, OFFSET __ehfuncinfo$??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z
  00021	e9 00 00 00 00	 jmp	 ___CxxFrameHandler3
text$x	ENDS
??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z ENDP	; SmartPtr<CSAA7118>::operator=
PUBLIC	?SetPMSChannelGain@CBT848Card@@QAEXHG@Z		; CBT848Card::SetPMSChannelGain
; Function compile flags: /Odtp
; File c:\develop\dscaler423a\dscaler\bt848card_pms.cpp
;	COMDAT ?SetPMSChannelGain@CBT848Card@@QAEXHG@Z
_TEXT	SEGMENT
tv64 = -12						; size = 4
_this$ = -8						; size = 4
_TempReg$ = -1						; size = 1
_ChannelNum$ = 8					; size = 4
_Gain$ = 12						; size = 2
?SetPMSChannelGain@CBT848Card@@QAEXHG@Z PROC		; CBT848Card::SetPMSChannelGain, COMDAT
; _this$ = ecx

; 496  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 0c	 sub	 esp, 12			; 0000000cH
  00006	89 4d f8	 mov	 DWORD PTR _this$[ebp], ecx

; 497  :     BYTE TempReg;
; 498  :     switch(ChannelNum)

  00009	8b 45 08	 mov	 eax, DWORD PTR _ChannelNum$[ebp]
  0000c	89 45 f4	 mov	 DWORD PTR tv64[ebp], eax
  0000f	8b 4d f4	 mov	 ecx, DWORD PTR tv64[ebp]
  00012	83 e9 01	 sub	 ecx, 1
  00015	89 4d f4	 mov	 DWORD PTR tv64[ebp], ecx
  00018	83 7d f4 03	 cmp	 DWORD PTR tv64[ebp], 3
  0001c	0f 87 e4 01 00
	00		 ja	 $LN8@SetPMSChan
  00022	8b 55 f4	 mov	 edx, DWORD PTR tv64[ebp]
  00025	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN10@SetPMSChan[edx*4]
$LN5@SetPMSChan:

; 499  :     {
; 500  :     case 1:
; 501  :         TempReg = m_SAA7118->GetRegister(0x03) & ~1;

  0002c	6a 03		 push	 3
  0002e	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00031	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00037	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0003c	8b c8		 mov	 ecx, eax
  0003e	e8 00 00 00 00	 call	 ?GetRegister@CSAA7118@@QAEEE@Z ; CSAA7118::GetRegister
  00043	0f b6 c0	 movzx	 eax, al
  00046	83 e0 fe	 and	 eax, -2			; fffffffeH
  00049	88 45 ff	 mov	 BYTE PTR _TempReg$[ebp], al

; 502  :         TempReg |= ((Gain & 0x100) >> 8);

  0004c	0f b7 4d 0c	 movzx	 ecx, WORD PTR _Gain$[ebp]
  00050	81 e1 00 01 00
	00		 and	 ecx, 256		; 00000100H
  00056	c1 f9 08	 sar	 ecx, 8
  00059	0f b6 55 ff	 movzx	 edx, BYTE PTR _TempReg$[ebp]
  0005d	0b d1		 or	 edx, ecx
  0005f	88 55 ff	 mov	 BYTE PTR _TempReg$[ebp], dl

; 503  :         m_SAA7118->SetRegister(0x03, TempReg);

  00062	0f b6 45 ff	 movzx	 eax, BYTE PTR _TempReg$[ebp]
  00066	50		 push	 eax
  00067	6a 03		 push	 3
  00069	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0006c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00072	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00077	8b c8		 mov	 ecx, eax
  00079	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 504  :         m_SAA7118->SetRegister(0x04, Gain & 0xFF);

  0007e	0f b7 4d 0c	 movzx	 ecx, WORD PTR _Gain$[ebp]
  00082	81 e1 ff 00 00
	00		 and	 ecx, 255		; 000000ffH
  00088	51		 push	 ecx
  00089	6a 04		 push	 4
  0008b	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0008e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00094	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00099	8b c8		 mov	 ecx, eax
  0009b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 505  :         break;

  000a0	e9 61 01 00 00	 jmp	 $LN8@SetPMSChan
$LN4@SetPMSChan:

; 506  :     case 2:
; 507  :         TempReg = m_SAA7118->GetRegister(0x03) & ~2;

  000a5	6a 03		 push	 3
  000a7	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000aa	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000b0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000b5	8b c8		 mov	 ecx, eax
  000b7	e8 00 00 00 00	 call	 ?GetRegister@CSAA7118@@QAEEE@Z ; CSAA7118::GetRegister
  000bc	0f b6 d0	 movzx	 edx, al
  000bf	83 e2 fd	 and	 edx, -3			; fffffffdH
  000c2	88 55 ff	 mov	 BYTE PTR _TempReg$[ebp], dl

; 508  :         TempReg |= ((Gain & 0x100) >> 7);

  000c5	0f b7 45 0c	 movzx	 eax, WORD PTR _Gain$[ebp]
  000c9	25 00 01 00 00	 and	 eax, 256		; 00000100H
  000ce	c1 f8 07	 sar	 eax, 7
  000d1	0f b6 4d ff	 movzx	 ecx, BYTE PTR _TempReg$[ebp]
  000d5	0b c8		 or	 ecx, eax
  000d7	88 4d ff	 mov	 BYTE PTR _TempReg$[ebp], cl

; 509  :         m_SAA7118->SetRegister(0x03, TempReg);

  000da	0f b6 55 ff	 movzx	 edx, BYTE PTR _TempReg$[ebp]
  000de	52		 push	 edx
  000df	6a 03		 push	 3
  000e1	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000e4	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000ea	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000ef	8b c8		 mov	 ecx, eax
  000f1	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 510  :         m_SAA7118->SetRegister(0x05, Gain & 0xFF);

  000f6	0f b7 45 0c	 movzx	 eax, WORD PTR _Gain$[ebp]
  000fa	25 ff 00 00 00	 and	 eax, 255		; 000000ffH
  000ff	50		 push	 eax
  00100	6a 05		 push	 5
  00102	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00105	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0010b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00110	8b c8		 mov	 ecx, eax
  00112	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 511  :         break;

  00117	e9 ea 00 00 00	 jmp	 $LN8@SetPMSChan
$LN3@SetPMSChan:

; 512  :     case 3:
; 513  :         TempReg = m_SAA7118->GetRegister(0x23) & ~1;

  0011c	6a 23		 push	 35			; 00000023H
  0011e	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00121	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00127	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0012c	8b c8		 mov	 ecx, eax
  0012e	e8 00 00 00 00	 call	 ?GetRegister@CSAA7118@@QAEEE@Z ; CSAA7118::GetRegister
  00133	0f b6 c8	 movzx	 ecx, al
  00136	83 e1 fe	 and	 ecx, -2			; fffffffeH
  00139	88 4d ff	 mov	 BYTE PTR _TempReg$[ebp], cl

; 514  :         TempReg |= ((Gain & 0x100) >> 8);

  0013c	0f b7 55 0c	 movzx	 edx, WORD PTR _Gain$[ebp]
  00140	81 e2 00 01 00
	00		 and	 edx, 256		; 00000100H
  00146	c1 fa 08	 sar	 edx, 8
  00149	0f b6 45 ff	 movzx	 eax, BYTE PTR _TempReg$[ebp]
  0014d	0b c2		 or	 eax, edx
  0014f	88 45 ff	 mov	 BYTE PTR _TempReg$[ebp], al

; 515  :         m_SAA7118->SetRegister(0x23, TempReg);

  00152	0f b6 4d ff	 movzx	 ecx, BYTE PTR _TempReg$[ebp]
  00156	51		 push	 ecx
  00157	6a 23		 push	 35			; 00000023H
  00159	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0015c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00162	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00167	8b c8		 mov	 ecx, eax
  00169	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 516  :         m_SAA7118->SetRegister(0x24, Gain & 0xFF);

  0016e	0f b7 55 0c	 movzx	 edx, WORD PTR _Gain$[ebp]
  00172	81 e2 ff 00 00
	00		 and	 edx, 255		; 000000ffH
  00178	52		 push	 edx
  00179	6a 24		 push	 36			; 00000024H
  0017b	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0017e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00184	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00189	8b c8		 mov	 ecx, eax
  0018b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 517  :         break;

  00190	eb 74		 jmp	 SHORT $LN8@SetPMSChan
$LN2@SetPMSChan:

; 518  :     case 4:
; 519  :         TempReg = m_SAA7118->GetRegister(0x23) & ~2;

  00192	6a 23		 push	 35			; 00000023H
  00194	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00197	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0019d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001a2	8b c8		 mov	 ecx, eax
  001a4	e8 00 00 00 00	 call	 ?GetRegister@CSAA7118@@QAEEE@Z ; CSAA7118::GetRegister
  001a9	0f b6 c0	 movzx	 eax, al
  001ac	83 e0 fd	 and	 eax, -3			; fffffffdH
  001af	88 45 ff	 mov	 BYTE PTR _TempReg$[ebp], al

; 520  :         TempReg |= ((Gain & 0x100) >> 7);

  001b2	0f b7 4d 0c	 movzx	 ecx, WORD PTR _Gain$[ebp]
  001b6	81 e1 00 01 00
	00		 and	 ecx, 256		; 00000100H
  001bc	c1 f9 07	 sar	 ecx, 7
  001bf	0f b6 55 ff	 movzx	 edx, BYTE PTR _TempReg$[ebp]
  001c3	0b d1		 or	 edx, ecx
  001c5	88 55 ff	 mov	 BYTE PTR _TempReg$[ebp], dl

; 521  :         m_SAA7118->SetRegister(0x23, TempReg);

  001c8	0f b6 45 ff	 movzx	 eax, BYTE PTR _TempReg$[ebp]
  001cc	50		 push	 eax
  001cd	6a 23		 push	 35			; 00000023H
  001cf	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001d2	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001d8	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001dd	8b c8		 mov	 ecx, eax
  001df	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 522  :         m_SAA7118->SetRegister(0x25, Gain & 0xFF);

  001e4	0f b7 4d 0c	 movzx	 ecx, WORD PTR _Gain$[ebp]
  001e8	81 e1 ff 00 00
	00		 and	 ecx, 255		; 000000ffH
  001ee	51		 push	 ecx
  001ef	6a 25		 push	 37			; 00000025H
  001f1	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001f4	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001fa	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001ff	8b c8		 mov	 ecx, eax
  00201	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister
$LN8@SetPMSChan:

; 523  :         break;
; 524  :     default:
; 525  :         break;
; 526  :     }
; 527  : }

  00206	8b e5		 mov	 esp, ebp
  00208	5d		 pop	 ebp
  00209	c2 08 00	 ret	 8
$LN10@SetPMSChan:
  0020c	00 00 00 00	 DD	 $LN5@SetPMSChan
  00210	00 00 00 00	 DD	 $LN4@SetPMSChan
  00214	00 00 00 00	 DD	 $LN3@SetPMSChan
  00218	00 00 00 00	 DD	 $LN2@SetPMSChan
?SetPMSChannelGain@CBT848Card@@QAEXHG@Z ENDP		; CBT848Card::SetPMSChannelGain
_TEXT	ENDS
PUBLIC	?SetPMSDeluxeHue@CBT848Card@@AAEXE@Z		; CBT848Card::SetPMSDeluxeHue
; Function compile flags: /Odtp
;	COMDAT ?SetPMSDeluxeHue@CBT848Card@@AAEXE@Z
_TEXT	SEGMENT
tv65 = -8						; size = 4
_this$ = -4						; size = 4
_Hue$ = 8						; size = 1
?SetPMSDeluxeHue@CBT848Card@@AAEXE@Z PROC		; CBT848Card::SetPMSDeluxeHue, COMDAT
; _this$ = ecx

; 471  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 08	 sub	 esp, 8
  00006	89 4d fc	 mov	 DWORD PTR _this$[ebp], ecx

; 472  :     switch(m_CurrentInput)

  00009	8b 45 fc	 mov	 eax, DWORD PTR _this$[ebp]
  0000c	8b 88 c8 00 00
	00		 mov	 ecx, DWORD PTR [eax+200]
  00012	89 4d f8	 mov	 DWORD PTR tv65[ebp], ecx
  00015	8b 55 f8	 mov	 edx, DWORD PTR tv65[ebp]
  00018	83 ea 01	 sub	 edx, 1
  0001b	89 55 f8	 mov	 DWORD PTR tv65[ebp], edx
  0001e	83 7d f8 09	 cmp	 DWORD PTR tv65[ebp], 9
  00022	77 33		 ja	 SHORT $LN6@SetPMSDelu
  00024	8b 45 f8	 mov	 eax, DWORD PTR tv65[ebp]
  00027	0f b6 88 00 00
	00 00		 movzx	 ecx, BYTE PTR $LN8@SetPMSDelu[eax]
  0002e	ff 24 8d 00 00
	00 00		 jmp	 DWORD PTR $LN9@SetPMSDelu[ecx*4]

; 473  :     {
; 474  :     case PMS_COMPONENT:
; 475  :     case PMS_RGBS:
; 476  :         break;

  00035	eb 20		 jmp	 SHORT $LN6@SetPMSDelu
$LN2@SetPMSDelu:

; 477  :     case PMS_SVIDEO:
; 478  :     case PMS_SVIDEO2:
; 479  :     case PMS_COMPOSITE1:
; 480  :     case PMS_COMPOSITE2:
; 481  :     case PMS_COMPOSITE3:
; 482  :     case PMS_COMPOSITE_SV_1: // Composite over S-Video
; 483  :     case PMS_COMPOSITE_SV_2: // Composite over S-Video
; 484  :     case PMS_COMPOSITE_SV_3: // Composite over S-Video
; 485  :     case PMS_COMPOSITE_SV_4: // Composite over S-Video
; 486  :         m_SAA7118->SetHue(Hue + 0x80);

  00037	0f b6 55 08	 movzx	 edx, BYTE PTR _Hue$[ebp]
  0003b	81 c2 80 00 00
	00		 add	 edx, 128		; 00000080H
  00041	52		 push	 edx
  00042	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00045	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0004b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00050	8b c8		 mov	 ecx, eax
  00052	e8 00 00 00 00	 call	 ?SetHue@CSAA7118@@QAEXE@Z ; CSAA7118::SetHue
$LN6@SetPMSDelu:

; 487  :         break;
; 488  :     case PMS_XPORT:
; 489  :     case PMS_SDI:
; 490  :     default:
; 491  :         break;
; 492  :     }
; 493  : }

  00057	8b e5		 mov	 esp, ebp
  00059	5d		 pop	 ebp
  0005a	c2 04 00	 ret	 4
  0005d	8d 49 00	 npad	 3
$LN9@SetPMSDelu:
  00060	00 00 00 00	 DD	 $LN2@SetPMSDelu
  00064	00 00 00 00	 DD	 $LN6@SetPMSDelu
$LN8@SetPMSDelu:
  00068	00		 DB	 0
  00069	00		 DB	 0
  0006a	00		 DB	 0
  0006b	00		 DB	 0
  0006c	00		 DB	 0
  0006d	01		 DB	 1
  0006e	00		 DB	 0
  0006f	00		 DB	 0
  00070	00		 DB	 0
  00071	00		 DB	 0
?SetPMSDeluxeHue@CBT848Card@@AAEXE@Z ENDP		; CBT848Card::SetPMSDeluxeHue
_TEXT	ENDS
PUBLIC	?SetPMSDeluxeFormat@CBT848Card@@AAEXHW4eVideoFormat@@@Z ; CBT848Card::SetPMSDeluxeFormat
; Function compile flags: /Odtp
;	COMDAT ?SetPMSDeluxeFormat@CBT848Card@@AAEXHW4eVideoFormat@@@Z
_TEXT	SEGMENT
tv268 = -16						; size = 4
tv255 = -12						; size = 4
_this$ = -8						; size = 4
_ChrominanceGainControl$ = -4				; size = 1
_ChrominanceControl$ = -3				; size = 1
_LuminanceControl$ = -2					; size = 1
_ChrominanceControl2$ = -1				; size = 1
_nInput$ = 8						; size = 4
_TVFormat$ = 12						; size = 4
?SetPMSDeluxeFormat@CBT848Card@@AAEXHW4eVideoFormat@@@Z PROC ; CBT848Card::SetPMSDeluxeFormat, COMDAT
; _this$ = ecx

; 250  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 10	 sub	 esp, 16			; 00000010H
  00006	89 4d f8	 mov	 DWORD PTR _this$[ebp], ecx

; 251  :     BYTE ChrominanceControl(0x81);

  00009	c6 45 fd 81	 mov	 BYTE PTR _ChrominanceControl$[ebp], 129 ; 00000081H

; 252  :     BYTE ChrominanceControl2(0x00);

  0000d	c6 45 ff 00	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 0

; 253  :     BYTE ChrominanceGainControl(0x2A);

  00011	c6 45 fc 2a	 mov	 BYTE PTR _ChrominanceGainControl$[ebp], 42 ; 0000002aH

; 254  :     BYTE LuminanceControl;
; 255  : 
; 256  :     // get existing sharpness and set luma comb filter
; 257  :     LuminanceControl = (m_SAA7118->GetRegister(0x09) & 0x0F) | 0x40;

  00015	6a 09		 push	 9
  00017	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0001a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00020	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00025	8b c8		 mov	 ecx, eax
  00027	e8 00 00 00 00	 call	 ?GetRegister@CSAA7118@@QAEEE@Z ; CSAA7118::GetRegister
  0002c	0f b6 c0	 movzx	 eax, al
  0002f	83 e0 0f	 and	 eax, 15			; 0000000fH
  00032	83 c8 40	 or	 eax, 64			; 00000040H
  00035	88 45 fe	 mov	 BYTE PTR _LuminanceControl$[ebp], al

; 258  : 
; 259  :     if(GetTVFormat(TVFormat)->wCropHeight == 576)

  00038	8b 4d 0c	 mov	 ecx, DWORD PTR _TVFormat$[ebp]
  0003b	51		 push	 ecx
  0003c	e8 00 00 00 00	 call	 ?GetTVFormat@@YAPAUTTVFormat@@W4eVideoFormat@@@Z ; GetTVFormat
  00041	83 c4 04	 add	 esp, 4
  00044	0f b7 10	 movzx	 edx, WORD PTR [eax]
  00047	81 fa 40 02 00
	00		 cmp	 edx, 576		; 00000240H
  0004d	0f 85 f8 00 00
	00		 jne	 $LN20@SetPMSDelu@2

; 260  :     {
; 261  :         m_SAA7118->SetRegister(0x08, 0x28);

  00053	6a 28		 push	 40			; 00000028H
  00055	6a 08		 push	 8
  00057	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0005a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00060	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00065	8b c8		 mov	 ecx, eax
  00067	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 262  :         m_SAA7118->SetRegister(0x5A, 0x03);

  0006c	6a 03		 push	 3
  0006e	6a 5a		 push	 90			; 0000005aH
  00070	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00073	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00079	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0007e	8b c8		 mov	 ecx, eax
  00080	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 263  :         m_SAA7118->SetRegister(0x5B, 0x00);

  00085	6a 00		 push	 0
  00087	6a 5b		 push	 91			; 0000005bH
  00089	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0008c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00092	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00097	8b c8		 mov	 ecx, eax
  00099	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 264  : 
; 265  :         m_SAA7118->SetRegister(0x98,0x0d); // vertical input offset

  0009e	6a 0d		 push	 13			; 0000000dH
  000a0	68 98 00 00 00	 push	 152			; 00000098H
  000a5	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000a8	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000ae	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000b3	8b c8		 mov	 ecx, eax
  000b5	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 266  :         m_SAA7118->SetRegister(0x99,0x00);

  000ba	6a 00		 push	 0
  000bc	68 99 00 00 00	 push	 153			; 00000099H
  000c1	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000c4	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000ca	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000cf	8b c8		 mov	 ecx, eax
  000d1	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 267  : 
; 268  :         m_SAA7118->SetRegister(0x9A, 0x38);

  000d6	6a 38		 push	 56			; 00000038H
  000d8	68 9a 00 00 00	 push	 154			; 0000009aH
  000dd	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000e0	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000e6	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000eb	8b c8		 mov	 ecx, eax
  000ed	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 269  :         m_SAA7118->SetRegister(0x9B, 0x01);

  000f2	6a 01		 push	 1
  000f4	68 9b 00 00 00	 push	 155			; 0000009bH
  000f9	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  000fc	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00102	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00107	8b c8		 mov	 ecx, eax
  00109	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 270  :         m_SAA7118->SetRegister(0x9E, 0x40-2);

  0010e	6a 3e		 push	 62			; 0000003eH
  00110	68 9e 00 00 00	 push	 158			; 0000009eH
  00115	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00118	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0011e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00123	8b c8		 mov	 ecx, eax
  00125	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 271  :         m_SAA7118->SetRegister(0x9F, 0x02);

  0012a	6a 02		 push	 2
  0012c	68 9f 00 00 00	 push	 159			; 0000009fH
  00131	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00134	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0013a	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0013f	8b c8		 mov	 ecx, eax
  00141	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 272  :     }
; 273  :     else

  00146	e9 f9 00 00 00	 jmp	 $LN19@SetPMSDelu@2
$LN20@SetPMSDelu@2:

; 274  :     {
; 275  :         m_SAA7118->SetRegister(0x08, 0x68);

  0014b	6a 68		 push	 104			; 00000068H
  0014d	6a 08		 push	 8
  0014f	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00152	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00158	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0015d	8b c8		 mov	 ecx, eax
  0015f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 276  :         m_SAA7118->SetRegister(0x5A, 0x06);

  00164	6a 06		 push	 6
  00166	6a 5a		 push	 90			; 0000005aH
  00168	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0016b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00171	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00176	8b c8		 mov	 ecx, eax
  00178	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 277  :         m_SAA7118->SetRegister(0x5B, 0x83);

  0017d	68 83 00 00 00	 push	 131			; 00000083H
  00182	6a 5b		 push	 91			; 0000005bH
  00184	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00187	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0018d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00192	8b c8		 mov	 ecx, eax
  00194	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 278  : 
; 279  :         m_SAA7118->SetRegister(0x98,0x0a); // vertical input offset

  00199	6a 0a		 push	 10			; 0000000aH
  0019b	68 98 00 00 00	 push	 152			; 00000098H
  001a0	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001a3	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001a9	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001ae	8b c8		 mov	 ecx, eax
  001b0	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 280  :         m_SAA7118->SetRegister(0x99,0x00);

  001b5	6a 00		 push	 0
  001b7	68 99 00 00 00	 push	 153			; 00000099H
  001bc	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001bf	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001c5	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001ca	8b c8		 mov	 ecx, eax
  001cc	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 281  : 
; 282  :         m_SAA7118->SetRegister(0x9A, 0x06);

  001d1	6a 06		 push	 6
  001d3	68 9a 00 00 00	 push	 154			; 0000009aH
  001d8	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001db	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001e1	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001e6	8b c8		 mov	 ecx, eax
  001e8	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 283  :         m_SAA7118->SetRegister(0x9B, 0x01);

  001ed	6a 01		 push	 1
  001ef	68 9b 00 00 00	 push	 155			; 0000009bH
  001f4	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  001f7	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001fd	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00202	8b c8		 mov	 ecx, eax
  00204	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 284  :         m_SAA7118->SetRegister(0x9E, 0xE0 - 2);

  00209	68 de 00 00 00	 push	 222			; 000000deH
  0020e	68 9e 00 00 00	 push	 158			; 0000009eH
  00213	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00216	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0021c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00221	8b c8		 mov	 ecx, eax
  00223	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 285  :         m_SAA7118->SetRegister(0x9F, 0x01);

  00228	6a 01		 push	 1
  0022a	68 9f 00 00 00	 push	 159			; 0000009fH
  0022f	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00232	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00238	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0023d	8b c8		 mov	 ecx, eax
  0023f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister
$LN19@SetPMSDelu@2:

; 286  :     }
; 287  : 
; 288  :     if(nInput == PMS_XPORT)

  00244	83 7d 08 06	 cmp	 DWORD PTR _nInput$[ebp], 6
  00248	75 56		 jne	 SHORT $LN18@SetPMSDelu@2

; 289  :     {
; 290  :         m_SAA7118->SetRegister(0x80, 0x11);

  0024a	6a 11		 push	 17			; 00000011H
  0024c	68 80 00 00 00	 push	 128			; 00000080H
  00251	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00254	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0025a	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0025f	8b c8		 mov	 ecx, eax
  00261	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 291  :         m_SAA7118->SetRegister(0x91, 0x18);

  00266	6a 18		 push	 24			; 00000018H
  00268	68 91 00 00 00	 push	 145			; 00000091H
  0026d	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00270	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00276	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0027b	8b c8		 mov	 ecx, eax
  0027d	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 292  :         m_SAA7118->SetRegister(0x92, 0x19);

  00282	6a 19		 push	 25			; 00000019H
  00284	68 92 00 00 00	 push	 146			; 00000092H
  00289	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0028c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00292	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00297	8b c8		 mov	 ecx, eax
  00299	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 293  :     }
; 294  :     else

  0029e	eb 54		 jmp	 SHORT $LN17@SetPMSDelu@2
$LN18@SetPMSDelu@2:

; 295  :     {
; 296  :         m_SAA7118->SetRegister(0x80, 0x10);

  002a0	6a 10		 push	 16			; 00000010H
  002a2	68 80 00 00 00	 push	 128			; 00000080H
  002a7	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  002aa	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002b0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002b5	8b c8		 mov	 ecx, eax
  002b7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 297  :         m_SAA7118->SetRegister(0x91, 0x08);

  002bc	6a 08		 push	 8
  002be	68 91 00 00 00	 push	 145			; 00000091H
  002c3	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  002c6	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002cc	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002d1	8b c8		 mov	 ecx, eax
  002d3	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 298  :         m_SAA7118->SetRegister(0x92, 0x10);

  002d8	6a 10		 push	 16			; 00000010H
  002da	68 92 00 00 00	 push	 146			; 00000092H
  002df	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  002e2	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002e8	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002ed	8b c8		 mov	 ecx, eax
  002ef	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister
$LN17@SetPMSDelu@2:

; 299  :     }
; 300  : 
; 301  : 
; 302  :     switch(nInput)

  002f4	8b 45 08	 mov	 eax, DWORD PTR _nInput$[ebp]
  002f7	89 45 f4	 mov	 DWORD PTR tv255[ebp], eax
  002fa	83 7d f4 0c	 cmp	 DWORD PTR tv255[ebp], 12 ; 0000000cH
  002fe	0f 87 06 01 00
	00		 ja	 $LN15@SetPMSDelu@2
  00304	8b 4d f4	 mov	 ecx, DWORD PTR tv255[ebp]
  00307	0f b6 91 00 00
	00 00		 movzx	 edx, BYTE PTR $LN23@SetPMSDelu@2[ecx]
  0030e	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN25@SetPMSDelu@2[edx*4]
$LN14@SetPMSDelu@2:

; 303  :     {
; 304  :     case PMS_COMPONENT:
; 305  :     case PMS_RGBS:
; 306  :     case PMS_XPORT:
; 307  :     case PMS_SDI:
; 308  :         // doesn't really matter for these inputs
; 309  :         // but we'll set the default
; 310  :         ChrominanceControl = 0x89;

  00315	c6 45 fd 89	 mov	 BYTE PTR _ChrominanceControl$[ebp], 137 ; 00000089H

; 311  :         m_SAA7118->SetRegister(0x29, 0x40);

  00319	6a 40		 push	 64			; 00000040H
  0031b	6a 29		 push	 41			; 00000029H
  0031d	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00320	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00326	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0032b	8b c8		 mov	 ecx, eax
  0032d	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 312  :         break;

  00332	e9 d3 00 00 00	 jmp	 $LN15@SetPMSDelu@2
$LN13@SetPMSDelu@2:

; 313  :     case PMS_SVIDEO:
; 314  :     case PMS_SVIDEO2:
; 315  :     case PMS_COMPOSITE1:
; 316  :     case PMS_COMPOSITE2:
; 317  :     case PMS_COMPOSITE3:
; 318  :     case PMS_COMPOSITE_SV_1: // Composite over S-Video
; 319  :     case PMS_COMPOSITE_SV_2: // Composite over S-Video
; 320  :     case PMS_COMPOSITE_SV_3: // Composite over S-Video
; 321  :     case PMS_COMPOSITE_SV_4: // Composite over S-Video
; 322  :         m_SAA7118->SetRegister(0x29, 0x00);

  00337	6a 00		 push	 0
  00339	6a 29		 push	 41			; 00000029H
  0033b	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0033e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00344	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00349	8b c8		 mov	 ecx, eax
  0034b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 323  :         switch(TVFormat)

  00350	8b 45 0c	 mov	 eax, DWORD PTR _TVFormat$[ebp]
  00353	89 45 f0	 mov	 DWORD PTR tv268[ebp], eax
  00356	83 7d f0 13	 cmp	 DWORD PTR tv268[ebp], 19 ; 00000013H
  0035a	0f 87 96 00 00
	00		 ja	 $LN3@SetPMSDelu@2
  00360	8b 4d f0	 mov	 ecx, DWORD PTR tv268[ebp]
  00363	0f b6 91 00 00
	00 00		 movzx	 edx, BYTE PTR $LN24@SetPMSDelu@2[ecx]
  0036a	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN26@SetPMSDelu@2[edx*4]
$LN10@SetPMSDelu@2:

; 324  :         {
; 325  :         case VIDEOFORMAT_PAL_M:
; 326  :             ChrominanceControl |= 3 << 4;

  00371	0f b6 45 fd	 movzx	 eax, BYTE PTR _ChrominanceControl$[ebp]
  00375	83 c8 30	 or	 eax, 48			; 00000030H
  00378	88 45 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], al

; 327  :             ChrominanceControl2 = 0x06;

  0037b	c6 45 ff 06	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 6

; 328  :             break;

  0037f	e9 86 00 00 00	 jmp	 $LN15@SetPMSDelu@2
$LN9@SetPMSDelu@2:

; 329  :         case VIDEOFORMAT_PAL_60:
; 330  :             ChrominanceControl |= 1 << 4;

  00384	0f b6 4d fd	 movzx	 ecx, BYTE PTR _ChrominanceControl$[ebp]
  00388	83 c9 10	 or	 ecx, 16			; 00000010H
  0038b	88 4d fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], cl

; 331  :             ChrominanceControl2 = 0x06;

  0038e	c6 45 ff 06	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 6

; 332  :             break;

  00392	eb 76		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN8@SetPMSDelu@2:

; 333  :         case VIDEOFORMAT_NTSC_50:
; 334  :             ChrominanceControl |= 1 << 4;

  00394	0f b6 55 fd	 movzx	 edx, BYTE PTR _ChrominanceControl$[ebp]
  00398	83 ca 10	 or	 edx, 16			; 00000010H
  0039b	88 55 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], dl

; 335  :             ChrominanceControl |= 1 << 3;

  0039e	0f b6 45 fd	 movzx	 eax, BYTE PTR _ChrominanceControl$[ebp]
  003a2	83 c8 08	 or	 eax, 8
  003a5	88 45 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], al

; 336  :             ChrominanceControl2 = 0x0E;

  003a8	c6 45 ff 0e	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 14 ; 0000000eH

; 337  :             break;

  003ac	eb 5c		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN7@SetPMSDelu@2:

; 338  :         case VIDEOFORMAT_PAL_N_COMBO:
; 339  :             ChrominanceControl |= 2 << 4;

  003ae	0f b6 4d fd	 movzx	 ecx, BYTE PTR _ChrominanceControl$[ebp]
  003b2	83 c9 20	 or	 ecx, 32			; 00000020H
  003b5	88 4d fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], cl

; 340  :             ChrominanceControl2 = 0x06;

  003b8	c6 45 ff 06	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 6

; 341  :             break;

  003bc	eb 4c		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN6@SetPMSDelu@2:

; 342  :         case VIDEOFORMAT_SECAM_B:
; 343  :         case VIDEOFORMAT_SECAM_D:
; 344  :         case VIDEOFORMAT_SECAM_G:
; 345  :         case VIDEOFORMAT_SECAM_H:
; 346  :         case VIDEOFORMAT_SECAM_K:
; 347  :         case VIDEOFORMAT_SECAM_K1:
; 348  :         case VIDEOFORMAT_SECAM_L:
; 349  :         case VIDEOFORMAT_SECAM_L1:
; 350  :             ChrominanceControl = 0xD0;

  003be	c6 45 fd d0	 mov	 BYTE PTR _ChrominanceControl$[ebp], 208 ; 000000d0H

; 351  :             ChrominanceControl2 = 0x00;

  003c2	c6 45 ff 00	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 0

; 352  :             ChrominanceGainControl = 0x80;

  003c6	c6 45 fc 80	 mov	 BYTE PTR _ChrominanceGainControl$[ebp], 128 ; 00000080H

; 353  :             LuminanceControl = 0x1B;

  003ca	c6 45 fe 1b	 mov	 BYTE PTR _LuminanceControl$[ebp], 27 ; 0000001bH

; 354  :             break;

  003ce	eb 3a		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN5@SetPMSDelu@2:

; 355  :         case VIDEOFORMAT_NTSC_M_Japan:
; 356  :             ChrominanceControl |= 4 << 4;

  003d0	0f b6 55 fd	 movzx	 edx, BYTE PTR _ChrominanceControl$[ebp]
  003d4	83 ca 40	 or	 edx, 64			; 00000040H
  003d7	88 55 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], dl

; 357  :             ChrominanceControl |= 1 << 3;

  003da	0f b6 45 fd	 movzx	 eax, BYTE PTR _ChrominanceControl$[ebp]
  003de	83 c8 08	 or	 eax, 8
  003e1	88 45 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], al

; 358  :             ChrominanceControl2 = 0x0E;

  003e4	c6 45 ff 0e	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 14 ; 0000000eH

; 359  :             break;

  003e8	eb 20		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN4@SetPMSDelu@2:

; 360  :         case VIDEOFORMAT_PAL_B:
; 361  :         case VIDEOFORMAT_PAL_D:
; 362  :         case VIDEOFORMAT_PAL_G:
; 363  :         case VIDEOFORMAT_PAL_H:
; 364  :         case VIDEOFORMAT_PAL_I:
; 365  :             ChrominanceControl |= 0 << 4;

  003ea	8a 4d fd	 mov	 cl, BYTE PTR _ChrominanceControl$[ebp]
  003ed	88 4d fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], cl

; 366  :             ChrominanceControl2 = 0x06;

  003f0	c6 45 ff 06	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 6

; 367  :             break;

  003f4	eb 14		 jmp	 SHORT $LN15@SetPMSDelu@2
$LN3@SetPMSDelu@2:

; 368  :         case VIDEOFORMAT_NTSC_M:
; 369  :         default:
; 370  :             ChrominanceControl |= 0 << 4;

  003f6	8a 55 fd	 mov	 dl, BYTE PTR _ChrominanceControl$[ebp]
  003f9	88 55 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], dl

; 371  :             ChrominanceControl |= 1 << 3;

  003fc	0f b6 45 fd	 movzx	 eax, BYTE PTR _ChrominanceControl$[ebp]
  00400	83 c8 08	 or	 eax, 8
  00403	88 45 fd	 mov	 BYTE PTR _ChrominanceControl$[ebp], al

; 372  :             ChrominanceControl2 = 0x0E;

  00406	c6 45 ff 0e	 mov	 BYTE PTR _ChrominanceControl2$[ebp], 14 ; 0000000eH
$LN15@SetPMSDelu@2:

; 373  :             break;
; 374  :         }
; 375  :         break;
; 376  :     }
; 377  : 
; 378  :     if(nInput == PMS_SVIDEO || nInput == PMS_SVIDEO2)

  0040a	83 7d 08 01	 cmp	 DWORD PTR _nInput$[ebp], 1
  0040e	74 06		 je	 SHORT $LN1@SetPMSDelu@2
  00410	83 7d 08 02	 cmp	 DWORD PTR _nInput$[ebp], 2
  00414	75 0d		 jne	 SHORT $LN2@SetPMSDelu@2
$LN1@SetPMSDelu@2:

; 379  :     {
; 380  :         LuminanceControl |= 0x80;

  00416	0f b6 4d fe	 movzx	 ecx, BYTE PTR _LuminanceControl$[ebp]
  0041a	81 c9 80 00 00
	00		 or	 ecx, 128		; 00000080H
  00420	88 4d fe	 mov	 BYTE PTR _LuminanceControl$[ebp], cl
$LN2@SetPMSDelu@2:

; 381  :     }
; 382  : 
; 383  : 
; 384  :     m_SAA7118->SetRegister(0x09, LuminanceControl);

  00423	0f b6 55 fe	 movzx	 edx, BYTE PTR _LuminanceControl$[ebp]
  00427	52		 push	 edx
  00428	6a 09		 push	 9
  0042a	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0042d	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00433	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00438	8b c8		 mov	 ecx, eax
  0043a	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 385  :     m_SAA7118->SetRegister(0x0E, ChrominanceControl);

  0043f	0f b6 45 fd	 movzx	 eax, BYTE PTR _ChrominanceControl$[ebp]
  00443	50		 push	 eax
  00444	6a 0e		 push	 14			; 0000000eH
  00446	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00449	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0044f	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00454	8b c8		 mov	 ecx, eax
  00456	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 386  :     m_SAA7118->SetRegister(0x0F, ChrominanceGainControl);

  0045b	0f b6 4d fc	 movzx	 ecx, BYTE PTR _ChrominanceGainControl$[ebp]
  0045f	51		 push	 ecx
  00460	6a 0f		 push	 15			; 0000000fH
  00462	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00465	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0046b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00470	8b c8		 mov	 ecx, eax
  00472	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 387  :     m_SAA7118->SetRegister(0x10, ChrominanceControl2);

  00477	0f b6 55 ff	 movzx	 edx, BYTE PTR _ChrominanceControl2$[ebp]
  0047b	52		 push	 edx
  0047c	6a 10		 push	 16			; 00000010H
  0047e	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00481	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00487	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0048c	8b c8		 mov	 ecx, eax
  0048e	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 388  : 
; 389  :     // reset the scaler
; 390  :     m_SAA7118->SetRegister(0x88,0x00);

  00493	6a 00		 push	 0
  00495	68 88 00 00 00	 push	 136			; 00000088H
  0049a	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0049d	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  004a3	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004a8	8b c8		 mov	 ecx, eax
  004aa	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 391  :     m_SAA7118->SetRegister(0x88,0x20);

  004af	6a 20		 push	 32			; 00000020H
  004b1	68 88 00 00 00	 push	 136			; 00000088H
  004b6	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  004b9	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  004bf	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004c4	8b c8		 mov	 ecx, eax
  004c6	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 392  : 
; 393  : }

  004cb	8b e5		 mov	 esp, ebp
  004cd	5d		 pop	 ebp
  004ce	c2 08 00	 ret	 8
  004d1	8d 49 00	 npad	 3
$LN25@SetPMSDelu@2:
  004d4	00 00 00 00	 DD	 $LN14@SetPMSDelu@2
  004d8	00 00 00 00	 DD	 $LN13@SetPMSDelu@2
$LN23@SetPMSDelu@2:
  004dc	00		 DB	 0
  004dd	01		 DB	 1
  004de	01		 DB	 1
  004df	01		 DB	 1
  004e0	01		 DB	 1
  004e1	01		 DB	 1
  004e2	00		 DB	 0
  004e3	01		 DB	 1
  004e4	01		 DB	 1
  004e5	01		 DB	 1
  004e6	01		 DB	 1
  004e7	00		 DB	 0
  004e8	00		 DB	 0
  004e9	8d 49 00	 npad	 3
$LN26@SetPMSDelu@2:
  004ec	00 00 00 00	 DD	 $LN4@SetPMSDelu@2
  004f0	00 00 00 00	 DD	 $LN10@SetPMSDelu@2
  004f4	00 00 00 00	 DD	 $LN9@SetPMSDelu@2
  004f8	00 00 00 00	 DD	 $LN7@SetPMSDelu@2
  004fc	00 00 00 00	 DD	 $LN6@SetPMSDelu@2
  00500	00 00 00 00	 DD	 $LN5@SetPMSDelu@2
  00504	00 00 00 00	 DD	 $LN8@SetPMSDelu@2
  00508	00 00 00 00	 DD	 $LN3@SetPMSDelu@2
$LN24@SetPMSDelu@2:
  0050c	00		 DB	 0
  0050d	00		 DB	 0
  0050e	00		 DB	 0
  0050f	00		 DB	 0
  00510	00		 DB	 0
  00511	01		 DB	 1
  00512	07		 DB	 7
  00513	02		 DB	 2
  00514	03		 DB	 3
  00515	04		 DB	 4
  00516	04		 DB	 4
  00517	04		 DB	 4
  00518	04		 DB	 4
  00519	04		 DB	 4
  0051a	04		 DB	 4
  0051b	04		 DB	 4
  0051c	04		 DB	 4
  0051d	07		 DB	 7
  0051e	05		 DB	 5
  0051f	06		 DB	 6
?SetPMSDeluxeFormat@CBT848Card@@AAEXHW4eVideoFormat@@@Z ENDP ; CBT848Card::SetPMSDeluxeFormat
_TEXT	ENDS
PUBLIC	?InitPMSDeluxe@CBT848Card@@AAEXXZ		; CBT848Card::InitPMSDeluxe
;	COMDAT xdata$x
xdata$x	SEGMENT
__unwindtable$?InitPMSDeluxe@CBT848Card@@AAEXXZ DD 0ffffffffH
	DD	FLAT:__unwindfunclet$?InitPMSDeluxe@CBT848Card@@AAEXXZ$0
__ehfuncinfo$?InitPMSDeluxe@CBT848Card@@AAEXXZ DD 019930522H
	DD	01H
	DD	FLAT:__unwindtable$?InitPMSDeluxe@CBT848Card@@AAEXXZ
	DD	2 DUP(00H)
	DD	2 DUP(00H)
	DD	00H
	DD	00H
; Function compile flags: /Odtp
xdata$x	ENDS
;	COMDAT ?InitPMSDeluxe@CBT848Card@@AAEXXZ
_TEXT	SEGMENT
tv74 = -52						; size = 4
_this$ = -48						; size = 4
$T324255 = -44						; size = 4
$T324254 = -40						; size = 4
_horizontalChromaPhaseOffset$ = -33			; size = 1
_ASat$ = -32						; size = 1
_cBrightness$ = -31					; size = 1
_dSat$ = -30						; size = 1
_AContrast$ = -29					; size = 1
_verticalChromaPhaseOffset$ = -28			; size = 1
_ABrightness$ = -27					; size = 1
_dBrightness$ = -26					; size = 1
_dHue$ = -25						; size = 1
_i$ = -24						; size = 4
_dContrast$ = -17					; size = 1
_cContrast$ = -16					; size = 1
_verticalLumaPhaseOffset$ = -15				; size = 1
_cSat$ = -14						; size = 1
_horizontalLumaPhaseOffset$ = -13			; size = 1
__$EHRec$ = -12						; size = 12
?InitPMSDeluxe@CBT848Card@@AAEXXZ PROC			; CBT848Card::InitPMSDeluxe, COMDAT
; _this$ = ecx

; 71   : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	6a ff		 push	 -1
  00005	68 00 00 00 00	 push	 __ehhandler$?InitPMSDeluxe@CBT848Card@@AAEXXZ
  0000a	64 a1 00 00 00
	00		 mov	 eax, DWORD PTR fs:0
  00010	50		 push	 eax
  00011	83 ec 28	 sub	 esp, 40			; 00000028H
  00014	a1 00 00 00 00	 mov	 eax, DWORD PTR ___security_cookie
  00019	33 c5		 xor	 eax, ebp
  0001b	50		 push	 eax
  0001c	8d 45 f4	 lea	 eax, DWORD PTR __$EHRec$[ebp]
  0001f	64 a3 00 00 00
	00		 mov	 DWORD PTR fs:0, eax
  00025	89 4d d0	 mov	 DWORD PTR _this$[ebp], ecx

; 72   :     //InitRSBT();
; 73   : 
; 74   :     m_SAA7118 = new CSAA7118();

  00028	6a 0c		 push	 12			; 0000000cH
  0002a	e8 00 00 00 00	 call	 ??2@YAPAXI@Z		; operator new
  0002f	83 c4 04	 add	 esp, 4
  00032	89 45 d4	 mov	 DWORD PTR $T324255[ebp], eax
  00035	c7 45 fc 00 00
	00 00		 mov	 DWORD PTR __$EHRec$[ebp+8], 0
  0003c	83 7d d4 00	 cmp	 DWORD PTR $T324255[ebp], 0
  00040	74 0d		 je	 SHORT $LN6@InitPMSDel
  00042	8b 4d d4	 mov	 ecx, DWORD PTR $T324255[ebp]
  00045	e8 00 00 00 00	 call	 ??0CSAA7118@@QAE@XZ	; CSAA7118::CSAA7118
  0004a	89 45 cc	 mov	 DWORD PTR tv74[ebp], eax
  0004d	eb 07		 jmp	 SHORT $LN7@InitPMSDel
$LN6@InitPMSDel:
  0004f	c7 45 cc 00 00
	00 00		 mov	 DWORD PTR tv74[ebp], 0
$LN7@InitPMSDel:
  00056	8b 45 cc	 mov	 eax, DWORD PTR tv74[ebp]
  00059	89 45 d8	 mov	 DWORD PTR $T324254[ebp], eax
  0005c	c7 45 fc ff ff
	ff ff		 mov	 DWORD PTR __$EHRec$[ebp+8], -1
  00063	8b 4d d8	 mov	 ecx, DWORD PTR $T324254[ebp]
  00066	51		 push	 ecx
  00067	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0006a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00070	e8 00 00 00 00	 call	 ??4?$SmartPtr@VCSAA7118@@@@QAEAAV0@PAVCSAA7118@@@Z ; SmartPtr<CSAA7118>::operator=

; 75   : 
; 76   :     m_SAA7118->SetI2CBus(m_I2CBus.GetRawPointer());

  00075	6a 00		 push	 0
  00077	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0007a	81 c1 a0 00 00
	00		 add	 ecx, 160		; 000000a0H
  00080	e8 00 00 00 00	 call	 ?GetRawPointer@?$SmartPtr@VCI2CBus@@@@QBEPAVCI2CBus@@XZ ; SmartPtr<CI2CBus>::GetRawPointer
  00085	50		 push	 eax
  00086	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00089	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0008f	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00094	8b c8		 mov	 ecx, eax
  00096	e8 00 00 00 00	 call	 ?SetI2CBus@CI2CDevice@@QAEXPAVCI2CBus@@E@Z ; CI2CDevice::SetI2CBus

; 77   : 
; 78   :     #ifdef _DEBUG
; 79   :     if(m_SAA7118->GetVersion() > 0)
; 80   :     {
; 81   :         m_SAA7118->DumpSettings(_T("SAA7118_PMS.txt"));
; 82   :     }
; 83   :     #endif
; 84   : 
; 85   :     int i;
; 86   : 
; 87   :     BYTE dBrightness = 135, dContrast = 62, dSat = 64, dHue = 0, // Other analog

  0009b	c6 45 e6 87	 mov	 BYTE PTR _dBrightness$[ebp], 135 ; 00000087H
  0009f	c6 45 ef 3e	 mov	 BYTE PTR _dContrast$[ebp], 62 ; 0000003eH
  000a3	c6 45 e2 40	 mov	 BYTE PTR _dSat$[ebp], 64 ; 00000040H
  000a7	c6 45 e7 00	 mov	 BYTE PTR _dHue$[ebp], 0

; 88   :       cBrightness = 176, cContrast = 90, cSat = 64, // Component

  000ab	c6 45 e1 b0	 mov	 BYTE PTR _cBrightness$[ebp], 176 ; 000000b0H
  000af	c6 45 f0 5a	 mov	 BYTE PTR _cContrast$[ebp], 90 ; 0000005aH
  000b3	c6 45 f2 40	 mov	 BYTE PTR _cSat$[ebp], 64 ; 00000040H

; 89   :       ABrightness = 128, AContrast = 64, ASat = 64, // Post

  000b7	c6 45 e5 80	 mov	 BYTE PTR _ABrightness$[ebp], 128 ; 00000080H
  000bb	c6 45 e3 40	 mov	 BYTE PTR _AContrast$[ebp], 64 ; 00000040H
  000bf	c6 45 e0 40	 mov	 BYTE PTR _ASat$[ebp], 64 ; 00000040H

; 90   :       verticalChromaPhaseOffset = 0, verticalLumaPhaseOffset = 0,

  000c3	c6 45 e4 00	 mov	 BYTE PTR _verticalChromaPhaseOffset$[ebp], 0
  000c7	c6 45 f1 00	 mov	 BYTE PTR _verticalLumaPhaseOffset$[ebp], 0

; 91   :       horizontalChromaPhaseOffset = 0, horizontalLumaPhaseOffset = 0;

  000cb	c6 45 df 00	 mov	 BYTE PTR _horizontalChromaPhaseOffset$[ebp], 0
  000cf	c6 45 f3 00	 mov	 BYTE PTR _horizontalLumaPhaseOffset$[ebp], 0

; 92   : 
; 93   :     m_SAA7118->SetRegister(0x01,0x47);

  000d3	6a 47		 push	 71			; 00000047H
  000d5	6a 01		 push	 1
  000d7	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  000da	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000e0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000e5	8b c8		 mov	 ecx, eax
  000e7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 94   :     //0x02 is input selection
; 95   :     m_SAA7118->SetRegister(0x03,0x20);

  000ec	6a 20		 push	 32			; 00000020H
  000ee	6a 03		 push	 3
  000f0	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  000f3	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000f9	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000fe	8b c8		 mov	 ecx, eax
  00100	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 96   :     m_SAA7118->SetRegister(0x04,0x90); //not on datasheet

  00105	68 90 00 00 00	 push	 144			; 00000090H
  0010a	6a 04		 push	 4
  0010c	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0010f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00115	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0011a	8b c8		 mov	 ecx, eax
  0011c	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 97   :     m_SAA7118->SetRegister(0x05,0x90); //not on datasheet

  00121	68 90 00 00 00	 push	 144			; 00000090H
  00126	6a 05		 push	 5
  00128	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0012b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00131	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00136	8b c8		 mov	 ecx, eax
  00138	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 98   :     m_SAA7118->SetRegister(0x06,0xeb);

  0013d	68 eb 00 00 00	 push	 235			; 000000ebH
  00142	6a 06		 push	 6
  00144	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00147	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0014d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00152	8b c8		 mov	 ecx, eax
  00154	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 99   :     m_SAA7118->SetRegister(0x07,0xe0);

  00159	68 e0 00 00 00	 push	 224			; 000000e0H
  0015e	6a 07		 push	 7
  00160	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00163	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00169	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0016e	8b c8		 mov	 ecx, eax
  00170	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 100  :     m_SAA7118->SetRegister(0x08,0xe8);  //enforce even/odd toggle even if non-interlaced detected //0x98);

  00175	68 e8 00 00 00	 push	 232			; 000000e8H
  0017a	6a 08		 push	 8
  0017c	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0017f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00185	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0018a	8b c8		 mov	 ecx, eax
  0018c	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 101  : 
; 102  :     /* Decoder Brightness(Lumin), Contrast(Lumin), Saturation(Chromin) & Hue(Chromin) */
; 103  :     m_SAA7118->SetRegister(0x0a,dBrightness);

  00191	0f b6 55 e6	 movzx	 edx, BYTE PTR _dBrightness$[ebp]
  00195	52		 push	 edx
  00196	6a 0a		 push	 10			; 0000000aH
  00198	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0019b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001a1	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001a6	8b c8		 mov	 ecx, eax
  001a8	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 104  :     m_SAA7118->SetRegister(0x0b,dContrast);

  001ad	0f b6 45 ef	 movzx	 eax, BYTE PTR _dContrast$[ebp]
  001b1	50		 push	 eax
  001b2	6a 0b		 push	 11			; 0000000bH
  001b4	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  001b7	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001bd	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001c2	8b c8		 mov	 ecx, eax
  001c4	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 105  :     m_SAA7118->SetRegister(0x0c,dSat);

  001c9	0f b6 4d e2	 movzx	 ecx, BYTE PTR _dSat$[ebp]
  001cd	51		 push	 ecx
  001ce	6a 0c		 push	 12			; 0000000cH
  001d0	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  001d3	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001d9	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001de	8b c8		 mov	 ecx, eax
  001e0	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 106  :     m_SAA7118->SetRegister(0x0d,dHue);

  001e5	0f b6 55 e7	 movzx	 edx, BYTE PTR _dHue$[ebp]
  001e9	52		 push	 edx
  001ea	6a 0d		 push	 13			; 0000000dH
  001ec	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  001ef	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  001f5	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  001fa	8b c8		 mov	 ecx, eax
  001fc	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 107  : 
; 108  :     m_SAA7118->SetRegister(0x11,0x00);

  00201	6a 00		 push	 0
  00203	6a 11		 push	 17			; 00000011H
  00205	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00208	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0020e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00213	8b c8		 mov	 ecx, eax
  00215	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 109  :     m_SAA7118->SetRegister(0x12,0x00);

  0021a	6a 00		 push	 0
  0021c	6a 12		 push	 18			; 00000012H
  0021e	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00221	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00227	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0022c	8b c8		 mov	 ecx, eax
  0022e	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 110  :     m_SAA7118->SetRegister(0x13,0x00);

  00233	6a 00		 push	 0
  00235	6a 13		 push	 19			; 00000013H
  00237	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0023a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00240	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00245	8b c8		 mov	 ecx, eax
  00247	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 111  :     m_SAA7118->SetRegister(0x14,0x00);

  0024c	6a 00		 push	 0
  0024e	6a 14		 push	 20			; 00000014H
  00250	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00253	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00259	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0025e	8b c8		 mov	 ecx, eax
  00260	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 112  :     m_SAA7118->SetRegister(0x15,0x11);

  00265	6a 11		 push	 17			; 00000011H
  00267	6a 15		 push	 21			; 00000015H
  00269	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0026c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00272	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00277	8b c8		 mov	 ecx, eax
  00279	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 113  :     m_SAA7118->SetRegister(0x16,0xfe);

  0027e	68 fe 00 00 00	 push	 254			; 000000feH
  00283	6a 16		 push	 22			; 00000016H
  00285	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00288	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0028e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00293	8b c8		 mov	 ecx, eax
  00295	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 114  :     m_SAA7118->SetRegister(0x17,0xc0);

  0029a	68 c0 00 00 00	 push	 192			; 000000c0H
  0029f	6a 17		 push	 23			; 00000017H
  002a1	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  002a4	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002aa	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002af	8b c8		 mov	 ecx, eax
  002b1	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 115  :     m_SAA7118->SetRegister(0x18,0x40);

  002b6	6a 40		 push	 64			; 00000040H
  002b8	6a 18		 push	 24			; 00000018H
  002ba	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  002bd	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002c3	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002c8	8b c8		 mov	 ecx, eax
  002ca	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 116  :     m_SAA7118->SetRegister(0x19,0x80);

  002cf	68 80 00 00 00	 push	 128			; 00000080H
  002d4	6a 19		 push	 25			; 00000019H
  002d6	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  002d9	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002df	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002e4	8b c8		 mov	 ecx, eax
  002e6	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 117  :     m_SAA7118->SetRegister(0x23,0x00);

  002eb	6a 00		 push	 0
  002ed	6a 23		 push	 35			; 00000023H
  002ef	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  002f2	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  002f8	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  002fd	8b c8		 mov	 ecx, eax
  002ff	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 118  :     m_SAA7118->SetRegister(0x24,0x90);

  00304	68 90 00 00 00	 push	 144			; 00000090H
  00309	6a 24		 push	 36			; 00000024H
  0030b	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0030e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00314	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00319	8b c8		 mov	 ecx, eax
  0031b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 119  :     m_SAA7118->SetRegister(0x25,0x90);

  00320	68 90 00 00 00	 push	 144			; 00000090H
  00325	6a 25		 push	 37			; 00000025H
  00327	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0032a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00330	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00335	8b c8		 mov	 ecx, eax
  00337	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 120  :     m_SAA7118->SetRegister(0x29,0x00);

  0033c	6a 00		 push	 0
  0033e	6a 29		 push	 41			; 00000029H
  00340	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00343	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00349	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0034e	8b c8		 mov	 ecx, eax
  00350	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 121  : 
; 122  :     /* Component Brightness(Lumin), Contrast(Lunin) & Satutration(Chromin) */
; 123  :     m_SAA7118->SetRegister(0x2a,cBrightness);

  00355	0f b6 45 e1	 movzx	 eax, BYTE PTR _cBrightness$[ebp]
  00359	50		 push	 eax
  0035a	6a 2a		 push	 42			; 0000002aH
  0035c	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0035f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00365	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0036a	8b c8		 mov	 ecx, eax
  0036c	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 124  :     m_SAA7118->SetRegister(0x2b,cContrast);

  00371	0f b6 4d f0	 movzx	 ecx, BYTE PTR _cContrast$[ebp]
  00375	51		 push	 ecx
  00376	6a 2b		 push	 43			; 0000002bH
  00378	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0037b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00381	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00386	8b c8		 mov	 ecx, eax
  00388	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 125  :     m_SAA7118->SetRegister(0x2c,cSat);

  0038d	0f b6 55 f2	 movzx	 edx, BYTE PTR _cSat$[ebp]
  00391	52		 push	 edx
  00392	6a 2c		 push	 44			; 0000002cH
  00394	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00397	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0039d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  003a2	8b c8		 mov	 ecx, eax
  003a4	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 126  : 
; 127  :     m_SAA7118->SetRegister(0x2d,0x00);

  003a9	6a 00		 push	 0
  003ab	6a 2d		 push	 45			; 0000002dH
  003ad	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  003b0	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  003b6	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  003bb	8b c8		 mov	 ecx, eax
  003bd	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 128  :     m_SAA7118->SetRegister(0x2e,0x00);

  003c2	6a 00		 push	 0
  003c4	6a 2e		 push	 46			; 0000002eH
  003c6	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  003c9	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  003cf	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  003d4	8b c8		 mov	 ecx, eax
  003d6	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 129  :     m_SAA7118->SetRegister(0x2f,0x00);

  003db	6a 00		 push	 0
  003dd	6a 2f		 push	 47			; 0000002fH
  003df	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  003e2	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  003e8	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  003ed	8b c8		 mov	 ecx, eax
  003ef	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 130  : 
; 131  :     //0x30-0x3A = default
; 132  :     m_SAA7118->SetRegister(0x40,0x22);

  003f4	6a 22		 push	 34			; 00000022H
  003f6	6a 40		 push	 64			; 00000040H
  003f8	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  003fb	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00401	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00406	8b c8		 mov	 ecx, eax
  00408	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 133  :     for (i=0x41; i<=0x57; i++)

  0040d	c7 45 e8 41 00
	00 00		 mov	 DWORD PTR _i$[ebp], 65	; 00000041H
  00414	eb 09		 jmp	 SHORT $LN3@InitPMSDel
$LN2@InitPMSDel:
  00416	8b 45 e8	 mov	 eax, DWORD PTR _i$[ebp]
  00419	83 c0 01	 add	 eax, 1
  0041c	89 45 e8	 mov	 DWORD PTR _i$[ebp], eax
$LN3@InitPMSDel:
  0041f	83 7d e8 57	 cmp	 DWORD PTR _i$[ebp], 87	; 00000057H
  00423	7f 21		 jg	 SHORT $LN1@InitPMSDel

; 134  :     {
; 135  :         m_SAA7118->SetRegister(i,0xff);

  00425	68 ff 00 00 00	 push	 255			; 000000ffH
  0042a	0f b6 4d e8	 movzx	 ecx, BYTE PTR _i$[ebp]
  0042e	51		 push	 ecx
  0042f	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00432	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00438	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0043d	8b c8		 mov	 ecx, eax
  0043f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 136  :     }

  00444	eb d0		 jmp	 SHORT $LN2@InitPMSDel
$LN1@InitPMSDel:

; 137  : 
; 138  :     m_SAA7118->SetRegister(0x58,0x00);

  00446	6a 00		 push	 0
  00448	6a 58		 push	 88			; 00000058H
  0044a	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0044d	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00453	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00458	8b c8		 mov	 ecx, eax
  0045a	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 139  :     m_SAA7118->SetRegister(0x59,0x00);

  0045f	6a 00		 push	 0
  00461	6a 59		 push	 89			; 00000059H
  00463	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00466	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0046c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00471	8b c8		 mov	 ecx, eax
  00473	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 140  :     m_SAA7118->SetRegister(0x5a,0x07);

  00478	6a 07		 push	 7
  0047a	6a 5a		 push	 90			; 0000005aH
  0047c	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0047f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00485	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0048a	8b c8		 mov	 ecx, eax
  0048c	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 141  :     m_SAA7118->SetRegister(0x5b,0x00);

  00491	6a 00		 push	 0
  00493	6a 5b		 push	 91			; 0000005bH
  00495	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00498	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0049e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004a3	8b c8		 mov	 ecx, eax
  004a5	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 142  :     m_SAA7118->SetRegister(0x5c,0x00);

  004aa	6a 00		 push	 0
  004ac	6a 5c		 push	 92			; 0000005cH
  004ae	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  004b1	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  004b7	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004bc	8b c8		 mov	 ecx, eax
  004be	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 143  :     m_SAA7118->SetRegister(0x5d,0x00);

  004c3	6a 00		 push	 0
  004c5	6a 5d		 push	 93			; 0000005dH
  004c7	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  004ca	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  004d0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004d5	8b c8		 mov	 ecx, eax
  004d7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 144  :     m_SAA7118->SetRegister(0x5e,0x00);

  004dc	6a 00		 push	 0
  004de	6a 5e		 push	 94			; 0000005eH
  004e0	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  004e3	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  004e9	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  004ee	8b c8		 mov	 ecx, eax
  004f0	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 145  :     m_SAA7118->SetRegister(0x5f,0x00);

  004f5	6a 00		 push	 0
  004f7	6a 5f		 push	 95			; 0000005fH
  004f9	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  004fc	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00502	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00507	8b c8		 mov	 ecx, eax
  00509	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 146  : 
; 147  :     // 2
; 148  :     // stop the scaler
; 149  :     m_SAA7118->SetRegister(0x88,0x00);

  0050e	6a 00		 push	 0
  00510	68 88 00 00 00	 push	 136			; 00000088H
  00515	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00518	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0051e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00523	8b c8		 mov	 ecx, eax
  00525	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 150  :     m_SAA7118->SetRegister(0x83,0x00); // Xport Output Disable (i.e. Enable Input)

  0052a	6a 00		 push	 0
  0052c	68 83 00 00 00	 push	 131			; 00000083H
  00531	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00534	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0053a	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0053f	8b c8		 mov	 ecx, eax
  00541	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 151  : 
; 152  :     m_SAA7118->SetRegister(0x84,0x00);

  00546	6a 00		 push	 0
  00548	68 84 00 00 00	 push	 132			; 00000084H
  0054d	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00550	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00556	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0055b	8b c8		 mov	 ecx, eax
  0055d	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 153  :     m_SAA7118->SetRegister(0x85,0x00);

  00562	6a 00		 push	 0
  00564	68 85 00 00 00	 push	 133			; 00000085H
  00569	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0056c	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00572	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00577	8b c8		 mov	 ecx, eax
  00579	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 154  :     m_SAA7118->SetRegister(0x86,0x40);

  0057e	6a 40		 push	 64			; 00000040H
  00580	68 86 00 00 00	 push	 134			; 00000086H
  00585	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00588	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0058e	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00593	8b c8		 mov	 ecx, eax
  00595	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 155  :     m_SAA7118->SetRegister(0x87,0x01);

  0059a	6a 01		 push	 1
  0059c	68 87 00 00 00	 push	 135			; 00000087H
  005a1	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  005a4	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  005aa	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  005af	8b c8		 mov	 ecx, eax
  005b1	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 156  : 
; 157  :     m_SAA7118->SetRegister(0x90,0x00);

  005b6	6a 00		 push	 0
  005b8	68 90 00 00 00	 push	 144			; 00000090H
  005bd	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  005c0	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  005c6	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  005cb	8b c8		 mov	 ecx, eax
  005cd	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 158  : 
; 159  :     m_SAA7118->SetRegister(0x93,0x80);

  005d2	68 80 00 00 00	 push	 128			; 00000080H
  005d7	68 93 00 00 00	 push	 147			; 00000093H
  005dc	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  005df	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  005e5	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  005ea	8b c8		 mov	 ecx, eax
  005ec	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 160  : 
; 161  :     /* Acquisition Window Settings */
; 162  :     m_SAA7118->SetRegister(0x94,0x00); // horizontal input offset, min >= 2

  005f1	6a 00		 push	 0
  005f3	68 94 00 00 00	 push	 148			; 00000094H
  005f8	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  005fb	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00601	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00606	8b c8		 mov	 ecx, eax
  00608	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 163  :     m_SAA7118->SetRegister(0x95,0x00);

  0060d	6a 00		 push	 0
  0060f	68 95 00 00 00	 push	 149			; 00000095H
  00614	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00617	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0061d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00622	8b c8		 mov	 ecx, eax
  00624	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 164  :     m_SAA7118->SetRegister(0x96,0xd0); // horizontal input window length = 720

  00629	68 d0 00 00 00	 push	 208			; 000000d0H
  0062e	68 96 00 00 00	 push	 150			; 00000096H
  00633	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00636	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0063c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00641	8b c8		 mov	 ecx, eax
  00643	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 165  :     m_SAA7118->SetRegister(0x97,0x02);

  00648	6a 02		 push	 2
  0064a	68 97 00 00 00	 push	 151			; 00000097H
  0064f	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00652	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00658	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0065d	8b c8		 mov	 ecx, eax
  0065f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 166  : 
; 167  :     m_SAA7118->SetRegister(0x9c,0xd0); // horizontal output window length = 720

  00664	68 d0 00 00 00	 push	 208			; 000000d0H
  00669	68 9c 00 00 00	 push	 156			; 0000009cH
  0066e	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00671	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00677	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0067c	8b c8		 mov	 ecx, eax
  0067e	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 168  :     m_SAA7118->SetRegister(0x9d,0x02);

  00683	6a 02		 push	 2
  00685	68 9d 00 00 00	 push	 157			; 0000009dH
  0068a	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0068d	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00693	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00698	8b c8		 mov	 ecx, eax
  0069a	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 169  :     //m_SAA7118->SetRegister(0x9e,0xe0);//V=480 //ha e0
; 170  :     //m_SAA7118->SetRegister(0x9f,0x1); //ha 1
; 171  : 
; 172  : 
; 173  :     /* Scaler Settings */
; 174  :     m_SAA7118->SetRegister(0xa0,0x1); // hori prescaling

  0069f	6a 01		 push	 1
  006a1	68 a0 00 00 00	 push	 160			; 000000a0H
  006a6	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  006a9	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  006af	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  006b4	8b c8		 mov	 ecx, eax
  006b6	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 175  :     m_SAA7118->SetRegister(0xa1,0x00);

  006bb	6a 00		 push	 0
  006bd	68 a1 00 00 00	 push	 161			; 000000a1H
  006c2	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  006c5	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  006cb	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  006d0	8b c8		 mov	 ecx, eax
  006d2	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 176  :     m_SAA7118->SetRegister(0xa2,0x00);

  006d7	6a 00		 push	 0
  006d9	68 a2 00 00 00	 push	 162			; 000000a2H
  006de	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  006e1	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  006e7	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  006ec	8b c8		 mov	 ecx, eax
  006ee	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 177  :     m_SAA7118->SetRegister(0xa4,ABrightness);//0x80);//Register A Brightness(Lumin)

  006f3	0f b6 55 e5	 movzx	 edx, BYTE PTR _ABrightness$[ebp]
  006f7	52		 push	 edx
  006f8	68 a4 00 00 00	 push	 164			; 000000a4H
  006fd	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00700	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00706	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0070b	8b c8		 mov	 ecx, eax
  0070d	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 178  :     m_SAA7118->SetRegister(0xa5,AContrast);//0x40);//Register A Contrast(Lumin)

  00712	0f b6 45 e3	 movzx	 eax, BYTE PTR _AContrast$[ebp]
  00716	50		 push	 eax
  00717	68 a5 00 00 00	 push	 165			; 000000a5H
  0071c	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0071f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00725	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0072a	8b c8		 mov	 ecx, eax
  0072c	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 179  :     m_SAA7118->SetRegister(0xa6,ASat);//0x40);//Register A Saturation(Chromin)

  00731	0f b6 4d e0	 movzx	 ecx, BYTE PTR _ASat$[ebp]
  00735	51		 push	 ecx
  00736	68 a6 00 00 00	 push	 166			; 000000a6H
  0073b	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0073e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00744	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00749	8b c8		 mov	 ecx, eax
  0074b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 180  :     m_SAA7118->SetRegister(0xa8,0x00);

  00750	6a 00		 push	 0
  00752	68 a8 00 00 00	 push	 168			; 000000a8H
  00757	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0075a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00760	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00765	8b c8		 mov	 ecx, eax
  00767	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 181  :     m_SAA7118->SetRegister(0xa9,0x04);

  0076c	6a 04		 push	 4
  0076e	68 a9 00 00 00	 push	 169			; 000000a9H
  00773	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00776	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0077c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00781	8b c8		 mov	 ecx, eax
  00783	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 182  :     m_SAA7118->SetRegister(0xaa,0x20);

  00788	6a 20		 push	 32			; 00000020H
  0078a	68 aa 00 00 00	 push	 170			; 000000aaH
  0078f	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00792	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00798	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0079d	8b c8		 mov	 ecx, eax
  0079f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 183  :     m_SAA7118->SetRegister(0xac,0x00);

  007a4	6a 00		 push	 0
  007a6	68 ac 00 00 00	 push	 172			; 000000acH
  007ab	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  007ae	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  007b4	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  007b9	8b c8		 mov	 ecx, eax
  007bb	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 184  :     m_SAA7118->SetRegister(0xad,0x02);

  007c0	6a 02		 push	 2
  007c2	68 ad 00 00 00	 push	 173			; 000000adH
  007c7	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  007ca	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  007d0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  007d5	8b c8		 mov	 ecx, eax
  007d7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 185  :     m_SAA7118->SetRegister(0xae,0x00);

  007dc	6a 00		 push	 0
  007de	68 ae 00 00 00	 push	 174			; 000000aeH
  007e3	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  007e6	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  007ec	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  007f1	8b c8		 mov	 ecx, eax
  007f3	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 186  :     m_SAA7118->SetRegister(0xb0,0x00);

  007f8	6a 00		 push	 0
  007fa	68 b0 00 00 00	 push	 176			; 000000b0H
  007ff	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00802	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00808	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0080d	8b c8		 mov	 ecx, eax
  0080f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 187  :     m_SAA7118->SetRegister(0xb1,0x04);

  00814	6a 04		 push	 4
  00816	68 b1 00 00 00	 push	 177			; 000000b1H
  0081b	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0081e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00824	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00829	8b c8		 mov	 ecx, eax
  0082b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 188  :     m_SAA7118->SetRegister(0xb2,0x00);

  00830	6a 00		 push	 0
  00832	68 b2 00 00 00	 push	 178			; 000000b2H
  00837	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0083a	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00840	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00845	8b c8		 mov	 ecx, eax
  00847	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 189  :     m_SAA7118->SetRegister(0xb3,0x04);

  0084c	6a 04		 push	 4
  0084e	68 b3 00 00 00	 push	 179			; 000000b3H
  00853	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00856	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0085c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00861	8b c8		 mov	 ecx, eax
  00863	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 190  :     m_SAA7118->SetRegister(0xb4,0x00);

  00868	6a 00		 push	 0
  0086a	68 b4 00 00 00	 push	 180			; 000000b4H
  0086f	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  00872	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00878	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0087d	8b c8		 mov	 ecx, eax
  0087f	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 191  : 
; 192  :     //m_SAA7118->SetRegister(0xaa,horizontalLumaPhaseOffset);
; 193  :     //m_SAA7118->SetRegister(0xae,horizontalChromaPhaseOffset);
; 194  :     m_SAA7118->SetRegister(0xb8,0x00);

  00884	6a 00		 push	 0
  00886	68 b8 00 00 00	 push	 184			; 000000b8H
  0088b	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  0088e	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00894	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00899	8b c8		 mov	 ecx, eax
  0089b	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 195  :     m_SAA7118->SetRegister(0xbc,0x00);

  008a0	6a 00		 push	 0
  008a2	68 bc 00 00 00	 push	 188			; 000000bcH
  008a7	8b 4d d0	 mov	 ecx, DWORD PTR _this$[ebp]
  008aa	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  008b0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  008b5	8b c8		 mov	 ecx, eax
  008b7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 196  : 
; 197  :     //m_SAA7118->SetRegister(0x0E, 137); Problem! can't set D7 here, but only in PMSDeluxeInputSelect()
; 198  : }

  008bc	8b 4d f4	 mov	 ecx, DWORD PTR __$EHRec$[ebp]
  008bf	64 89 0d 00 00
	00 00		 mov	 DWORD PTR fs:0, ecx
  008c6	59		 pop	 ecx
  008c7	8b e5		 mov	 esp, ebp
  008c9	5d		 pop	 ebp
  008ca	c3		 ret	 0
_TEXT	ENDS
;	COMDAT text$x
text$x	SEGMENT
__unwindfunclet$?InitPMSDeluxe@CBT848Card@@AAEXXZ$0:
  00000	8b 45 d4	 mov	 eax, DWORD PTR $T324255[ebp]
  00003	50		 push	 eax
  00004	e8 00 00 00 00	 call	 ??3@YAXPAX@Z		; operator delete
  00009	59		 pop	 ecx
  0000a	c3		 ret	 0
__ehhandler$?InitPMSDeluxe@CBT848Card@@AAEXXZ:
  0000b	8b 54 24 08	 mov	 edx, DWORD PTR [esp+8]
  0000f	8d 42 0c	 lea	 eax, DWORD PTR [edx+12]
  00012	8b 4a d4	 mov	 ecx, DWORD PTR [edx-44]
  00015	33 c8		 xor	 ecx, eax
  00017	e8 00 00 00 00	 call	 @__security_check_cookie@4
  0001c	b8 00 00 00 00	 mov	 eax, OFFSET __ehfuncinfo$?InitPMSDeluxe@CBT848Card@@AAEXXZ
  00021	e9 00 00 00 00	 jmp	 ___CxxFrameHandler3
text$x	ENDS
?InitPMSDeluxe@CBT848Card@@AAEXXZ ENDP			; CBT848Card::InitPMSDeluxe
PUBLIC	?PMSDeluxeInputSelect@CBT848Card@@AAEXH@Z	; CBT848Card::PMSDeluxeInputSelect
; Function compile flags: /Odtp
;	COMDAT ?PMSDeluxeInputSelect@CBT848Card@@AAEXH@Z
_TEXT	SEGMENT
tv67 = -8						; size = 4
_this$ = -4						; size = 4
_nInput$ = 8						; size = 4
?PMSDeluxeInputSelect@CBT848Card@@AAEXH@Z PROC		; CBT848Card::PMSDeluxeInputSelect, COMDAT
; _this$ = ecx

; 201  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 08	 sub	 esp, 8
  00006	89 4d fc	 mov	 DWORD PTR _this$[ebp], ecx

; 202  :     //hcho, enforce to use those nInput with type INPUTTYPE_CCIR
; 203  :     StandardBT848InputSelect(nInput);

  00009	8b 45 08	 mov	 eax, DWORD PTR _nInput$[ebp]
  0000c	50		 push	 eax
  0000d	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00010	e8 00 00 00 00	 call	 ?StandardBT848InputSelect@CBT848Card@@AAEXH@Z ; CBT848Card::StandardBT848InputSelect

; 204  : 
; 205  :     m_CurrentInput = nInput;

  00015	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00018	8b 55 08	 mov	 edx, DWORD PTR _nInput$[ebp]
  0001b	89 91 c8 00 00
	00		 mov	 DWORD PTR [ecx+200], edx

; 206  : 
; 207  :     switch(nInput)

  00021	8b 45 08	 mov	 eax, DWORD PTR _nInput$[ebp]
  00024	89 45 f8	 mov	 DWORD PTR tv67[ebp], eax
  00027	83 7d f8 0b	 cmp	 DWORD PTR tv67[ebp], 11	; 0000000bH
  0002b	0f 87 64 01 00
	00		 ja	 $LN15@PMSDeluxeI
  00031	8b 4d f8	 mov	 ecx, DWORD PTR tv67[ebp]
  00034	ff 24 8d 00 00
	00 00		 jmp	 DWORD PTR $LN17@PMSDeluxeI[ecx*4]
$LN12@PMSDeluxeI:

; 208  :     {
; 209  :     case PMS_COMPONENT:
; 210  :         m_SAA7118->SetRegister(0x02, 0xe0);

  0003b	68 e0 00 00 00	 push	 224			; 000000e0H
  00040	6a 02		 push	 2
  00042	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00045	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0004b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00050	8b c8		 mov	 ecx, eax
  00052	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 211  :         break;

  00057	e9 39 01 00 00	 jmp	 $LN15@PMSDeluxeI
$LN11@PMSDeluxeI:

; 212  :     case PMS_SVIDEO:
; 213  :         m_SAA7118->SetRegister(0x02, 0xcc);

  0005c	68 cc 00 00 00	 push	 204			; 000000ccH
  00061	6a 02		 push	 2
  00063	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00066	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0006c	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00071	8b c8		 mov	 ecx, eax
  00073	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 214  :         break;

  00078	e9 18 01 00 00	 jmp	 $LN15@PMSDeluxeI
$LN10@PMSDeluxeI:

; 215  :     case PMS_SVIDEO2:
; 216  :         m_SAA7118->SetRegister(0x02, 0xcd);

  0007d	68 cd 00 00 00	 push	 205			; 000000cdH
  00082	6a 02		 push	 2
  00084	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00087	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0008d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00092	8b c8		 mov	 ecx, eax
  00094	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 217  :         break;

  00099	e9 f7 00 00 00	 jmp	 $LN15@PMSDeluxeI
$LN9@PMSDeluxeI:

; 218  :     case PMS_COMPOSITE1:
; 219  :         m_SAA7118->SetRegister(0x02, 0xd2);

  0009e	68 d2 00 00 00	 push	 210			; 000000d2H
  000a3	6a 02		 push	 2
  000a5	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  000a8	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000ae	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000b3	8b c8		 mov	 ecx, eax
  000b5	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 220  :         break;

  000ba	e9 d6 00 00 00	 jmp	 $LN15@PMSDeluxeI
$LN8@PMSDeluxeI:

; 221  :     case PMS_COMPOSITE2:
; 222  :         m_SAA7118->SetRegister(0x02, 0xc2);

  000bf	68 c2 00 00 00	 push	 194			; 000000c2H
  000c4	6a 02		 push	 2
  000c6	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  000c9	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000cf	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000d4	8b c8		 mov	 ecx, eax
  000d6	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 223  :         break;

  000db	e9 b5 00 00 00	 jmp	 $LN15@PMSDeluxeI
$LN7@PMSDeluxeI:

; 224  :     case PMS_COMPOSITE3:
; 225  :         m_SAA7118->SetRegister(0x02, 0xd0);

  000e0	68 d0 00 00 00	 push	 208			; 000000d0H
  000e5	6a 02		 push	 2
  000e7	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  000ea	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000f0	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000f5	8b c8		 mov	 ecx, eax
  000f7	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 226  :         break;

  000fc	e9 94 00 00 00	 jmp	 $LN15@PMSDeluxeI
$LN6@PMSDeluxeI:

; 227  :     case PMS_COMPOSITE_SV_1:
; 228  :         m_SAA7118->SetRegister(0x02, 0xce);

  00101	68 ce 00 00 00	 push	 206			; 000000ceH
  00106	6a 02		 push	 2
  00108	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  0010b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00111	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00116	8b c8		 mov	 ecx, eax
  00118	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 229  :         break;

  0011d	eb 76		 jmp	 SHORT $LN15@PMSDeluxeI
$LN5@PMSDeluxeI:

; 230  :     case PMS_COMPOSITE_SV_2:
; 231  :         m_SAA7118->SetRegister(0x02, 0xc4);

  0011f	68 c4 00 00 00	 push	 196			; 000000c4H
  00124	6a 02		 push	 2
  00126	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00129	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0012f	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00134	8b c8		 mov	 ecx, eax
  00136	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 232  :         break;

  0013b	eb 58		 jmp	 SHORT $LN15@PMSDeluxeI
$LN4@PMSDeluxeI:

; 233  :     case PMS_COMPOSITE_SV_3:
; 234  :         m_SAA7118->SetRegister(0x02, 0xcf);

  0013d	68 cf 00 00 00	 push	 207			; 000000cfH
  00142	6a 02		 push	 2
  00144	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00147	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0014d	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00152	8b c8		 mov	 ecx, eax
  00154	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 235  :         break;

  00159	eb 3a		 jmp	 SHORT $LN15@PMSDeluxeI
$LN3@PMSDeluxeI:

; 236  :     case PMS_COMPOSITE_SV_4:
; 237  :         m_SAA7118->SetRegister(0x02, 0xc5);

  0015b	68 c5 00 00 00	 push	 197			; 000000c5H
  00160	6a 02		 push	 2
  00162	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00165	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0016b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00170	8b c8		 mov	 ecx, eax
  00172	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister

; 238  :         break;

  00177	eb 1c		 jmp	 SHORT $LN15@PMSDeluxeI
$LN2@PMSDeluxeI:

; 239  :     case PMS_RGBS:
; 240  :         m_SAA7118->SetRegister(0x02, 0xf0);

  00179	68 f0 00 00 00	 push	 240			; 000000f0H
  0017e	6a 02		 push	 2
  00180	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00183	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00189	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0018e	8b c8		 mov	 ecx, eax
  00190	e8 00 00 00 00	 call	 ?SetRegister@CSAA7118@@QAEXEE@Z ; CSAA7118::SetRegister
$LN15@PMSDeluxeI:

; 241  :         break;
; 242  :     default:
; 243  :     case PMS_SDI:
; 244  :         break;
; 245  :     }
; 246  : }

  00195	8b e5		 mov	 esp, ebp
  00197	5d		 pop	 ebp
  00198	c2 04 00	 ret	 4
  0019b	90		 npad	 1
$LN17@PMSDeluxeI:
  0019c	00 00 00 00	 DD	 $LN12@PMSDeluxeI
  001a0	00 00 00 00	 DD	 $LN11@PMSDeluxeI
  001a4	00 00 00 00	 DD	 $LN10@PMSDeluxeI
  001a8	00 00 00 00	 DD	 $LN9@PMSDeluxeI
  001ac	00 00 00 00	 DD	 $LN8@PMSDeluxeI
  001b0	00 00 00 00	 DD	 $LN7@PMSDeluxeI
  001b4	00 00 00 00	 DD	 $LN15@PMSDeluxeI
  001b8	00 00 00 00	 DD	 $LN6@PMSDeluxeI
  001bc	00 00 00 00	 DD	 $LN5@PMSDeluxeI
  001c0	00 00 00 00	 DD	 $LN4@PMSDeluxeI
  001c4	00 00 00 00	 DD	 $LN3@PMSDeluxeI
  001c8	00 00 00 00	 DD	 $LN2@PMSDeluxeI
?PMSDeluxeInputSelect@CBT848Card@@AAEXH@Z ENDP		; CBT848Card::PMSDeluxeInputSelect
PUBLIC	?SetPMSDeluxeSaturationV@CBT848Card@@AAEXG@Z	; CBT848Card::SetPMSDeluxeSaturationV
; Function compile flags: /Odtp
;	COMDAT ?SetPMSDeluxeSaturationV@CBT848Card@@AAEXG@Z
_TEXT	SEGMENT
tv65 = -8						; size = 4
_this$ = -4						; size = 4
_Saturation$ = 8					; size = 2
?SetPMSDeluxeSaturationV@CBT848Card@@AAEXG@Z PROC	; CBT848Card::SetPMSDeluxeSaturationV, COMDAT
; _this$ = ecx

; 570  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 08	 sub	 esp, 8
  00006	89 4d fc	 mov	 DWORD PTR _this$[ebp], ecx

; 571  :     switch(m_CurrentInput)

  00009	8b 45 fc	 mov	 eax, DWORD PTR _this$[ebp]
  0000c	8b 88 c8 00 00
	00		 mov	 ecx, DWORD PTR [eax+200]
  00012	89 4d f8	 mov	 DWORD PTR tv65[ebp], ecx
  00015	83 7d f8 0b	 cmp	 DWORD PTR tv65[ebp], 11	; 0000000bH
  00019	77 2f		 ja	 SHORT $LN1@SetPMSDelu@3
  0001b	8b 55 f8	 mov	 edx, DWORD PTR tv65[ebp]
  0001e	0f b6 82 00 00
	00 00		 movzx	 eax, BYTE PTR $LN8@SetPMSDelu@3[edx]
  00025	ff 24 85 00 00
	00 00		 jmp	 DWORD PTR $LN9@SetPMSDelu@3[eax*4]
$LN3@SetPMSDelu@3:

; 572  :     {
; 573  :     case PMS_COMPONENT:
; 574  :     case PMS_RGBS:
; 575  :         SetAnalogSaturationV(0x80);

  0002c	68 80 00 00 00	 push	 128			; 00000080H
  00031	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00034	e8 00 00 00 00	 call	 ?SetAnalogSaturationV@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationV

; 576  :         break;

  00039	eb 1c		 jmp	 SHORT $LN6@SetPMSDelu@3
$LN2@SetPMSDelu@3:

; 577  :     case PMS_SVIDEO:
; 578  :     case PMS_SVIDEO2:
; 579  :     case PMS_COMPOSITE1:
; 580  :     case PMS_COMPOSITE2:
; 581  :     case PMS_COMPOSITE3:
; 582  :     case PMS_COMPOSITE_SV_1: // Composite over S-Video
; 583  :     case PMS_COMPOSITE_SV_2: // Composite over S-Video
; 584  :     case PMS_COMPOSITE_SV_3: // Composite over S-Video
; 585  :     case PMS_COMPOSITE_SV_4: // Composite over S-Video
; 586  :         SetAnalogSaturationV(0x80);

  0003b	68 80 00 00 00	 push	 128			; 00000080H
  00040	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00043	e8 00 00 00 00	 call	 ?SetAnalogSaturationV@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationV

; 587  :         break;

  00048	eb 0d		 jmp	 SHORT $LN6@SetPMSDelu@3
$LN1@SetPMSDelu@3:

; 588  :     case PMS_XPORT:
; 589  :     case PMS_SDI:
; 590  :     default:
; 591  :         SetAnalogSaturationV(Saturation);

  0004a	0f b7 4d 08	 movzx	 ecx, WORD PTR _Saturation$[ebp]
  0004e	51		 push	 ecx
  0004f	8b 4d fc	 mov	 ecx, DWORD PTR _this$[ebp]
  00052	e8 00 00 00 00	 call	 ?SetAnalogSaturationV@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationV
$LN6@SetPMSDelu@3:

; 592  :         break;
; 593  :     }
; 594  : }

  00057	8b e5		 mov	 esp, ebp
  00059	5d		 pop	 ebp
  0005a	c2 04 00	 ret	 4
  0005d	8d 49 00	 npad	 3
$LN9@SetPMSDelu@3:
  00060	00 00 00 00	 DD	 $LN3@SetPMSDelu@3
  00064	00 00 00 00	 DD	 $LN2@SetPMSDelu@3
  00068	00 00 00 00	 DD	 $LN1@SetPMSDelu@3
$LN8@SetPMSDelu@3:
  0006c	00		 DB	 0
  0006d	01		 DB	 1
  0006e	01		 DB	 1
  0006f	01		 DB	 1
  00070	01		 DB	 1
  00071	01		 DB	 1
  00072	02		 DB	 2
  00073	01		 DB	 1
  00074	01		 DB	 1
  00075	01		 DB	 1
  00076	01		 DB	 1
  00077	00		 DB	 0
?SetPMSDeluxeSaturationV@CBT848Card@@AAEXG@Z ENDP	; CBT848Card::SetPMSDeluxeSaturationV
_TEXT	ENDS
PUBLIC	?SetPMSDeluxeSaturationU@CBT848Card@@AAEXG@Z	; CBT848Card::SetPMSDeluxeSaturationU
; Function compile flags: /Odtp
;	COMDAT ?SetPMSDeluxeSaturationU@CBT848Card@@AAEXG@Z
_TEXT	SEGMENT
tv67 = -12						; size = 4
_this$ = -8						; size = 4
_SaturationLimited$ = -1				; size = 1
_Saturation$ = 8					; size = 2
?SetPMSDeluxeSaturationU@CBT848Card@@AAEXG@Z PROC	; CBT848Card::SetPMSDeluxeSaturationU, COMDAT
; _this$ = ecx

; 531  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 0c	 sub	 esp, 12			; 0000000cH
  00006	89 4d f8	 mov	 DWORD PTR _this$[ebp], ecx

; 532  :     BYTE SaturationLimited;
; 533  :     if(Saturation > 255)

  00009	0f b7 45 08	 movzx	 eax, WORD PTR _Saturation$[ebp]
  0000d	3d ff 00 00 00	 cmp	 eax, 255		; 000000ffH
  00012	7e 06		 jle	 SHORT $LN7@SetPMSDelu@4

; 534  :     {
; 535  :         SaturationLimited = 255;

  00014	c6 45 ff ff	 mov	 BYTE PTR _SaturationLimited$[ebp], 255 ; 000000ffH

; 536  :     }
; 537  :     else

  00018	eb 06		 jmp	 SHORT $LN6@SetPMSDelu@4
$LN7@SetPMSDelu@4:

; 538  :     {
; 539  :         SaturationLimited = (BYTE)Saturation;

  0001a	8a 4d 08	 mov	 cl, BYTE PTR _Saturation$[ebp]
  0001d	88 4d ff	 mov	 BYTE PTR _SaturationLimited$[ebp], cl
$LN6@SetPMSDelu@4:

; 540  :     }
; 541  : 
; 542  :     switch(m_CurrentInput)

  00020	8b 55 f8	 mov	 edx, DWORD PTR _this$[ebp]
  00023	8b 82 c8 00 00
	00		 mov	 eax, DWORD PTR [edx+200]
  00029	89 45 f4	 mov	 DWORD PTR tv67[ebp], eax
  0002c	83 7d f4 0b	 cmp	 DWORD PTR tv67[ebp], 11	; 0000000bH
  00030	77 63		 ja	 SHORT $LN1@SetPMSDelu@4
  00032	8b 4d f4	 mov	 ecx, DWORD PTR tv67[ebp]
  00035	0f b6 91 00 00
	00 00		 movzx	 edx, BYTE PTR $LN10@SetPMSDelu@4[ecx]
  0003c	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN11@SetPMSDelu@4[edx*4]
$LN3@SetPMSDelu@4:

; 543  :     {
; 544  :     case PMS_COMPONENT:
; 545  :     case PMS_RGBS:
; 546  :         m_SAA7118->SetComponentSaturation(SaturationLimited);

  00043	0f b6 45 ff	 movzx	 eax, BYTE PTR _SaturationLimited$[ebp]
  00047	50		 push	 eax
  00048	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0004b	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00051	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00056	8b c8		 mov	 ecx, eax
  00058	e8 00 00 00 00	 call	 ?SetComponentSaturation@CSAA7118@@QAEXE@Z ; CSAA7118::SetComponentSaturation

; 547  :         SetAnalogSaturationU(0x80);

  0005d	68 80 00 00 00	 push	 128			; 00000080H
  00062	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00065	e8 00 00 00 00	 call	 ?SetAnalogSaturationU@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationU

; 548  :         break;

  0006a	eb 36		 jmp	 SHORT $LN8@SetPMSDelu@4
$LN2@SetPMSDelu@4:

; 549  :     case PMS_SVIDEO:
; 550  :     case PMS_SVIDEO2:
; 551  :     case PMS_COMPOSITE1:
; 552  :     case PMS_COMPOSITE2:
; 553  :     case PMS_COMPOSITE3:
; 554  :     case PMS_COMPOSITE_SV_1: // Composite over S-Video
; 555  :     case PMS_COMPOSITE_SV_2: // Composite over S-Video
; 556  :     case PMS_COMPOSITE_SV_3: // Composite over S-Video
; 557  :     case PMS_COMPOSITE_SV_4: // Composite over S-Video
; 558  :         m_SAA7118->SetSaturation(SaturationLimited);

  0006c	0f b6 4d ff	 movzx	 ecx, BYTE PTR _SaturationLimited$[ebp]
  00070	51		 push	 ecx
  00071	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  00074	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0007a	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0007f	8b c8		 mov	 ecx, eax
  00081	e8 00 00 00 00	 call	 ?SetSaturation@CSAA7118@@QAEXE@Z ; CSAA7118::SetSaturation

; 559  :         SetAnalogSaturationU(0x80);

  00086	68 80 00 00 00	 push	 128			; 00000080H
  0008b	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0008e	e8 00 00 00 00	 call	 ?SetAnalogSaturationU@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationU

; 560  :         break;

  00093	eb 0d		 jmp	 SHORT $LN8@SetPMSDelu@4
$LN1@SetPMSDelu@4:

; 561  :     case PMS_XPORT:
; 562  :     case PMS_SDI:
; 563  :     default:
; 564  :         SetAnalogSaturationU(Saturation);

  00095	0f b7 55 08	 movzx	 edx, WORD PTR _Saturation$[ebp]
  00099	52		 push	 edx
  0009a	8b 4d f8	 mov	 ecx, DWORD PTR _this$[ebp]
  0009d	e8 00 00 00 00	 call	 ?SetAnalogSaturationU@CBT848Card@@AAEXG@Z ; CBT848Card::SetAnalogSaturationU
$LN8@SetPMSDelu@4:

; 565  :         break;
; 566  :     }
; 567  : }

  000a2	8b e5		 mov	 esp, ebp
  000a4	5d		 pop	 ebp
  000a5	c2 04 00	 ret	 4
$LN11@SetPMSDelu@4:
  000a8	00 00 00 00	 DD	 $LN3@SetPMSDelu@4
  000ac	00 00 00 00	 DD	 $LN2@SetPMSDelu@4
  000b0	00 00 00 00	 DD	 $LN1@SetPMSDelu@4
$LN10@SetPMSDelu@4:
  000b4	00		 DB	 0
  000b5	01		 DB	 1
  000b6	01		 DB	 1
  000b7	01		 DB	 1
  000b8	01		 DB	 1
  000b9	01		 DB	 1
  000ba	02		 DB	 2
  000bb	01		 DB	 1
  000bc	01		 DB	 1
  000bd	01		 DB	 1
  000be	01		 DB	 1
  000bf	00		 DB	 0
?SetPMSDeluxeSaturationU@CBT848Card@@AAEXG@Z ENDP	; CBT848Card::SetPMSDeluxeSaturationU
_TEXT	ENDS
PUBLIC	?SetPMSDeluxeContrastBrightness@CBT848Card@@AAEXGG@Z ; CBT848Card::SetPMSDeluxeContrastBrightness
; Function compile flags: /Odtp
;	COMDAT ?SetPMSDeluxeContrastBrightness@CBT848Card@@AAEXGG@Z
_TEXT	SEGMENT
tv67 = -20						; size = 4
_this$ = -16						; size = 4
_NewBrightness$143333 = -12				; size = 4
_NewBrightness$143328 = -8				; size = 4
_ContrastLimited$ = -1					; size = 1
_Contrast$ = 8						; size = 2
_Brightness$ = 12					; size = 2
?SetPMSDeluxeContrastBrightness@CBT848Card@@AAEXGG@Z PROC ; CBT848Card::SetPMSDeluxeContrastBrightness, COMDAT
; _this$ = ecx

; 397  : {

  00000	55		 push	 ebp
  00001	8b ec		 mov	 ebp, esp
  00003	83 ec 14	 sub	 esp, 20			; 00000014H
  00006	89 4d f0	 mov	 DWORD PTR _this$[ebp], ecx

; 398  :     BYTE ContrastLimited;
; 399  :     if(Contrast > 255)

  00009	0f b7 45 08	 movzx	 eax, WORD PTR _Contrast$[ebp]
  0000d	3d ff 00 00 00	 cmp	 eax, 255		; 000000ffH
  00012	7e 06		 jle	 SHORT $LN11@SetPMSDelu@5

; 400  :     {
; 401  :         ContrastLimited = 255;

  00014	c6 45 ff ff	 mov	 BYTE PTR _ContrastLimited$[ebp], 255 ; 000000ffH

; 402  :     }
; 403  :     else

  00018	eb 06		 jmp	 SHORT $LN10@SetPMSDelu@5
$LN11@SetPMSDelu@5:

; 404  :     {
; 405  :         ContrastLimited = (BYTE)Contrast;

  0001a	8a 4d 08	 mov	 cl, BYTE PTR _Contrast$[ebp]
  0001d	88 4d ff	 mov	 BYTE PTR _ContrastLimited$[ebp], cl
$LN10@SetPMSDelu@5:

; 406  :     }
; 407  : 
; 408  :     switch(m_CurrentInput)

  00020	8b 55 f0	 mov	 edx, DWORD PTR _this$[ebp]
  00023	8b 82 c8 00 00
	00		 mov	 eax, DWORD PTR [edx+200]
  00029	89 45 ec	 mov	 DWORD PTR tv67[ebp], eax
  0002c	83 7d ec 0b	 cmp	 DWORD PTR tv67[ebp], 11	; 0000000bH
  00030	0f 87 e7 00 00
	00		 ja	 $LN1@SetPMSDelu@5
  00036	8b 4d ec	 mov	 ecx, DWORD PTR tv67[ebp]
  00039	0f b6 91 00 00
	00 00		 movzx	 edx, BYTE PTR $LN14@SetPMSDelu@5[ecx]
  00040	ff 24 95 00 00
	00 00		 jmp	 DWORD PTR $LN15@SetPMSDelu@5[edx*4]
$LN7@SetPMSDelu@5:

; 409  :     {
; 410  :     case PMS_COMPONENT:
; 411  :     case PMS_RGBS:
; 412  :         {
; 413  :             // The SAA7118 has really wierd brighness and contrast
; 414  :             // this messing about below makes the settings similar in
; 415  :             // operation to the bt848 which means that the calibration code
; 416  :             // may work properly
; 417  : 
; 418  :             int NewBrightness = Brightness + ContrastLimited;

  00047	0f b7 45 0c	 movzx	 eax, WORD PTR _Brightness$[ebp]
  0004b	0f b6 4d ff	 movzx	 ecx, BYTE PTR _ContrastLimited$[ebp]
  0004f	03 c1		 add	 eax, ecx
  00051	89 45 f8	 mov	 DWORD PTR _NewBrightness$143328[ebp], eax

; 419  :             if(NewBrightness < 0)

  00054	79 07		 jns	 SHORT $LN6@SetPMSDelu@5

; 420  :             {
; 421  :                 NewBrightness = 0;

  00056	c7 45 f8 00 00
	00 00		 mov	 DWORD PTR _NewBrightness$143328[ebp], 0
$LN6@SetPMSDelu@5:

; 422  :             }
; 423  :             if(NewBrightness > 255)

  0005d	81 7d f8 ff 00
	00 00		 cmp	 DWORD PTR _NewBrightness$143328[ebp], 255 ; 000000ffH
  00064	7e 07		 jle	 SHORT $LN5@SetPMSDelu@5

; 424  :             {
; 425  :                 NewBrightness = 255;

  00066	c7 45 f8 ff 00
	00 00		 mov	 DWORD PTR _NewBrightness$143328[ebp], 255 ; 000000ffH
$LN5@SetPMSDelu@5:

; 426  :             }
; 427  :             m_SAA7118->SetComponentBrightness((BYTE)NewBrightness);

  0006d	0f b6 55 f8	 movzx	 edx, BYTE PTR _NewBrightness$143328[ebp]
  00071	52		 push	 edx
  00072	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  00075	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  0007b	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00080	8b c8		 mov	 ecx, eax
  00082	e8 00 00 00 00	 call	 ?SetComponentBrightness@CSAA7118@@QAEXE@Z ; CSAA7118::SetComponentBrightness

; 428  :             m_SAA7118->SetComponentContrast(ContrastLimited);

  00087	0f b6 45 ff	 movzx	 eax, BYTE PTR _ContrastLimited$[ebp]
  0008b	50		 push	 eax
  0008c	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  0008f	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00095	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  0009a	8b c8		 mov	 ecx, eax
  0009c	e8 00 00 00 00	 call	 ?SetComponentContrast@CSAA7118@@QAEXE@Z ; CSAA7118::SetComponentContrast

; 429  : 
; 430  :             SetAnalogContrastBrightness(0x80, 0x00);

  000a1	6a 00		 push	 0
  000a3	68 80 00 00 00	 push	 128			; 00000080H
  000a8	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  000ab	e8 00 00 00 00	 call	 ?SetAnalogContrastBrightness@CBT848Card@@AAEXGG@Z ; CBT848Card::SetAnalogContrastBrightness

; 431  :         }
; 432  :        break;

  000b0	eb 7d		 jmp	 SHORT $LN12@SetPMSDelu@5
$LN4@SetPMSDelu@5:

; 433  :     case PMS_SVIDEO:
; 434  :     case PMS_SVIDEO2:
; 435  :     case PMS_COMPOSITE1:
; 436  :     case PMS_COMPOSITE2:
; 437  :     case PMS_COMPOSITE3:
; 438  :     case PMS_COMPOSITE_SV_1: // Composite over S-Video
; 439  :     case PMS_COMPOSITE_SV_2: // Composite over S-Video
; 440  :     case PMS_COMPOSITE_SV_3: // Composite over S-Video
; 441  :     case PMS_COMPOSITE_SV_4: // Composite over S-Video
; 442  :         {
; 443  :             // The SAA7118 has really wierd brighness and contrast
; 444  :             // this messing about below makes the settings similar in
; 445  :             // operation to the bt848 which means that the calibration code
; 446  :             // may work properly
; 447  : 
; 448  :             int NewBrightness = Brightness + ContrastLimited;

  000b2	0f b7 4d 0c	 movzx	 ecx, WORD PTR _Brightness$[ebp]
  000b6	0f b6 55 ff	 movzx	 edx, BYTE PTR _ContrastLimited$[ebp]
  000ba	03 ca		 add	 ecx, edx
  000bc	89 4d f4	 mov	 DWORD PTR _NewBrightness$143333[ebp], ecx

; 449  :             if(NewBrightness < 0)

  000bf	79 07		 jns	 SHORT $LN3@SetPMSDelu@5

; 450  :             {
; 451  :                 NewBrightness = 0;

  000c1	c7 45 f4 00 00
	00 00		 mov	 DWORD PTR _NewBrightness$143333[ebp], 0
$LN3@SetPMSDelu@5:

; 452  :             }
; 453  :             if(NewBrightness > 255)

  000c8	81 7d f4 ff 00
	00 00		 cmp	 DWORD PTR _NewBrightness$143333[ebp], 255 ; 000000ffH
  000cf	7e 07		 jle	 SHORT $LN2@SetPMSDelu@5

; 454  :             {
; 455  :                 NewBrightness = 255;

  000d1	c7 45 f4 ff 00
	00 00		 mov	 DWORD PTR _NewBrightness$143333[ebp], 255 ; 000000ffH
$LN2@SetPMSDelu@5:

; 456  :             }
; 457  :             m_SAA7118->SetBrightness((BYTE)NewBrightness);

  000d8	0f b6 45 f4	 movzx	 eax, BYTE PTR _NewBrightness$143333[ebp]
  000dc	50		 push	 eax
  000dd	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  000e0	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  000e6	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  000eb	8b c8		 mov	 ecx, eax
  000ed	e8 00 00 00 00	 call	 ?SetBrightness@CSAA7118@@QAEXE@Z ; CSAA7118::SetBrightness

; 458  :             m_SAA7118->SetContrast(ContrastLimited);

  000f2	0f b6 4d ff	 movzx	 ecx, BYTE PTR _ContrastLimited$[ebp]
  000f6	51		 push	 ecx
  000f7	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  000fa	81 c1 c0 00 00
	00		 add	 ecx, 192		; 000000c0H
  00100	e8 00 00 00 00	 call	 ??C?$SmartPtr@VCSAA7118@@@@QBEPAVCSAA7118@@XZ ; SmartPtr<CSAA7118>::operator->
  00105	8b c8		 mov	 ecx, eax
  00107	e8 00 00 00 00	 call	 ?SetContrast@CSAA7118@@QAEXE@Z ; CSAA7118::SetContrast

; 459  :             SetAnalogContrastBrightness(0x80, 0x00);

  0010c	6a 00		 push	 0
  0010e	68 80 00 00 00	 push	 128			; 00000080H
  00113	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  00116	e8 00 00 00 00	 call	 ?SetAnalogContrastBrightness@CBT848Card@@AAEXGG@Z ; CBT848Card::SetAnalogContrastBrightness

; 460  :         }
; 461  :         break;

  0011b	eb 12		 jmp	 SHORT $LN12@SetPMSDelu@5
$LN1@SetPMSDelu@5:

; 462  :     case PMS_XPORT:
; 463  :     case PMS_SDI:
; 464  :     default:
; 465  :         SetAnalogContrastBrightness(Contrast, Brightness);

  0011d	0f b7 55 0c	 movzx	 edx, WORD PTR _Brightness$[ebp]
  00121	52		 push	 edx
  00122	0f b7 45 08	 movzx	 eax, WORD PTR _Contrast$[ebp]
  00126	50		 push	 eax
  00127	8b 4d f0	 mov	 ecx, DWORD PTR _this$[ebp]
  0012a	e8 00 00 00 00	 call	 ?SetAnalogContrastBrightness@CBT848Card@@AAEXGG@Z ; CBT848Card::SetAnalogContrastBrightness
$LN12@SetPMSDelu@5:

; 466  :         break;
; 467  :     }
; 468  : }

  0012f	8b e5		 mov	 esp, ebp
  00131	5d		 pop	 ebp
  00132	c2 08 00	 ret	 8
  00135	8d 49 00	 npad	 3
$LN15@SetPMSDelu@5:
  00138	00 00 00 00	 DD	 $LN7@SetPMSDelu@5
  0013c	00 00 00 00	 DD	 $LN4@SetPMSDelu@5
  00140	00 00 00 00	 DD	 $LN1@SetPMSDelu@5
$LN14@SetPMSDelu@5:
  00144	00		 DB	 0
  00145	01		 DB	 1
  00146	01		 DB	 1
  00147	01		 DB	 1
  00148	01		 DB	 1
  00149	01		 DB	 1
  0014a	02		 DB	 2
  0014b	01		 DB	 1
  0014c	01		 DB	 1
  0014d	01		 DB	 1
  0014e	01		 DB	 1
  0014f	00		 DB	 0
?SetPMSDeluxeContrastBrightness@CBT848Card@@AAEXGG@Z ENDP ; CBT848Card::SetPMSDeluxeContrastBrightness
END
