	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_find_dv_timings_cap       ## -- Begin function v4l2_find_dv_timings_cap
	.p2align	4, 0x90
_v4l2_find_dv_timings_cap:              ## @v4l2_find_dv_timings_cap
	.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	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	%ecx, %edx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rcx
	callq	_v4l2_valid_dv_timings
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movq	_v4l2_dv_timings_presets@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r15), %rdi
	movslq	(%rdi,%r12), %rax
	addq	%r12, %rdi
	addq	$8, %r12
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_v4l2_valid_dv_timings
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	leaq	(%rax,%r12), %rsi
	addq	$-8, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_v4l2_match_dv_timings
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %r13d
	movq	_V4L2_DV_FL_REDUCED_FPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_can_reduce_fps
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	andl	%r13d, %r12d
	orl	%r12d, 4(%rbx)
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_v4l2_dv_timings_presets,8,3    ## @v4l2_dv_timings_presets
	.comm	_V4L2_DV_FL_REDUCED_FPS,4,2     ## @V4L2_DV_FL_REDUCED_FPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_find_dv_timings_cap       ; -- Begin function v4l2_find_dv_timings_cap
	.p2align	2
_v4l2_find_dv_timings_cap:              ; @v4l2_find_dv_timings_cap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x2, x3
	mov	x3, x4
	bl	_v4l2_valid_dv_timings
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x24, _v4l2_dv_timings_presets@GOTPAGE
Lloh1:
	ldr	x24, [x24, _v4l2_dv_timings_presets@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x25, #0
	mov	w26, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	x8, [x24]
	add	x0, x8, x26
	ldrsw	x8, [x0]
	add	x26, x26, #8
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_v4l2_valid_dv_timings
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x26
	sub	x1, x8, #8
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_match_dv_timings
	cbz	x0, LBB0_3
; %bb.6:
Lloh2:
	adrp	x8, _V4L2_DV_FL_REDUCED_FPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_DV_FL_REDUCED_FPS@GOTPAGEOFF]
	ldr	w20, [x19, #4]
Lloh4:
	ldr	w21, [x8]
	ldr	x8, [x24]
	ldr	x8, [x8, x25, lsl #3]
	str	x8, [x19]
	mov	x0, x19
	bl	_can_reduce_fps
	cbz	x0, LBB0_10
; %bb.7:
	and	w8, w21, w20
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_v4l2_dv_timings_presets,8,3    ; @v4l2_dv_timings_presets
	.comm	_V4L2_DV_FL_REDUCED_FPS,4,2     ; @V4L2_DV_FL_REDUCED_FPS
.subsections_via_symbols
