	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Screen_Initialise              ## -- Begin function Screen_Initialise
	.p2align	4, 0x90
_Screen_Initialise:                     ## @Screen_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	movl	$1, %ecx
	cmpl	$2, %r12d
	jl	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r14
	movq	(%r15,%r14,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%r14,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%r14,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%r14,8), %rax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, (%r15,%rcx,8)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r14
	leal	1(%r13), %ebx
	cmpl	%r12d, %ebx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	movq	(%r15,%rax,8), %rdi
	callq	_Screen_SetScreenshotFilenamePattern
	movl	%ebx, %r13d
	movq	%r14, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Screen_show_atari_speed@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	cmpl	%r12d, %r13d
	jge	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %rbx
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movslq	%r13d, %rax
	movq	(%r15,%rax,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	jmp	LBB0_20
LBB0_15:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testl	%edx, %edx
	jne	LBB0_20
## %bb.17:
	movq	%rbx, %r12
	movq	_Screen_atari@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_19
## %bb.18:
	movq	_Screen_HEIGHT@GOTPCREL(%rip), %r14
	movq	_Screen_WIDTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	imull	(%r14), %edi
	callq	_Util_malloc
	movq	%rax, (%rbx)
	movl	(%r15), %edx
	imull	(%r14), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_19:
	movq	%r12, %rbx
LBB0_20:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-screenshots"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"-showspeed"

	.comm	_Screen_show_atari_speed,4,2    ## @Screen_show_atari_speed
L_.str.2:                               ## @.str.2
	.asciz	"-help"

L_.str.3:                               ## @.str.3
	.asciz	"\t-screenshots <p> Set filename pattern for screenshots"

L_.str.4:                               ## @.str.4
	.asciz	"\t-showspeed       Show percentage of actual speed"

L_.str.5:                               ## @.str.5
	.asciz	"Missing argument for '%s'"

	.comm	_Screen_atari,8,3               ## @Screen_atari
	.comm	_Screen_HEIGHT,4,2              ## @Screen_HEIGHT
	.comm	_Screen_WIDTH,4,2               ## @Screen_WIDTH
	.comm	_Screen_atari1,8,3              ## @Screen_atari1
	.comm	_Screen_atari2,8,3              ## @Screen_atari2
	.comm	_Screen_atari_b,8,3             ## @Screen_atari_b
	.comm	_Screen_dirty,8,3               ## @Screen_dirty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Screen_Initialise              ; -- Begin function Screen_Initialise
	.p2align	2
_Screen_Initialise:                     ; @Screen_Initialise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x28, _FALSE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _FALSE@GOTPAGEOFF]
	ldr	w26, [x28]
	ldr	w25, [x0]
	cmp	w25, #2
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	w27, #1
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x24, w23
	ldr	x0, [x20, w23, sxtw #3]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x24, lsl #3]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x24, lsl #3]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Log_print
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Log_print
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, x24, lsl #3]
	str	x8, [x20, w27, sxtw #3]
	add	w27, w27, #1
	cbz	w26, LBB0_11
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	cmp	w24, w25
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x24, lsl #3]
	bl	_Screen_SetScreenshotFilenamePattern
	mov	x23, x24
	cbz	w26, LBB0_11
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh15:
	adrp	x8, _TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _Screen_show_atari_speed@GOTPAGE
Lloh19:
	ldr	x9, [x9, _Screen_show_atari_speed@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	cbz	w26, LBB0_11
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
	cbnz	w26, LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w25, [x19]
	cmp	w23, w25
	b.ge	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w26, [x28]
	b	LBB0_2
LBB0_13:
	mov	w27, #1
	b	LBB0_16
LBB0_14:
	ldr	x8, [x20, w23, sxtw #3]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Log_print
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
LBB0_16:
	str	w27, [x19]
Lloh28:
	adrp	x19, _Screen_atari@GOTPAGE
Lloh29:
	ldr	x19, [x19, _Screen_atari@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	w26, #0
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_18
; %bb.17:
Lloh30:
	adrp	x20, _Screen_HEIGHT@GOTPAGE
Lloh31:
	ldr	x20, [x20, _Screen_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh32:
	adrp	x21, _Screen_WIDTH@GOTPAGE
Lloh33:
	ldr	x21, [x21, _Screen_WIDTH@GOTPAGEOFF]
	ldr	w9, [x21]
	mul	w0, w9, w8
	bl	_Util_malloc
	str	x0, [x19]
	ldr	w8, [x20]
	ldr	w9, [x21]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
LBB0_18:
Lloh34:
	adrp	x8, _TRUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-screenshots"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"-showspeed"

	.comm	_Screen_show_atari_speed,4,2    ; @Screen_show_atari_speed
l_.str.2:                               ; @.str.2
	.asciz	"-help"

l_.str.3:                               ; @.str.3
	.asciz	"\t-screenshots <p> Set filename pattern for screenshots"

l_.str.4:                               ; @.str.4
	.asciz	"\t-showspeed       Show percentage of actual speed"

l_.str.5:                               ; @.str.5
	.asciz	"Missing argument for '%s'"

	.comm	_Screen_atari,8,3               ; @Screen_atari
	.comm	_Screen_HEIGHT,4,2              ; @Screen_HEIGHT
	.comm	_Screen_WIDTH,4,2               ; @Screen_WIDTH
	.comm	_Screen_atari1,8,3              ; @Screen_atari1
	.comm	_Screen_atari2,8,3              ; @Screen_atari2
	.comm	_Screen_atari_b,8,3             ; @Screen_atari_b
	.comm	_Screen_dirty,8,3               ; @Screen_dirty
.subsections_via_symbols
