	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function YCoCgAtoRGBA
_YCoCgAtoRGBA:                          ## @YCoCgAtoRGBA
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.1:
	movq	%rsi, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-56(%rbp), %r14                 ## 4-byte Folded Reload
	shlq	$3, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi,%r14), %r15
	movq	16(%rdi,%r14), %rbx
	movq	24(%rdi,%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%r15,%rcx), %rdi
	subq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_CLAMP
	movq	%rax, (%r13,%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %rdi
	addq	$-128, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_CLAMP
	movq	%rax, 8(%r13,%r14)
	addq	%rbx, %r15
	negq	%r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rdi
	addq	$256, %rdi                      ## imm = 0x100
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_CLAMP
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, 16(%r13,%r14)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 24(%r13,%r14)
	addq	$32, %r14
	decl	%r12d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_YCoCgAtoRGBA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function YCoCgAtoRGBA
_YCoCgAtoRGBA:                          ; @YCoCgAtoRGBA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	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
	.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
	stp	x0, x1, [sp, #16]               ; 16-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x22, #0
	lsl	w8, w2, #2
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w24, w3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, x24
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w8, w22
	sbfiz	x8, x8, #3, #32
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x9, x8
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x9, x8
	mov	x27, x19
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x28, x20, [x26]
	ldp	x21, x23, [x26, #16]
	add	x8, x20, x28
	sub	x0, x8, x21
	mov	w1, #0
	mov	w2, #255
	bl	_CLAMP
	str	x0, [x25]
	add	x8, x28, x21
	sub	x0, x8, #128
	mov	w1, #0
	mov	w2, #255
	bl	_CLAMP
	str	x0, [x25, #8]
	add	x8, x20, x21
	sub	x8, x28, x8
	add	x0, x8, #256
	mov	w1, #0
	mov	w2, #255
	bl	_CLAMP
	stp	x0, x23, [x25, #16]
	add	x26, x26, #32
	add	x25, x25, #32
	subs	w27, w27, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_YCoCgAtoRGBA
.subsections_via_symbols
