	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vimc_sca_scale_pix
_vimc_sca_scale_pix:                    ## @vimc_sca_scale_pix
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	movl	32(%rdi), %edx
	movl	%esi, %edi
	movl	%r15d, %esi
	callq	_VIMC_FRAME_INDEX
	movl	24(%r14), %edx
	movl	28(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r13d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_sca_mult@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%edx, %edi
	imull	%ebx, %edi
	movl	%edx, %esi
	imull	%r15d, %esi
	imull	32(%r14), %edx
	movl	(%r14), %ecx
	callq	_VIMC_FRAME_INDEX
                                        ## kill: def $eax killed $eax def $rax
	movl	24(%r14), %edx
	movl	28(%r14), %edi
	movl	(%r12), %r8d
	imull	%r8d, %ebx
	imull	%r15d, %r8d
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r12, %r8
	movl	%r13d, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rbx
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %r13
	xorl	%edx, %edx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	8(%r14), %r15d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	cmpl	%eax, %edx
	jae	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	imull	%eax, %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	24(%r14), %edx
	movl	28(%r14), %edi
	leal	(%r12,%r15), %ebx
	movq	%r8, %r15
	movq	%r13, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	shlq	$2, %rbx
	addq	16(%r14), %rbx
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vimc_sca_fill_pix
	movq	%r15, %r8
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%r14), %ecx
	addl	%ecx, %r12d
	movl	(%r8), %eax
	movl	%ecx, %edx
	imull	%eax, %edx
	cmpl	%edx, %r12d
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$24, %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	"sca: %s: --- scale_pix sink pos %dx%d, index %d ---\n"

	.comm	_sca_mult,4,2                   ## @sca_mult
L_.str.1:                               ## @.str.1
	.asciz	"sca: %s: scale_pix src pos %dx%d, index %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"sca: %s: sca: scale_pix src pos %d\n"

	.no_dead_strip	_vimc_sca_scale_pix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vimc_sca_scale_pix
_vimc_sca_scale_pix:                    ; @vimc_sca_scale_pix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w2, [x0, #32]
	ldr	w3, [x0]
	mov	x0, x1
	mov	x1, x23
	bl	_VIMC_FRAME_INDEX
	mov	x22, x0
	ldp	w2, w0, [x19, #24]
	stp	x23, x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	bl	_dev_dbg
Lloh2:
	adrp	x25, _sca_mult@GOTPAGE
Lloh3:
	ldr	x25, [x25, _sca_mult@GOTPAGEOFF]
	ldr	w8, [x25]
	mul	w0, w8, w24
	mul	w1, w8, w23
	ldr	w9, [x19, #32]
	mul	w2, w9, w8
	ldr	w3, [x19]
	bl	_VIMC_FRAME_INDEX
	mov	x20, x0
	ldp	w2, w0, [x19, #24]
	ldr	w8, [x25]
	mul	w3, w8, w24
	mul	w8, w8, w23
	stp	x8, x20, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x25]
	cbz	w8, LBB0_6
; %bb.1:
	mov	w24, #0
	add	x21, x21, w22, uxtw #2
	ldr	w9, [x19]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19, #8]
	add	w20, w20, w10
	add	w24, w24, #1
	cmp	w24, w8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mul	w10, w9, w8
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w0, [x19, #24]
	add	w23, w26, w20
	mov	x1, x22
	mov	x3, x23
	bl	_dev_dbg
	ldr	x8, [x19, #16]
	add	x0, x8, w23, uxtw #2
	ldr	w2, [x19]
	mov	x1, x21
	bl	_vimc_sca_fill_pix
	ldr	w9, [x19]
	ldr	w8, [x25]
	mul	w10, w9, w8
	add	w26, w9, w26
	cmp	w26, w10
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sca: %s: --- scale_pix sink pos %dx%d, index %d ---\n"

	.comm	_sca_mult,4,2                   ; @sca_mult
l_.str.1:                               ; @.str.1
	.asciz	"sca: %s: scale_pix src pos %dx%d, index %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"sca: %s: sca: scale_pix src pos %d\n"

	.no_dead_strip	_vimc_sca_scale_pix
.subsections_via_symbols
