	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function Q1_TextureBrushes
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3f847ae147ae147b              ## double 0.01
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Q1_TextureBrushes
	.p2align	4, 0x90
_Q1_TextureBrushes:                     ## @Q1_TextureBrushes
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.Q1_TextureBrushes.defaultvec(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_qprintf
LBB0_2:
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_58
## %bb.6:
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	setne	-65(%rbp)                       ## 1-byte Folded Spill
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rdx
	testq	%rax, %rax
	je	LBB0_59
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_53 Depth 3
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	$0, (%rdx)
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jle	LBB0_56
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_TEXINFO_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12,%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=2
	addq	%rbx, %r12
	movl	(%rsi), %eax
	orl	%eax, (%r12)
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r13
	movslq	(%rdx), %rax
	cmpq	%rax, %r13
	jge	LBB0_56
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_53 Depth 3
	movq	16(%rdx), %r12
	movq	%r13, %rbx
	shlq	$4, %rbx
	movl	(%rsi), %eax
	testl	%eax, (%r12,%rbx)
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movslq	4(%r12,%rbx), %r15
	movq	_lessbrushes@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_q1_numfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rbx), %r14
	addq	$12, %r14
	movl	$-1, -72(%rbp)                  ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -144(%rbp)               ## 4-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=3
	incq	%r12
	movq	_q1_numfaces@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_21
LBB0_18:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_q1_dfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi,%rbx), %rax
	movq	_q1_dnodes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx,%r15,8), %rax
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	addq	%rbx, %rdi
	movl	(%r14), %esi
	callq	_Q1_FaceOnWinding
	ucomiss	-144(%rbp), %xmm0               ## 4-byte Folded Reload
	jbe	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=3
	movl	%r12d, %eax
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movss	%xmm0, -144(%rbp)               ## 4-byte Spill
	jmp	LBB0_17
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_36
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_34
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	(%r12,%rbx), %rax
	addq	$12, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$-1, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_26 Depth=3
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=3
	incq	%r14
	movq	_q1_numfaces@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	cmpq	%rax, %r14
	jge	LBB0_33
LBB0_26:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_q1_dfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi,%r12), %rax
	movq	_q1_dnodes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx,%r15,8), %rax
	jne	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	addq	%r12, %rdi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	callq	_Q1_FaceOnWinding
	ucomiss	LCPI0_0(%rip), %xmm0
	jbe	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=3
	testl	%ebx, %ebx
	js	LBB0_24
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=3
	movq	_q1_dfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%ebx, %eax
	shlq	$4, %rax
	movl	8(%rsi,%rax), %eax
	cmpl	8(%rsi,%r12), %eax
	je	LBB0_24
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=3
	addq	%r12, %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_Q1_SplitBrushWithFace
	testq	%rax, %rax
	jne	LBB0_46
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=3
	leaq	L_.str.2(%rip), %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_Log_Write
	jmp	LBB0_25
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rsi
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=2
	xorl	%r14d, %r14d
	movl	$-1, -72(%rbp)                  ## 4-byte Folded Spill
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=2
	cmpl	%eax, %r14d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_56
LBB0_36:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.37:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	_q1_dfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %r14d
	movq	_q1_texinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbx,2), %r15
	movq	16(%rax,%r15,8), %rax
	movq	_map_texinfo@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	shlq	$5, %rbx
	movq	24(%rcx,%rbx), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movq	(%rcx), %rdi
	movq	8(%rcx), %rcx
	movl	(%rdx), %esi
	movl	%esi, (%rdi)
	movl	(%rax), %esi
	movl	%esi, (%rcx)
	movl	4(%rdx), %esi
	movl	%esi, 4(%rdi)
	movl	4(%rax), %esi
	movl	%esi, 4(%rcx)
	movl	8(%rdx), %esi
	movl	%esi, 8(%rdi)
	movl	8(%rax), %esi
	movl	%esi, 8(%rcx)
	movl	12(%rdx), %edx
	movl	%edx, 12(%rdi)
	movl	12(%rax), %eax
	movl	%eax, 12(%rcx)
	callq	_VectorLength
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r12), %rax
	movq	24(%rax,%rbx), %rax
	movq	(%rax), %rdi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_39:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r12), %rax
	movq	24(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_VectorLength
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r12), %rax
	movq	24(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_41:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_q1_texinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	8(%rdx,%r15,8), %ecx
	movq	(%r12), %rax
	movl	%ecx, 16(%rax,%rbx)
	movq	$0, 8(%rax,%rbx)
	movq	_q1_dtexdata@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	movq	(%rdx,%r15,8), %rdx
	movl	(%rsi,%rdx,4), %edx
	movq	_q1_texdatasize@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jle	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	(%rsi), %edx
LBB0_43:                                ##   in Loop: Header=BB0_13 Depth=2
	movslq	%edx, %rdx
	movl	4(%rax,%rbx), %edi
	movl	(%rcx,%rdx,4), %esi
	callq	_strcpy
	movq	_map_texinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax,%rbx)
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	%r14d, 8(%r12,%rbx)
	movq	_map_numtexinfo@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%r14d, (%rax)
LBB0_45:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rsi
	jmp	LBB0_11
LBB0_46:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rcx, 8(%rsi)
	jmp	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
LBB0_49:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rdi
	cmpq	%rdx, %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	cmoveq	%rax, %rdx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	cmoveq	%rsi, %rcx
	testq	%rcx, %rcx
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, 8(%rcx)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_52
LBB0_51:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rax, %r15
LBB0_52:                                ##   in Loop: Header=BB0_13 Depth=2
	callq	_FreeBrush
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=3
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_53
LBB0_55:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	_q1_numfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_SFL_TEXTURED@GOTPCREL(%rip), %rsi
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, %rax
	movq	%rdx, %r14
	cmpq	%rdx, -152(%rbp)                ## 8-byte Folded Reload
	sete	%al
	orb	-65(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_7
## %bb.57:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsi, %rbx
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	leaq	L_.str.3(%rip), %rdi
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_qprintf
	movq	%rbx, %rsi
	jmp	LBB0_7
LBB0_58:
	xorl	%ebx, %ebx
LBB0_59:
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_61
## %bb.60:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
LBB0_61:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_63
## %bb.62:
	movq	%rbx, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_63:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.Q1_TextureBrushes.defaultvec
L___const.Q1_TextureBrushes.defaultvec:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"texturing brushes\n"

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

	.comm	_SFL_TEXTURED,4,2               ## @SFL_TEXTURED
	.comm	_lessbrushes,4,2                ## @lessbrushes
	.comm	_q1_numfaces,4,2                ## @q1_numfaces
	.comm	_q1_dfaces,8,3                  ## @q1_dfaces
	.comm	_q1_dnodes,8,3                  ## @q1_dnodes
L_.str.2:                               ## @.str.2
	.asciz	"brush %d: no real texture split"

	.comm	_q1_texinfo,8,3                 ## @q1_texinfo
	.comm	_map_texinfo,8,3                ## @map_texinfo
	.comm	_q1_dtexdata,8,3                ## @q1_dtexdata
	.comm	_q1_texdatasize,4,2             ## @q1_texdatasize
	.comm	_map_numtexinfo,4,2             ## @map_numtexinfo
	.comm	_TEXINFO_NODE,4,2               ## @TEXINFO_NODE
L_.str.3:                               ## @.str.3
	.asciz	"\r%5d"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q1_TextureBrushes              ; -- Begin function Q1_TextureBrushes
	.p2align	2
_Q1_TextureBrushes:                     ; @Q1_TextureBrushes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #104]
Lloh3:
	adrp	x8, l___const.Q1_TextureBrushes.defaultvec@PAGE
Lloh4:
	add	x8, x8, l___const.Q1_TextureBrushes.defaultvec@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #80]
	cbnz	w1, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
	str	xzr, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_qprintf
LBB0_2:
	mov	x8, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x9, #8]
	cbnz	x8, LBB0_3
LBB0_5:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x19, LBB0_58
; %bb.6:
	stp	xzr, xzr, [sp, #48]             ; 16-byte Folded Spill
	cmp	w20, #0
Lloh10:
	adrp	x24, _SFL_TEXTURED@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SFL_TEXTURED@GOTPAGEOFF]
Lloh12:
	adrp	x28, _q1_numfaces@GOTPAGE
Lloh13:
	ldr	x28, [x28, _q1_numfaces@GOTPAGEOFF]
Lloh14:
	adrp	x20, _q1_dfaces@GOTPAGE
Lloh15:
	ldr	x20, [x20, _q1_dfaces@GOTPAGEOFF]
	cset	w8, ne
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x8, x19
Lloh16:
	adrp	x19, _q1_dnodes@GOTPAGE
Lloh17:
	ldr	x19, [x19, _q1_dnodes@GOTPAGEOFF]
	fmov	s8, #1.00000000
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	x21, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	x8, x9, [sp, #32]               ; 16-byte Folded Reload
	str	x21, [sp, #48]                  ; 8-byte Folded Spill
	mov	x21, x8
	cbz	x8, LBB0_59
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
                                        ;       Child Loop BB0_53 Depth 3
	ldr	x8, [x21, #8]
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x21, x24
Lloh18:
	adrp	x24, _SFL_TEXTURED@GOTPAGE
Lloh19:
	ldr	x24, [x24, _SFL_TEXTURED@GOTPAGEOFF]
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w8, [x24]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x21]
	cmp	x27, x8
	b.ge	LBB0_56
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
                                        ;       Child Loop BB0_26 Depth 3
                                        ;       Child Loop BB0_53 Depth 3
	ldr	x10, [x21, #16]
	add	x22, x10, x27, lsl #4
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrsw	x25, [x22, #4]
Lloh20:
	adrp	x8, _lessbrushes@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lessbrushes@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x8]
	ldr	w8, [x28]
	cbz	w9, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	stp	x10, x21, [sp, #64]             ; 16-byte Folded Spill
	mov	x21, #0
	mov	x24, #0
	add	x8, x10, x27, lsl #4
	add	x26, x8, #12
	mov	w23, #-1
	fmov	s9, #1.00000000
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	add	x24, x24, #1
	ldrsw	x8, [x28]
	add	x21, x21, #16
	cmp	x24, x8
	b.ge	LBB0_21
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20]
	add	x0, x8, x21
	ldr	x8, [x0]
	ldr	x9, [x19]
	ldr	x9, [x9, x25, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	w1, [x26]
	bl	_Q1_FaceOnWinding
	fcmp	s0, s9
	b.le	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=3
	mov	x23, x24
	fmov	s9, s0
	b	LBB0_17
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
Lloh23:
	adrp	x24, _SFL_TEXTURED@GOTPAGE
Lloh24:
	ldr	x24, [x24, _SFL_TEXTURED@GOTPAGEOFF]
Lloh25:
	adrp	x26, _map_texinfo@GOTPAGE
Lloh26:
	ldr	x26, [x26, _map_texinfo@GOTPAGEOFF]
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	b	LBB0_35
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=2
	cmp	w8, #1
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
	b.lt	LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x21, [sp, #72]                  ; 8-byte Folded Spill
	mov	x24, #0
	mov	x26, #0
	add	x8, x10, x27, lsl #4
	add	x21, x8, #12
	mov	w23, #-1
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=3
	mov	x23, x26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=3
	add	x26, x26, #1
	ldrsw	x8, [x28]
	add	x24, x24, #16
	cmp	x26, x8
	b.ge	LBB0_32
LBB0_26:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20]
	add	x0, x8, x24
	ldr	x8, [x0]
	ldr	x9, [x19]
	ldr	x9, [x9, x25, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=3
	ldr	w1, [x21]
	bl	_Q1_FaceOnWinding
	fcmp	s0, s8
	b.le	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=3
	tbnz	w23, #31, LBB0_24
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=3
	ldr	x8, [x20]
	add	x9, x8, w23, uxtw #4
	ldr	w9, [x9, #8]
	add	x1, x8, x24
	ldr	w8, [x1, #8]
	cmp	w9, w8
	b.eq	LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=3
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_Q1_SplitBrushWithFace
	cbnz	x0, LBB0_46
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=3
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_Log_Write
	b	LBB0_25
LBB0_32:                                ;   in Loop: Header=BB0_13 Depth=2
Lloh29:
	adrp	x24, _SFL_TEXTURED@GOTPAGE
Lloh30:
	ldr	x24, [x24, _SFL_TEXTURED@GOTPAGEOFF]
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	w26, #0
	mov	w23, #-1
LBB0_34:                                ;   in Loop: Header=BB0_13 Depth=2
	cmp	w26, w8
Lloh31:
	adrp	x26, _map_texinfo@GOTPAGE
Lloh32:
	ldr	x26, [x26, _map_texinfo@GOTPAGEOFF]
	b.lt	LBB0_56
LBB0_35:                                ;   in Loop: Header=BB0_13 Depth=2
	tbnz	w23, #31, LBB0_44
; %bb.36:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x20]
	add	x8, x8, w23, uxtw #4
	ldr	w23, [x8, #8]
Lloh33:
	adrp	x8, _q1_texinfo@GOTPAGE
Lloh34:
	ldr	x8, [x8, _q1_texinfo@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	sxtw	x25, w23
	mov	w9, #24
	smaddl	x8, w23, w9, x8
	ldr	x8, [x8, #16]
	ldr	x9, [x26]
	add	x9, x9, x25, lsl #5
	ldr	x9, [x9, #24]
	ldp	x10, x8, [x8]
	ldp	x0, x9, [x9]
	ldr	w11, [x10]
	str	w11, [x0]
	ldr	w11, [x8]
	str	w11, [x9]
	ldr	w11, [x10, #4]
	str	w11, [x0, #4]
	ldr	w11, [x8, #4]
	str	w11, [x9, #4]
	ldr	w11, [x10, #8]
	str	w11, [x0, #8]
	ldr	w11, [x8, #8]
	str	w11, [x9, #8]
	ldr	w10, [x10, #12]
	str	w10, [x0, #12]
	ldr	w8, [x8, #12]
	str	w8, [x9, #12]
	bl	_VectorLength
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.pl	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x26]
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #24]
	ldr	x0, [x8]
	add	x1, sp, #80
	mov	w2, #16
	bl	_memcpy
LBB0_38:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x26]
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #24]
	ldr	x0, [x8, #8]
	bl	_VectorLength
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.pl	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x26]
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #24]
	ldr	x0, [x8, #8]
	add	x1, sp, #80
	mov	w2, #16
	bl	_memcpy
LBB0_40:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x24, x21
Lloh36:
	adrp	x8, _q1_texinfo@GOTPAGE
Lloh37:
	ldr	x8, [x8, _q1_texinfo@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x10, x25, x9, x8
	ldr	w9, [x10, #8]
	ldr	x8, [x26]
	add	x11, x8, x25, lsl #5
	str	w9, [x11, #16]
	str	xzr, [x11, #8]
Lloh39:
	adrp	x9, _q1_dtexdata@GOTPAGE
Lloh40:
	ldr	x9, [x9, _q1_dtexdata@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	ldr	x11, [x9]
	ldr	x10, [x10]
	ldr	w10, [x11, x10, lsl #2]
Lloh42:
	adrp	x12, _q1_texdatasize@GOTPAGE
Lloh43:
	ldr	x12, [x12, _q1_texdatasize@GOTPAGEOFF]
Lloh44:
	ldr	w12, [x12]
	cmp	w10, w12
	b.le	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w10, [x11]
LBB0_42:                                ;   in Loop: Header=BB0_13 Depth=2
	lsl	x21, x25, #5
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	ldr	w1, [x9, w10, sxtw #2]
	bl	_strcpy
	ldr	x8, [x26]
	mov	w9, #-1
	str	w9, [x8, x21]
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x8, x8, x27, lsl #4
	str	w23, [x8, #8]
Lloh45:
	adrp	x9, _map_numtexinfo@GOTPAGE
Lloh46:
	ldr	x9, [x9, _map_numtexinfo@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w23, w8
	b.le	LBB0_10
; %bb.43:                               ;   in Loop: Header=BB0_13 Depth=2
	str	w23, [x9]
	b	LBB0_10
LBB0_44:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
LBB0_45:                                ;   in Loop: Header=BB0_13 Depth=2
Lloh47:
	adrp	x8, _TEXINFO_NODE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TEXINFO_NODE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	add	x9, x10, x27, lsl #4
	str	w8, [x9, #8]
	b	LBB0_11
LBB0_46:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	x8, [x10, #8]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x8, [x9, #8]
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_13 Depth=2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_49:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
Lloh50:
	adrp	x24, _SFL_TEXTURED@GOTPAGE
Lloh51:
	ldr	x24, [x24, _SFL_TEXTURED@GOTPAGEOFF]
	cmp	x8, x10
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	csel	x10, x0, x10, eq
	str	x10, [sp, #32]                  ; 8-byte Folded Spill
	csel	x8, x9, x8, eq
	cbz	x8, LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x0, [x8, #8]
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_52
LBB0_51:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x21, x0
LBB0_52:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	bl	_FreeBrush
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x8, x21
LBB0_53:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x9, x8
	cbz	x8, LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=3
	ldr	x8, [x9, #8]
	cbnz	x8, LBB0_53
LBB0_55:                                ;   in Loop: Header=BB0_13 Depth=2
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [x28]
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	b	LBB0_34
LBB0_56:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x8, x21
	cset	w8, eq
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_7
; %bb.57:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	w8, w8, #1
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	str	x8, [sp]
Lloh52:
	adrp	x0, l_.str.3@PAGE
Lloh53:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_qprintf
	b	LBB0_7
LBB0_58:
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_59:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_61
; %bb.60:
Lloh54:
	adrp	x0, l_.str.4@PAGE
Lloh55:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_qprintf
LBB0_61:
	ldr	x8, [sp, #104]
Lloh56:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh57:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x9, x8
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	b.ne	LBB0_63
; %bb.62:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_63:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.Q1_TextureBrushes.defaultvec
l___const.Q1_TextureBrushes.defaultvec:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"texturing brushes\n"

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

	.comm	_SFL_TEXTURED,4,2               ; @SFL_TEXTURED
	.comm	_lessbrushes,4,2                ; @lessbrushes
	.comm	_q1_numfaces,4,2                ; @q1_numfaces
	.comm	_q1_dfaces,8,3                  ; @q1_dfaces
	.comm	_q1_dnodes,8,3                  ; @q1_dnodes
l_.str.2:                               ; @.str.2
	.asciz	"brush %d: no real texture split"

	.comm	_q1_texinfo,8,3                 ; @q1_texinfo
	.comm	_map_texinfo,8,3                ; @map_texinfo
	.comm	_q1_dtexdata,8,3                ; @q1_dtexdata
	.comm	_q1_texdatasize,4,2             ; @q1_texdatasize
	.comm	_map_numtexinfo,4,2             ; @map_numtexinfo
	.comm	_TEXINFO_NODE,4,2               ; @TEXINFO_NODE
l_.str.3:                               ; @.str.3
	.asciz	"\r%5d"

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

.subsections_via_symbols
