	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_can_loop             ## -- Begin function vivid_vid_can_loop
	.p2align	4, 0x90
_vivid_vid_can_loop:                    ## @vivid_vid_can_loop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	72(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	56(%rdi), %rcx
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	80(%rdi), %rcx
	cmpq	64(%rdi), %rcx
	jne	LBB0_12
## %bb.2:
	movq	40(%rbx), %rcx
	movq	48(%rbx), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rcx), %rdx
	jne	LBB0_12
## %bb.3:
	movq	(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_12
## %bb.4:
	movq	_V4L2_FIELD_SEQ_TB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.5:
	movq	_V4L2_FIELD_SEQ_BT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	callq	_vivid_is_svid_cap
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_vivid_is_svid_out
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	setne	%al
	testl	%edx, 32(%rbx)
	sete	%cl
	xorb	%al, %cl
	movzbl	%cl, %eax
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	callq	_vivid_is_hdmi_cap
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_vivid_is_hdmi_out
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_SEQ_TB,8,3          ## @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_FIELD_SEQ_BT,8,3          ## @V4L2_FIELD_SEQ_BT
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_can_loop             ; -- Begin function vivid_vid_can_loop
	.p2align	2
_vivid_vid_can_loop:                    ; @vivid_vid_can_loop
	.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
	ldr	x8, [x0, #72]
	ldr	x9, [x0, #56]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #80]
	ldr	x9, [x0, #64]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldp	x9, x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _V4L2_FIELD_SEQ_TB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_SEQ_TB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_FIELD_SEQ_BT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_FIELD_SEQ_BT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_vivid_is_svid_cap
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_vivid_is_svid_out
	cbz	x0, LBB0_10
; %bb.9:
	ldp	x8, x9, [x19, #16]
	ldr	w8, [x8, x9, lsl #2]
Lloh6:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	ldr	w10, [x19, #32]
	tst	w10, w9
	cset	w9, eq
	eor	w0, w8, w9
	b	LBB0_6
LBB0_10:
	mov	x0, x19
	bl	_vivid_is_hdmi_cap
	cbz	x0, LBB0_5
; %bb.11:
	mov	x0, x19
	bl	_vivid_is_hdmi_out
	cbz	x0, LBB0_5
; %bb.12:
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_SEQ_TB,8,3          ; @V4L2_FIELD_SEQ_TB
	.comm	_V4L2_FIELD_SEQ_BT,8,3          ; @V4L2_FIELD_SEQ_BT
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
.subsections_via_symbols
