	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function offset_polygon
LCPI0_0:
	.long	0x3a83126f                      ## float 0.00100000005
LCPI0_1:
	.long	0xba83126f                      ## float -0.00100000005
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_offset_polygon:                        ## @offset_polygon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movaps	%xmm0, %xmm3
	movq	%rdi, %rbx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	ucomiss	LCPI0_1(%rip), %xmm2
	ja	LBB0_7
LBB0_2:
	insertps	$16, %xmm3, %xmm1               ## xmm1 = xmm1[0],xmm3[0],xmm1[2,3]
	movsldup	%xmm2, %xmm0                    ## xmm0 = xmm2[0,0,2,2]
	divps	%xmm0, %xmm1
	movshdup	%xmm1, %xmm0                    ## xmm0 = xmm1[1,1,3,3]
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm3, %xmm3
	movaps	%xmm1, %xmm4
	cmpltps	%xmm3, %xmm4
	pmovsxdq	%xmm4, %xmm3
	movmskpd	%xmm3, %eax
	testb	$2, %al
	je	LBB0_4
## %bb.3:
	xorps	%xmm2, %xmm0
LBB0_4:
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	xorps	%xmm2, %xmm1
LBB0_6:
	callq	_MAX2
	mulss	16(%rbx), %xmm0
	addss	20(%rbx), %xmm0
LBB0_7:
	cmpq	$0, 40(%rbx)
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	je	LBB0_9
## %bb.8:
	movaps	%xmm0, %xmm2
LBB0_9:
	movss	%xmm2, (%rbx)
	cmpq	$0, 32(%rbx)
	xorps	%xmm2, %xmm2
	je	LBB0_11
## %bb.10:
	movaps	%xmm0, %xmm2
LBB0_11:
	movss	%xmm2, 4(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.12:
	movaps	%xmm0, %xmm1
LBB0_13:
	movss	%xmm1, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_offset_polygon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function offset_polygon
_offset_polygon:                        ; @offset_polygon
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	movi	d8, #0000000000000000
	mov	w8, #4719
	movk	w8, #14979, lsl #16
	fmov	s3, w8
	fcmp	s2, s3
	mov	w8, #4719
	movk	w8, #47747, lsl #16
	fmov	s3, w8
	fccmp	s2, s3, #4, mi
	movi	d3, #0000000000000000
	b.gt	LBB0_2
; %bb.1:
	fdiv	s0, s0, s2
	fdiv	s1, s1, s2
	fneg	s2, s0
	fcmp	s0, #0.0
	fcsel	s0, s2, s0, mi
	fneg	s2, s1
	fcmp	s1, #0.0
	fcsel	s1, s2, s1, mi
	bl	_MAX2
	ldp	s1, s2, [x19, #16]
	fmadd	s3, s0, s1, s2
LBB0_2:
	ldr	q0, [x19, #32]
	cmeq.2d	v0, v0, #0
	xtn.2s	v0, v0
	dup.2s	v1, v3[0]
	bic.8b	v0, v1, v0
	rev64.2s	v0, v0
	str	d0, [x19]
	ldr	x8, [x19, #24]
	cmp	x8, #0
	fcsel	s0, s8, s3, eq
	str	s0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_offset_polygon
.subsections_via_symbols
