	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COLOURS_NTSC_Initialise        ## -- Begin function COLOURS_NTSC_Initialise
	.p2align	4, 0x90
_COLOURS_NTSC_Initialise:               ## @COLOURS_NTSC_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	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r12d
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %r12d
	jl	LBB0_34
## %bb.1:
	movq	%rsi, %rbx
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r15), %r13d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%r15d, %r14
	movq	(%rbx,%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	(%rbx,%r14,8), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r14,8), %rax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %rcx
	incl	%edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, 40(%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, 32(%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, 24(%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, 8(%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_atof
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	%r13d, %r15d
	jmp	LBB0_30
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r13d
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_COLOURS_NTSC_external@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movslq	%r13d, %rax
	movq	(%rbx,%rax,8), %rsi
	movl	$8, %edx
	callq	_Util_strlcpy
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	%r13d, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_33
	jmp	LBB0_32
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_COLOURS_NTSC_external@GOTPCREL(%rip), %rcx
	movl	%eax, 12(%rcx)
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	cmpl	%r12d, %r15d
	jl	LBB0_2
LBB0_34:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_COLOURS_NTSC_external@GOTPCREL(%rip), %rbx
	cmpl	$0, 8(%rbx)
	je	LBB0_35
## %bb.36:
	movq	%rbx, %rdi
	callq	_COLOURS_EXTERNAL_Read
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jne	LBB0_39
## %bb.37:
	leaq	L_.str.18(%rip), %rdi
	jmp	LBB0_38
LBB0_35:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_39
LBB0_32:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,8), %rbx
	leaq	L_.str.17(%rip), %rdi
LBB0_38:
	movq	(%rbx), %rsi
	xorl	%eax, %eax
	callq	_Log_print
LBB0_39:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %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	"-ntsc-saturation"

	.comm	_COLOURS_NTSC_setup,48,3        ## @COLOURS_NTSC_setup
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"-ntsc-contrast"

L_.str.2:                               ## @.str.2
	.asciz	"-ntsc-brightness"

L_.str.3:                               ## @.str.3
	.asciz	"-ntsc-gamma"

L_.str.4:                               ## @.str.4
	.asciz	"-ntsc-tint"

L_.str.5:                               ## @.str.5
	.asciz	"-ntsc-colordelay"

L_.str.6:                               ## @.str.6
	.asciz	"-paletten"

	.comm	_COLOURS_NTSC_external,16,3     ## @COLOURS_NTSC_external
L_.str.7:                               ## @.str.7
	.asciz	"-paletten-adjust"

L_.str.8:                               ## @.str.8
	.asciz	"-help"

L_.str.9:                               ## @.str.9
	.asciz	"\t-ntsc-saturation <num>  Set NTSC color saturation"

L_.str.10:                              ## @.str.10
	.asciz	"\t-ntsc-contrast <num>    Set NTSC contrast"

L_.str.11:                              ## @.str.11
	.asciz	"\t-ntsc-brightness <num>  Set NTSC brightness"

L_.str.12:                              ## @.str.12
	.asciz	"\t-ntsc-gamma <num>       Set NTSC color gamma factor"

L_.str.13:                              ## @.str.13
	.asciz	"\t-ntsc-tint <num>        Set NTSC tint"

L_.str.14:                              ## @.str.14
	.asciz	"\t-ntsc-colordelay <num>  Set NTSC GTIA color delay"

L_.str.15:                              ## @.str.15
	.asciz	"\t-paletten <filename>    Load NTSC external palette"

L_.str.16:                              ## @.str.16
	.asciz	"\t-paletten-adjust        Apply adjustments to NTSC external palette"

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

L_.str.18:                              ## @.str.18
	.asciz	"Cannot read NTSC palette from %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COLOURS_NTSC_Initialise        ; -- Begin function COLOURS_NTSC_Initialise
	.p2align	2
_COLOURS_NTSC_Initialise:               ; @COLOURS_NTSC_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
	ldr	w28, [x0]
	cmp	w28, #2
	b.lt	LBB0_31
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x26, _FALSE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x27, w23
	add	x25, x27, #1
	ldr	w24, [x26]
	ldr	x0, [x20, w23, sxtw #3]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x27, lsl #3]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_Log_print
Lloh22:
	adrp	x0, l_.str.10@PAGE
Lloh23:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_Log_print
Lloh24:
	adrp	x0, l_.str.11@PAGE
Lloh25:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_Log_print
Lloh26:
	adrp	x0, l_.str.12@PAGE
Lloh27:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_Log_print
Lloh28:
	adrp	x0, l_.str.13@PAGE
Lloh29:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_Log_print
Lloh30:
	adrp	x0, l_.str.14@PAGE
Lloh31:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_Log_print
Lloh32:
	adrp	x0, l_.str.15@PAGE
Lloh33:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_Log_print
Lloh34:
	adrp	x0, l_.str.16@PAGE
Lloh35:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_Log_print
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, x27, lsl #3]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	str	x8, [x20, w9, sxtw #3]
	add	w8, w9, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, x25, lsl #3]
	bl	_atof
Lloh36:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh37:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh38:
	str	x0, [x8, #40]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atof
Lloh39:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh40:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh41:
	str	x0, [x8, #32]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atof
Lloh42:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh43:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh44:
	str	x0, [x8, #24]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atof
Lloh45:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh46:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh47:
	str	x0, [x8, #16]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atof
Lloh48:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh49:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh50:
	str	x0, [x8, #8]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, w25, sxtw #3]
	bl	_atof
Lloh51:
	adrp	x8, _COLOURS_NTSC_setup@GOTPAGE
Lloh52:
	ldr	x8, [x8, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh53:
	str	x0, [x8]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w28
	b.ge	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh54:
	adrp	x23, _COLOURS_NTSC_external@GOTPAGE
Lloh55:
	ldr	x23, [x23, _COLOURS_NTSC_external@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x1, [x20, w25, sxtw #3]
	mov	w2, #8
	bl	_Util_strlcpy
Lloh56:
	adrp	x8, _TRUE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	mov	x23, x25
	cbz	w24, LBB0_28
	b	LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh59:
	adrp	x8, _TRUE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh61:
	ldr	w24, [x8]
	cbnz	w24, LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w28, [x19]
	cmp	w23, w28
	b.lt	LBB0_2
	b	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh62:
	adrp	x8, _TRUE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _COLOURS_NTSC_external@GOTPAGE
Lloh66:
	ldr	x9, [x9, _COLOURS_NTSC_external@GOTPAGEOFF]
Lloh67:
	str	w8, [x9, #12]
	cbz	w24, LBB0_28
LBB0_30:
	add	x19, x20, w23, sxtw #3
Lloh68:
	adrp	x20, _FALSE@GOTPAGE
Lloh69:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
Lloh70:
	adrp	x0, l_.str.17@PAGE
Lloh71:
	add	x0, x0, l_.str.17@PAGEOFF
	b	LBB0_35
LBB0_31:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_32:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x19]
Lloh72:
	adrp	x8, _COLOURS_NTSC_external@GOTPAGE
Lloh73:
	ldr	x8, [x8, _COLOURS_NTSC_external@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_36
; %bb.33:
Lloh75:
	adrp	x19, _COLOURS_NTSC_external@GOTPAGE
Lloh76:
	ldr	x19, [x19, _COLOURS_NTSC_external@GOTPAGEOFF]
	mov	x0, x19
	bl	_COLOURS_EXTERNAL_Read
Lloh77:
	adrp	x20, _TRUE@GOTPAGE
Lloh78:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	cbnz	w0, LBB0_37
; %bb.34:
Lloh79:
	adrp	x0, l_.str.18@PAGE
Lloh80:
	add	x0, x0, l_.str.18@PAGEOFF
LBB0_35:
	ldr	x8, [x19]
	str	x8, [sp]
	bl	_Log_print
	b	LBB0_37
LBB0_36:
Lloh81:
	adrp	x20, _TRUE@GOTPAGE
Lloh82:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
LBB0_37:
	ldr	w0, [x20]
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-ntsc-saturation"

	.comm	_COLOURS_NTSC_setup,48,3        ; @COLOURS_NTSC_setup
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"-ntsc-contrast"

l_.str.2:                               ; @.str.2
	.asciz	"-ntsc-brightness"

l_.str.3:                               ; @.str.3
	.asciz	"-ntsc-gamma"

l_.str.4:                               ; @.str.4
	.asciz	"-ntsc-tint"

l_.str.5:                               ; @.str.5
	.asciz	"-ntsc-colordelay"

l_.str.6:                               ; @.str.6
	.asciz	"-paletten"

	.comm	_COLOURS_NTSC_external,16,3     ; @COLOURS_NTSC_external
l_.str.7:                               ; @.str.7
	.asciz	"-paletten-adjust"

l_.str.8:                               ; @.str.8
	.asciz	"-help"

l_.str.9:                               ; @.str.9
	.asciz	"\t-ntsc-saturation <num>  Set NTSC color saturation"

l_.str.10:                              ; @.str.10
	.asciz	"\t-ntsc-contrast <num>    Set NTSC contrast"

l_.str.11:                              ; @.str.11
	.asciz	"\t-ntsc-brightness <num>  Set NTSC brightness"

l_.str.12:                              ; @.str.12
	.asciz	"\t-ntsc-gamma <num>       Set NTSC color gamma factor"

l_.str.13:                              ; @.str.13
	.asciz	"\t-ntsc-tint <num>        Set NTSC tint"

l_.str.14:                              ; @.str.14
	.asciz	"\t-ntsc-colordelay <num>  Set NTSC GTIA color delay"

l_.str.15:                              ; @.str.15
	.asciz	"\t-paletten <filename>    Load NTSC external palette"

l_.str.16:                              ; @.str.16
	.asciz	"\t-paletten-adjust        Apply adjustments to NTSC external palette"

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

l_.str.18:                              ; @.str.18
	.asciz	"Cannot read NTSC palette from %s"

.subsections_via_symbols
