	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function builtin_cart
_builtin_cart:                          ## @builtin_cart
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testb	$2, %dil
	jne	LBB0_6
## %bb.1:
	movq	_Atari800_builtin_basic@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	testb	$16, %dil
	jne	LBB0_5
## %bb.3:
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$576, %eax                      ## imm = 0x240
	je	LBB0_6
## %bb.4:
	cmpl	$1088, %eax                     ## imm = 0x440
	jne	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	testb	$64, %dil
	jne	LBB0_9
## %bb.7:
	movq	_Atari800_builtin_game@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_MEMORY_ram_size@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$320, (%rcx)                    ## imm = 0x140
	movq	_MEMORY_xegame@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmovlq	%rcx, %rax
	testb	$16, %dil
	cmovneq	%rcx, %rax
LBB0_9:
	popq	%rbp
	retq
LBB0_5:
	movq	_MEMORY_basic@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Atari800_builtin_basic,8,3     ## @Atari800_builtin_basic
	.comm	_MEMORY_ram_size,4,2            ## @MEMORY_ram_size
	.comm	_MEMORY_basic,8,3               ## @MEMORY_basic
	.comm	_Atari800_builtin_game,8,3      ## @Atari800_builtin_game
	.comm	_MEMORY_xegame,8,3              ## @MEMORY_xegame
	.no_dead_strip	_builtin_cart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function builtin_cart
_builtin_cart:                          ; @builtin_cart
	.cfi_startproc
; %bb.0:
	tbnz	w0, #1, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _Atari800_builtin_basic@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_builtin_basic@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	tbnz	w0, #4, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _MEMORY_ram_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMORY_ram_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #576
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #1088
	b.ne	LBB0_9
LBB0_5:
	mov	x8, #0
	tbnz	w0, #6, LBB0_8
; %bb.6:
Lloh6:
	adrp	x9, _Atari800_builtin_game@GOTPAGE
Lloh7:
	ldr	x9, [x9, _Atari800_builtin_game@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cbz	x9, LBB0_8
; %bb.7:
	and	w8, w0, #0x10
Lloh9:
	adrp	x9, _MEMORY_ram_size@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MEMORY_ram_size@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, #320
	cset	w9, lt
	orr	w8, w9, w8, lsr #4
Lloh12:
	adrp	x9, _MEMORY_xegame@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MEMORY_xegame@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	w8, #0
	csel	x8, x9, xzr, ne
LBB0_8:
	mov	x0, x8
	ret
LBB0_9:
Lloh15:
	adrp	x8, _MEMORY_basic@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MEMORY_basic@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Atari800_builtin_basic,8,3     ; @Atari800_builtin_basic
	.comm	_MEMORY_ram_size,4,2            ; @MEMORY_ram_size
	.comm	_MEMORY_basic,8,3               ; @MEMORY_basic
	.comm	_Atari800_builtin_game,8,3      ; @Atari800_builtin_game
	.comm	_MEMORY_xegame,8,3              ; @MEMORY_xegame
	.no_dead_strip	_builtin_cart
.subsections_via_symbols
