	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvout_vip_set_color_order
_tvout_vip_set_color_order:             ## @tvout_vip_set_color_order
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_tvout_read
	movq	_TVO_VIP_REORDER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TVO_VIP_REORDER_R_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r8b
	movl	%esi, %edi
	movl	%r8d, %ecx
	shll	%cl, %edi
	movq	_TVO_VIP_REORDER_G_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r9b
	movl	%esi, %edx
	movl	%r9d, %ecx
	shll	%cl, %edx
	movq	_TVO_VIP_REORDER_B_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r10b
	movl	%r10d, %ecx
	shll	%cl, %esi
	orl	%edi, %edx
	movl	%r8d, %ecx
	shll	%cl, %r13d
	orl	%edx, %esi
	movl	%r9d, %ecx
	shll	%cl, %r12d
	notl	%esi
	movl	%r10d, %ecx
	shll	%cl, %ebx
	andl	%eax, %esi
	orl	%r13d, %r12d
	orl	%r12d, %ebx
	orl	%esi, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tvout_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TVO_VIP_REORDER_MASK,4,2       ## @TVO_VIP_REORDER_MASK
	.comm	_TVO_VIP_REORDER_R_SHIFT,4,2    ## @TVO_VIP_REORDER_R_SHIFT
	.comm	_TVO_VIP_REORDER_G_SHIFT,4,2    ## @TVO_VIP_REORDER_G_SHIFT
	.comm	_TVO_VIP_REORDER_B_SHIFT,4,2    ## @TVO_VIP_REORDER_B_SHIFT
	.no_dead_strip	_tvout_vip_set_color_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvout_vip_set_color_order
_tvout_vip_set_color_order:             ; @tvout_vip_set_color_order
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_tvout_read
Lloh0:
	adrp	x8, _TVO_VIP_REORDER_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVO_VIP_REORDER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TVO_VIP_REORDER_R_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TVO_VIP_REORDER_R_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w10, w8, w9
Lloh6:
	adrp	x11, _TVO_VIP_REORDER_G_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TVO_VIP_REORDER_G_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	lsl	w12, w8, w11
	orr	w10, w12, w10
Lloh9:
	adrp	x12, _TVO_VIP_REORDER_B_SHIFT@GOTPAGE
Lloh10:
	ldr	x12, [x12, _TVO_VIP_REORDER_B_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	lsl	w8, w8, w12
	orr	w8, w10, w8
	bic	w8, w0, w8
	lsl	w9, w21, w9
	lsl	w10, w20, w11
	lsl	w11, w19, w12
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w1, w9, w8
	mov	x0, x23
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tvout_write
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TVO_VIP_REORDER_MASK,4,2       ; @TVO_VIP_REORDER_MASK
	.comm	_TVO_VIP_REORDER_R_SHIFT,4,2    ; @TVO_VIP_REORDER_R_SHIFT
	.comm	_TVO_VIP_REORDER_G_SHIFT,4,2    ; @TVO_VIP_REORDER_G_SHIFT
	.comm	_TVO_VIP_REORDER_B_SHIFT,4,2    ; @TVO_VIP_REORDER_B_SHIFT
	.no_dead_strip	_tvout_vip_set_color_order
.subsections_via_symbols
