	.file	"extr_memory.c_builtin_cart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	builtin_cart, @function
builtin_cart:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR Atari800_builtin_basic[rip], 0
	je	.L2
	test	dil, 2
	je	.L12
.L2:
	xor	eax, eax
	cmp	QWORD PTR Atari800_builtin_game[rip], 0
	je	.L1
	test	dil, 64
	jne	.L1
	and	edi, 16
	jne	.L4
	cmp	DWORD PTR MEMORY_ram_size[rip], 319
	jg	.L1
.L4:
	mov	rax, QWORD PTR MEMORY_xegame[rip]
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR MEMORY_ram_size[rip]
	mov	edx, edi
	and	edx, 16
	sub	eax, 576
	and	ah, -3
	or	eax, edx
	je	.L2
	mov	rax, QWORD PTR MEMORY_basic[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	builtin_cart, .-builtin_cart
	.comm	MEMORY_xegame,8,8
	.comm	MEMORY_ram_size,4,4
	.comm	MEMORY_basic,8,8
	.comm	Atari800_builtin_game,8,8
	.comm	Atari800_builtin_basic,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_memory.c_builtin_cart.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	builtin_cart, %function
builtin_cart:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	tst	r0, #2
	beq	.L15
.L2:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	tst	r0, #64
	bne	.L6
	ands	r0, r0, #16
	bne	.L4
	ldr	r3, .L16+8
	ldr	r3, [r3]
	cmp	r3, #320
	bxge	lr
.L4:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	bx	lr
.L15:
	ldr	r3, .L16+8
	and	r2, r0, #16
	ldr	r3, [r3]
	sub	r3, r3, #576
	bic	r3, r3, #512
	orrs	r3, r3, r2
	beq	.L2
	ldr	r3, .L16+16
	ldr	r0, [r3]
	bx	lr
.L6:
	mov	r0, #0
	bx	lr
.L17:
	.align	2
.L16:
	.word	Atari800_builtin_basic
	.word	Atari800_builtin_game
	.word	MEMORY_ram_size
	.word	MEMORY_xegame
	.word	MEMORY_basic
	.size	builtin_cart, .-builtin_cart
	.comm	MEMORY_xegame,4,4
	.comm	MEMORY_ram_size,4,4
	.comm	MEMORY_basic,4,4
	.comm	Atari800_builtin_game,4,4
	.comm	Atari800_builtin_basic,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
