	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalcNodeBounds                 ## -- Begin function CalcNodeBounds
	.p2align	4, 0x90
_CalcNodeBounds:                        ## @CalcNodeBounds
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	callq	_ClearBounds
	movq	8(%r12), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpq	%r12, %r15
	sete	%al
	movq	16(%r14), %rcx
	movq	(%rcx,%rax,8), %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	8(%rcx), %r15
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	callq	_AddPointToBounds
	incq	%rbx
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalcNodeBounds                 ; -- Begin function CalcNodeBounds
	.p2align	2
_CalcNodeBounds:                        ; @CalcNodeBounds
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x19]
	bl	_ClearBounds
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_3
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, x19
	cset	w8, eq
	ldr	x9, [x20, #16]
	ldr	x20, [x9, w8, uxtw #3]
	cbz	x20, LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldp	x8, x9, [x20]
	ldr	x21, [x9, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x22, lsl #2]
	ldp	w2, w1, [x19]
	bl	_AddPointToBounds
	add	x22, x22, #1
	ldr	x8, [x20]
	ldrsw	x9, [x8]
	cmp	x22, x9
	b.lt	LBB0_5
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
