	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_read_config
	movl	$25, %edi
	callq	__set_screen_lines
	movq	__NOCURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__setcursortype
	movq	_BACKGROUND@GOTPCREL(%rip), %rax
	movq	_TITLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_Screen
	xorl	%eax, %eax
	callq	_mainmenu
	movl	%eax, %ebx
	movl	$1, %edi
	movl	$1, %esi
	movl	$80, %edx
	movl	$25, %ecx
	callq	_window
	movl	$15, %edi
	callq	_textattr
	xorl	%eax, %eax
	callq	_clrscr
	movq	__NORMALCURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__setcursortype
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_save_config
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__NOCURSOR,4,2                  ## @_NOCURSOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Joystick configuration utility for Atari 800 emulator"

	.comm	_BACKGROUND,8,3                 ## @BACKGROUND
	.comm	_TITLE,8,3                      ## @TITLE
	.comm	__NORMALCURSOR,4,2              ## @_NORMALCURSOR
.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_read_config
	mov	w0, #25
	bl	__set_screen_lines
Lloh0:
	adrp	x8, __NOCURSOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, __NOCURSOR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	__setcursortype
Lloh3:
	adrp	x8, _BACKGROUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BACKGROUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _TITLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TITLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Screen
	bl	_mainmenu
	mov	x19, x0
	mov	w0, #1
	mov	w1, #1
	mov	w2, #80
	mov	w3, #25
	bl	_window
	mov	w0, #15
	bl	_textattr
	bl	_clrscr
Lloh11:
	adrp	x8, __NORMALCURSOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, __NORMALCURSOR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	__setcursortype
	cbz	w19, LBB0_2
; %bb.1:
	bl	_save_config
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__NOCURSOR,4,2                  ; @_NOCURSOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Joystick configuration utility for Atari 800 emulator"

	.comm	_BACKGROUND,8,3                 ; @BACKGROUND
	.comm	_TITLE,8,3                      ; @TITLE
	.comm	__NORMALCURSOR,4,2              ; @_NORMALCURSOR
.subsections_via_symbols
