	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_cvt_gtf_timings
_valid_cvt_gtf_timings:                 ## @valid_cvt_gtf_timings
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_vivid_dv_timings_cap@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_valid_dv_timings
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_WIDTH
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_HEIGHT
	movl	%eax, %r14d
	movl	(%rbx), %ecx
	movl	24(%rbx), %eax
	cltd
	idivl	%r15d
	movl	%eax, %r15d
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movq	_V4L2_DV_BT_STD_CVT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_3:
	movl	12(%rbx), %edx
	movl	20(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r8d
	movq	%rbx, (%rsp)
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_v4l2_detect_cvt
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
LBB0_5:
	movq	_V4L2_DV_BT_STD_GTF@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_7
LBB0_6:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	callq	_find_aspect_ratio
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	-40(%rbp), %r9
	movq	%rbx, (%rsp)
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_v4l2_detect_gtf
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vivid_dv_timings_cap,4,2       ## @vivid_dv_timings_cap
	.comm	_V4L2_DV_BT_STD_CVT,4,2         ## @V4L2_DV_BT_STD_CVT
	.comm	_V4L2_DV_BT_STD_GTF,4,2         ## @V4L2_DV_BT_STD_GTF
	.no_dead_strip	_valid_cvt_gtf_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_cvt_gtf_timings
_valid_cvt_gtf_timings:                 ; @valid_cvt_gtf_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, _vivid_dv_timings_cap@GOTPAGE
Lloh1:
	ldr	x1, [x1, _vivid_dv_timings_cap@GOTPAGEOFF]
	mov	x2, #0
	mov	x3, #0
	bl	_v4l2_valid_dv_timings
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_V4L2_DV_BT_FRAME_WIDTH
	mov	x21, x0
	mov	x0, x19
	bl	_V4L2_DV_BT_FRAME_HEIGHT
	mov	x20, x0
	ldr	w9, [x19, #24]
	ldr	w8, [x19]
	sdiv	w21, w9, w21
	cbz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _V4L2_DV_BT_STD_CVT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_DV_BT_STD_CVT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	ldp	w4, w2, [x19, #8]
	ldr	w3, [x19, #20]
	ldr	w5, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	mov	x6, x19
	bl	_v4l2_detect_cvt
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
LBB0_5:
Lloh5:
	adrp	x9, _V4L2_DV_BT_STD_GTF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_DV_BT_STD_GTF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
	ldp	w1, w0, [x19, #16]
	add	x8, sp, #8
	orr	x2, x8, #0x4
	add	x3, sp, #8
	bl	_find_aspect_ratio
	ldp	w3, w2, [x19, #8]
	ldr	w4, [x19, #4]
	ldr	x5, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x6, x19
	bl	_v4l2_detect_gtf
	cbz	x0, LBB0_8
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vivid_dv_timings_cap,4,2       ; @vivid_dv_timings_cap
	.comm	_V4L2_DV_BT_STD_CVT,4,2         ; @V4L2_DV_BT_STD_CVT
	.comm	_V4L2_DV_BT_STD_GTF,4,2         ; @V4L2_DV_BT_STD_GTF
	.no_dead_strip	_valid_cvt_gtf_timings
.subsections_via_symbols
