	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function round_color_matrix
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4070000000000000              ## double 256
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_round_color_matrix:                    ## @round_color_matrix
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r12d, %r12d
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	_FALSE@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %eax
	cmovnel	%eax, %ebx
	cmovpl	%eax, %ebx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	callq	_gdip_round
	movl	%eax, 60(%r14,%r12)
	movq	(%r15), %rax
	movq	32(%rax), %rax
	movsd	(%rax,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %eax
	cmovnel	%eax, %ebx
	cmovpl	%eax, %ebx
	mulsd	LCPI0_1(%rip), %xmm0
	callq	_gdip_round
	movl	%eax, 80(%r14,%r12)
	addq	$4, %r12
	cmpq	$16, %r12
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movapd	%xmm0, %xmm1
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm1, %xmm1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movsd	(%rax,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %eax
	cmovnel	%eax, %ebx
	cmovpl	%eax, %ebx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	callq	_gdip_round
	movl	%eax, (%r14,%r12)
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	cmpq	$4, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm1, %xmm1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movsd	(%rax,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %eax
	cmovnel	%eax, %ebx
	cmovpl	%eax, %ebx
	mulsd	LCPI0_1(%rip), %xmm0
	callq	_gdip_round
	movl	%eax, 20(%r14,%r12)
	movq	(%r15), %rax
	movq	16(%rax), %rax
	movsd	(%rax,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	cmpq	$8, %r12
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm1, %xmm1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	ucomisd	%xmm0, %xmm1
	movl	(%r13), %eax
	cmovnel	%eax, %ebx
	cmovpl	%eax, %ebx
	mulsd	LCPI0_1(%rip), %xmm0
	callq	_gdip_round
	movl	%eax, 40(%r14,%r12)
	movq	(%r15), %rax
	movq	24(%rax), %rax
	movsd	(%rax,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	cmpq	$12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorpd	%xmm1, %xmm1
	jmp	LBB0_9
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_round_color_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function round_color_matrix
_round_color_matrix:                    ; @round_color_matrix
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x22, x1, #40
	movi	d8, #0000000000000000
	fmov	d9, #1.00000000
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	mov	x24, #4643211215818981376
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	d0, [x8, x21]
	cmp	x21, #0
	fcsel	d1, d9, d8, eq
	ldr	w8, [x23]
	fcmp	d0, d1
	csel	w20, w8, w20, ne
	fmov	d10, x24
	fmul	d0, d0, d10
	bl	_gdip_round
	stur	w0, [x22, #-40]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	d0, [x8, x21]
	cmp	x21, #8
	fcsel	d1, d9, d8, eq
	ldr	w8, [x23]
	fcmp	d0, d1
	csel	w20, w8, w20, ne
	fmul	d0, d0, d10
	bl	_gdip_round
	stur	w0, [x22, #-20]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	d0, [x8, x21]
	cmp	x21, #16
	fcsel	d1, d9, d8, eq
	ldr	w8, [x23]
	fcmp	d0, d1
	csel	w20, w8, w20, ne
	fmul	d0, d0, d10
	bl	_gdip_round
	str	w0, [x22]
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	ldr	d0, [x8, x21]
	cmp	x21, #24
	fcsel	d1, d9, d8, eq
	ldr	w8, [x23]
	fcmp	d0, d1
	csel	w20, w8, w20, ne
	fmul	d0, d0, d10
	bl	_gdip_round
	str	w0, [x22, #20]
	ldr	x8, [x19]
	ldr	x8, [x8, #32]
	ldr	d0, [x8, x21]
	ldr	w8, [x23]
	fcmp	d0, #0.0
	csel	w20, w8, w20, ne
	fmul	d0, d0, d10
	bl	_gdip_round
	str	w0, [x22, #40]
	add	x21, x21, #8
	add	x22, x22, #4
	cmp	x21, #32
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x20
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_round_color_matrix
.subsections_via_symbols
