	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_line
_scale_line:                            ## @scale_line
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	shrl	%eax
	movl	%ecx, %r8d
	shrl	%r8d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	divl	%r8d
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movl	%eax, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	movl	$1, %r12d
	cmovael	%ecx, %r12d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	shlq	$2, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%r14), %esi
	addl	%edx, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %r13d
	sbbl	$-1, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	cmpl	%r15d, %r13d
	cmovbl	%r9d, %r15d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %ecx
	leaq	(%rdi,%rcx,4), %rsi
	movq	%rbx, %rdi
	callq	_memcpy
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%r9d, %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subl	%r15d, %r13d
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	decl	%r12d
	jne	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_scale_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_line
_scale_line:                            ; @scale_line
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w3, #2
	b.lo	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x1
	mov	x21, x0
	mov	w26, #0
	mov	w24, #0
	lsr	w8, w2, #1
	lsr	w22, w3, #1
	udiv	w23, w8, w22
	msub	w25, w23, w22, w8
	mov	w8, w4
	cmp	w22, #1
	csinc	w27, w22, wzr, hi
	lsl	x28, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mul	w8, w24, w19
	add	x1, x21, w8, uxtw #2
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	add	w8, w24, w23
	add	w9, w26, w25
	cmp	w9, w22
	cinc	w24, w8, hs
	csel	w8, wzr, w22, lo
	sub	w26, w9, w8
	add	x20, x20, x28
	subs	w27, w27, #1
	b.ne	LBB0_2
LBB0_3:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_scale_line
.subsections_via_symbols
