	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -44(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_Atari800_Initialise
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_INPUT_key_code@GOTPCREL(%rip), %r14
	movq	_menu_consol@GOTPCREL(%rip), %rbx
	movq	_INPUT_CONSOL_NONE@GOTPCREL(%rip), %r15
	movq	_INPUT_key_consol@GOTPCREL(%rip), %r13
	movq	_Atari800_display_screen@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_PLATFORM_Keyboard
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_keyboard_consol@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%r13)
	movq	%rcx, (%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_Atari_Mouse
	xorl	%eax, %eax
	callq	_Atari800_Frame
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_PLATFORM_DisplayScreen
	jmp	LBB0_2
LBB0_7:
	movl	$3, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_key_code,4,2             ## @INPUT_key_code
	.comm	_menu_consol,8,3                ## @menu_consol
	.comm	_INPUT_CONSOL_NONE,8,3          ## @INPUT_CONSOL_NONE
	.comm	_INPUT_key_consol,8,3           ## @INPUT_key_consol
	.comm	_keyboard_consol,8,3            ## @keyboard_consol
	.comm	_Atari800_display_screen,8,3    ## @Atari800_display_screen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	w0, [sp, #12]
	add	x0, sp, #12
	bl	_Atari800_Initialise
	cbz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x19, _INPUT_key_code@GOTPAGE
Lloh1:
	ldr	x19, [x19, _INPUT_key_code@GOTPAGEOFF]
Lloh2:
	adrp	x20, _menu_consol@GOTPAGE
Lloh3:
	ldr	x20, [x20, _menu_consol@GOTPAGEOFF]
Lloh4:
	adrp	x21, _INPUT_CONSOL_NONE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _INPUT_CONSOL_NONE@GOTPAGEOFF]
Lloh6:
	adrp	x22, _keyboard_consol@GOTPAGE
Lloh7:
	ldr	x22, [x22, _keyboard_consol@GOTPAGEOFF]
Lloh8:
	adrp	x23, _INPUT_key_consol@GOTPAGE
Lloh9:
	ldr	x23, [x23, _INPUT_key_consol@GOTPAGEOFF]
Lloh10:
	adrp	x24, _Atari800_display_screen@GOTPAGE
Lloh11:
	ldr	x24, [x24, _Atari800_display_screen@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_PLATFORM_Keyboard
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	str	x8, [x23]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [x23]
	str	x9, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_Atari_Mouse
	bl	_Atari800_Frame
	ldr	x8, [x24]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_PLATFORM_DisplayScreen
	b	LBB0_2
LBB0_7:
	mov	w0, #3
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_key_code,4,2             ; @INPUT_key_code
	.comm	_menu_consol,8,3                ; @menu_consol
	.comm	_INPUT_CONSOL_NONE,8,3          ; @INPUT_CONSOL_NONE
	.comm	_INPUT_key_consol,8,3           ; @INPUT_key_consol
	.comm	_keyboard_consol,8,3            ; @keyboard_consol
	.comm	_Atari800_display_screen,8,3    ; @Atari800_display_screen
.subsections_via_symbols
