	.file	"260852.c"
	.intel_syntax noprefix
	.text
	.local	Mem
	.comm	Mem,65536,32
	.globl	MemWriteByte
	.type	MemWriteByte, @function
MemWriteByte:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -8[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	lea	rcx, Mem[rip]
	movzx	edx, BYTE PTR -8[rbp]
	mov	BYTE PTR [rax+rcx], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MemWriteByte, .-MemWriteByte
	.globl	MemReadByte
	.type	MemReadByte, @function
MemReadByte:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, Mem[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	MemReadByte, .-MemReadByte
	.globl	MemReadWord
	.type	MemReadWord, @function
MemReadWord:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	edi, eax
	call	MemReadByte
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	MemReadByte
	movzx	eax, al
	sal	eax, 8
	or	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	MemReadWord, .-MemReadWord
	.globl	MemReadZPWord
	.type	MemReadZPWord, @function
MemReadZPWord:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	movzx	eax, BYTE PTR -20[rbp]
	lea	edx, 1[rax]
	mov	BYTE PTR -20[rbp], dl
	movzx	eax, al
	mov	edi, eax
	call	MemReadByte
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -20[rbp]
	mov	edi, eax
	call	MemReadByte
	movzx	eax, al
	sal	eax, 8
	or	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	MemReadZPWord, .-MemReadZPWord
	.globl	MemInit
	.type	MemInit, @function
MemInit:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 65536
	mov	esi, 255
	lea	rdi, Mem[rip]
	call	memset@PLT
	mov	BYTE PTR Mem[rip+65532], 0
	mov	BYTE PTR Mem[rip+65533], 2
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	MemInit, .-MemInit
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"260852.c"
	.text
	.local	Mem
	.comm	Mem,65536,4
	.align	2
	.global	MemWriteByte
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemWriteByte, %function
MemWriteByte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	Mem
	.size	MemWriteByte, .-MemWriteByte
	.align	2
	.global	MemReadByte
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemReadByte, %function
MemReadByte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L6
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	Mem
	.size	MemReadByte, .-MemReadByte
	.align	2
	.global	MemReadWord
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemReadWord, %function
MemReadWord:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r0, r3
	bl	MemReadByte
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	MemReadByte
	mov	r3, r0
	lsl	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	MemReadWord, .-MemReadWord
	.align	2
	.global	MemReadZPWord
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemReadZPWord, %function
MemReadZPWord:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r2, r3, #1
	strb	r2, [fp, #-13]
	mov	r0, r3
	bl	MemReadByte
	mov	r3, r0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	MemReadByte
	mov	r3, r0
	lsl	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-8]
	orr	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	MemReadZPWord, .-MemReadZPWord
	.align	2
	.global	MemInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	MemInit, %function
MemInit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #65536
	mov	r1, #255
	ldr	r0, .L13
	bl	memset
	ldr	r3, .L13
	add	r3, r3, #61440
	mov	r2, #0
	strb	r2, [r3, #4092]
	ldr	r3, .L13
	add	r3, r3, #61440
	mov	r2, #2
	strb	r2, [r3, #4093]
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	Mem
	.size	MemInit, .-MemInit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
