	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BoxOnPlaneSide                 ## -- Begin function BoxOnPlaneSide
	.p2align	4, 0x90
_BoxOnPlaneSide:                        ## @BoxOnPlaneSide
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdx), %rcx
	cmpq	$2, %rcx
	jg	LBB0_5
## %bb.1:
	cvtsi2ssq	(%rsi,%rcx,8), %xmm2
	movss	4(%rdx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movq	_PLANESIDE_EPSILON@GOTPCREL(%rip), %rax
	cvtsi2ssq	(%rax), %xmm1
	movaps	%xmm0, %xmm3
	addss	%xmm1, %xmm3
	xorl	%edx, %edx
	ucomiss	%xmm3, %xmm2
	movl	$0, %eax
	jbe	LBB0_3
## %bb.2:
	movq	_PSIDE_FRONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	xorps	%xmm2, %xmm2
	cvtsi2ssq	(%rdi,%rcx,8), %xmm2
	subss	%xmm1, %xmm0
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_23
## %bb.4:
	movq	_PSIDE_BACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_23
LBB0_5:
	movl	8(%rdx), %eax
	cmpq	$7, %rax
	ja	LBB0_6
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%rsi, %r8
	movq	%rsi, %r9
	movq	%rsi, %r10
	movq	%rdi, %r11
	movq	%rdi, %r14
	jmpq	*%rax
LBB0_8:
	movq	%rdi, %r8
	movq	%rsi, %r9
	movq	%rsi, %r10
	movq	%rsi, %r11
	movq	%rdi, %r14
	jmp	LBB0_18
LBB0_6:
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	jmp	LBB0_19
LBB0_9:
	movq	%rsi, %r8
	movq	%rdi, %r9
	movq	%rsi, %r10
	movq	%rdi, %r11
	movq	%rsi, %r14
	jmp	LBB0_18
LBB0_10:
	movq	%rdi, %r8
	movq	%rdi, %r9
	movq	%rsi, %r10
	movq	%rsi, %r11
	movq	%rsi, %r14
	jmp	LBB0_18
LBB0_11:
	movq	%rsi, %r8
	movq	%rsi, %r9
	movq	%rdi, %r10
	movq	%rdi, %r11
	movq	%rdi, %r14
	jmp	LBB0_17
LBB0_13:
	movq	%rdi, %r8
	movq	%rsi, %r9
	movq	%rdi, %r10
	movq	%rsi, %r11
	movq	%rdi, %r14
	jmp	LBB0_17
LBB0_14:
	movq	%rsi, %r8
	movq	%rdi, %r9
	movq	%rdi, %r10
	movq	%rdi, %r11
	jmp	LBB0_16
LBB0_15:
	movq	%rdi, %r8
	movq	%rdi, %r9
	movq	%rdi, %r10
	movq	%rsi, %r11
LBB0_16:
	movq	%rsi, %r14
LBB0_17:
	movq	%rsi, %rdi
LBB0_18:
	movq	16(%rdx), %rax
	movq	(%rax), %r15
	movq	8(%rax), %rbx
	movq	(%r8), %rcx
	imulq	%r15, %rcx
	movq	8(%r9), %rsi
	imulq	%rbx, %rsi
	addq	%rcx, %rsi
	movq	16(%rax), %rax
	movq	16(%r10), %rcx
	imulq	%rax, %rcx
	addq	%rsi, %rcx
	cvtsi2ss	%rcx, %xmm0
	imulq	(%r11), %r15
	imulq	8(%r14), %rbx
	addq	%r15, %rbx
	imulq	16(%rdi), %rax
	addq	%rbx, %rax
	cvtsi2ss	%rax, %xmm1
LBB0_19:
	movss	4(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	movq	_PLANESIDE_EPSILON@GOTPCREL(%rip), %rax
	cvtsi2ssq	(%rax), %xmm3
	xorl	%eax, %eax
	ucomiss	%xmm3, %xmm0
	movl	$0, %edx
	jb	LBB0_21
## %bb.20:
	movq	_PSIDE_FRONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_21:
	subss	%xmm2, %xmm1
	ucomiss	%xmm1, %xmm3
	jbe	LBB0_23
## %bb.22:
	movq	_PSIDE_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	orl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_PLANESIDE_EPSILON,8,3          ## @PLANESIDE_EPSILON
	.comm	_PSIDE_FRONT,4,2                ## @PSIDE_FRONT
	.comm	_PSIDE_BACK,4,2                 ## @PSIDE_BACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BoxOnPlaneSide                 ; -- Begin function BoxOnPlaneSide
	.p2align	2
_BoxOnPlaneSide:                        ; @BoxOnPlaneSide
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x2]
	cmp	w8, #2
	b.gt	LBB0_2
; %bb.1:
	lsl	x9, x8, #3
	ldr	x8, [x1, x9]
	scvtf	s0, x8
	ldr	s1, [x2, #4]
Lloh0:
	adrp	x8, _PLANESIDE_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANESIDE_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	scvtf	s2, x8
	fadd	s3, s1, s2
Lloh3:
	adrp	x8, _PSIDE_FRONT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSIDE_FRONT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	fcmp	s3, s0
	csel	w8, w8, wzr, mi
	ldr	x9, [x0, x9]
	scvtf	s0, x9
	fsub	s1, s1, s2
Lloh6:
	adrp	x9, _PSIDE_BACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PSIDE_BACK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	fcmp	s1, s0
	csel	w9, w9, wzr, gt
	orr	w0, w9, w8
	ret
LBB0_2:
	ldr	w8, [x2, #8]
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.3:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x13, LBB0_4
	ldrb	w10, [x9, x8]
	add	x13, x13, x10, lsl #2
	mov	x8, x1
	mov	x9, x1
	mov	x10, x1
	mov	x11, x0
	mov	x12, x0
	br	x13
LBB0_4:
	mov	x8, x0
	mov	x9, x1
	mov	x10, x1
	mov	x11, x1
	mov	x12, x0
	b	LBB0_14
LBB0_5:
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	b	LBB0_15
LBB0_6:
	mov	x8, x1
	mov	x9, x0
	mov	x10, x1
	mov	x11, x0
	mov	x12, x1
	b	LBB0_14
LBB0_7:
	mov	x8, x0
	mov	x9, x0
	mov	x10, x1
	mov	x11, x1
	mov	x12, x1
	b	LBB0_14
LBB0_8:
	mov	x8, x1
	mov	x9, x1
	mov	x10, x0
	mov	x11, x0
	mov	x12, x0
	b	LBB0_13
LBB0_9:
	mov	x8, x0
	mov	x9, x1
	mov	x10, x0
	mov	x11, x1
	mov	x12, x0
	b	LBB0_13
LBB0_10:
	mov	x8, x1
	mov	x9, x0
	mov	x10, x0
	mov	x11, x0
	b	LBB0_12
LBB0_11:
	mov	x8, x0
	mov	x9, x0
	mov	x10, x0
	mov	x11, x1
LBB0_12:
	mov	x12, x1
LBB0_13:
	mov	x0, x1
LBB0_14:
	ldr	x13, [x2, #16]
	ldr	x8, [x8]
	ldp	x14, x15, [x13]
	mul	x8, x8, x14
	ldr	x9, [x9, #8]
	madd	x8, x9, x15, x8
	ldr	x9, [x13, #16]
	ldr	x10, [x10, #16]
	madd	x8, x10, x9, x8
	scvtf	s0, x8
	ldr	x8, [x11]
	mul	x8, x8, x14
	ldr	x10, [x12, #8]
	madd	x8, x10, x15, x8
	ldr	x10, [x0, #16]
	madd	x8, x10, x9, x8
	scvtf	s1, x8
LBB0_15:
	ldr	s2, [x2, #4]
Lloh11:
	adrp	x8, _PLANESIDE_EPSILON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLANESIDE_EPSILON@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	scvtf	s3, x8
	fsub	s0, s0, s2
Lloh14:
	adrp	x8, _PSIDE_FRONT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PSIDE_FRONT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	fcmp	s0, s3
	csel	w9, wzr, w8, lt
	fsub	s0, s1, s2
Lloh17:
	adrp	x8, _PSIDE_BACK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PSIDE_BACK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	fcmp	s0, s3
	csel	w8, w8, wzr, mi
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_PLANESIDE_EPSILON,8,3          ; @PLANESIDE_EPSILON
	.comm	_PSIDE_FRONT,4,2                ; @PSIDE_FRONT
	.comm	_PSIDE_BACK,4,2                 ; @PSIDE_BACK
.subsections_via_symbols
