	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_srcdst_params
_set_srcdst_params:                     ## @set_srcdst_params
	.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	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	56(%rdi), %r12
	movq	_Q_DATA_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Q_DATA_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %r13
	movl	16(%r12,%r13,8), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	20(%r12,%r13,8), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	(%rcx,%rcx,2), %r15
	movl	16(%r12,%r15,8), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	20(%r12,%r15,8), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	$0, 40(%rdi)
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_Q_IS_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12,%r13,8)
	je	LBB0_3
## %bb.1:
	testl	%eax, (%r12,%r15,8)
	je	LBB0_2
LBB0_3:
	movl	$0, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_vpdma_misc_fmts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VPDMA_DATA_FMT_MV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	imull	4(%r12,%r13,8), %edi
	sarl	$3, %edi
	movq	_VPDMA_STRIDE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movslq	8(%r12,%r13,8), %rcx
	movslq	%eax, %r14
	imulq	%rcx, %r14
	movl	$1, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_4:
	movq	%rbx, %rdi
	callq	_free_vbs
	movq	24(%rbx), %rax
	movq	$0, (%rax)
	movq	24(%rbx), %rax
	movq	$0, 8(%rax)
	movq	24(%rbx), %rax
	movq	$0, 16(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_realloc_mv_buffers
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_set_cfg_modes
	movq	%rbx, %rdi
	callq	_set_dei_regs
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	movl	12(%r12,%r13,8), %edx
	movl	12(%r12,%r15,8), %ecx
	callq	_csc_set_coeff
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	20(%rbx), %esi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sc_set_hs_coeffs
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_sc_set_vs_coeffs
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	pushq	%r15
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_sc_config_scaler
	addq	$16, %rsp
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_DATA_SRC,8,3                 ## @Q_DATA_SRC
	.comm	_Q_DATA_DST,8,3                 ## @Q_DATA_DST
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.comm	_Q_IS_INTERLACED,4,2            ## @Q_IS_INTERLACED
	.comm	_vpdma_misc_fmts,8,3            ## @vpdma_misc_fmts
	.comm	_VPDMA_DATA_FMT_MV,8,3          ## @VPDMA_DATA_FMT_MV
	.comm	_VPDMA_STRIDE_ALIGN,4,2         ## @VPDMA_STRIDE_ALIGN
	.no_dead_strip	_set_srcdst_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_srcdst_params
_set_srcdst_params:                     ; @set_srcdst_params
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _Q_DATA_SRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_DATA_SRC@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _Q_DATA_DST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_DATA_DST@GOTPAGEOFF]
Lloh5:
	ldr	x27, [x8]
	ldp	x25, x28, [x0, #48]
	mov	w8, #24
	madd	x9, x26, x8, x28
	ldp	w19, w21, [x9, #16]
	madd	x8, x27, x8, x28
	ldp	w22, w23, [x8, #16]
	str	xzr, [x0, #40]
Lloh6:
	adrp	x8, _V4L2_FIELD_TOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_TOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	ldr	w9, [x9]
Lloh9:
	adrp	x8, _Q_IS_INTERLACED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Q_IS_INTERLACED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #24
	mul	x9, x27, x9
	ldr	w9, [x28, x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	x24, #0
	str	wzr, [x20]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _vpdma_misc_fmts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _vpdma_misc_fmts@GOTPAGEOFF]
Lloh14:
	adrp	x9, _VPDMA_DATA_FMT_MV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VPDMA_DATA_FMT_MV@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x24, x26, x10, x28
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x24, #4]
	mul	w8, w8, w9
	asr	w0, w8, #3
Lloh18:
	adrp	x8, _VPDMA_STRIDE_ALIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VPDMA_STRIDE_ALIGN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x24, #8]
	sxtw	x9, w0
	mul	x24, x8, x9
	mov	w8, #1
	str	w8, [x20]
	lsl	w21, w21, #1
LBB0_4:
	mov	x0, x20
	bl	_free_vbs
	ldr	x8, [x20, #24]
	str	xzr, [x8]
	ldr	x8, [x20, #24]
	str	xzr, [x8, #8]
	ldr	x8, [x20, #24]
	str	xzr, [x8, #16]
	mov	x0, x20
	mov	x1, x24
	bl	_realloc_mv_buffers
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_set_cfg_modes
	mov	x0, x20
	bl	_set_dei_regs
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	x1, [x25, #24]
	mov	w8, #24
	madd	x9, x26, x8, x28
	ldr	w2, [x9, #12]
	madd	x8, x27, x8, x28
	ldr	w3, [x8, #12]
	bl	_csc_set_coeff
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	mov	x2, x19
	mov	x3, x22
	bl	_sc_set_hs_coeffs
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	mov	x2, x21
	mov	x3, x23
	bl	_sc_set_vs_coeffs
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldp	x2, x1, [x25, #8]
	ldr	x3, [x25]
	mov	x4, x19
	mov	x5, x21
	mov	x6, x22
	mov	x7, x23
	bl	_sc_config_scaler
LBB0_6:
	mov	x0, x24
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_DATA_SRC,8,3                 ; @Q_DATA_SRC
	.comm	_Q_DATA_DST,8,3                 ; @Q_DATA_DST
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.comm	_Q_IS_INTERLACED,4,2            ; @Q_IS_INTERLACED
	.comm	_vpdma_misc_fmts,8,3            ; @vpdma_misc_fmts
	.comm	_VPDMA_DATA_FMT_MV,8,3          ; @VPDMA_DATA_FMT_MV
	.comm	_VPDMA_STRIDE_ALIGN,4,2         ; @VPDMA_STRIDE_ALIGN
	.no_dead_strip	_set_srcdst_params
.subsections_via_symbols
