	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_s_dv_timings
_vpbe_s_dv_timings:                     ## @vpbe_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	64(%rdi), %rax
	movslq	(%rdi), %rcx
	movq	(%rax), %rdx
	leaq	(%rcx,%rcx,2), %rsi
	movq	_V4L2_OUT_CAP_DV_TIMINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdx,%rsi,8)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movslq	4(%rdi), %r14
	movl	(%rdx,%rsi,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.5:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rsi,8), %r14
	movl	$16, %r15d
	xorl	%r13d, %r13d
	movq	_VPBE_ENC_DV_TIMINGS@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	%ecx, %rax
	addq	$24, %r15
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	-16(%rdi,%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	movl	(%r14), %ecx
	testl	%eax, %eax
	jne	LBB0_8
LBB0_9:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%ecx, %r13d
	jge	LBB0_11
LBB0_12:
	movq	8(%rdx,%rsi,8), %rax
	movl	%r13d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rdx
	movq	%rdx, 32(%rbx)
	movups	(%rax,%rcx,8), %xmm0
	movups	%xmm0, 16(%rbx)
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	56(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	movq	%rbx, %r14
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_dv_timings@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r12, %rcx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	movq	40(%r14), %rbx
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_17
LBB0_3:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	xorl	%r13d, %r13d
	cmpl	%ecx, %r13d
	jl	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_OUT_CAP_DV_TIMINGS,4,2    ## @V4L2_OUT_CAP_DV_TIMINGS
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_VPBE_ENC_DV_TIMINGS,8,3        ## @VPBE_ENC_DV_TIMINGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_s_dv_timings,4,2               ## @s_dv_timings
	.no_dead_strip	_vpbe_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 vpbe_s_dv_timings
_vpbe_s_dv_timings:                     ; @vpbe_s_dv_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, [x0, #64]
	ldrsw	x21, [x0]
	ldr	x23, [x8]
	mov	w8, #24
	madd	x8, x21, x8, x23
	ldr	w8, [x8, #16]
Lloh0:
	adrp	x9, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldrsw	x22, [x0, #4]
	mov	w8, #24
	madd	x25, x21, x8, x23
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x26, #0
	mov	x24, #0
	mov	w9, #24
	madd	x9, x21, x9, x23
	add	x27, x9, #8
Lloh3:
	adrp	x28, _VPBE_ENC_DV_TIMINGS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _VPBE_ENC_DV_TIMINGS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x26, x26, #24
	cmp	x24, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x27]
	ldr	x10, [x9, x26]
	ldr	x11, [x28]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x9, x26
	add	x0, x8, #16
	mov	x1, x20
	mov	w2, #4
	bl	_memcmp
	ldr	w8, [x25]
	cbnz	w0, LBB0_3
LBB0_6:
	cmp	w24, w8
	b.ge	LBB0_14
LBB0_7:
	mov	w8, #24
	madd	x9, x21, x8, x23
	ldr	x9, [x9, #8]
	umaddl	x8, w24, w8, x9
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [x19, #32]
	str	q0, [x19, #16]
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x22, lsl #3]
Lloh5:
	adrp	x23, _video@GOTPAGE
Lloh6:
	ldr	x23, [x23, _video@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x24, _s_dv_timings@GOTPAGE
Lloh8:
	ldr	x24, [x24, _s_dv_timings@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x3, x20
	bl	_v4l2_subdev_call
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x3, x20
	bl	_v4l2_subdev_call
	mov	x22, x0
	cbnz	w0, LBB0_11
LBB0_10:
	ldr	x20, [x19, #40]
	ldr	x8, [x20, #8]
	ldr	w1, [x19, #28]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	ldr	w1, [x19, #24]
	mov	x0, x20
	blr	x8
	mov	w22, #0
LBB0_11:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_16
LBB0_12:
Lloh9:
	adrp	x8, _ENODATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	w24, #0
	cmp	w24, w8
	b.lt	LBB0_7
LBB0_14:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_OUT_CAP_DV_TIMINGS,4,2    ; @V4L2_OUT_CAP_DV_TIMINGS
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_VPBE_ENC_DV_TIMINGS,8,3        ; @VPBE_ENC_DV_TIMINGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_s_dv_timings,4,2               ; @s_dv_timings
	.no_dead_strip	_vpbe_s_dv_timings
.subsections_via_symbols
