	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_validate_timing          ## -- Begin function optc1_validate_timing
	.p2align	4, 0x90
_optc1_validate_timing:                 ## @optc1_validate_timing
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_DCN10TG_FROM_TG
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_ASSERT
	movq	8(%rbx), %rdx
	addq	16(%rbx), %rdx
	addq	24(%rbx), %rdx
	movq	(%rbx), %r8
	movq	40(%rbx), %rsi
	addq	48(%rbx), %rsi
	movq	32(%rbx), %r9
	addq	56(%rbx), %rsi
	movq	64(%rbx), %rcx
	movq	_TIMING_3D_FORMAT_NONE@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.1:
	movq	_TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.2:
	movq	_TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.3:
	movq	_TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.4:
	movq	_TIMING_3D_FORMAT_FRAME_ALTERNATE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.5:
	movq	_TIMING_3D_FORMAT_INBAND_FA@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_13
LBB0_6:
	movl	88(%rbx), %ecx
	cmpl	$1, %ecx
	je	LBB0_13
## %bb.7:
	cmpq	(%r14), %r9
	jg	LBB0_13
## %bb.8:
	cmpq	8(%r14), %r8
	jg	LBB0_13
## %bb.9:
	subq	%rsi, %r9
	cmpq	16(%r14), %r9
	jl	LBB0_13
## %bb.10:
	movq	72(%rbx), %rsi
	cmpq	24(%r14), %rsi
	jl	LBB0_13
## %bb.11:
	movq	80(%rbx), %rsi
	cmpq	32(%r14), %rsi
	jl	LBB0_13
## %bb.12:
	subq	%rdx, %r8
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	xorl	%eax, %eax
	cmpq	40(%r14,%rdx,8), %r8
	setge	%al
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMING_3D_FORMAT_NONE,8,3      ## @TIMING_3D_FORMAT_NONE
	.comm	_TIMING_3D_FORMAT_HW_FRAME_PACKING,8,3 ## @TIMING_3D_FORMAT_HW_FRAME_PACKING
	.comm	_TIMING_3D_FORMAT_TOP_AND_BOTTOM,8,3 ## @TIMING_3D_FORMAT_TOP_AND_BOTTOM
	.comm	_TIMING_3D_FORMAT_SIDE_BY_SIDE,8,3 ## @TIMING_3D_FORMAT_SIDE_BY_SIDE
	.comm	_TIMING_3D_FORMAT_FRAME_ALTERNATE,8,3 ## @TIMING_3D_FORMAT_FRAME_ALTERNATE
	.comm	_TIMING_3D_FORMAT_INBAND_FA,8,3 ## @TIMING_3D_FORMAT_INBAND_FA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optc1_validate_timing          ; -- Begin function optc1_validate_timing
	.p2align	2
_optc1_validate_timing:                 ; @optc1_validate_timing
	.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	x20, x1
	bl	_DCN10TG_FROM_TG
	mov	x19, x0
	cmp	x20, #0
	cset	w0, ne
	bl	_ASSERT
	ldp	x8, x9, [x20]
	ldp	x10, x11, [x20, #16]
	ldp	x12, x13, [x20, #32]
	ldp	x14, x15, [x20, #48]
	ldr	x16, [x20, #64]
Lloh0:
	adrp	x17, _TIMING_3D_FORMAT_NONE@GOTPAGE
Lloh1:
	ldr	x17, [x17, _TIMING_3D_FORMAT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x17, [x17]
	cmp	x16, x17
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x17, _TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPAGE
Lloh4:
	ldr	x17, [x17, _TIMING_3D_FORMAT_HW_FRAME_PACKING@GOTPAGEOFF]
Lloh5:
	ldr	x17, [x17]
	cmp	x16, x17
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x17, _TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPAGE
Lloh7:
	ldr	x17, [x17, _TIMING_3D_FORMAT_TOP_AND_BOTTOM@GOTPAGEOFF]
Lloh8:
	ldr	x17, [x17]
	cmp	x16, x17
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x17, _TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPAGE
Lloh10:
	ldr	x17, [x17, _TIMING_3D_FORMAT_SIDE_BY_SIDE@GOTPAGEOFF]
Lloh11:
	ldr	x17, [x17]
	cmp	x16, x17
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x17, _TIMING_3D_FORMAT_FRAME_ALTERNATE@GOTPAGE
Lloh13:
	ldr	x17, [x17, _TIMING_3D_FORMAT_FRAME_ALTERNATE@GOTPAGEOFF]
Lloh14:
	ldr	x17, [x17]
	cmp	x16, x17
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x17, _TIMING_3D_FORMAT_INBAND_FA@GOTPAGE
Lloh16:
	ldr	x17, [x17, _TIMING_3D_FORMAT_INBAND_FA@GOTPAGEOFF]
Lloh17:
	ldr	x17, [x17]
	cmp	x16, x17
	b.ne	LBB0_12
LBB0_6:
	ldr	w16, [x20, #88]
	cmp	w16, #1
	b.eq	LBB0_12
; %bb.7:
	ldr	x17, [x19]
	cmp	x12, x17
	b.gt	LBB0_12
; %bb.8:
	ldr	x17, [x19, #8]
	cmp	x8, x17
	b.gt	LBB0_12
; %bb.9:
	add	x13, x13, x14
	add	x13, x13, x15
	ldr	x14, [x19, #16]
	sub	x12, x12, x13
	cmp	x12, x14
	b.lt	LBB0_12
; %bb.10:
	ldr	x12, [x20, #72]
	ldr	x13, [x19, #24]
	cmp	x12, x13
	b.lt	LBB0_12
; %bb.11:
	ldr	x12, [x20, #80]
	ldr	x13, [x19, #32]
	cmp	x12, x13
	b.ge	LBB0_14
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
	add	x9, x9, x10
	add	x9, x9, x11
	cmp	w16, #0
	mov	w10, #40
	mov	w11, #48
	csel	x10, x11, x10, eq
	ldr	x10, [x19, x10]
	sub	x8, x8, x9
	cmp	x8, x10
	cset	w0, ge
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMING_3D_FORMAT_NONE,8,3      ; @TIMING_3D_FORMAT_NONE
	.comm	_TIMING_3D_FORMAT_HW_FRAME_PACKING,8,3 ; @TIMING_3D_FORMAT_HW_FRAME_PACKING
	.comm	_TIMING_3D_FORMAT_TOP_AND_BOTTOM,8,3 ; @TIMING_3D_FORMAT_TOP_AND_BOTTOM
	.comm	_TIMING_3D_FORMAT_SIDE_BY_SIDE,8,3 ; @TIMING_3D_FORMAT_SIDE_BY_SIDE
	.comm	_TIMING_3D_FORMAT_FRAME_ALTERNATE,8,3 ; @TIMING_3D_FORMAT_FRAME_ALTERNATE
	.comm	_TIMING_3D_FORMAT_INBAND_FA,8,3 ; @TIMING_3D_FORMAT_INBAND_FA
.subsections_via_symbols
