also, using IDA Pro to disassemble the code to make sure all instructions are as they should be, here is the output:
ap_clear: ; CODE XREF: start+FF j
seg000:0000000000000130 cli
seg000:0000000000000131 mov rsi, ds:110000h
seg000:0000000000000139 xor eax, eax
seg000:000000000000013B mov [rsi+80h], eax
seg000:0000000000000141 mov eax, [rsi+20h]
seg000:0000000000000144 shr rax, 18h
seg000:0000000000000148 mov edi, 1FEF00h
seg000:000000000000014D add rdi, rax
seg000:0000000000000150 shl rax, 15h
seg000:0000000000000154 add rax, ds:110028h ;THE line in qestion
seg000:000000000000015C sub rax, 8
seg000:0000000000000160 mov rsp, rax
seg000:0000000000000163 mov al, 1
seg000:0000000000000165 stosb
seg000:0000000000000166 sti