	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scaler_set_src_luma_chroma_pos
_scaler_set_src_luma_chroma_pos:        ## @scaler_set_src_luma_chroma_pos
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rsi), %edi
	shll	$2, %edi
	callq	_SCALER_SRC_Y_POS_SET_YH_POS
	movl	%eax, %ebx
	movl	4(%r15), %edi
	shll	$2, %edi
	callq	_SCALER_SRC_Y_POS_SET_YV_POS
	orl	%eax, %ebx
	movq	_SCALER_SRC_Y_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_scaler_write
	movl	(%r14), %eax
	imull	(%r15), %eax
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	shll	$2, %edi
	callq	_SCALER_SRC_C_POS_SET_CH_POS
	movl	%eax, %ebx
	movl	4(%r14), %eax
	imull	4(%r15), %eax
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	shll	$2, %edi
	callq	_SCALER_SRC_C_POS_SET_CV_POS
	orl	%eax, %ebx
	movq	_SCALER_SRC_C_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scaler_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_SRC_Y_POS,4,2           ## @SCALER_SRC_Y_POS
	.comm	_SCALER_SRC_C_POS,4,2           ## @SCALER_SRC_C_POS
	.no_dead_strip	_scaler_set_src_luma_chroma_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scaler_set_src_luma_chroma_pos
_scaler_set_src_luma_chroma_pos:        ; @scaler_set_src_luma_chroma_pos
	.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	x19, x2
	mov	x20, x1
	ldr	w8, [x1]
	lsl	w0, w8, #2
	bl	_SCALER_SRC_Y_POS_SET_YH_POS
	mov	x21, x0
	ldr	w8, [x20, #4]
	lsl	w0, w8, #2
	bl	_SCALER_SRC_Y_POS_SET_YV_POS
	orr	w0, w0, w21
Lloh0:
	adrp	x8, _SCALER_SRC_Y_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALER_SRC_Y_POS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_scaler_write
	ldr	w8, [x20]
	ldr	w9, [x19]
	mul	w8, w9, w8
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	lsl	w0, w8, #2
	bl	_SCALER_SRC_C_POS_SET_CH_POS
	mov	x21, x0
	ldr	w8, [x20, #4]
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	lsl	w0, w8, #2
	bl	_SCALER_SRC_C_POS_SET_CV_POS
	orr	w0, w0, w21
Lloh3:
	adrp	x8, _SCALER_SRC_C_POS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALER_SRC_C_POS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	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
	b	_scaler_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_SRC_Y_POS,4,2           ; @SCALER_SRC_Y_POS
	.comm	_SCALER_SRC_C_POS,4,2           ; @SCALER_SRC_C_POS
	.no_dead_strip	_scaler_set_src_luma_chroma_pos
.subsections_via_symbols
