	.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
	subq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movslq	(%rdx), %rcx
	cmpq	$2, %rcx
	jg	LBB0_3
## %bb.1:
	movss	4(%rdx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	(%rdi,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movl	$1, %eax
	ucomiss	%xmm0, %xmm1
	jae	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	ucomiss	(%rsi,%rcx,4), %xmm0
	setb	%al
	orl	$2, %eax
	jmp	LBB0_6
LBB0_3:
	movq	$0, -16(%rbp)
	movl	8(%rdx), %ecx
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	cmpl	$7, %ecx
	jg	LBB0_5
## %bb.4:
	movq	16(%rdx), %r8
	movl	%ecx, %eax
	andl	$1, %eax
	movss	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	movss	(%rsi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	-16(%rbp,%rax,4), %xmm1
	movss	%xmm1, -16(%rbp,%rax,4)
	xorl	$1, %eax
	mulss	(%rdi), %xmm0
	addss	-16(%rbp,%rax,4), %xmm0
	movss	%xmm0, -16(%rbp,%rax,4)
	movl	%ecx, %eax
	shrl	%eax
	andl	$1, %eax
	movss	4(%r8), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rsi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	-16(%rbp,%rax,4), %xmm1
	movss	%xmm1, -16(%rbp,%rax,4)
	xorl	$1, %eax
	mulss	4(%rdi), %xmm0
	addss	-16(%rbp,%rax,4), %xmm0
	movss	%xmm0, -16(%rbp,%rax,4)
	shrl	$2, %ecx
	andl	$1, %ecx
	movss	8(%r8), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	8(%rsi), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	-16(%rbp,%rcx,4), %xmm1
	movss	%xmm1, -16(%rbp,%rcx,4)
	xorl	$1, %ecx
	mulss	8(%rdi), %xmm0
	addss	-16(%rbp,%rcx,4), %xmm0
	movss	%xmm0, -16(%rbp,%rcx,4)
	movss	-16(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-12(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
LBB0_5:
	movss	4(%rdx), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	xorl	%ecx, %ecx
	ucomiss	%xmm2, %xmm1
	setae	%cl
	ucomiss	%xmm0, %xmm2
	leal	2(%rcx), %eax
	cmovbel	%ecx, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.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:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	ldrsw	x8, [x2]
	cmp	w8, #2
	b.gt	LBB0_3
; %bb.1:
	ldr	s0, [x2, #4]
	ldr	s1, [x0, x8, lsl #2]
	fcmp	s0, s1
	b.ls	LBB0_6
; %bb.2:
	ldr	s1, [x1, x8, lsl #2]
	fcmp	s0, s1
	mov	w8, #2
	mov	w9, #3
	csel	w0, w9, w8, lt
	add	sp, sp, #16
	ret
LBB0_3:
	str	xzr, [sp, #8]
	ldr	w8, [x2, #8]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	cmp	w8, #7
	b.gt	LBB0_5
; %bb.4:
	ldr	x9, [x2, #16]
	and	x10, x8, #0x1
	add	x11, sp, #8
	bfi	x11, x10, #2, #1
	ldr	s0, [x11]
	ldp	s1, s2, [x9]
	ldp	s3, s4, [x1]
	fmadd	s0, s1, s3, s0
	str	s0, [x11]
	eor	w10, w10, #0x1
	add	x11, sp, #8
	bfi	x11, x10, #2, #1
	ldr	s0, [x11]
	ldp	s3, s5, [x0]
	fmadd	s0, s1, s3, s0
	str	s0, [x11]
	ubfx	x10, x8, #1, #1
	add	x11, sp, #8
	bfi	x11, x10, #2, #1
	ldr	s0, [x11]
	fmadd	s0, s2, s4, s0
	add	x12, sp, #8
	str	s0, [x11]
	eor	w10, w10, #0x1
	add	x11, sp, #8
	bfi	x11, x10, #2, #1
	ldr	s0, [x11]
	fmadd	s0, s2, s5, s0
	str	s0, [x11]
	ubfx	w8, w8, #2, #1
	ldr	s0, [x9, #8]
	ldr	s1, [x1, #8]
	add	x9, sp, #8
	bfi	x9, x8, #2, #1
	ldr	s2, [x9]
	fmadd	s1, s0, s1, s2
	str	s1, [x9]
	ldr	s1, [x0, #8]
	eor	w8, w8, #0x1
	bfi	x12, x8, #2, #1
	ldr	s2, [x12]
	fmadd	s0, s0, s1, s2
	str	s0, [x12]
	ldp	s1, s0, [sp, #8]
LBB0_5:
	ldr	s2, [x2, #4]
	fcmp	s1, s2
	cset	w8, ge
	orr	w9, w8, #0x2
	fcmp	s0, s2
	csel	w0, w9, w8, mi
	add	sp, sp, #16
	ret
LBB0_6:
	mov	w0, #1
	add	sp, sp, #16
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
