	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function invert
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_invert:                                ## @invert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movl	%esi, %r9d
	cmpl	$8, %esi
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_3:
	movl	%r9d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rdx,4), %xmm1
	movups	16(%rdi,%rdx,4), %xmm2
	movups	32(%rdi,%rdx,4), %xmm3
	movups	48(%rdi,%rdx,4), %xmm4
	xorps	%xmm0, %xmm1
	xorps	%xmm0, %xmm2
	movups	%xmm1, (%rdi,%rdx,4)
	movups	%xmm2, 16(%rdi,%rdx,4)
	xorps	%xmm0, %xmm3
	xorps	%xmm0, %xmm4
	movups	%xmm3, 32(%rdi,%rdx,4)
	movups	%xmm4, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movups	(%rdi,%rdx,4), %xmm0
	movups	16(%rdi,%rdx,4), %xmm1
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm0
	xorps	%xmm2, %xmm1
	movups	%xmm0, (%rdi,%rdx,4)
	movups	%xmm1, 16(%rdi,%rdx,4)
LBB0_9:
	cmpq	%r9, %rcx
	je	LBB0_12
LBB0_10:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rdi,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm1
	movss	%xmm1, (%rdi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_11
LBB0_12:
	movl	%esi, %eax
	decl	%eax
	shrl	$31, %eax
	addl	%esi, %eax
	decl	%eax
	sarl	%eax
	cltq
	movss	(%rdi,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, (%rdi,%rax,4)
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_invert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invert
_invert:                                ; @invert
	.cfi_startproc
; %bb.0:
	subs	w8, w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w9, w1
	cmp	w1, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffff0
	add	x11, x0, #32
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11]
	fneg.4s	v0, v0
	fneg.4s	v1, v1
	fneg.4s	v2, v2
	fneg.4s	v3, v3
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	add	x11, x0, x10, lsl #2
	sub	x9, x9, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x11]
	fneg	s0, s0
	str	s0, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	cmp	w8, #0
	csel	w8, w1, w8, lt
	asr	w8, w8, #1
	sbfiz	x8, x8, #2, #32
	ldr	s0, [x0, x8]
	fmov	s1, #1.00000000
	fadd	s0, s0, s1
	str	s0, [x0, x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_invert
.subsections_via_symbols
