	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYSROM_AutoChooseOS            ## -- Begin function SYSROM_AutoChooseOS
	.p2align	4, 0x90
_SYSROM_AutoChooseOS:                   ## @SYSROM_AutoChooseOS
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edi
	jne	LBB0_2
## %bb.3:
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_autochoose_order_800_ntsc@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_Atari800_builtin_game@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_autochoose_order_xegs@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_autochoose_order_5200@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_autochoose_order_800_pal@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_Atari800_builtin_basic@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.10:
	cmpl	$64, %esi
	jne	LBB0_11
## %bb.12:
	movq	_autochoose_order_800xl@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_autochoose_order_1200xl@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	_autochoose_order_xe@GOTPCREL(%rip), %rax
LBB0_13:
	cmpl	$16, %esi
	jne	LBB0_15
## %bb.14:
	movq	_autochoose_order_600xl@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rdi
	popq	%rbp
	jmp	_AutoChooseROM                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Atari800_TV_NTSC,4,2           ## @Atari800_TV_NTSC
	.comm	_autochoose_order_800_ntsc,8,3  ## @autochoose_order_800_ntsc
	.comm	_autochoose_order_800_pal,8,3   ## @autochoose_order_800_pal
	.comm	_Atari800_builtin_game,4,2      ## @Atari800_builtin_game
	.comm	_autochoose_order_xegs,8,3      ## @autochoose_order_xegs
	.comm	_Atari800_builtin_basic,4,2     ## @Atari800_builtin_basic
	.comm	_autochoose_order_1200xl,8,3    ## @autochoose_order_1200xl
	.comm	_autochoose_order_600xl,8,3     ## @autochoose_order_600xl
	.comm	_autochoose_order_800xl,8,3     ## @autochoose_order_800xl
	.comm	_autochoose_order_xe,8,3        ## @autochoose_order_xe
	.comm	_autochoose_order_5200,8,3      ## @autochoose_order_5200
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYSROM_AutoChooseOS            ; -- Begin function SYSROM_AutoChooseOS
	.p2align	2
_SYSROM_AutoChooseOS:                   ; @SYSROM_AutoChooseOS
	.cfi_startproc
; %bb.0:
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _Atari800_TV_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_TV_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _autochoose_order_800_pal@GOTPAGE
Lloh4:
	ldr	x9, [x9, _autochoose_order_800_pal@GOTPAGEOFF]
Lloh5:
	adrp	x10, _autochoose_order_800_ntsc@GOTPAGE
Lloh6:
	ldr	x10, [x10, _autochoose_order_800_ntsc@GOTPAGEOFF]
	cmp	w8, w2
	csel	x8, x10, x9, eq
	ldr	x0, [x8]
	b	_AutoChooseROM
LBB0_3:
Lloh7:
	adrp	x8, _Atari800_builtin_game@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Atari800_builtin_game@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.4:
Lloh10:
	adrp	x8, _autochoose_order_xegs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _autochoose_order_xegs@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	b	_AutoChooseROM
LBB0_5:
Lloh13:
	adrp	x8, _autochoose_order_5200@GOTPAGE
Lloh14:
	ldr	x8, [x8, _autochoose_order_5200@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	b	_AutoChooseROM
LBB0_6:
Lloh16:
	adrp	x8, _Atari800_builtin_basic@GOTPAGE
Lloh17:
	ldr	x8, [x8, _Atari800_builtin_basic@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _autochoose_order_1200xl@GOTPAGE
Lloh20:
	ldr	x9, [x9, _autochoose_order_1200xl@GOTPAGEOFF]
Lloh21:
	adrp	x10, _autochoose_order_xe@GOTPAGE
Lloh22:
	ldr	x10, [x10, _autochoose_order_xe@GOTPAGEOFF]
Lloh23:
	adrp	x11, _autochoose_order_800xl@GOTPAGE
Lloh24:
	ldr	x11, [x11, _autochoose_order_800xl@GOTPAGEOFF]
	cmp	w1, #64
	csel	x10, x11, x10, eq
Lloh25:
	adrp	x11, _autochoose_order_600xl@GOTPAGE
Lloh26:
	ldr	x11, [x11, _autochoose_order_600xl@GOTPAGEOFF]
	cmp	w1, #16
	csel	x10, x11, x10, eq
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	x0, [x8]
	b	_AutoChooseROM
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Atari800_TV_NTSC,4,2           ; @Atari800_TV_NTSC
	.comm	_autochoose_order_800_ntsc,8,3  ; @autochoose_order_800_ntsc
	.comm	_autochoose_order_800_pal,8,3   ; @autochoose_order_800_pal
	.comm	_Atari800_builtin_game,4,2      ; @Atari800_builtin_game
	.comm	_autochoose_order_xegs,8,3      ; @autochoose_order_xegs
	.comm	_Atari800_builtin_basic,4,2     ; @Atari800_builtin_basic
	.comm	_autochoose_order_1200xl,8,3    ; @autochoose_order_1200xl
	.comm	_autochoose_order_600xl,8,3     ; @autochoose_order_600xl
	.comm	_autochoose_order_800xl,8,3     ; @autochoose_order_800xl
	.comm	_autochoose_order_xe,8,3        ; @autochoose_order_xe
	.comm	_autochoose_order_5200,8,3      ; @autochoose_order_5200
.subsections_via_symbols
