	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function chunk_visible
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.space	4
	.space	4
	.space	4
LCPI0_1:
	.space	4
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_chunk_visible
	.p2align	4, 0x90
_chunk_visible:                         ## @chunk_visible
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %esi
	imull	%eax, %edx
	cvtsi2ss	%ecx, %xmm14
	leal	-1(%rdx), %ecx
	cvtsi2ss	%ecx, %xmm10
	movd	%esi, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <4294967295,u,u,u>
	pinsrd	$1, %eax, %xmm1
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	paddd	%xmm0, %xmm1
	cvtdq2ps	%xmm1, %xmm2
	movshdup	%xmm2, %xmm0                    ## xmm0 = xmm2[1,1,3,3]
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	addl	%eax, %edx
	cvtsi2ss	%edx, %xmm11
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r8d, %xmm0
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	sete	%cl
	leaq	(%rcx,%rcx), %r8
	addq	$4, %r8
	addq	%rcx, %rcx
	movsldup	%xmm10, %xmm15                  ## xmm15 = xmm10[0,0,2,2]
	addq	$12, %rdi
	movq	$-4, %r9
	subq	%rcx, %r9
	movb	$1, %r14b
	movl	$1, %esi
	xorps	%xmm9, %xmm9
	movaps	LCPI0_1(%rip), %xmm13           ## xmm13 = <u,1,u,u>
	xorps	%xmm12, %xmm12
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	addss	%xmm1, %xmm7
	addss	%xmm4, %xmm7
	xorl	%ecx, %ecx
	ucomiss	%xmm7, %xmm12
	setbe	%cl
	negl	%ecx
	cmpl	%ecx, %eax
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r8, %rsi
	setb	%r14b
	addq	$16, %rdi
	leaq	(%r9,%rsi), %rax
	incq	%rax
	incq	%rsi
	cmpq	$1, %rax
	je	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movss	-12(%rdi), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-8(%rdi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	-4(%rdi), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	movss	(%rdi), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm3
	mulss	%xmm14, %xmm3
	movsldup	%xmm1, %xmm6                    ## xmm6 = xmm1[0,0,2,2]
	movsldup	%xmm3, %xmm3                    ## xmm3 = xmm3[0,0,2,2]
	mulps	%xmm2, %xmm6
	addps	%xmm3, %xmm6
	movsldup	%xmm5, %xmm3                    ## xmm3 = xmm5[0,0,2,2]
	mulps	%xmm15, %xmm3
	addps	%xmm6, %xmm3
	movsldup	%xmm4, %xmm8                    ## xmm8 = xmm4[0,0,2,2]
	addps	%xmm3, %xmm8
	movaps	%xmm8, %xmm3
	cmpltps	%xmm9, %xmm3
	pmovsxdq	%xmm3, %xmm3
	movmskpd	%xmm3, %edx
	movl	%edx, %ecx
	shrb	%cl
	andl	$1, %edx
	cmpnltps	%xmm9, %xmm8
	movaps	%xmm8, %xmm3
	andps	%xmm13, %xmm3
	pshufd	$85, %xmm3, %xmm3               ## xmm3 = xmm3[1,1,1,1]
	psubd	%xmm8, %xmm3
	movd	%xmm3, %eax
	movzbl	%cl, %ecx
	addl	%edx, %ecx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movaps	%xmm5, %xmm7
	mulss	%xmm11, %xmm7
	movaps	%xmm7, %xmm3
	addss	%xmm6, %xmm3
	addss	%xmm4, %xmm3
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	ucomiss	%xmm3, %xmm12
	seta	%dl
	setbe	%bl
	addl	%edx, %ecx
	addl	%ebx, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movshdup	%xmm6, %xmm3                    ## xmm3 = xmm6[1,1,3,3]
	addss	%xmm7, %xmm3
	addss	%xmm4, %xmm3
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	ucomiss	%xmm3, %xmm12
	seta	%dl
	setbe	%bl
	addl	%edx, %ecx
	addl	%ebx, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	mulss	-20(%rbp), %xmm0                ## 4-byte Folded Reload
	movaps	%xmm1, %xmm6
	mulss	%xmm2, %xmm6
	addss	%xmm0, %xmm6
	mulss	%xmm10, %xmm5
	movaps	%xmm5, %xmm3
	addss	%xmm6, %xmm3
	addss	%xmm4, %xmm3
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	ucomiss	%xmm3, %xmm12
	seta	%dl
	setbe	%bl
	addl	%edx, %ecx
	addl	%ebx, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	mulss	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	addss	%xmm0, %xmm1
	addss	%xmm1, %xmm5
	addss	%xmm4, %xmm5
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	ucomiss	%xmm5, %xmm12
	seta	%dl
	setbe	%bl
	addl	%edx, %ecx
	addl	%ebx, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	addss	%xmm7, %xmm6
	addss	%xmm4, %xmm6
	xorl	%r10d, %r10d
	xorl	%edx, %edx
	ucomiss	%xmm6, %xmm12
	seta	%r11b
	setbe	%dl
	addl	%edx, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movb	%r11b, %r10b
	negl	%r10d
	cmpl	%r10d, %ecx
	jne	LBB0_14
	jmp	LBB0_13
LBB0_15:
	notb	%r14b
	movzbl	%r14b, %eax
	andl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNK_SIZE,4,2                 ## @CHUNK_SIZE
	.comm	_g,8,3                          ## @g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chunk_visible                  ; -- Begin function chunk_visible
	.p2align	2
_chunk_visible:                         ; @chunk_visible
	.cfi_startproc
; %bb.0:
	mov	x8, #0
Lloh0:
	adrp	x9, _CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w10, w9, w1
	sub	w11, w10, #1
	scvtf	s0, w11
	mul	w11, w9, w2
	sub	w12, w11, #1
	scvtf	s1, w3
	scvtf	s2, w12
	add	w10, w10, w9
	scvtf	s3, w10
	add	w9, w11, w9
	scvtf	s4, w9
	scvtf	s5, w4
Lloh3:
	adrp	x9, _g@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #4
	mov	w11, #6
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	add	x10, x0, #8
	mov	w11, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	cset	w11, lo
	add	x10, x10, #16
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s16, s17, [x10, #-8]
	ldp	s6, s7, [x10]
	fmul	s18, s17, s1
	fmadd	s19, s16, s0, s18
	fmadd	s20, s6, s2, s19
	fadd	s20, s20, s7
	fmadd	s18, s16, s3, s18
	fmadd	s21, s6, s2, s18
	fadd	s21, s21, s7
	fcmp	s21, #0.0
	cset	w13, mi
	cset	w12, pl
	fcmp	s20, #0.0
	cinc	w12, w12, pl
	cinc	w13, w13, mi
	cmp	w12, #0
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	fmadd	s19, s6, s4, s19
	fadd	s19, s19, s7
	fcmp	s19, #0.0
	cinc	w12, w12, pl
	cinc	w13, w13, mi
	cmp	w12, #0
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	fmadd	s18, s6, s4, s18
	fadd	s18, s18, s7
	fcmp	s18, #0.0
	cinc	w12, w12, pl
	cinc	w13, w13, mi
	cmp	w12, #0
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	fmul	s18, s17, s5
	fmadd	s17, s16, s0, s18
	fmadd	s19, s6, s2, s17
	fadd	s19, s19, s7
	fcmp	s19, #0.0
	cinc	w12, w12, pl
	cinc	w13, w13, mi
	cmp	w12, #0
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	fmadd	s16, s16, s3, s18
	fmadd	s18, s6, s2, s16
	fadd	s18, s18, s7
	fcmp	s18, #0.0
	cinc	w14, w12, pl
	cinc	w12, w13, mi
	cmp	w14, #0
	ccmp	w12, #0, #4, ne
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	fmadd	s17, s6, s4, s17
	fadd	s17, s17, s7
	fcmp	s17, #0.0
	cinc	w13, w14, pl
	csetm	w14, mi
	cmp	w13, #0
	ccmp	w12, w14, #4, ne
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	fmadd	s6, s6, s4, s16
	fadd	s6, s6, s7
	fcmp	s6, #0.0
	csetm	w12, pl
	cmp	w13, w12
	b.ne	LBB0_1
LBB0_9:
	mvn	w8, w11
	and	w0, w8, #0x1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNK_SIZE,4,2                 ; @CHUNK_SIZE
	.comm	_g,8,3                          ; @g
.subsections_via_symbols
