	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COLOURS_NTSC_Update            ## -- Begin function COLOURS_NTSC_Update
	.p2align	4, 0x90
_COLOURS_NTSC_Update:                   ## @COLOURS_NTSC_Update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	movl	$6160, %eax                     ## imm = 0x1810
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %rax
	movq	_M_PI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movq	_colorburst_angle@GOTPCREL(%rip), %rcx
	subl	(%rcx), %esi
	movl	4(%rax), %edx
	leaq	-6176(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_UpdateYIQTable
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_YIQ2RGB
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$6160, %rsp                     ## imm = 0x1810
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_colorburst_angle,4,2           ## @colorburst_angle
	.comm	_COLOURS_NTSC_setup,8,2         ## @COLOURS_NTSC_setup
	.comm	_M_PI,4,2                       ## @M_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_COLOURS_NTSC_Update            ; -- Begin function COLOURS_NTSC_Update
	.p2align	2
_COLOURS_NTSC_Update:                   ; @COLOURS_NTSC_Update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w9, #6160
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #2064
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh5:
	adrp	x8, _colorburst_angle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _colorburst_angle@GOTPAGEOFF]
Lloh7:
	adrp	x9, _COLOURS_NTSC_setup@GOTPAGE
Lloh8:
	ldr	x9, [x9, _COLOURS_NTSC_setup@GOTPAGEOFF]
Lloh9:
	adrp	x10, _M_PI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _M_PI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w10, [x10]
	neg	w8, w8
	ldp	w11, w2, [x9]
	madd	w1, w10, w11, w8
	add	x0, sp, #8
	bl	_UpdateYIQTable
	add	x1, sp, #8
	mov	x0, x19
	bl	_YIQ2RGB
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_colorburst_angle,4,2           ; @colorburst_angle
	.comm	_COLOURS_NTSC_setup,8,2         ; @COLOURS_NTSC_setup
	.comm	_M_PI,4,2                       ; @M_PI
.subsections_via_symbols
