	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_enum_dv_timings
_vpbe_enum_dv_timings:                  ## @vpbe_enum_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
	movq	8(%rdi), %rax
	movslq	(%rdi), %rcx
	movq	(%rax), %r8
	leaq	(%rcx,%rcx,2), %r9
	movq	_V4L2_OUT_CAP_DV_TIMINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r8,%r9,8)
	je	LBB0_6
## %bb.1:
	movl	(%r8,%r9,8), %r10d
	testl	%r10d, %r10d
	jle	LBB0_2
## %bb.8:
	movq	8(%r8,%r9,8), %rax
	movq	_VPBE_ENC_DV_TIMINGS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdi
	addq	$16, %rax
	cmpq	%rdi, %r10
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%rsi), %edx
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	%edx
	jmp	LBB0_12
LBB0_6:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	xorl	%edi, %edi
LBB0_3:
	cmpl	%r10d, %edi
	jne	LBB0_4
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r8,%r9,8), %rax
	movl	%edi, %ecx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %eax
	movl	%eax, 4(%rsi)
	xorl	%eax, %eax
	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
	.no_dead_strip	_vpbe_enum_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_enum_dv_timings
_vpbe_enum_dv_timings:                  ; @vpbe_enum_dv_timings
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #8]
	ldrsw	x8, [x0]
	ldr	x9, [x9]
	mov	w10, #24
	madd	x10, x8, x10, x9
	ldr	w10, [x10, #16]
Lloh0:
	adrp	x11, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_OUT_CAP_DV_TIMINGS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.1:
	mov	w10, #24
	mul	x10, x8, x10
	ldr	w11, [x9, x10]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x10, #0
	mov	w12, #0
	mov	w13, #24
	madd	x13, x8, x13, x9
	ldr	x13, [x13, #8]
Lloh3:
	adrp	x14, _VPBE_ENC_DV_TIMINGS@GOTPAGE
Lloh4:
	ldr	x14, [x14, _VPBE_ENC_DV_TIMINGS@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x14]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	add	x13, x13, #16
	cmp	x11, x10
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x13]
	cmp	x15, x14
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x1]
	cmp	w12, w15
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w12, #1
	b	LBB0_3
LBB0_7:
Lloh6:
	adrp	x8, _ENODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	w10, #0
LBB0_9:
	cmp	w10, w11
	b.ne	LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_12:
	mov	w0, #0
	mov	w11, #24
	mul	x8, x8, x11
	add	x8, x9, x8
	ldr	x8, [x8, #8]
	add	x8, x8, w10, uxtw #4
	ldr	w8, [x8, #8]
	str	w8, [x1, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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
	.no_dead_strip	_vpbe_enum_dv_timings
.subsections_via_symbols
