	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp7002_s_dv_timings
_tvp7002_s_dv_timings:                  ## @tvp7002_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	%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
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_to_tvp7002
	movq	(%r13), %rdx
	movq	_V4L2_DV_BT_656_1120@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_5
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_NUM_TIMINGS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.2:
	addq	$8, %r13
	xorl	%ebx, %ebx
	movq	_tvp7002_timings@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r15), %rax
	addq	%rbx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movl	(%rax,%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tvp7002_write_inittab          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_DV_BT_656_1120,8,3        ## @V4L2_DV_BT_656_1120
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NUM_TIMINGS,4,2                ## @NUM_TIMINGS
	.comm	_tvp7002_timings,8,3            ## @tvp7002_timings
	.no_dead_strip	_tvp7002_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 tvp7002_s_dv_timings
_tvp7002_s_dv_timings:                  ; @tvp7002_s_dv_timings
	.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, x1
	mov	x19, x0
	bl	_to_tvp7002
	ldr	x8, [x20], #8
Lloh0:
	adrp	x9, _V4L2_DV_BT_656_1120@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_DV_BT_656_1120@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x22, _NUM_TIMINGS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NUM_TIMINGS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x25, _tvp7002_timings@GOTPAGE
Lloh6:
	ldr	x25, [x25, _tvp7002_timings@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x23
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #1
	bl	_memcmp
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #12
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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_6:
	ldr	x8, [x25]
	add	x8, x8, x23
	str	x8, [x21]
	ldr	x8, [x25]
	ldr	w1, [x8, x23]
	mov	x0, x19
	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
	b	_tvp7002_write_inittab
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_DV_BT_656_1120,8,3        ; @V4L2_DV_BT_656_1120
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NUM_TIMINGS,4,2                ; @NUM_TIMINGS
	.comm	_tvp7002_timings,8,3            ; @tvp7002_timings
	.no_dead_strip	_tvp7002_s_dv_timings
.subsections_via_symbols
