	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLATFORM_Initialise            ## -- Begin function PLATFORM_Initialise
	.p2align	4, 0x90
_PLATFORM_Initialise:                   ## @PLATFORM_Initialise
	.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
	movq	%rdi, %r14
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, (%rdi)
	jl	LBB0_17
## %bb.1:
	movq	%rsi, %rbx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r12d
	leaq	L_.str(%rip), %r15
	movq	_curses_mode@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSES_LEFT@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.6(%rip), %rdi
	callq	_Log_print
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSES_CENTRAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSES_RIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSES_WIDE_1@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CURSES_WIDE_2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_initscr
	xorl	%eax, %eax
	callq	_noecho
	xorl	%eax, %eax
	callq	_cbreak
	movq	_stdscr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_keypad
	xorl	%edi, %edi
	callq	_curs_set
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_nodelay
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-left"

	.comm	_CURSES_LEFT,4,2                ## @CURSES_LEFT
	.comm	_curses_mode,4,2                ## @curses_mode
L_.str.1:                               ## @.str.1
	.asciz	"-central"

	.comm	_CURSES_CENTRAL,4,2             ## @CURSES_CENTRAL
L_.str.2:                               ## @.str.2
	.asciz	"-right"

	.comm	_CURSES_RIGHT,4,2               ## @CURSES_RIGHT
L_.str.3:                               ## @.str.3
	.asciz	"-wide1"

	.comm	_CURSES_WIDE_1,4,2              ## @CURSES_WIDE_1
L_.str.4:                               ## @.str.4
	.asciz	"-wide2"

	.comm	_CURSES_WIDE_2,4,2              ## @CURSES_WIDE_2
L_.str.5:                               ## @.str.5
	.asciz	"-help"

L_.str.6:                               ## @.str.6
	.asciz	"\t-central         Center emulated screen\n\t-left            Align left\n\t-right           Align right (on 80 columns)\n\t-wide1           Use 80 columns\n\t-wide2           Use 80 columns, display twice"

	.comm	_stdscr,4,2                     ## @stdscr
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PLATFORM_Initialise            ; -- Begin function PLATFORM_Initialise
	.p2align	2
_PLATFORM_Initialise:                   ; @PLATFORM_Initialise
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _CURSES_LEFT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CURSES_LEFT@GOTPAGEOFF]
Lloh4:
	adrp	x27, _curses_mode@GOTPAGE
Lloh5:
	ldr	x27, [x27, _curses_mode@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh10:
	adrp	x24, l_.str.3@PAGE
Lloh11:
	add	x24, x24, l_.str.3@PAGEOFF
	mov	w26, #1
	mov	w25, #1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x27]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x26, lsl #3]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x26, lsl #3]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x26, lsl #3]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x26, lsl #3]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x26, lsl #3]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x26, lsl #3]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Log_print
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, x26, lsl #3]
	str	x8, [x20, w25, sxtw #3]
	add	w25, w25, #1
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x8, _CURSES_CENTRAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CURSES_CENTRAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x8, _CURSES_RIGHT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CURSES_RIGHT@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x8, _CURSES_WIDE_1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CURSES_WIDE_1@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x8, _CURSES_WIDE_2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CURSES_WIDE_2@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	b	LBB0_3
LBB0_18:
	mov	w25, #1
LBB0_19:
	str	w25, [x19]
	bl	_initscr
	bl	_noecho
	bl	_cbreak
Lloh26:
	adrp	x19, _stdscr@GOTPAGE
Lloh27:
	ldr	x19, [x19, _stdscr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh28:
	adrp	x20, _TRUE@GOTPAGE
Lloh29:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_keypad
	mov	w0, #0
	bl	_curs_set
	ldr	w0, [x19]
	mov	w1, #1
	bl	_nodelay
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-left"

	.comm	_CURSES_LEFT,4,2                ; @CURSES_LEFT
	.comm	_curses_mode,4,2                ; @curses_mode
l_.str.1:                               ; @.str.1
	.asciz	"-central"

	.comm	_CURSES_CENTRAL,4,2             ; @CURSES_CENTRAL
l_.str.2:                               ; @.str.2
	.asciz	"-right"

	.comm	_CURSES_RIGHT,4,2               ; @CURSES_RIGHT
l_.str.3:                               ; @.str.3
	.asciz	"-wide1"

	.comm	_CURSES_WIDE_1,4,2              ; @CURSES_WIDE_1
l_.str.4:                               ; @.str.4
	.asciz	"-wide2"

	.comm	_CURSES_WIDE_2,4,2              ; @CURSES_WIDE_2
l_.str.5:                               ; @.str.5
	.asciz	"-help"

l_.str.6:                               ; @.str.6
	.asciz	"\t-central         Center emulated screen\n\t-left            Align left\n\t-right           Align right (on 80 columns)\n\t-wide1           Use 80 columns\n\t-wide2           Use 80 columns, display twice"

	.comm	_stdscr,4,2                     ; @stdscr
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
