	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vimc_deb_calc_rgb_sink
_vimc_deb_calc_rgb_sink:                ## @vimc_deb_calc_rgb_sink
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, 8(%r8)
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	$0, (%r8)
	movq	_deb_mean_win_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	movl	(%rdi), %edx
	movl	4(%rdi), %edi
	movl	12(%rbx), %r9d
	movl	%r15d, (%rsp)
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r13d, %eax
	subl	%r15d, %eax
	cmovbl	%r14d, %eax
	leal	(%r15,%r13), %edx
	incl	%edx
	movl	%edx, -92(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_9
## %bb.1:
	movl	%eax, %ecx
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	leal	1(%r15), %edx
	xorl	%eax, %eax
	movl	%r12d, %esi
	subl	%r15d, %esi
	cmovbl	%eax, %esi
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	addl	%r12d, %edx
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %r15d
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movl	%r12d, %eax
	cmovbl	%r15d, %eax
	addl	%r15d, %eax
	incl	%eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	cmpl	-92(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	12(%rbx), %r14d
	jae	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	cmpl	-88(%rbp), %eax                 ## 4-byte Folded Reload
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	andl	$1, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rbx), %edx
	cmpl	%edx, %r15d
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	%r15d, %ecx
	andl	$1, %ecx
	movl	(%rax,%rcx,4), %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_VIMC_FRAME_INDEX
	movl	%eax, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	%ebx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	(%r14,%rbx,4), %r12d
	movl	%r13d, %eax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_vimc_deb_get_val
	addl	%eax, %r12d
	movl	%r12d, (%r14,%rbx,4)
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	movl	-64(%rbp,%rbx,4), %r8d
	incl	%r8d
	movl	%r8d, -64(%rbp,%rbx,4)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-100(%rbp), %eax                ## 4-byte Reload
	incl	%r15d
	decl	%eax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	movl	-64(%rbp), %r14d
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
LBB0_9:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	(%r15), %eax
	movl	%r14d, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r15), %eax
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, (%r15)
LBB0_11:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	4(%r15), %eax
	movl	-60(%rbp), %ebx
	movl	%ebx, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	$1, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, 4(%r15)
LBB0_13:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	$1, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	8(%r15), %eax
	movl	-56(%rbp), %ebx
	movl	%ebx, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	$2, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, 8(%r15)
LBB0_15:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	4(%rcx), %edi
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	$2, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_deb_mean_win_size,4,2          ## @deb_mean_win_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deb: %s: --- Calc pixel %dx%d, window mean %d, seek %d ---\n"

L_.str.1:                               ## @.str.1
	.asciz	"deb: %s: RGB CALC: frame index %d, win pos %dx%d, color %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"deb: %s: RGB CALC: val %d, n %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"deb: %s: PRE CALC: %dx%d Color %d, val %d, n %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"deb: %s: FINAL CALC: %dx%d Color %d, val %d\n"

	.no_dead_strip	_vimc_deb_calc_rgb_sink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vimc_deb_calc_rgb_sink
_vimc_deb_calc_rgb_sink:                ; @vimc_deb_calc_rgb_sink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x22, x4
	mov	x23, x3
	mov	x25, x2
	str	x1, [sp, #48]                   ; 8-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	wzr, [sp, #64]
	str	xzr, [sp, #56]
	str	xzr, [x4]
	str	wzr, [x4, #8]
Lloh3:
	adrp	x8, _deb_mean_win_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _deb_mean_win_size@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w20, w8, #1
	ldr	w0, [x0, #4]
	ldr	w2, [x21]
	ldr	w8, [x21, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	stp	x8, x20, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	mov	w19, #0
	subs	w8, w25, w20
	csel	w24, wzr, w8, lo
	add	w8, w20, #1
	add	w9, w8, w25
	str	w9, [sp, #40]                   ; 4-byte Folded Spill
	cmp	w24, w9
	b.hs	LBB0_9
; %bb.1:
	stp	w25, w23, [sp, #24]             ; 8-byte Folded Spill
	subs	w9, w23, w20
	csel	w9, wzr, w9, lo
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	add	w8, w8, w23
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	cmp	w20, w23
	csel	w8, w20, w23, lo
	add	w8, w20, w8
	add	w8, w8, #1
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	add	x19, sp, #56
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w24, w8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x21, #12]
	cmp	w24, w8
	b.hs	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w20, w24, #0x1
	ldr	w25, [sp, #32]                  ; 4-byte Folded Reload
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x21, #16]
	cmp	w27, w2
	b.hs	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	and	w9, w27, #0x1
	ldr	w26, [x8, w9, uxtw #2]
	ldr	w3, [x21, #8]
	mov	x0, x24
	mov	x1, x27
	bl	_VIMC_FRAME_INDEX
	mov	x28, x0
	ldp	w2, w0, [x21]
	stp	x27, x26, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x28
	mov	x4, x24
	bl	_dev_dbg
	lsl	x26, x26, #2
	ldr	w23, [x22, x26]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	add	x0, x8, w28, uxtw #2
	ldr	w1, [x21, #8]
	bl	_vimc_deb_get_val
	add	w3, w0, w23
	str	w3, [x22, x26]
	ldr	w8, [x19, x26]
	add	w4, w8, #1
	str	w4, [x19, x26]
	ldp	w2, w0, [x21]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	add	w27, w27, #1
	subs	w25, w25, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_8:
	ldr	w19, [sp, #56]
	ldp	w25, w23, [sp, #24]             ; 8-byte Folded Reload
LBB0_9:
	ldp	w2, w0, [x21]
	ldr	w8, [x22]
	stp	x8, x19, [sp, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	str	xzr, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldr	w8, [x22]
	cbz	w19, LBB0_11
; %bb.10:
	udiv	w8, w8, w19
	str	w8, [x22]
LBB0_11:
	ldp	w2, w0, [x21]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	stp	xzr, x8, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldp	w2, w0, [x21]
	ldr	w19, [sp, #60]
	ldr	w8, [x22, #4]
	stp	x8, x19, [sp, #8]
	mov	w9, #1
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x9, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldr	w8, [x22, #4]
	cbz	w19, LBB0_13
; %bb.12:
	udiv	w8, w8, w19
	str	w8, [x22, #4]
LBB0_13:
	ldp	w2, w0, [x21]
	mov	w9, #1
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	stp	x9, x8, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldp	w2, w0, [x21]
	ldr	w19, [sp, #64]
	ldr	w8, [x22, #8]
	stp	x8, x19, [sp, #8]
	mov	w9, #2
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	str	x9, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldr	w8, [x22, #8]
	cbz	w19, LBB0_15
; %bb.14:
	udiv	w8, w8, w19
	str	w8, [x22, #8]
LBB0_15:
	ldp	w2, w0, [x21]
	mov	w9, #2
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	stp	x9, x8, [sp]
	mov	x3, x25
	mov	x4, x23
	bl	_dev_dbg
	ldr	x8, [sp, #72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_deb_mean_win_size,4,2          ; @deb_mean_win_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deb: %s: --- Calc pixel %dx%d, window mean %d, seek %d ---\n"

l_.str.1:                               ; @.str.1
	.asciz	"deb: %s: RGB CALC: frame index %d, win pos %dx%d, color %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"deb: %s: RGB CALC: val %d, n %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"deb: %s: PRE CALC: %dx%d Color %d, val %d, n %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"deb: %s: FINAL CALC: %dx%d Color %d, val %d\n"

	.no_dead_strip	_vimc_deb_calc_rgb_sink
.subsections_via_symbols
