	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvout_preformatter_set_matrix
_tvout_preformatter_set_matrix:         ## @tvout_preformatter_set_matrix
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_TVO_MIN_HD_HEIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	_rgb_to_ycbcr_601@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_rgb_to_ycbcr_709@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movl	(%rbx), %esi
	movq	_TVO_CSC_MAIN_M0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	(%rbx), %esi
	movq	_TVO_CSC_AUX_M0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	4(%rbx), %esi
	movq	(%r12), %rdx
	addq	$4, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	4(%rbx), %esi
	movq	(%r15), %rdx
	addq	$4, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	8(%rbx), %esi
	movq	(%r12), %rdx
	addq	$8, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	8(%rbx), %esi
	movq	(%r15), %rdx
	addq	$8, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	12(%rbx), %esi
	movq	(%r12), %rdx
	addq	$12, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	12(%rbx), %esi
	movq	(%r15), %rdx
	addq	$12, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	16(%rbx), %esi
	movq	(%r12), %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	16(%rbx), %esi
	movq	(%r15), %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	20(%rbx), %esi
	movq	(%r12), %rdx
	addq	$20, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	20(%rbx), %esi
	movq	(%r15), %rdx
	addq	$20, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	24(%rbx), %esi
	movq	(%r12), %rdx
	addq	$24, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	24(%rbx), %esi
	movq	(%r15), %rdx
	addq	$24, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	28(%rbx), %esi
	movq	(%r12), %rdx
	addq	$28, %rdx
	movq	%r14, %rdi
	callq	_tvout_write
	movl	28(%rbx), %esi
	movq	(%r15), %rdx
	addq	$28, %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tvout_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TVO_MIN_HD_HEIGHT,8,3          ## @TVO_MIN_HD_HEIGHT
	.comm	_rgb_to_ycbcr_709,8,3           ## @rgb_to_ycbcr_709
	.comm	_rgb_to_ycbcr_601,8,3           ## @rgb_to_ycbcr_601
	.comm	_TVO_CSC_MAIN_M0,8,3            ## @TVO_CSC_MAIN_M0
	.comm	_TVO_CSC_AUX_M0,8,3             ## @TVO_CSC_AUX_M0
	.no_dead_strip	_tvout_preformatter_set_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvout_preformatter_set_matrix
_tvout_preformatter_set_matrix:         ; @tvout_preformatter_set_matrix
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TVO_MIN_HD_HEIGHT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TVO_MIN_HD_HEIGHT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _rgb_to_ycbcr_601@GOTPAGE
Lloh4:
	ldr	x10, [x10, _rgb_to_ycbcr_601@GOTPAGEOFF]
Lloh5:
	adrp	x11, _rgb_to_ycbcr_709@GOTPAGE
Lloh6:
	ldr	x11, [x11, _rgb_to_ycbcr_709@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, lt
	ldr	x20, [x8]
	ldr	w1, [x20]
Lloh7:
	adrp	x21, _TVO_CSC_MAIN_M0@GOTPAGE
Lloh8:
	ldr	x21, [x21, _TVO_CSC_MAIN_M0@GOTPAGEOFF]
	ldr	x2, [x21]
	bl	_tvout_write
	ldr	w1, [x20]
Lloh9:
	adrp	x22, _TVO_CSC_AUX_M0@GOTPAGE
Lloh10:
	ldr	x22, [x22, _TVO_CSC_AUX_M0@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #4]
	ldr	x8, [x21]
	add	x2, x8, #4
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #4]
	ldr	x8, [x22]
	add	x2, x8, #4
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #8]
	ldr	x8, [x21]
	add	x2, x8, #8
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #8]
	ldr	x8, [x22]
	add	x2, x8, #8
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #12]
	ldr	x8, [x21]
	add	x2, x8, #12
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #12]
	ldr	x8, [x22]
	add	x2, x8, #12
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #16]
	ldr	x8, [x21]
	add	x2, x8, #16
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #16]
	ldr	x8, [x22]
	add	x2, x8, #16
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #20]
	ldr	x8, [x21]
	add	x2, x8, #20
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #20]
	ldr	x8, [x22]
	add	x2, x8, #20
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #24]
	ldr	x8, [x21]
	add	x2, x8, #24
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #24]
	ldr	x8, [x22]
	add	x2, x8, #24
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #28]
	ldr	x8, [x21]
	add	x2, x8, #28
	mov	x0, x19
	bl	_tvout_write
	ldr	w1, [x20, #28]
	ldr	x8, [x22]
	add	x2, x8, #28
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tvout_write
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TVO_MIN_HD_HEIGHT,8,3          ; @TVO_MIN_HD_HEIGHT
	.comm	_rgb_to_ycbcr_709,8,3           ; @rgb_to_ycbcr_709
	.comm	_rgb_to_ycbcr_601,8,3           ; @rgb_to_ycbcr_601
	.comm	_TVO_CSC_MAIN_M0,8,3            ; @TVO_CSC_MAIN_M0
	.comm	_TVO_CSC_AUX_M0,8,3             ; @TVO_CSC_AUX_M0
	.no_dead_strip	_tvout_preformatter_set_matrix
.subsections_via_symbols
