	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_precalc_copy_rects
_vivid_precalc_copy_rects:              ## @vivid_precalc_copy_rects
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movl	436(%rdi), %eax
	movl	%eax, -128(%rbp)
	movl	432(%rdi), %eax
	movl	%eax, -124(%rbp)
	movq	264(%rdi), %rax
	movq	%rax, -96(%rbp)
	movq	208(%rdi), %rax
	movq	%rax, -88(%rbp)
	leaq	216(%rdi), %r12
	movl	236(%rdi), %eax
	movl	%eax, -80(%rbp)
	movl	232(%rdi), %eax
	movl	%eax, -76(%rbp)
	leaq	272(%rdi), %r15
	leaq	160(%rdi), %r14
	movups	%xmm0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_v4l2_rect_intersect
	leaq	368(%rbx), %rdi
	movups	272(%rbx), %xmm0
	movups	288(%rbx), %xmm1
	movups	304(%rbx), %xmm2
	movups	%xmm0, 368(%rbx)
	movups	%xmm1, 384(%rbx)
	movups	%xmm2, 400(%rbx)
	leaq	416(%rbx), %rdx
	movq	%r12, %rsi
	callq	_v4l2_rect_scale
	movdqu	416(%rbx), %xmm0
	movups	272(%rbx), %xmm1
	movups	288(%rbx), %xmm2
	movups	304(%rbx), %xmm3
	movdqu	368(%rbx), %xmm4
	paddq	%xmm0, %xmm4
	movdqu	%xmm4, 368(%rbx)
	leaq	320(%rbx), %rdi
	movups	%xmm1, 320(%rbx)
	movups	%xmm2, 336(%rbx)
	movups	%xmm3, 352(%rbx)
	leaq	144(%rbx), %r12
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_v4l2_rect_scale
	movl	292(%rbx), %ecx
	movl	288(%rbx), %r8d
	movq	280(%rbx), %r9
	movl	388(%rbx), %r10d
	movl	384(%rbx), %r11d
	movl	340(%rbx), %r13d
	movl	336(%rbx), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	pushq	320(%rbx)
	pushq	328(%rbx)
	pushq	%rax
	pushq	%r13
	pushq	368(%rbx)
	pushq	376(%rbx)
	pushq	%r11
	pushq	%r10
	pushq	272(%rbx)
	callq	_dprintk
	addq	$80, %rsp
	leaq	-144(%rbp), %rsi
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	movq	%r13, %rdx
	callq	_v4l2_rect_intersect
	movdqu	216(%rbx), %xmm0
	movq	264(%rbx), %xmm1                ## xmm1 = mem[0],zero
	movq	208(%rbx), %xmm2                ## xmm2 = mem[0],zero
	punpcklqdq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0]
	psubq	%xmm2, %xmm0
	paddq	-96(%rbp), %xmm0
	movdqa	%xmm0, -96(%rbp)
	leaq	48(%rbx), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_v4l2_rect_intersect
	movups	48(%rbx), %xmm0
	movups	64(%rbx), %xmm1
	movups	80(%rbx), %xmm2
	movdqu	216(%rbx), %xmm3
	movups	%xmm0, 96(%rbx)
	movups	%xmm1, 112(%rbx)
	movups	%xmm2, 128(%rbx)
	movq	264(%rbx), %xmm4                ## xmm4 = mem[0],zero
	movq	208(%rbx), %xmm5                ## xmm5 = mem[0],zero
	punpcklqdq	%xmm4, %xmm5            ## xmm5 = xmm5[0],xmm4[0]
	psubq	%xmm3, %xmm5
	movdqu	96(%rbx), %xmm3
	paddq	%xmm5, %xmm3
	movdqu	%xmm3, 96(%rbx)
	movups	%xmm0, (%rbx)
	movups	%xmm1, 16(%rbx)
	movups	%xmm2, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_v4l2_rect_scale
	movl	116(%rbx), %ecx
	movl	112(%rbx), %r8d
	movq	104(%rbx), %r9
	movl	68(%rbx), %r10d
	movl	64(%rbx), %r11d
	movl	20(%rbx), %r14d
	movl	16(%rbx), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	pushq	(%rbx)
	pushq	8(%rbx)
	pushq	%rax
	pushq	%r14
	pushq	48(%rbx)
	pushq	56(%rbx)
	pushq	%r11
	pushq	%r10
	pushq	96(%rbx)
	callq	_dprintk
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loop_vid_copy: %dx%d@%dx%d loop_vid_out: %dx%d@%dx%d loop_vid_cap: %dx%d@%dx%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"loop_fb_copy: %dx%d@%dx%d loop_vid_overlay: %dx%d@%dx%d loop_vid_overlay_cap: %dx%d@%dx%d\n"

	.no_dead_strip	_vivid_precalc_copy_rects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_precalc_copy_rects
_vivid_precalc_copy_rects:              ; @vivid_precalc_copy_rects
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #112]
	str	q0, [sp, #96]
	ldr	d0, [x0, #432]
	rev64.2s	v0, v0
	str	d0, [sp, #112]
	add	x25, x0, #264
	ldr	x8, [x0, #264]
	ldr	x9, [x0, #208]
	stp	x8, x9, [sp, #48]
	add	x22, x0, #216
	ldr	d0, [x0, #232]
	rev64.2s	v0, v0
	str	d0, [sp, #64]
	add	x21, x0, #272
	add	x20, x0, #160
	stp	xzr, xzr, [sp, #80]
	str	xzr, [sp, #72]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_v4l2_rect_intersect
	add	x23, x19, #368
	ldp	q0, q1, [x19, #272]
	stp	q0, q1, [x19, #368]
	ldr	q0, [x19, #304]
	str	q0, [x19, #400]
	add	x2, x19, #416
	mov	x0, x23
	mov	x1, x22
	bl	_v4l2_rect_scale
	ldr	q0, [x19, #416]
	ldr	q1, [x19, #368]
	add.2d	v0, v1, v0
	add	x24, x19, #320
	ldp	q1, q2, [x19, #272]
	stp	q1, q2, [x19, #320]
	ldr	q1, [x19, #304]
	stp	q1, q0, [x19, #352]
	add	x22, x19, #144
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	bl	_v4l2_rect_scale
	ldr	w3, [x21, #20]
	ldr	w4, [x19, #288]
	ldr	x5, [x21, #8]
	ldr	x6, [x19, #272]
	ldr	w7, [x23, #20]
	ldr	w8, [x19, #384]
	ldr	x9, [x23, #8]
	ldr	x10, [x19, #368]
	ldr	w11, [x24, #20]
	ldr	w12, [x19, #336]
	ldr	x13, [x24, #8]
	ldr	x14, [x19, #320]
	stp	x13, x14, [sp, #32]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	stp	w11, w12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	w8, [sp]
	mov	x0, x19
	mov	w1, #1
	bl	_dprintk
	add	x0, sp, #48
	add	x1, sp, #96
	add	x2, sp, #48
	bl	_v4l2_rect_intersect
	ldr	d0, [x19, #208]
	ld1.d	{ v0 }[1], [x25]
	ldur	q1, [x19, #216]
	sub.2d	v0, v1, v0
	ldr	q1, [sp, #48]
	add.2d	v0, v0, v1
	str	q0, [sp, #48]
	add	x0, x19, #48
	add	x1, sp, #48
	mov	x2, x21
	bl	_v4l2_rect_intersect
	ldp	q0, q1, [x19, #48]
	stp	q0, q1, [x19, #96]
	ldur	q2, [x19, #216]
	ldr	d3, [x19, #208]
	ld1.d	{ v3 }[1], [x25]
	sub.2d	v2, v3, v2
	ldp	q3, q4, [x19, #80]
	str	q3, [x19, #128]
	add.2d	v2, v2, v4
	str	q2, [x19, #96]
	stp	q0, q1, [x19]
	str	q3, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_v4l2_rect_scale
	ldp	w4, w3, [x19, #112]
	ldp	x6, x5, [x19, #96]
	ldp	w8, w7, [x19, #64]
	ldp	x10, x9, [x19, #48]
	ldp	w12, w11, [x19, #16]
	ldp	x14, x13, [x19]
	stp	x13, x14, [sp, #32]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	w11, w12, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	w8, [sp]
	mov	x0, x19
	mov	w1, #1
	bl	_dprintk
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loop_vid_copy: %dx%d@%dx%d loop_vid_out: %dx%d@%dx%d loop_vid_cap: %dx%d@%dx%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"loop_fb_copy: %dx%d@%dx%d loop_vid_overlay: %dx%d@%dx%d loop_vid_overlay_cap: %dx%d@%dx%d\n"

	.no_dead_strip	_vivid_precalc_copy_rects
.subsections_via_symbols
