	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdatePalette
_UpdatePalette:                         ## @UpdatePalette
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Colours_external@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_2:
	movq	_Atari800_tv_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rcx
	movq	_Colours_table@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	popq	%rbp
	jmp	_COLOURS_NTSC_Update            ## TAILCALL
LBB0_3:
	popq	%rbp
	jmp	_COLOURS_PAL_Update             ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_CopyExternalWithoutAdjustments ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Colours_external,8,3           ## @Colours_external
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ## @Atari800_TV_NTSC
	.comm	_Colours_table,4,2              ## @Colours_table
	.no_dead_strip	_UpdatePalette
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdatePalette
_UpdatePalette:                         ; @UpdatePalette
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Colours_external@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Colours_external@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _Atari800_tv_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Atari800_tv_mode@GOTPAGEOFF]
Lloh5:
	adrp	x9, _Atari800_TV_NTSC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _Atari800_TV_NTSC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _Colours_table@GOTPAGE
Lloh10:
	ldr	x10, [x10, _Colours_table@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x10]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	b	_COLOURS_NTSC_Update
LBB0_4:
	b	_COLOURS_PAL_Update
LBB0_5:
	b	_CopyExternalWithoutAdjustments
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Colours_external,8,3           ; @Colours_external
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ; @Atari800_TV_NTSC
	.comm	_Colours_table,4,2              ; @Colours_table
	.no_dead_strip	_UpdatePalette
.subsections_via_symbols
