	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveDuplicateBrushPlanes     ## -- Begin function RemoveDuplicateBrushPlanes
	.p2align	4, 0x90
_RemoveDuplicateBrushPlanes:            ## @RemoveDuplicateBrushPlanes
	.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	(%rdi), %eax
	movq	_qtrue@GOTPCREL(%rip), %r12
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.1:
	movq	%rdi, %r13
	movq	16(%rdi), %rbx
	movl	$1, %r15d
	leaq	L_.str(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%eax
	movl	%eax, (%r13)
	decl	%r15d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%eax, %r15d
	jge	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movslq	%r15d, %rcx
	movl	(%rbx,%rcx,4), %ecx
	cmpl	$-1, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rsi,4), %edi
	cmpl	%edi, %ecx
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	$1, %edi
	cmpl	%edi, %ecx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_11
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movq	%r14, %rdi
	callq	__printf
	leal	1(%r15), %ecx
	movl	(%r13), %eax
	cmpl	%eax, %ecx
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rcx
	movl	%r15d, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%edx, %rdx
	movl	(%rbx,%rcx,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	incq	%rcx
	movslq	(%r13), %rax
	incl	%edx
	cmpq	%rax, %rcx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	__printf
	leal	1(%r15), %ecx
	movl	(%r13), %eax
	cmpl	%eax, %ecx
	jge	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rcx
	movl	%r15d, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%edx, %rdx
	movl	(%rbx,%rcx,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	incq	%rcx
	movslq	(%r13), %rax
	incl	%edx
	cmpq	%rax, %rcx
	jl	LBB0_14
	jmp	LBB0_8
LBB0_16:
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	__printf
	movq	_qfalse@GOTPCREL(%rip), %r12
LBB0_17:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entity %i, Brush %i: degenerate plane\n"

L_.str.1:                               ## @.str.1
	.asciz	"Entity %i, Brush %i: duplicate plane\n"

L_.str.2:                               ## @.str.2
	.asciz	"Entity %i, Brush %i: mirrored plane\n"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveDuplicateBrushPlanes     ; -- Begin function RemoveDuplicateBrushPlanes
	.p2align	2
_RemoveDuplicateBrushPlanes:            ; @RemoveDuplicateBrushPlanes
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0, #16]
	mov	w24, #1
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x22, _qtrue@GOTPAGE
Lloh3:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x22, _qtrue@GOTPAGE
Lloh7:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	b	LBB0_19
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x10
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w8, #1
	str	w8, [x19]
	sub	w24, w24, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_19
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w9, [x23, w24, sxtw #2]
	cmn	w9, #1
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w10, w24
	mov	x11, x23
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x11]
	cmp	w9, w12
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	eor	w12, w12, #0x1
	cmp	w9, w12
	b.eq	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x11, x11, #4
	subs	x10, x10, #1
	b.ne	LBB0_9
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [x19, #4]
	mov	x0, x20
	bl	__printf
	add	w9, w24, #1
	ldr	w8, [x19]
	cmp	w9, w8
	b.ge	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x9, w9
	mov	x10, x24
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x23, x9, lsl #2]
	str	w8, [x23, w10, sxtw #2]
	add	x9, x9, #1
	ldrsw	x8, [x19]
	add	w10, w10, #1
	cmp	x9, x8
	b.lt	LBB0_14
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [x19, #4]
	mov	x0, x21
	bl	__printf
	add	w9, w24, #1
	ldr	w8, [x19]
	cmp	w9, w8
	b.ge	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x8, w9
	mov	x9, x24
LBB0_17:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x23, x8, lsl #2]
	str	w10, [x23, w9, sxtw #2]
	add	x8, x8, #1
	ldrsw	x10, [x19]
	add	w9, w9, #1
	cmp	x8, x10
	b.lt	LBB0_17
	b	LBB0_3
LBB0_18:
	ldp	w2, w1, [x19, #4]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__printf
Lloh10:
	adrp	x22, _qfalse@GOTPAGE
Lloh11:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x22]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entity %i, Brush %i: degenerate plane\n"

l_.str.1:                               ; @.str.1
	.asciz	"Entity %i, Brush %i: duplicate plane\n"

l_.str.2:                               ; @.str.2
	.asciz	"Entity %i, Brush %i: mirrored plane\n"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
