	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_reset_source               ## -- Begin function tpg_reset_source
	.p2align	4, 0x90
_tpg_reset_source:                      ## @tpg_reset_source
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, (%rdi)
	movl	%edx, 4(%rdi)
	movl	%ecx, 104(%rdi)
	movl	%edx, 8(%rdi)
	movl	%ecx, %edi
	callq	_V4L2_FIELD_HAS_T_OR_B
	movl	8(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	shrl	%ecx
	movl	%ecx, 8(%rbx)
LBB0_2:
	movl	%r14d, 12(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%rbx)
	movl	%r14d, 80(%rbx)
	movl	%r15d, 84(%rbx)
	movups	%xmm0, 64(%rbx)
	movl	%r14d, 56(%rbx)
	movl	%ecx, 60(%rbx)
	cmpl	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	24(%rbx), %r8
	movq	32(%rbx), %r9
	movq	40(%rbx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %eax
	imull	%r14d, %eax
	movl	(%rdi,%rcx,4), %esi
	addl	%esi, %esi
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, (%r8,%rcx,4)
	incq	%rcx
	movl	16(%rbx), %eax
	cmpq	%rax, %rcx
	jb	LBB0_4
LBB0_5:
	movl	$1, 48(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpg_reset_source               ; -- Begin function tpg_reset_source
	.p2align	2
_tpg_reset_source:                      ; @tpg_reset_source
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	stp	w1, w2, [x0]
	str	w3, [x0, #104]
	str	w2, [x0, #8]
	mov	x0, x3
	bl	_V4L2_FIELD_HAS_T_OR_B
	ldr	w8, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	lsr	w8, w8, #1
	str	w8, [x19, #8]
LBB0_2:
	str	w20, [x19, #12]
	stp	xzr, xzr, [x19, #88]
	stp	w20, w21, [x19, #80]
	stp	xzr, xzr, [x19, #64]
	stp	w20, w8, [x19, #56]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x8, #0
	ldp	x10, x9, [x19, #32]
	ldr	x11, [x19, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x8, #2
	ldr	w13, [x10, x12]
	mul	w13, w13, w20
	ldr	w14, [x9, x12]
	lsl	w14, w14, #1
	udiv	w13, w13, w14
	str	w13, [x11, x12]
	add	x8, x8, #1
	ldr	w12, [x19, #16]
	cmp	x8, x12
	b.lo	LBB0_4
LBB0_5:
	mov	w8, #1
	str	w8, [x19, #48]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
