	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, -20(%rbp)
	xorl	%eax, %eax
	callq	_loadModules
	leaq	-20(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_Atari800_Initialise
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_INPUT_key_code@GOTPCREL(%rip), %r14
	movq	_Atari800_display_screen@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_PLATFORM_Keyboard
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_Atari800_Frame
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_PLATFORM_DisplayScreen
	jmp	LBB0_2
LBB0_4:
	movl	$3, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_key_code,4,2             ## @INPUT_key_code
	.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	w0, [sp, #12]
	bl	_loadModules
	add	x0, sp, #12
	mov	x1, x19
	bl	_Atari800_Initialise
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x19, _INPUT_key_code@GOTPAGE
Lloh1:
	ldr	x19, [x19, _INPUT_key_code@GOTPAGEOFF]
Lloh2:
	adrp	x20, _Atari800_display_screen@GOTPAGE
Lloh3:
	ldr	x20, [x20, _Atari800_display_screen@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_PLATFORM_Keyboard
	str	w0, [x19]
	bl	_Atari800_Frame
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_PLATFORM_DisplayScreen
	b	LBB0_2
LBB0_4:
	mov	w0, #3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_key_code,4,2             ; @INPUT_key_code
	.comm	_Atari800_display_screen,8,3    ; @Atari800_display_screen
.subsections_via_symbols
