	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_cap_update_frame_period
_vivid_cap_update_frame_period:         ## @vivid_cap_update_frame_period
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$1, 16(%r14)
	movl	$1, %esi
	jmp	LBB0_3
LBB0_1:
	movl	16(%r14), %esi
LBB0_3:
	imull	$1000000000, %ebx, %ebx         ## imm = 0x3B9ACA00
	movl	%ebx, %edi
	callq	_do_div
	movq	(%r14), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	sarl	%cl, %ebx
	leal	(%rbx,%rbx,8), %edi
	movl	%edi, 8(%r14)
	movl	$10, %esi
	callq	_do_div
	movl	%ebx, 12(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_vivid_cap_update_frame_period
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_cap_update_frame_period
_vivid_cap_update_frame_period:         ; @vivid_cap_update_frame_period
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #1
	str	w1, [x19, #16]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #16]
LBB0_3:
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	mul	w20, w20, w8
	mov	x0, x20
	bl	_do_div
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	asr	w20, w20, w8
	add	w0, w20, w20, lsl #3
	str	w0, [x19, #8]
	mov	w1, #10
	bl	_do_div
	str	w20, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.no_dead_strip	_vivid_cap_update_frame_period
.subsections_via_symbols
