	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_s_dv_timings
_vpif_s_dv_timings:                     ## @vpif_s_dv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_vpif_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_V4L2_OUT_CAP_DV_TIMINGS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	128(%r15), %rax
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_vb2_is_busy
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODATA@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rax
	movq	_V4L2_DV_BT_656_1120@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.9:
	movl	16(%r15), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_dv_timings@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_13
## %bb.10:
	testl	%ebx, %ebx
	jns	LBB0_13
## %bb.11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_13
## %bb.12:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	jmp	LBB0_30
LBB0_7:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_8
LBB0_13:
	cmpq	$0, 32(%r14)
	je	LBB0_21
## %bb.14:
	cmpq	$0, 24(%r14)
	je	LBB0_21
## %bb.15:
	cmpq	$0, 88(%r14)
	jne	LBB0_18
## %bb.16:
	cmpq	$0, 80(%r14)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 72(%r14)
	je	LBB0_21
LBB0_18:
	cmpl	$0, 8(%r14)
	je	LBB0_21
## %bb.19:
	cmpq	$0, 56(%r14)
	jne	LBB0_22
## %bb.20:
	cmpq	$0, 64(%r14)
	je	LBB0_21
LBB0_22:
	leaq	32(%r15), %rax
	movq	%r15, %rbx
	addq	$40, %rbx
	movups	80(%r14), %xmm0
	movups	%xmm0, 80(%rax)
	movups	64(%r14), %xmm0
	movups	%xmm0, 64(%rax)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	32(%r14), %xmm2
	movups	48(%r14), %xmm3
	movups	%xmm3, 48(%rax)
	movups	%xmm2, 32(%rax)
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_BLANKING_WIDTH
	addq	$-8, %rax
	movq	%rax, 248(%r15)
	movq	64(%r15), %rax
	movq	88(%r15), %rcx
	movq	%rax, 240(%r15)
	movl	$1, 136(%r15)
	movq	96(%r15), %rax
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, 232(%r15)
	movq	%rbx, %rdi
	callq	_V4L2_DV_BT_FRAME_HEIGHT
	movl	%eax, 140(%r15)
	cmpq	$0, 48(%r15)
	je	LBB0_28
## %bb.23:
	movq	72(%r15), %rdx
	movl	44(%r15), %ecx
	testq	%rdx, %rdx
	jne	LBB0_26
## %bb.24:
	testl	%ecx, %ecx
	jne	LBB0_26
## %bb.25:
	xorl	%ecx, %ecx
	cmpq	$0, 80(%r15)
	je	LBB0_27
LBB0_26:
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	leal	1(%rsi), %ebx
	movl	%ebx, %edi
	subl	40(%r15), %edi
	movl	%edi, 144(%r15)
	movl	%ebx, 148(%r15)
	movq	80(%r15), %rdi
	movslq	%esi, %rsi
	addq	%rdx, %rsi
	leaq	(%rdi,%rsi), %rdx
	addq	$2, %rdx
	movq	%rdx, 224(%r15)
	subl	%ecx, %eax
	incl	%eax
	movl	%eax, 152(%r15)
	jmp	LBB0_29
LBB0_21:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movl	$2, %edi
	callq	_vpif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_28:
	subl	40(%r15), %eax
	incl	%eax
	movl	%eax, 144(%r15)
LBB0_29:
	movl	216(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movups	56(%r15), %xmm0
	movups	%xmm0, 200(%r15)
	xorl	%eax, %eax
	cmpq	$0, 48(%r15)
	sete	%al
	movl	%eax, 156(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 176(%r15)
	movq	$0, 192(%r15)
	movl	$1, 160(%r15)
	movq	$0, 168(%r15)
	movq	$0, 24(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_27:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_dev,8,3                   ## @vpif_dev
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_V4L2_OUT_CAP_DV_TIMINGS,8,3    ## @V4L2_OUT_CAP_DV_TIMINGS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_DV_BT_656_1120,8,3        ## @V4L2_DV_BT_656_1120
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timing type not defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_s_dv_timings,4,2               ## @s_dv_timings
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Error setting custom DV timings\n"

L_.str.2:                               ## @.str.2
	.asciz	"Timings for width, height, horizontal back porch, horizontal sync, horizontal front porch, vertical back porch, vertical sync and vertical back porch must be defined\n"

L_.str.3:                               ## @.str.3
	.asciz	"Required timing values for interlaced BT format missing\n"

L_.str.4:                               ## @.str.4
	.asciz	"Custom timings BT656/1120"

	.no_dead_strip	_vpif_s_dv_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_s_dv_timings
_vpif_s_dv_timings:                     ; @vpif_s_dv_timings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
Lloh0:
	adrp	x8, _vpif_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpif_dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8]
	bl	_video_devdata
	bl	_video_get_drvdata
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #128]
Lloh6:
	adrp	x9, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_vb2_is_busy
	cbz	x0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENODATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _V4L2_DV_BT_656_1120@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_DV_BT_656_1120@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
	ldr	w0, [x19, #16]
Lloh16:
	adrp	x8, _video@GOTPAGE
Lloh17:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _s_dv_timings@GOTPAGE
Lloh20:
	ldr	x8, [x8, _s_dv_timings@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_v4l2_subdev_call
Lloh22:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.9:
	mov	x21, x0
	tbz	w0, #31, LBB0_13
; %bb.10:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w21, w8
	b.eq	LBB0_13
; %bb.11:
Lloh28:
	adrp	x8, _debug@GOTPAGE
Lloh29:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
	b	LBB0_6
LBB0_12:
Lloh33:
	adrp	x8, _debug@GOTPAGE
Lloh34:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_28
LBB0_13:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_27
; %bb.14:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_27
; %bb.15:
	ldr	x8, [x20, #88]
	cbnz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x20, #80]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_27
LBB0_18:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_27
; %bb.19:
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_27
LBB0_21:
	add	x8, x19, #32
	add	x21, x19, #40
	ldp	q0, q1, [x20]
	stp	q0, q1, [x8]
	ldp	q0, q1, [x20, #32]
	ldp	q2, q3, [x20, #64]
	stp	q2, q3, [x8, #64]
	stp	q0, q1, [x8, #32]
	mov	x0, x21
	bl	_V4L2_DV_BT_BLANKING_WIDTH
	sub	x11, x0, #8
	ldr	x8, [x19, #64]
	mov	w9, #1
	str	w9, [x19, #136]
	ldp	x10, x9, [x19, #88]
	add	x9, x9, x10
	add	x9, x9, #1
	stp	x8, x11, [x19, #240]
	str	x9, [x19, #232]
	mov	x0, x21
	bl	_V4L2_DV_BT_FRAME_HEIGHT
	str	w0, [x19, #140]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_29
; %bb.22:
	ldr	x8, [x19, #72]
	ldr	w9, [x19, #44]
	cbnz	x8, LBB0_26
; %bb.23:
	cbnz	w9, LBB0_26
; %bb.24:
	ldr	x9, [x19, #80]
	cbz	x9, LBB0_31
; %bb.25:
	mov	w9, #0
LBB0_26:
	cmp	w0, #0
	cinc	w10, w0, lt
	asr	w10, w10, #1
	ldr	w11, [x19, #40]
	add	w12, w10, #1
	sub	w11, w12, w11
	stp	w11, w12, [x19, #144]
	ldr	x11, [x19, #80]
	add	w10, w10, #2
	add	x8, x8, w10, sxtw
	add	x8, x8, x11
	str	x8, [x19, #224]
	sub	w8, w0, w9
	add	w8, w8, #1
	str	w8, [x19, #152]
	b	LBB0_30
LBB0_27:
Lloh38:
	adrp	x8, _debug@GOTPAGE
Lloh39:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.2@PAGE
Lloh42:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_28:
	mov	w0, #2
	bl	_vpif_dbg
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_29:
	ldr	w8, [x19, #40]
	sub	w8, w0, w8
	add	w8, w8, #1
	str	w8, [x19, #144]
LBB0_30:
	ldr	w0, [x19, #216]
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w21, #0
	ldur	q0, [x19, #56]
	stur	q0, [x19, #200]
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w8, eq
	stp	xzr, xzr, [x19, #184]
	mov	w9, #1
	stp	w8, w9, [x19, #156]
	stp	xzr, xzr, [x19, #168]
	str	xzr, [x19, #24]
	b	LBB0_6
LBB0_31:
Lloh47:
	adrp	x8, _debug@GOTPAGE
Lloh48:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x2, l_.str.3@PAGE
Lloh51:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_dev,8,3                   ; @vpif_dev
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_V4L2_OUT_CAP_DV_TIMINGS,8,3    ; @V4L2_OUT_CAP_DV_TIMINGS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_DV_BT_656_1120,8,3        ; @V4L2_DV_BT_656_1120
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timing type not defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_s_dv_timings,4,2               ; @s_dv_timings
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Error setting custom DV timings\n"

l_.str.2:                               ; @.str.2
	.asciz	"Timings for width, height, horizontal back porch, horizontal sync, horizontal front porch, vertical back porch, vertical sync and vertical back porch must be defined\n"

l_.str.3:                               ; @.str.3
	.asciz	"Required timing values for interlaced BT format missing\n"

l_.str.4:                               ; @.str.4
	.asciz	"Custom timings BT656/1120"

	.no_dead_strip	_vpif_s_dv_timings
.subsections_via_symbols
