	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CM_TestBoxInBrush
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CM_TestBoxInBrush
	.p2align	4, 0x90
_CM_TestBoxInBrush:                     ## @CM_TestBoxInBrush
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	(%rcx), %rsi
	movq	(%rsi), %rbx
	movq	8(%r13), %rdx
	movq	8(%rdx), %rdi
	cmpq	(%rdi), %rbx
	jg	LBB0_20
## %bb.2:
	movq	8(%rsi), %rbx
	cmpq	8(%rdi), %rbx
	jg	LBB0_20
## %bb.3:
	movq	16(%rsi), %rsi
	cmpq	16(%rdi), %rsi
	jg	LBB0_20
## %bb.4:
	movq	8(%rcx), %rcx
	movq	(%rcx), %rsi
	movq	(%rdx), %rdx
	cmpq	(%rdx), %rsi
	jl	LBB0_20
## %bb.5:
	movq	8(%rcx), %rsi
	cmpq	8(%rdx), %rsi
	jl	LBB0_20
## %bb.6:
	movq	16(%rcx), %rcx
	cmpq	16(%rdx), %rcx
	jl	LBB0_20
## %bb.7:
	cmpq	$0, 56(%r14)
	je	LBB0_10
## %bb.8:
	cmpl	$7, %eax
	jl	LBB0_19
## %bb.9:
	movl	$6, %r15d
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r15,8), %r12
	movss	(%r12), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	addss	48(%r14), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	16(%r12), %edi
	movl	52(%r14), %esi
	callq	_DotProduct
	ucomiss	LCPI0_0(%rip), %xmm0
	movl	32(%r14), %edi
	movl	52(%r14), %esi
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	_VectorSubtract
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	callq	_VectorAdd
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	16(%r12), %esi
	callq	_DotProduct
	subss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_13
	jmp	LBB0_19
LBB0_10:
	cmpl	$7, %eax
	jl	LBB0_19
## %bb.11:
	movl	$6, %r15d
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	40(%r14), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	16(%rbx), %esi
	callq	_DotProduct
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movl	32(%r14), %edi
	movl	16(%rbx), %esi
	callq	_DotProduct
	subss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_18
LBB0_19:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	%eax, 28(%r14)
	movq	$0, 16(%r14)
	movl	16(%r13), %eax
	movl	%eax, 8(%r14)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_TestBoxInBrush              ; -- Begin function CM_TestBoxInBrush
	.p2align	2
_CM_TestBoxInBrush:                     ; @CM_TestBoxInBrush
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x1]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x0]
	ldr	x11, [x9]
	ldr	x13, [x11]
	ldr	x10, [x1, #8]
	ldr	x12, [x10, #8]
	ldr	x14, [x12]
	cmp	x13, x14
	b.gt	LBB0_20
; %bb.2:
	ldr	x13, [x11, #8]
	ldr	x14, [x12, #8]
	cmp	x13, x14
	b.gt	LBB0_20
; %bb.3:
	ldr	x11, [x11, #16]
	ldr	x12, [x12, #16]
	cmp	x11, x12
	b.gt	LBB0_20
; %bb.4:
	ldr	x9, [x9, #8]
	ldr	x11, [x9]
	ldr	x10, [x10]
	ldr	x12, [x10]
	cmp	x11, x12
	b.lt	LBB0_20
; %bb.5:
	ldr	x11, [x9, #8]
	ldr	x12, [x10, #8]
	cmp	x11, x12
	b.lt	LBB0_20
; %bb.6:
	ldr	x9, [x9, #16]
	ldr	x10, [x10, #16]
	cmp	x9, x10
	b.lt	LBB0_20
; %bb.7:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_15
; %bb.8:
	cmp	w8, #7
	b.lt	LBB0_19
; %bb.9:
	mov	w21, #6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x22, [x8, x21, lsl #3]
	ldr	s8, [x22]
	ldr	s9, [x19, #48]
	ldr	w0, [x22, #16]
	ldr	w1, [x19, #52]
	bl	_DotProduct
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #52]
	fcmp	s0, #0.0
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_VectorSubtract
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_VectorAdd
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	fadd	s8, s8, s9
	ldr	w1, [x22, #16]
	bl	_DotProduct
	fsub	s0, s0, s8
	fcmp	s0, #0.0
	b.gt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_10
	b	LBB0_19
LBB0_15:
	cmp	w8, #7
	b.lt	LBB0_19
; %bb.16:
	mov	w21, #6
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x22, [x8, x21, lsl #3]
	ldr	s8, [x22]
	ldr	x8, [x19, #40]
	ldr	x9, [x22, #8]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x22, #16]
	bl	_DotProduct
	fsub	s8, s8, s0
	ldr	w0, [x19, #32]
	ldr	w1, [x22, #16]
	bl	_DotProduct
	fsub	s0, s0, s8
	fcmp	s0, #0.0
	b.gt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_17
LBB0_19:
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w8, [x20, #16]
	str	w8, [x19, #8]
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
