	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_and_set_predefined_video_timings
_find_and_set_predefined_video_timings: ## @find_and_set_predefined_video_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpq	$0, 16(%rdx)
	je	LBB0_6
## %bb.1:
	movq	%rcx, %rbx
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%rdx), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-24(%r12), %r15
	movq	%r13, %rdi
	callq	_is_digital_input
	testq	%rax, %rax
	movl	$250000, %edx                   ## imm = 0x3D090
	movl	$1000000, %eax                  ## imm = 0xF4240
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_v4l2_match_dv_timings
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	$0, (%r12)
	leaq	24(%r12), %r12
	jne	LBB0_2
## %bb.5:
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_3:
	movl	%r14d, %eax
	leaq	(%rax,%rax,2), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx,%r15,8), %rdx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_io_write
	movl	(%rbx,%r15,8), %eax
	shll	$4, %eax
	movslq	%eax, %rdx
	addq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_io_write
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_and_set_predefined_video_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_and_set_predefined_video_timings
_find_and_set_predefined_video_timings: ; @find_and_set_predefined_video_timings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x2, #16]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x24, #0
	add	x25, x2, #40
	mov	w26, #53392
	movk	w26, #3, lsl #16
	mov	w27, #16960
	movk	w27, #15, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x23, x25, #24
	mov	x0, x19
	bl	_is_digital_input
	cmp	x0, #0
	csel	w2, w27, w26, eq
	mov	x0, x22
	mov	x1, x23
	mov	w3, #0
	bl	_v4l2_match_dv_timings
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldr	x8, [x25], #24
	cbnz	x8, LBB0_2
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	and	x8, x24, #0xffffffff
	mov	w9, #24
	madd	x21, x8, x9, x21
	ldr	x2, [x21, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_io_write
	ldr	w8, [x21]
	lsl	w8, w8, #4
	add	x2, x20, w8, sxtw
	mov	x0, x19
	mov	w1, #1
	bl	_io_write
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_and_set_predefined_video_timings
.subsections_via_symbols
