	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AdjustBrushesForOrigin         ## -- Begin function AdjustBrushesForOrigin
	.p2align	4, 0x90
_AdjustBrushesForOrigin:                ## @AdjustBrushesForOrigin
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	_mapplanes@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_CreateBrushWindings
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r12
	movq	(%r13), %rax
	movq	(%r12,%rbx,8), %rcx
	shlq	$4, %rcx
	movq	%r13, %r14
	movq	8(%rax,%rcx), %r13
	movl	(%rax,%rcx), %edi
	movl	(%r15), %esi
	callq	_DotProduct
	subq	%rax, %r13
	movq	(%r14), %rax
	movq	(%r12,%rbx,8), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edi
	movq	%r13, %rsi
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_FindFloatPlane
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %r15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%r15, %r15
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %eax
	imull	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r14), %esi
	movl	%edi, %edx
	callq	_VectorSubtract
	incq	%rbx
	movslq	(%r15), %rax
	movslq	4(%r15), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AdjustBrushesForOrigin         ; -- Begin function AdjustBrushesForOrigin
	.p2align	2
_AdjustBrushesForOrigin:                ; @AdjustBrushesForOrigin
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_6
; %bb.1:
Lloh0:
	adrp	x21, _mapplanes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mapplanes@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_CreateBrushWindings
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x20]
	cmp	w8, #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	x23, [x20, #8]
	ldr	x8, [x21]
	lsl	x24, x22, #3
	ldr	x9, [x23, x24]
	add	x8, x8, x9, lsl #4
	ldr	x25, [x8, #8]
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_DotProduct
	sub	x1, x25, x0
	ldr	x8, [x21]
	ldr	x9, [x23, x24]
	lsl	x9, x9, #4
	ldr	w0, [x8, x9]
	bl	_FindFloatPlane
	str	x0, [x23, x24]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_7
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x19]
	mov	x2, x0
	bl	_VectorSubtract
	add	x21, x21, #1
	ldpsw	x8, x9, [x20]
	mul	x8, x9, x8
	cmp	x21, x8
	b.lt	LBB0_11
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
