	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_slice
_scale_slice:                           ## @scale_slice
	.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	%r8d, %eax
	movq	%rcx, %r10
	movslq	24(%rbp), %r13
	movl	16(%rbp), %r11d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	movq	(%rdx), %rdi
	movq	8(%rdx), %r15
	movq	(%rsi), %rdx
	movq	8(%rsi), %r12
	movl	(%rdi), %ecx
	imull	%r11d, %ecx
	movl	%ecx, -128(%rbp)
	movl	(%rdx), %ecx
	imull	%r11d, %ecx
	movl	%ecx, -144(%rbp)
	leal	(%rax,%r13), %ecx
	movslq	(%rdi), %rsi
	movslq	%ecx, %r8
	imulq	%r8, %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	%rsi, -80(%rbp)
	movslq	(%rdx), %rcx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	(%r12), %rcx
	movq	%rcx, -112(%rbp)
	movb	(%r14), %cl
	movl	4(%rdi), %esi
	imull	%r11d, %esi
	movl	%esi, -124(%rbp)
	movl	4(%rdx), %esi
	imull	%r11d, %esi
	movl	%eax, %ebx
	sarl	%cl, %ebx
	movl	%esi, -140(%rbp)
	addl	%r13d, %ebx
	movslq	4(%rdi), %rcx
	movslq	%ebx, %rsi
	imulq	%rcx, %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	movq	%rsi, -72(%rbp)
	movslq	4(%rdx), %rcx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	8(%r12), %rcx
	movq	%rcx, -104(%rbp)
	movb	(%r14), %cl
	movl	8(%rdi), %esi
	imull	%r11d, %esi
	movl	%esi, -120(%rbp)
	movl	8(%rdx), %esi
	imull	%r11d, %esi
	movl	%eax, %ebx
	sarl	%cl, %ebx
	movl	%esi, -136(%rbp)
	addl	%r13d, %ebx
	movslq	8(%rdi), %rcx
	movslq	%ebx, %rsi
	imulq	%rcx, %rsi
	shlq	$2, %rsi
	addq	16(%r15), %rsi
	movq	%rsi, -64(%rbp)
	movslq	8(%rdx), %rcx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	16(%r12), %rcx
	movq	%rcx, -96(%rbp)
	movl	12(%rdi), %ecx
	imull	%r11d, %ecx
	movl	%ecx, -116(%rbp)
	movl	12(%rdx), %ecx
	imull	%r11d, %ecx
	movl	%ecx, -132(%rbp)
	movslq	12(%rdi), %rcx
	imulq	%r8, %rcx
	shlq	$2, %rcx
	addq	24(%r15), %rcx
	movq	%rcx, -56(%rbp)
	movslq	12(%rdx), %rcx
	imulq	%r13, %rcx
	shlq	$2, %rcx
	addq	24(%r12), %rcx
	movl	%r9d, %r8d
	movq	%rcx, -88(%rbp)
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rcx
	movq	%rcx, -72(%rbp)
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rcx
	movq	%rcx, -104(%rbp)
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r11d
	leaq	-144(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	-80(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	leaq	-112(%rbp), %r9
	movq	%r10, %rdi
	movl	%eax, %ecx
	callq	_sws_scale
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scale_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_slice
_scale_slice:                           ; @scale_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x5
	mov	x9, x3
Lloh0:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	stur	x10, [x29, #-8]
	ldr	x10, [x0]
	ldr	x10, [x10]
	ldp	x13, x12, [x2]
	ldp	x14, x11, [x1]
	ldr	w15, [x13]
	mul	w15, w15, w6
	str	w15, [sp, #24]
	ldr	w15, [x14]
	mul	w15, w15, w6
	str	w15, [sp, #8]
	add	w15, w4, w7
	ldr	w16, [x13]
	mul	w16, w16, w15
	ldp	x17, x0, [x12]
	add	x16, x17, w16, sxtw #2
	stur	x16, [x29, #-40]
	ldr	x16, [x11]
	ldr	w17, [x14]
	mul	w17, w17, w7
	add	x16, x16, w17, sxtw #2
	str	x16, [sp, #40]
	ldr	w16, [x10]
	ldr	w17, [x13, #4]
	mul	w17, w17, w6
	str	w17, [sp, #28]
	ldr	w17, [x14, #4]
	mul	w17, w17, w6
	str	w17, [sp, #12]
	asr	w16, w4, w16
	add	w16, w16, w7
	ldr	w17, [x13, #4]
	mul	w16, w17, w16
	add	x16, x0, w16, sxtw #2
	stur	x16, [x29, #-32]
	ldr	x16, [x11, #8]
	ldr	w17, [x14, #4]
	mul	w17, w17, w7
	add	x16, x16, w17, sxtw #2
	str	x16, [sp, #48]
	ldr	w16, [x10]
	ldr	w17, [x13, #8]
	mul	w17, w17, w6
	str	w17, [sp, #32]
	ldr	w17, [x14, #8]
	mul	w17, w17, w6
	str	w17, [sp, #16]
	asr	w16, w4, w16
	add	w16, w16, w7
	ldr	w17, [x13, #8]
	mul	w16, w17, w16
	ldp	x17, x0, [x12, #16]
	add	x16, x17, w16, sxtw #2
	stur	x16, [x29, #-24]
	ldr	x16, [x11, #16]
	ldr	w17, [x14, #8]
	mul	w17, w17, w7
	add	x16, x16, w17, sxtw #2
	str	x16, [sp, #56]
	ldr	w16, [x13, #12]
	mul	w16, w16, w6
	str	w16, [sp, #36]
	ldr	w16, [x14, #12]
	mul	w16, w16, w6
	str	w16, [sp, #20]
	ldr	w13, [x13, #12]
	mul	w13, w13, w15
	add	x13, x0, w13, sxtw #2
	stur	x13, [x29, #-16]
	ldr	x13, [x11, #24]
	ldr	w14, [x14, #12]
	mul	w14, w14, w7
	add	x13, x13, w14, sxtw #2
	str	x13, [sp, #64]
	ldr	x13, [x10, #16]
	cbz	x13, LBB0_2
; %bb.1:
	ldr	x12, [x12, #8]
	stur	x12, [x29, #-32]
LBB0_2:
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_4
; %bb.3:
	ldr	x10, [x11, #8]
	str	x10, [sp, #48]
LBB0_4:
	sdiv	w3, w4, w6
	sub	x1, x29, #40
	add	x2, sp, #24
	add	x5, sp, #40
	add	x6, sp, #8
	mov	x0, x9
	mov	x4, x8
	bl	_sws_scale
	ldur	x8, [x29, #-8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scale_slice
.subsections_via_symbols
