	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function UpdateYIQTableFromExternal
LCPI0_0:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x406fe00000000000              ## double 255
LCPI0_4:
	.quad	0x3fe2c8b439581062              ## double 0.58699999999999997
LCPI0_5:
	.quad	0x3fd322d0e5604189              ## double 0.29899999999999999
LCPI0_6:
	.quad	0x3fbd2f1a9fbe76c9              ## double 0.114
LCPI0_7:
	.quad	0xbfd190a350d2806b              ## double -0.274453
LCPI0_8:
	.quad	0x3fe3101b003686a5              ## double 0.59571600000000002
LCPI0_9:
	.quad	0xbfd48f92af9a8cdf              ## double -0.32126300000000002
LCPI0_10:
	.quad	0xbfe0b910c2c5e2ce              ## double -0.52259100000000003
LCPI0_11:
	.quad	0x3fcb10fd7e45803d              ## double 0.21145600000000001
LCPI0_12:
	.quad	0x3fd3e9a2c669057d              ## double 0.31113499999999999
LCPI0_13:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_14:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UpdateYIQTableFromExternal:            ## @UpdateYIQTableFromExternal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	movq	%rdi, %r15
	movq	_COLOURS_NTSC_setup@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	addsd	LCPI0_1(%rip), %xmm1
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	movq	_COLOURS_NTSC_external@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	8(%rax), %r12
	movq	_colorburst_angle@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	xorpd	LCPI0_2(%rip), %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	___sincos_stret
	movapd	-64(%rbp), %xmm2                ## 16-byte Reload
	addsd	LCPI0_1(%rip), %xmm2
	movddup	%xmm2, %xmm2                    ## xmm2 = xmm2[0,0]
	movapd	%xmm2, -96(%rbp)                ## 16-byte Spill
	movapd	%xmm1, %xmm2
	unpcklpd	%xmm0, %xmm2                    ## xmm2 = xmm2[0],xmm0[0]
	movapd	%xmm2, -112(%rbp)               ## 16-byte Spill
	unpcklpd	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movapd	%xmm0, -128(%rbp)               ## 16-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movapd	-64(%rbp), %xmm2                ## 16-byte Reload
	mulpd	-96(%rbp), %xmm2                ## 16-byte Folded Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movsd	%xmm0, (%r15,%rbx,8)
	movupd	%xmm2, 8(%r15,%rbx,8)
	addq	$3, %rbx
	cmpl	$768, %ebx                      ## imm = 0x300
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movzbl	1(%r13,%rbx), %eax
	xorps	%xmm3, %xmm3
	cvtsi2sd	%eax, %xmm3
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm0, %xmm1
	movzbl	2(%r13,%rbx), %eax
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	divsd	%xmm0, %xmm3
	divsd	%xmm0, %xmm2
	movapd	%xmm3, %xmm0
	mulsd	LCPI0_4(%rip), %xmm0
	movapd	%xmm1, %xmm4
	mulsd	LCPI0_5(%rip), %xmm4
	addsd	%xmm0, %xmm4
	movapd	%xmm2, %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	addsd	%xmm4, %xmm0
	movapd	%xmm3, %xmm4
	mulsd	LCPI0_7(%rip), %xmm4
	movapd	%xmm1, %xmm5
	mulsd	LCPI0_8(%rip), %xmm5
	addsd	%xmm4, %xmm5
	movapd	%xmm2, %xmm4
	mulsd	LCPI0_9(%rip), %xmm4
	addsd	%xmm5, %xmm4
	mulsd	LCPI0_10(%rip), %xmm3
	mulsd	LCPI0_11(%rip), %xmm1
	addsd	%xmm3, %xmm1
	mulsd	LCPI0_12(%rip), %xmm2
	addsd	%xmm1, %xmm2
	movapd	%xmm2, %xmm1
	xorpd	LCPI0_2(%rip), %xmm1
	unpcklpd	%xmm2, %xmm1                    ## xmm1 = xmm1[0],xmm2[0]
	mulpd	-128(%rbp), %xmm1               ## 16-byte Folded Reload
	movddup	%xmm4, %xmm2                    ## xmm2 = xmm4[0,0]
	mulpd	-112(%rbp), %xmm2               ## 16-byte Folded Reload
	addpd	%xmm1, %xmm2
	testq	%r12, %r12
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movapd	%xmm2, -64(%rbp)                ## 16-byte Spill
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	movsd	8(%r14), %xmm2                  ## xmm2 = mem[0],zero
	movsd	LCPI0_13(%rip), %xmm4           ## xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm2
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	addsd	%xmm3, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	16(%r14), %xmm1                 ## xmm1 = mem[0],zero
	mulsd	%xmm4, %xmm1
	addsd	%xmm2, %xmm1
	ucomisd	%xmm3, %xmm1
	movapd	%xmm3, %xmm0
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm1, %xmm0
	movapd	%xmm1, %xmm0
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm0, %xmm0
	jmp	LBB0_5
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOURS_NTSC_setup,24,3        ## @COLOURS_NTSC_setup
	.comm	_COLOURS_NTSC_external,16,3     ## @COLOURS_NTSC_external
	.comm	_colorburst_angle,8,3           ## @colorburst_angle
	.no_dead_strip	_UpdateYIQTableFromExternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateYIQTableFromExternal
_UpdateYIQTableFromExternal:            ; @UpdateYIQTableFromExternal
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	fmov	d11, d1
	mov	x19, x0
Lloh0:
	adrp	x20, _COLOURS_NTSC_setup@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COLOURS_NTSC_setup@GOTPAGEOFF]
	ldr	d1, [x20]
	fmov	d2, #-0.50000000
	fmul	d1, d1, d2
	fmov	d12, #1.00000000
	fadd	d8, d1, d12
Lloh2:
	adrp	x23, _COLOURS_NTSC_external@GOTPAGE
Lloh3:
	ldr	x23, [x23, _COLOURS_NTSC_external@GOTPAGEOFF]
	ldr	x21, [x23]
Lloh4:
	adrp	x8, _colorburst_angle@GOTPAGE
Lloh5:
	ldr	x8, [x8, _colorburst_angle@GOTPAGEOFF]
Lloh6:
	ldr	d1, [x8]
	fneg	d1, d1
	fsub	d0, d1, d0
	bl	___sincos_stret
	fmov	d9, d0
	fmov	d10, d1
	mov	x22, #0
	ldr	x23, [x23, #8]
	fadd	d11, d11, d12
	mov	x24, #34469
	movk	x24, #54, lsl #16
	movk	x24, #4123, lsl #32
	movk	x24, #16355, lsl #48
	mov	x25, #36063
	movk	x25, #44954, lsl #16
	movk	x25, #36754, lsl #32
	movk	x25, #49108, lsl #48
	mov	x26, #58062
	movk	x26, #49861, lsl #16
	movk	x26, #47376, lsl #32
	movk	x26, #49120, lsl #48
	mov	x27, #32829
	movk	x27, #32325, lsl #16
	movk	x27, #4349, lsl #32
	movk	x27, #16331, lsl #48
	fmov	d12, #0.50000000
	mov	x28, #1405
	movk	x28, #50793, lsl #16
	movk	x28, #59810, lsl #32
	movk	x28, #16339, lsl #48
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	fmul	d13, d11, d13
	fmul	d14, d11, d14
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x19, x22, lsl #3
	stp	d0, d13, [x8]
	str	d14, [x8, #16]
	add	x22, x22, #3
	cmp	w22, #768
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, x22
	ldr	b0, [x8]
	ucvtf	d0, d0
	mov	x9, #246290604621824
	movk	x9, #16495, lsl #48
	fmov	d1, x9
	fdiv	d2, d0, d1
	ldr	b0, [x8, #1]
	ucvtf	d0, d0
	fdiv	d3, d0, d1
	ldr	b0, [x8, #2]
	ucvtf	d0, d0
	fdiv	d1, d0, d1
	mov	x8, #4194
	movk	x8, #14680, lsl #16
	movk	x8, #51380, lsl #32
	movk	x8, #16354, lsl #48
	fmov	d0, x8
	fmul	d0, d3, d0
	mov	x8, #16777
	movk	x8, #58720, lsl #16
	movk	x8, #8912, lsl #32
	movk	x8, #16339, lsl #48
	fmov	d4, x8
	fmadd	d0, d2, d4, d0
	mov	x8, #30409
	movk	x8, #40894, lsl #16
	movk	x8, #12058, lsl #32
	movk	x8, #16317, lsl #48
	fmov	d4, x8
	fmadd	d0, d1, d4, d0
	mov	x8, #32875
	movk	x8, #20690, lsl #16
	movk	x8, #37027, lsl #32
	movk	x8, #49105, lsl #48
	fmov	d4, x8
	fmul	d4, d3, d4
	fmov	d5, x24
	fmadd	d4, d2, d5, d4
	fmov	d5, x25
	fmadd	d4, d1, d5, d4
	fmov	d5, x26
	fmul	d3, d3, d5
	fmov	d5, x27
	fmadd	d2, d2, d5, d3
	fmov	d3, x28
	fmadd	d5, d1, d3, d2
	fnmadd	d1, d1, d3, d2
	fmul	d1, d9, d1
	fmadd	d13, d4, d10, d1
	fmul	d1, d10, d5
	fmadd	d14, d4, d9, d1
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d1, d8
	bl	_pow
	fmov	d1, d0
	fmov	d0, #1.00000000
	ldp	d2, d3, [x20, #8]
	fmadd	d2, d2, d12, d0
	fmul	d1, d1, d2
	fmadd	d1, d3, d12, d1
	fcmp	d1, d0
	b.gt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	fcmp	d1, #0.0
	fmov	d0, d1
	b.pl	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	movi	d0, #0000000000000000
	b	LBB0_1
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOURS_NTSC_setup,24,3        ; @COLOURS_NTSC_setup
	.comm	_COLOURS_NTSC_external,16,3     ; @COLOURS_NTSC_external
	.comm	_colorburst_angle,8,3           ; @colorburst_angle
	.no_dead_strip	_UpdateYIQTableFromExternal
.subsections_via_symbols
