	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_square
_check_square:                          ## @check_square
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cvtsi2sd	%ecx, %xmm3
	movq	_FILTER_WIDTH@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm2                   ## xmm2 = mem[0],zero
	movsd	%xmm3, -40(%rbp)                ## 8-byte Spill
	addsd	%xmm3, %xmm2
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	callq	_square_check_line
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_OUTSIDE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-40(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	(%r14), %xmm2
	xorl	%eax, %eax
	xorpd	%xmm3, %xmm3
	ucomisd	%xmm3, %xmm2
	jbe	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_square_check_line
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.3:
	movq	_INSIDE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_WIDTH,8,3               ## @FILTER_WIDTH
	.comm	_INSIDE,4,2                     ## @INSIDE
	.comm	_OUTSIDE,4,2                    ## @OUTSIDE
	.no_dead_strip	_check_square
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_square
_check_square:                          ; @check_square
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d10, w8
Lloh0:
	adrp	x20, _FILTER_WIDTH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FILTER_WIDTH@GOTPAGEOFF]
	ldr	d0, [x20]
	fadd	d2, d0, d10
	fmov	d0, d9
	bl	_square_check_line
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _OUTSIDE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OUTSIDE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	d0, [x20]
	fsub	d2, d10, d0
	fcmp	d2, #0.0
	b.le	LBB0_4
; %bb.3:
	mov	x0, x19
	fmov	d0, d9
	fmov	d1, d8
	bl	_square_check_line
Lloh5:
	adrp	x8, _INSIDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INSIDE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_WIDTH,8,3               ; @FILTER_WIDTH
	.comm	_INSIDE,4,2                     ; @INSIDE
	.comm	_OUTSIDE,4,2                    ; @OUTSIDE
	.no_dead_strip	_check_square
.subsections_via_symbols
