	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q1_CreateMapBrushes            ## -- Begin function Q1_CreateMapBrushes
	.p2align	4, 0x90
_Q1_CreateMapBrushes:                   ## @Q1_CreateMapBrushes
	.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	%esi, %r15d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_Q1_CreateBrushesFromBSP
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_Q1_TextureBrushes
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_Q1_FixContentsTextures
	movq	_nobrushmerge@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_3
LBB0_4:
	testq	%r12, %r12
	jne	LBB0_5
	jmp	LBB0_9
LBB0_1:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_Q1_MergeBrushes
	movq	%rax, %r12
	testl	%r15d, %r15d
	jne	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_qprintf
	testq	%r12, %r12
	je	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%r12, %r12
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	movq	(%r12), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Q1_BSPBrushToMapBrush
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_FreeBrush
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_qprintf
	jmp	LBB0_8
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nobrushmerge,4,2               ## @nobrushmerge
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"converting brushes to map brushes\n"

L_.str.1:                               ## @.str.1
	.asciz	"%5d brushes"

L_.str.2:                               ## @.str.2
	.asciz	"\r%5d"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q1_CreateMapBrushes            ; -- Begin function Q1_CreateMapBrushes
	.p2align	2
_Q1_CreateMapBrushes:                   ; @Q1_CreateMapBrushes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_Q1_CreateBrushesFromBSP
	mov	x1, x19
	bl	_Q1_TextureBrushes
	mov	x21, x0
	bl	_Q1_FixContentsTextures
Lloh0:
	adrp	x8, _nobrushmerge@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nobrushmerge@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	cbz	w19, LBB0_4
LBB0_2:
	cbnz	x21, LBB0_5
	b	LBB0_9
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_Q1_MergeBrushes
	mov	x21, x0
	cbnz	w19, LBB0_2
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
	str	xzr, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_qprintf
	cbz	x21, LBB0_9
LBB0_5:
	mov	w24, #0
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cbz	x21, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x21
	ldr	x21, [x21]
	mov	x0, x23
	mov	x1, x20
	bl	_Q1_BSPBrushToMapBrush
	str	xzr, [x23]
	mov	x0, x23
	bl	_FreeBrush
	cbnz	w19, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	str	x24, [sp]
	mov	x0, x22
	bl	_qprintf
	b	LBB0_6
LBB0_9:
	cbz	w19, LBB0_11
; %bb.10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	add	sp, sp, #80
	b	_qprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_nobrushmerge,4,2               ; @nobrushmerge
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"converting brushes to map brushes\n"

l_.str.1:                               ; @.str.1
	.asciz	"%5d brushes"

l_.str.2:                               ; @.str.2
	.asciz	"\r%5d"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

.subsections_via_symbols
