	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gdScaleCol
__gdScaleCol:                           ## @_gdScaleCol
	.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
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	decl	%r8d
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r13
	movq	16(%rbp), %rbx
	movl	%r9d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	16(%rbp), %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%r15b, %edi
	movzbl	%r12b, %esi
	movzbl	%r14b, %edx
	movzbl	%cl, %ecx
	callq	_gdTrueColorAlpha
	movq	(%r13), %rcx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	(%rcx,%rsi,8), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	incq	%rsi
	cmpq	-112(%rbp), %rsi                ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rbx), %rax
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movslq	(%rax,%rcx), %rdx
	movl	4(%rax,%rcx), %edi
	cmpl	%edi, %edx
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movl	%edx, %ecx
	shlq	$3, %rdx
	subl	%ecx, %edi
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movb	%r14b, -80(%rbp)                ## 1-byte Spill
	movb	%r12b, -72(%rbp)                ## 1-byte Spill
	movl	%r15d, %r12d
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	%rdx, %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %r14d
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movq	8(%rax,%r13), %rax
	movsd	(%rax,%rsi,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_gdTrueColorGetRed
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r15d
	addb	%r12b, %r15b
	movq	16(%rbp), %rbx
	movq	(%rbx), %rax
	movq	8(%rax,%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	callq	_gdTrueColorGetGreen
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r12d
	addb	-72(%rbp), %r12b                ## 1-byte Folded Reload
	movq	(%rbx), %rax
	movq	8(%rax,%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_gdTrueColorGetBlue
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r14d
	addb	-80(%rbp), %r14b                ## 1-byte Folded Reload
	movq	(%rbx), %rax
	movq	8(%rax,%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_gdTrueColorGetAlpha
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %ecx
	addb	-41(%rbp), %cl                  ## 1-byte Folded Reload
	cmpl	%esi, -144(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%rbp), %rax
	movq	(%rax), %rax
	incq	%rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_5
LBB0_8:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__gdScaleCol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gdScaleCol
__gdScaleCol:                           ; @_gdScaleCol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	subs	w22, w4, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x6
	mov	x21, x2
	mov	x24, #0
	mov	w8, w5
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	stp	x22, x2, [sp]                   ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w0, w20, #0xff
	and	w1, w28, #0xff
	and	w2, w27, #0xff
	and	w3, w26, #0xff
	bl	_gdTrueColorAlpha
	ldr	x8, [x21]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w0, [x8, x9, lsl #2]
	add	x24, x24, #1
	cmp	x24, x22
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19]
	add	x10, x8, x24, lsl #4
	ldp	w9, w10, [x10]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	cmp	w9, w10
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	mov	w27, #0
	mov	w28, #0
	mov	w20, #0
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	mov	w20, #0
	mov	w28, #0
	mov	w27, #0
	mov	w26, #0
	lsl	x11, x9, #3
	sub	w9, w10, w9
	stp	x9, x11, [sp, #24]              ; 16-byte Folded Spill
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	add	x9, x9, x10
	lsl	x21, x23, #3
	ldr	x9, [x9, x21]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w22, [x9, x10, lsl #2]
	lsl	x25, x24, #4
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	d8, [x8, x21]
	mov	x0, x22
	bl	_gdTrueColorGetRed
	scvtf	d0, x0
	fmul	d0, d8, d0
	fcvtzs	w8, d0
	add	w20, w20, w8
	ldr	x8, [x19]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	d8, [x8, x21]
	mov	x0, x22
	bl	_gdTrueColorGetGreen
	scvtf	d0, x0
	fmul	d0, d8, d0
	fcvtzs	w8, d0
	add	w28, w28, w8
	ldr	x8, [x19]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	d8, [x8, x21]
	mov	x0, x22
	bl	_gdTrueColorGetBlue
	scvtf	d0, x0
	fmul	d0, d8, d0
	fcvtzs	w8, d0
	add	w27, w27, w8
	ldr	x8, [x19]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	ldr	d8, [x8, x21]
	mov	x0, x22
	bl	_gdTrueColorGetAlpha
	scvtf	d0, x0
	fmul	d0, d8, d0
	fcvtzs	w8, d0
	add	w26, w26, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, w23
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19]
	add	x23, x23, #1
	b	LBB0_7
LBB0_9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__gdScaleCol
.subsections_via_symbols
