	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateModeDependentPointers
_UpdateModeDependentPointers:           ## @UpdateModeDependentPointers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_COLOURS_NTSC_external@GOTPCREL(%rip), %rax
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_Atari800_TV_PAL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_COLOURS_PAL_external@GOTPCREL(%rip), %rax
	movq	_COLOURS_PAL_setup@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	_Colours_setup@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_Colours_external@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_Atari800_ErrExit
	leaq	L_.str(%rip), %rdi
	callq	_Log_print
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_Atari800_TV_NTSC,4,2           ## @Atari800_TV_NTSC
	.comm	_COLOURS_NTSC_setup,4,2         ## @COLOURS_NTSC_setup
	.comm	_Colours_setup,8,3              ## @Colours_setup
	.comm	_COLOURS_NTSC_external,4,2      ## @COLOURS_NTSC_external
	.comm	_Colours_external,8,3           ## @Colours_external
	.comm	_Atari800_TV_PAL,4,2            ## @Atari800_TV_PAL
	.comm	_COLOURS_PAL_setup,4,2          ## @COLOURS_PAL_setup
	.comm	_COLOURS_PAL_external,4,2       ## @COLOURS_PAL_external
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interal error: Invalid Atari800_tv_mode\n"

	.no_dead_strip	_UpdateModeDependentPointers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateModeDependentPointers
_UpdateModeDependentPointers:           ; @UpdateModeDependentPointers
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _Atari800_TV_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Atari800_TV_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _COLOURS_NTSC_external@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COLOURS_NTSC_external@GOTPAGEOFF]
Lloh5:
	adrp	x9, _COLOURS_NTSC_setup@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COLOURS_NTSC_setup@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _Atari800_TV_PAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Atari800_TV_PAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _COLOURS_PAL_external@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COLOURS_PAL_external@GOTPAGEOFF]
Lloh12:
	adrp	x9, _COLOURS_PAL_setup@GOTPAGE
Lloh13:
	ldr	x9, [x9, _COLOURS_PAL_setup@GOTPAGEOFF]
LBB0_4:
Lloh14:
	adrp	x10, _Colours_setup@GOTPAGE
Lloh15:
	ldr	x10, [x10, _Colours_setup@GOTPAGEOFF]
Lloh16:
	str	x9, [x10]
Lloh17:
	adrp	x9, _Colours_external@GOTPAGE
Lloh18:
	ldr	x9, [x9, _Colours_external@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_Atari800_ErrExit
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_print
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_Atari800_TV_NTSC,4,2           ; @Atari800_TV_NTSC
	.comm	_COLOURS_NTSC_setup,4,2         ; @COLOURS_NTSC_setup
	.comm	_Colours_setup,8,3              ; @Colours_setup
	.comm	_COLOURS_NTSC_external,4,2      ; @COLOURS_NTSC_external
	.comm	_Colours_external,8,3           ; @Colours_external
	.comm	_Atari800_TV_PAL,4,2            ; @Atari800_TV_PAL
	.comm	_COLOURS_PAL_setup,4,2          ; @COLOURS_PAL_setup
	.comm	_COLOURS_PAL_external,4,2       ; @COLOURS_PAL_external
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interal error: Invalid Atari800_tv_mode\n"

	.no_dead_strip	_UpdateModeDependentPointers
.subsections_via_symbols
