summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2020-12-18 13:03:42 +0800
committerIru Cai <mytbk920423@gmail.com>2020-12-18 13:03:42 +0800
commitc29516d9eb1f5e5557d9b8b77fbe80b252fba21b (patch)
treeba6010d782ad7af5057446ceb2c979244523cfb5
parent49bf2adac5ad1641bc89bb35e97e71f202483968 (diff)
downloadbroadwell-refcode-c29516d9eb1f5e5557d9b8b77fbe80b252fba21b.tar.xz
rename
-rw-r--r--broadwell_refcode_librem.asm328
1 files changed, 164 insertions, 164 deletions
diff --git a/broadwell_refcode_librem.asm b/broadwell_refcode_librem.asm
index b517790..89e552f 100644
--- a/broadwell_refcode_librem.asm
+++ b/broadwell_refcode_librem.asm
@@ -232,7 +232,7 @@ pop ecx
push 1
sub eax, 0xffffff80
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00000228: ; not directly referenced
@@ -335,7 +335,7 @@ mov eax, dword [eax + 1]
mov eax, dword [eax + 4]
add eax, 0x5f00
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
leave
ret
@@ -1412,7 +1412,7 @@ pop ecx
pop eax
push 0xffffffffffffffff
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], ebx
call read32 ; call 0x17e4e
add esp, 0x10
@@ -2639,7 +2639,7 @@ push eax
push eax
push 0xff07
push ebx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
pop eax
pop edx
lea eax, [esi*8]
@@ -2654,7 +2654,7 @@ push eax
push eax
push 0xff
push ebx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
shl esi, 8
pop edx
and esi, 0x3f00
@@ -2764,7 +2764,7 @@ push eax
push eax
push 0xfffd
push ebx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
loc_00001a7f:
add esp, 0x10
@@ -2783,7 +2783,7 @@ mov eax, dword [ebp - 0x40]
push 0x4000
add eax, 0x6c004
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00001aab:
@@ -2800,7 +2800,7 @@ mov eax, dword [ebp - 0x40]
push 8
add eax, 0xc7204
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00001ad4:
@@ -2808,7 +2808,7 @@ push eax
push eax
push 0xfff9
push dword [ebp - 0x50]
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
lea eax, [ebp - 0x28]
push eax
push 0
@@ -2947,7 +2947,7 @@ push eax
push eax
push 0xfff9
push dword [ebp - 0x50]
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
call fcn_00015479 ; call 0x15479
add esp, 0x10
test al, al
@@ -4366,7 +4366,7 @@ pop edx
pop ecx
push 0xffef
push ebx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0x186a0
@@ -5317,7 +5317,7 @@ pop esi
mov dword [ebp - 0xca0], eax
push 0xa800
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp byte [ebp - 0xc79], 0
je short loc_000033be ; je 0x33be
@@ -5327,7 +5327,7 @@ push edx
push 0xa800
add eax, 0xc20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_000033be:
@@ -5339,7 +5339,7 @@ mov eax, dword [ebp - 0xc8c]
push 0xa800
add eax, 0xc20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_000033e2:
@@ -5582,7 +5582,7 @@ pop esi
pop edi
push 0xffef
push dword [ebp - 0xc9c]
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
cmp byte [ebp - 0xc79], 0
je short loc_000036bf ; je 0x36bf
@@ -5592,7 +5592,7 @@ push ecx
push 0xffef
add eax, 0xb0
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
loc_000036bf:
@@ -5604,7 +5604,7 @@ push edx
push 0xffef
add eax, 0xb0
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
loc_000036e3:
@@ -5777,13 +5777,13 @@ pop eax
pop edx
push 0x200
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov edx, dword [ebp - 0x34]
pop ecx
pop esi
push 0xffef
push edx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
loc_0000389d:
@@ -7659,7 +7659,7 @@ shl eax, 5
push 0x80000000
add eax, esi
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
mov edx, dword [ebp - 0x1c]
jmp short loc_00004ad6 ; jmp 0x4ad6
@@ -8180,7 +8180,7 @@ push edi
push edi
push 0x200
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
loc_00005065:
inc ebx
@@ -8442,7 +8442,7 @@ lea eax, [esi + 0xd98]
add esi, 0xb0
push 1
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop ecx
pop edi
push 0x20
@@ -8564,7 +8564,7 @@ push 0xc000
loc_000053e6:
push dword [ebp - 0x60]
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
call fcn_00015479 ; call 0x15479
test al, al
@@ -9013,7 +9013,7 @@ push 0x100
mov eax, edi
add eax, 0x224
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
lea esi, [edi + 0x464]
pop eax
mov eax, edi
@@ -9098,7 +9098,7 @@ mov eax, dword [ebp - 0x40]
push 0x40000000
add eax, 0xd20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
mov eax, dword [ebp - 0x78]
pop edx
@@ -9146,7 +9146,7 @@ push 0x100
mov eax, edi
add eax, 0x224
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, edi
pop ebx
add eax, 0xb0
@@ -9232,7 +9232,7 @@ push esi
push 0x40000000
add eax, 0xd20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop edi
pop eax
mov eax, dword [ebp - 0x78]
@@ -9281,7 +9281,7 @@ push 0x100
mov eax, edi
add eax, 0x224
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
mov eax, edi
pop edx
@@ -9366,7 +9366,7 @@ push edi
push 0x40000000
add eax, 0xd20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
mov eax, dword [ebp - 0x78]
pop edx
@@ -9502,7 +9502,7 @@ pop ecx
push 1
add eax, 0x25c
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
lea eax, [ebp - 0x18]
add esp, 0x10
cmp ebx, eax
@@ -9792,7 +9792,7 @@ call fcn_0001838d ; call 0x1838d
movzx eax, word [ebp - 0x1c]
add ebx, eax
mov dword [esp], ebx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov ecx, dword [ebp - 0x24]
shl edi, cl
and eax, esi
@@ -9966,7 +9966,7 @@ pop ecx
push 0xffef
add eax, 0xb0
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
cmp ebx, 3
jne short loc_0000613c ; jne 0x613c
@@ -9994,7 +9994,7 @@ pop ecx
push 0xffef
add eax, 0xb0
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
cmp ebx, 3
mov edx, dword [ebp - 0x1c]
@@ -10042,7 +10042,7 @@ pop eax
pop edx
push 0xffbf
push esi
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
push 0
push ebx
push dword [ebp + 0xc]
@@ -10119,7 +10119,7 @@ pop ecx
push 0x10
add eax, 0xc24
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_000062bc: ; not directly referenced
@@ -10198,7 +10198,7 @@ pop edx
push 1
add eax, 0x444
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0
push 1
@@ -10209,7 +10209,7 @@ pop ebx
push 0x2000
add eax, 0x444
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0
push 1
@@ -10396,7 +10396,7 @@ pop ecx
pop eax
push 0xffef
push edi
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
push 0
push esi
push dword [ebp + 0xc]
@@ -10407,7 +10407,7 @@ add esp, 0x18
push 0x1f
push edx
mov edi, eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
test edi, edi
js short loc_000065e4 ; js 0x65e4
@@ -10516,7 +10516,7 @@ push 0x8000
add eax, 0xdd8
push eax
mov dword [ebp - 0x24], eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push ebx
push dword [ebp + 0x14]
@@ -13031,7 +13031,7 @@ mov ebx, eax
and ebx, 0xfffffff8
lea eax, [ebx + 0x54]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0
push 0xfed85000
@@ -13068,7 +13068,7 @@ mov ebx, eax
and ebx, 0xfffffff8
lea eax, [ebx + 0x38004]
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0xc
push 0
push 0xfff
@@ -13782,7 +13782,7 @@ push ebx
push 0x8000
lea esi, [eax + 0xdd8]
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 0x10]
@@ -13949,7 +13949,7 @@ mov eax, dword [ebp - 0x3f8]
add eax, 0x444
push eax
mov dword [ebp - 0x410], eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
lea eax, [ebp - 0x2a2]
add esp, 0x10
mov dword [ebp - 0x3ec], eax
@@ -14385,7 +14385,7 @@ push 1
mov eax, edi
add eax, 0xd98
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
mov eax, edi
pop edx
@@ -14425,7 +14425,7 @@ pop ecx
push 0xffef
add eax, 0xb0
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
cmp ebx, 3
jne short loc_00008daa ; jne 0x8daa
@@ -14698,7 +14698,7 @@ push ecx
push 1
add eax, 0xd98
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push edi
push dword [ebp + 0x10]
@@ -15310,7 +15310,7 @@ push 0x10
lea eax, [eax + ebx + 0x90c]
add ebx, 0x20
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp ebx, 0x100
jne short loc_000096bd ; jne 0x96bd
@@ -15914,7 +15914,7 @@ movzx eax, byte [esi - 1]
shl eax, 4
add eax, ebx
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
jmp short loc_00009bd3 ; jmp 0x9bd3
@@ -16765,7 +16765,7 @@ push edx
push 0x1040
add eax, 0xd4
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0000a3bc: ; not directly referenced
@@ -16862,7 +16862,7 @@ call fcn_0001c3cb ; call 0x1c3cb
movzx eax, al
lea eax, [edi + eax*8 + 0x190]
mov dword [esp], eax
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
test al, 1
je loc_0000a412 ; je 0xa412
@@ -18096,7 +18096,7 @@ call fcn_0001c3cb ; call 0x1c3cb
movzx eax, al
lea eax, [ebx + eax*8 + 0x190]
mov dword [esp], eax
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
test al, 1
jne short loc_0000b113 ; jne 0xb113
@@ -18365,7 +18365,7 @@ call fcn_0001c3cb ; call 0x1c3cb
movzx eax, al
lea eax, [ebx + eax*8 + 0x190]
mov dword [esp], eax
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
test al, 1
jne short loc_0000b3fd ; jne 0xb3fd
@@ -18650,7 +18650,7 @@ push ecx
push 1
lea eax, [esi + 0x420]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0000b711: ; not directly referenced
@@ -18697,7 +18697,7 @@ push ebx
push 0x20000000
lea eax, [esi + 0x420]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp byte [ebp - 0x68], 0
je loc_0000b882 ; je 0xb882
@@ -19015,7 +19015,7 @@ inc ax
jne short loc_0000ba44 ; jne 0xba44
sub esp, 0xc
push 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec ebx
jne short loc_0000ba78 ; jne 0xba78
@@ -19401,7 +19401,7 @@ mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
lea ebx, [eax + 0x3418]
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
@@ -20969,7 +20969,7 @@ push ebx
push ebx
push 0x80000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0x200
push 0xffffe27f
@@ -20980,7 +20980,7 @@ pop eax
pop edx
push 0x100000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0x20
push 0xffffffffffffff9f
@@ -20990,7 +20990,7 @@ pop ecx
pop ebx
push 0x40000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, dword [ebp - 0x34]
add eax, 0x410
mov dword [esp], eax
@@ -21039,7 +21039,7 @@ push eax
push eax
push 0x400000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
jmp near loc_0000cdf2 ; jmp 0xcdf2
@@ -21416,7 +21416,7 @@ cmp byte [ebp - 0x3c], 0
je short loc_0000d274 ; je 0xd274
sub esp, 0xc
push 0x186a0
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
loc_0000d274:
@@ -21430,7 +21430,7 @@ add esp, 0x10
mov byte [ebp - 0x29], 0
loc_0000d292:
-call fcn_0001c245 ; call 0x1c245
+call num_ehci_devs ; call 0x1c245
cmp byte [ebp - 0x29], al
jae short loc_0000d2e2 ; jae 0xd2e2
movzx eax, byte [ebp - 0x29]
@@ -21482,7 +21482,7 @@ push 1
mov eax, dword [ebx + 0x368]
add eax, 0x10
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0000d331:
@@ -21503,7 +21503,7 @@ add eax, 0x3410
push edx
push 4
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
loc_0000d35a:
mov eax, dword [ebx + 4]
@@ -21580,7 +21580,7 @@ push 0x2000000
mov eax, dword [ebx + 4]
add eax, 0x3418
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, dword [ebx + 4]
add eax, 0x3418
mov dword [esp], eax
@@ -21782,7 +21782,7 @@ pop ecx
pop eax
push 1
push edi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
call pch_sku_type ; call 0x1bfbb
add esp, 0x10
cmp eax, 2
@@ -21931,7 +21931,7 @@ push ebx
push ebx
push 0xfeff
push esi
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
movzx eax, byte [edi + 0x361]
add esp, 0xc
push eax
@@ -23099,7 +23099,7 @@ loc_0000e38d: ; not directly referenced
xor esi, esi
loc_0000e38f: ; not directly referenced
-call fcn_0001c245 ; call 0x1c245
+call num_ehci_devs ; call 0x1c245
movzx eax, al
cmp esi, eax
jae short loc_0000e3bc ; jae 0xe3bc
@@ -27393,7 +27393,7 @@ push ecx
push ecx
push 0xa0000
push edi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00010c7e: ; not directly referenced
@@ -27469,7 +27469,7 @@ xor bl, bl
push edx
push 0x80000000
push edi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], edi
call read32 ; call 0x17e4e
add esp, 0x10
@@ -28256,7 +28256,7 @@ pop ecx
pop edi
push 0x40000000
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp esi, 1
jne short loc_00011532 ; jne 0x11532
@@ -28375,13 +28375,13 @@ pop edx
lea eax, [edi + 0x110]
push 0x31c1
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
lea edx, [edi + 0x104]
pop ecx
pop eax
push 0x17d010
push edx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
inc byte [ebp - 0x1c]
jmp short loc_00011602 ; jmp 0x11602
@@ -29047,7 +29047,7 @@ push eax
push eax
push 0xfff7
push esi
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0xc
push 0x80000000
push 0xfffffffffffffffe
@@ -29069,7 +29069,7 @@ add esi, 0x20
loc_00011d83: ; not directly referenced
sub esp, 0xc
push esi
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
test ah, 2
je short loc_00011da4 ; je 0x11da4
@@ -29148,7 +29148,7 @@ add ebx, 0x108
push eax
push 0x4000
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00011e53: ; not directly referenced
@@ -29208,7 +29208,7 @@ call read16 ; call 0x17dc2
and eax, 0xfffc
lea eax, [eax + ebx*8 + 0x190]
mov dword [esp], eax
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
and eax, 1
xor eax, 1
@@ -29264,7 +29264,7 @@ push eax
push 3
lea eax, [esi + 0xe8]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
cmp dword [ebp - 0x28], 2
pop eax
mov eax, 0x20
@@ -29274,7 +29274,7 @@ cmove eax, edx
add esi, 0x324
push eax
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
jmp near loc_00012193 ; jmp 0x12193
@@ -29453,7 +29453,7 @@ pop ecx
pop eax
push 0x80000000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00012158: ; not directly referenced
@@ -29475,7 +29475,7 @@ pop ecx
push 0x60000000
add eax, 0x420
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0001218d: ; not directly referenced
@@ -30213,7 +30213,7 @@ push eax
push 0x4000000
lea eax, [ebx + 0x338]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
lea eax, [ebx + 0x328]
add esp, 0x10
mov dword [ebp - 0x54], eax
@@ -30233,7 +30233,7 @@ push eax
push 0x8000000
lea eax, [ebx + 0x408]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov cl, byte [ebp - 0x2c]
mov eax, 0x10000
mov edx, dword [ebp + 0xc]
@@ -30244,7 +30244,7 @@ jmp near loc_00012a55 ; jmp 0x12a55
loc_00012927: ; not directly referenced
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec esi
jne short loc_000128e6 ; jne 0x128e6
@@ -30301,7 +30301,7 @@ test ah, 0x20
jne short loc_000129bc ; jne 0x129bc
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
inc dword [ebp - 0x44]
jmp short loc_00012991 ; jmp 0x12991
@@ -30469,7 +30469,7 @@ pop ebx
push 3
add eax, 0xec
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00012b66: ; not directly referenced
@@ -30515,7 +30515,7 @@ add esi, 0x320
push edi
push 0x1800000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_00012bd4: ; not directly referenced
@@ -30530,7 +30530,7 @@ push 0x80000080
mov eax, edi
add eax, 0x2314
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, edi
pop ecx
add eax, 0x1114
@@ -30603,7 +30603,7 @@ cmp ax, si
je short loc_00012caa ; je 0x12caa
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec ebx
jne short loc_00012c7e ; jne 0x12c7e
@@ -30673,7 +30673,7 @@ push edx
push edx
push 0xfffe
push ebx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
jmp short loc_00012d58 ; jmp 0x12d58
loc_00012d2f: ; not directly referenced
@@ -30922,7 +30922,7 @@ push eax
push 0xf7ff
lea eax, [ebx + 0x78]
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
loc_00012f6f: ; not directly referenced
@@ -30945,7 +30945,7 @@ push edi
push edi
push 0x80000000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
jmp short loc_00012fc0 ; jmp 0x12fc0
loc_00012fad: ; not directly referenced
@@ -30999,7 +30999,7 @@ pop eax
lea eax, [ebx + 0xc0]
push 0x20000
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
mov eax, 0x4000
jmp short loc_0001304e ; jmp 0x1304e
@@ -31023,7 +31023,7 @@ push edx
push eax
lea eax, [ebx + 0xc4]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp dword [ebp - 0x2c], 1
jne short loc_0001307c ; jne 0x1307c
@@ -31099,7 +31099,7 @@ push eax
push 1
lea esi, [edi + 8]
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 1
push 1
@@ -31151,11 +31151,11 @@ push edi
push edi
push 1
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x374]
mov dword [esp], eax
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0xc
push 1
push 1
@@ -31206,7 +31206,7 @@ jne short loc_0001326b ; jne 0x1326b
loc_0001321c: ; not directly referenced
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec edi
je short loc_00013231 ; je 0x13231
@@ -31245,7 +31245,7 @@ add ebx, 0x54
push eax
push 0x100
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0001328a: ; not directly referenced
@@ -31455,7 +31455,7 @@ push edx
push edx
push 0xfffd
push dword [ebp - 0x48]
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
pop ecx
pop ebx
push 0
@@ -31506,7 +31506,7 @@ test al, 2
je short loc_00013519 ; je 0x13519
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec ebx
jne short loc_000134f9 ; jne 0x134f9
@@ -31591,7 +31591,7 @@ test al, 1
jne short loc_00013569 ; jne 0x13569
sub esp, 0xc
push 0x64
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec edi
jne short loc_000135b5 ; jne 0x135b5
@@ -31617,7 +31617,7 @@ mov byte [ebp - 0x19], 0
mov dword [ebp - 0x2c], eax
loc_000135f3:
-call fcn_0001c245 ; call 0x1c245
+call num_ehci_devs ; call 0x1c245
cmp byte [ebp - 0x19], al
jae loc_000137f4 ; jae 0x137f4
movzx esi, byte [ebp - 0x19]
@@ -31658,7 +31658,7 @@ push esi
push 0xfffc
lea eax, [ebx + 0x78]
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
loc_0001366c:
@@ -31750,7 +31750,7 @@ pop edx
mov edx, dword [ebp - 0x34]
push 0xfffe
push edx
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
lea edx, [ebx + 0x78]
mov dword [esp], edx
mov dword [ebp - 0x24], edx
@@ -31768,7 +31768,7 @@ lea eax, [ebx + 0x7c]
add ebx, 0x8c
push 0x4080
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], ebx
call read32 ; call 0x17e4e
pop edx
@@ -31807,7 +31807,7 @@ push eax
push eax
push 0xfff9
push dword [ebp - 0x20]
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
pop edx
pop ecx
push 0
@@ -31940,7 +31940,7 @@ add edi, 0xa8
push eax
push 0x22000
push edi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
loc_0001393e:
add esp, 0x10
@@ -31971,19 +31971,19 @@ push ecx
push 0x2040000
lea eax, [ebx + 0x8060]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop edi
pop eax
lea eax, [ebx + 0x8090]
push 0x4100
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
pop edx
lea eax, [ebx + 0x8094]
push 0xa04000
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0x40
push 0xfffeffff
@@ -32010,7 +32010,7 @@ push edi
push 0x2000000
lea eax, [ebx + 0x80fc]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0xc
push 0x100800
push 0xfffffefb
@@ -32028,7 +32028,7 @@ pop edx
lea eax, [ebx + 0x8144]
push 0x1c0
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
jmp near loc_00013c27 ; jmp 0x13c27
@@ -32085,7 +32085,7 @@ push ecx
push 3
lea eax, [ebx + 0x8164]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov eax, dword [ebp - 0x1c]
add esp, 0x10
cmp eax, 1
@@ -32153,7 +32153,7 @@ push eax
lea eax, [ebx + 0x8188]
push eax
mov dword [ebp - 0x28], edx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp dword [ebp - 0x1c], 2
jne short loc_00013c36 ; jne 0x13c36
@@ -32281,7 +32281,7 @@ push ecx
push eax
lea eax, [ebx + 0xa0]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp edi, 2
jne short loc_00013d22 ; jne 0x13d22
@@ -32838,7 +32838,7 @@ jmp short loc_0001427f ; jmp 0x1427f
loc_000142af:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
and esi, 0x10
je loc_00014230 ; je 0x14230
@@ -32929,7 +32929,7 @@ jmp short loc_00014362 ; jmp 0x14362
loc_0001438a:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
and esi, 0x10
je short loc_000143a4 ; je 0x143a4
@@ -33056,7 +33056,7 @@ jmp short loc_0001446c ; jmp 0x1446c
loc_0001449c:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
and esi, 0x10
je short loc_000144b4 ; je 0x144b4
@@ -33098,7 +33098,7 @@ push esi
push 1
lea ebx, [eax + 0x80]
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop eax
pop edx
push 0xfffffffffffffffe
@@ -33216,7 +33216,7 @@ jmp short loc_000145e2 ; jmp 0x145e2
loc_00014601:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
inc dword [ebp - 0x38]
@@ -33286,7 +33286,7 @@ jmp short loc_00014672 ; jmp 0x14672
loc_0001469a:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
and esi, 0x10
je short loc_000146b2 ; je 0x146b2
@@ -33453,7 +33453,7 @@ jmp short loc_000147c1 ; jmp 0x147c1
loc_000147f1:
sub esp, 0xc
push 0x2710
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
and esi, 0x10
je short loc_00014809 ; je 0x14809
@@ -33495,7 +33495,7 @@ push eax
push eax
push 1
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
pop edx
pop ecx
push 0xfffffffffffffffe
@@ -34197,7 +34197,7 @@ push 0xfff9
lea eax, [ebx + 4]
add ebx, 0x10
push eax
-call fcn_00018954 ; call 0x18954
+call and_16 ; call 0x18954
add esp, 0x10
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
@@ -34348,7 +34348,7 @@ push ecx
push 5
lea eax, [ebx + 0x3a84]
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
loc_0001502e:
@@ -34361,7 +34361,7 @@ call program_iobp ; call 0x9dc2
add esp, 0x10
loc_00015045:
-call fcn_0001c245 ; call 0x1c245
+call num_ehci_devs ; call 0x1c245
cmp bl, al
jae short loc_000150a7 ; jae 0x150a7
movzx edi, bl
@@ -34386,14 +34386,14 @@ lea eax, [ecx + 0xdc]
mov dword [ebp - 0x1c], ecx
push edx
push eax
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov ecx, dword [ebp - 0x1c]
pop eax
pop edx
add ecx, 0x78
push 3
push ecx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
jmp short loc_00015045 ; jmp 0x15045
@@ -36476,7 +36476,7 @@ push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0x10]
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
xor eax, eax
leave
ret
@@ -40119,7 +40119,7 @@ push ebx
mov ebx, dword [ebp + 8]
sub esp, 0xc
push ebx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
mov dword [ebp + 8], ebx
or eax, esi
@@ -40139,7 +40139,7 @@ push ebx
mov ebx, dword [ebp + 8]
sub esp, 0xc
push ebx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
mov dword [ebp + 8], ebx
and eax, esi
@@ -40161,7 +40161,7 @@ mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push edi
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
mov dword [ebp + 8], edi
and eax, esi
@@ -40183,7 +40183,7 @@ push ebx
mov ebx, dword [ebp + 0xc]
sub esp, 0xc
push dword [ebp + 8]
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], ebx
@@ -40207,7 +40207,7 @@ mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], edx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov edx, dword [ebp - 0x1c]
push edx
push edi
@@ -40237,7 +40237,7 @@ mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], edx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov edx, dword [ebp - 0x1c]
push edx
push edi
@@ -40267,7 +40267,7 @@ mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], edx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov edx, dword [ebp - 0x1c]
push edx
push edi
@@ -40299,7 +40299,7 @@ push ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [esp], ecx
@@ -40816,7 +40816,7 @@ pop esi
pop ebp
jmp near write16 ; jmp 0x17e04
-fcn_00018954:
+and_16:
push ebp
mov ebp, esp
push esi
@@ -41020,7 +41020,7 @@ pop edi
pop ebp
jmp near write16 ; jmp 0x17e04
-fcn_00018b14:
+or_32:
push ebp
mov ebp, esp
push esi
@@ -41541,7 +41541,7 @@ mov ebx, dword [ebp - 4]
leave
ret
-fcn_00018f64:
+in32:
push ebp
mov ebp, esp
sub esp, 8
@@ -44460,7 +44460,7 @@ mov ebp, esp
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
pop ebp
-jmp near fcn_00018f64 ; jmp 0x18f64
+jmp near in32 ; jmp 0x18f64
fcn_0001a938: ; not directly referenced
push ebp
@@ -44953,14 +44953,14 @@ cmp byte [ebp - 0x1d], 0
je short loc_0001ad65 ; je 0x1ad65
sub esp, 0xc
push esi
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov dword [ebx], eax
jmp short loc_0001ad77 ; jmp 0x1ad77
loc_0001ad65: ; not directly referenced
sub esp, 0xc
push esi
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
pop edx
pop ecx
push eax
@@ -45622,7 +45622,7 @@ test al, 0x8e
jne short loc_0001b397 ; jne 0x1b397
sub esp, 0xc
push 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec ebx
jne short loc_0001b36d ; jne 0x1b36d
@@ -46085,7 +46085,7 @@ test al, al
js short loc_0001b7e0 ; js 0x1b7e0
sub esp, 0xc
push 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec dword [ebp - 0x2c]
jne short loc_0001b7b3 ; jne 0x1b7b3
@@ -46206,7 +46206,7 @@ push 0
loc_0001b8c0: ; not directly referenced
call fcn_0001b33b ; call 0x1b33b
mov dword [esp], 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
add esp, 0x10
dec dword [ebp - 0x34]
jne loc_0001b434 ; jne 0x1b434
@@ -46453,7 +46453,7 @@ pop edi
pop ebp
ret
-fcn_0001bb03:
+delay:
push ebp
mov ebp, esp
push edi
@@ -46475,7 +46475,7 @@ mov esi, eax
and esi, 0xfffc
add esi, 8
mov dword [esp], esi
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
mov ecx, 0x64
xor edx, edx
add esp, 0x10
@@ -46499,7 +46499,7 @@ sub esp, 0xc
push esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
@@ -46871,7 +46871,7 @@ pop ecx
pop edi
push 0x4010
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], esi
call read32 ; call 0x17e4e
mov edi, eax
@@ -46884,7 +46884,7 @@ pop ecx
pop eax
push 0x403c
push ebx
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], esi
call read32 ; call 0x17e4e
add esp, 0x10
@@ -46929,7 +46929,7 @@ pop edx
pop ecx
push 0x4024
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
mov dword [esp], ebx
call read32 ; call 0x17e4e
add esp, 0x10
@@ -47189,7 +47189,7 @@ loc_0001c243: ; not directly referenced
leave
ret
-fcn_0001c245:
+num_ehci_devs:
push ebp
mov ebp, esp
sub esp, 8
@@ -47647,7 +47647,7 @@ pop ebx
pop edi
push 1
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
jmp short loc_0001c62a ; jmp 0x1c62a
loc_0001c620:
@@ -48035,7 +48035,7 @@ sub esp, 0xc
inc ebx
push 1
mov dword [ebp - 0x2c], eax
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov dl, al
@@ -48139,7 +48139,7 @@ mov dword [ebp - 0x40], eax
call read32 ; call 0x17e4e
mov dword [esp], 0xa
mov dword [ebp - 0x3c], eax
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
mov dword [esp], edi
call read32 ; call 0x17e4e
mov dword [esp], esi
@@ -48205,7 +48205,7 @@ mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
call CopyMem ; call 0x1713e
mov dword [esp], 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
mov dword [esp], 0x150
call fcn_000175bc ; call 0x175bc
add esp, 0xc
@@ -48326,7 +48326,7 @@ mov dword [ebp - 0x30], eax
call read32 ; call 0x17e4e
mov dword [esp], 0xa
mov dword [ebp - 0x2c], eax
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
mov dword [esp], edi
call read32 ; call 0x17e4e
mov dword [esp], esi
@@ -48393,7 +48393,7 @@ mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
call CopyMem ; call 0x1713e
mov dword [esp], 0xa
-call fcn_0001bb03 ; call 0x1bb03
+call delay ; call 0x1bb03
mov dword [esp], 0x150
call fcn_000175bc ; call 0x175bc
add esp, 0xc
@@ -49787,7 +49787,7 @@ mov word [ebx + 0xca], 0xcfc
mov byte [ebx + 0xcc], 0xaa
mov dword [esi], inb ; mov dword [esi], 0x18ee1
mov dword [esi + 4], fcn_00018ef6 ; mov dword [esi + 4], 0x18ef6
-mov dword [esi + 8], fcn_00018f64 ; mov dword [esi + 8], 0x18f64
+mov dword [esi + 8], in32 ; mov dword [esi + 8], 0x18f64
mov dword [esi + 0xc], outb ; mov dword [esi + 0xc], 0x18eea
mov dword [esi + 0x10], out16 ; mov dword [esi + 0x10], 0x18f27
mov dword [esi + 0x14], fcn_00018f97 ; mov dword [esi + 0x14], 0x18f97
@@ -53157,7 +53157,7 @@ add ebx, 4
push eax
call out16 ; call 0x18f27
mov dword [esp], ebx
-call fcn_00018f64 ; call 0x18f64
+call in32 ; call 0x18f64
pop edi
mov esi, eax
and esi, 0xffffc3ff
@@ -53209,7 +53209,7 @@ add esi, 0xac
push ecx
push 0x100000
push esi
-call fcn_00018b14 ; call 0x18b14
+call or_32 ; call 0x18b14
add esp, 0x10
cmp dword [ebp + 0xc], 5
jne loc_0002034a ; jne 0x2034a