	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestExpandBrushes              ## -- Begin function TestExpandBrushes
	.p2align	4, 0x90
_TestExpandBrushes:                     ## @TestExpandBrushes
	.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	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	_mapplanes@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rbx, %rdi
	callq	_CopyBrush
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%rax)
	cmpl	$0, (%rbx)
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	(%r15), %r13
	movq	(%r14,%r12,8), %r15
	shlq	$4, %r15
	movl	8(%r13,%r15), %ebx
	movq	(%r13,%r15), %rax
	movl	(%rax), %edi
	shll	$4, %edi
	callq	_fabs
	addl	%eax, %ebx
	movq	(%r13,%r15), %rax
	movl	4(%rax), %edi
	shll	$4, %edi
	callq	_fabs
	addl	%eax, %ebx
	movq	(%r13,%r15), %rax
	movl	8(%rax), %edi
	shll	$4, %edi
	callq	_fabs
	addl	%eax, %ebx
	movq	(%r13,%r15), %rdi
	movq	_mapplanes@GOTPCREL(%rip), %r15
	movl	%ebx, %esi
	callq	_FindFloatPlane
	movq	%rax, (%r14,%r12,8)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	jmp	LBB0_8
LBB0_1:
	xorl	%esi, %esi
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_WriteBspBrushMap
	leaq	L_.str.1(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_entities,8,3                   ## @entities
	.comm	_mapplanes,8,3                  ## @mapplanes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expanded.map"

L_.str.1:                               ## @.str.1
	.asciz	"can't proceed after expanding brushes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestExpandBrushes              ; -- Begin function TestExpandBrushes
	.p2align	2
_TestExpandBrushes:                     ; @TestExpandBrushes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _entities@GOTPAGE
Lloh1:
	ldr	x21, [x21, _entities@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x19, [x8]
	cbz	x19, LBB0_7
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x22, _mapplanes@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mapplanes@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #16]
	mov	x23, x20
	cbz	x19, LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x19
	bl	_CopyBrush
	mov	x20, x0
	str	x23, [x0, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x19, #8]
	lsl	x25, x23, #3
	ldr	x8, [x24, x25]
	ldr	x9, [x22]
	add	x26, x9, x8, lsl #4
	ldr	w27, [x26, #8]
	ldr	x8, [x26]
	ldr	w8, [x8]
	lsl	w0, w8, #4
	bl	_fabs
	add	w27, w27, w0
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
	lsl	w0, w8, #4
	bl	_fabs
	add	w27, w27, w0
	ldr	x8, [x26]
	ldr	w8, [x8, #8]
	lsl	w0, w8, #4
	bl	_fabs
	add	w1, w27, w0
	ldr	x0, [x26]
	bl	_FindFloatPlane
	str	x0, [x24, x25]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	x8, [x21]
	ldr	x1, [x8]
	b	LBB0_8
LBB0_7:
	mov	x1, #0
LBB0_8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WriteBspBrushMap
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_Error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_entities,8,3                   ; @entities
	.comm	_mapplanes,8,3                  ; @mapplanes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expanded.map"

l_.str.1:                               ; @.str.1
	.asciz	"can't proceed after expanding brushes"

.subsections_via_symbols
