	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RenderMaximumFaceGroup
_RenderMaximumFaceGroup:                ## @RenderMaximumFaceGroup
	.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, %r14
	movq	(%rsi), %r15
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	$1, %ebx
	movq	_RenderTriangle@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_2:
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_MaximumFan
	movl	-64(%rbp), %eax
	cmpl	$2, %eax
	movq	_RenderTriangle@GOTPCREL(%rip), %r12
	cmovgeq	-48(%rbp), %r12
	movq	-56(%rbp), %r13
	cmovlq	%r15, %r13
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	movq	8(%r15), %rsi
	leaq	-64(%rbp), %rdi
	callq	_MaximumFan
	movl	-64(%rbp), %eax
	cmpl	%ebx, %eax
	jle	LBB0_4
## %bb.3:
	movq	-48(%rbp), %r12
	movq	-56(%rbp), %r13
	movl	%eax, %ebx
LBB0_4:
	movq	(%r15), %rsi
	leaq	-64(%rbp), %rdi
	callq	_MaximumFan
	movl	-64(%rbp), %eax
	cmpl	%ebx, %eax
	jle	LBB0_6
## %bb.5:
	movq	-48(%rbp), %r12
	movq	-56(%rbp), %r13
	movl	%eax, %ebx
LBB0_6:
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_MaximumStrip
	movl	-64(%rbp), %eax
	cmpl	%ebx, %eax
	jle	LBB0_8
## %bb.7:
	movq	-48(%rbp), %r12
	movq	-56(%rbp), %r13
	movl	%eax, %ebx
LBB0_8:
	movq	8(%r15), %rsi
	leaq	-64(%rbp), %rdi
	callq	_MaximumStrip
	movl	-64(%rbp), %eax
	cmpl	%ebx, %eax
	jle	LBB0_10
## %bb.9:
	movq	-48(%rbp), %r12
	movq	-56(%rbp), %r13
	movl	%eax, %ebx
LBB0_10:
	movq	(%r15), %rsi
	leaq	-64(%rbp), %rdi
	callq	_MaximumStrip
	movl	-64(%rbp), %eax
	movq	%r13, %r15
	cmpl	%ebx, %eax
	jle	LBB0_12
## %bb.11:
	movq	-56(%rbp), %r15
	movq	-48(%rbp), %r12
	movl	%eax, %ebx
LBB0_12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	*%r12
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_RenderMaximumFaceGroup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RenderMaximumFaceGroup
_RenderMaximumFaceGroup:                ; @RenderMaximumFaceGroup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, [x1]
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _RenderTriangle@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RenderTriangle@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_5
LBB0_2:
	add	x8, sp, #8
	mov	x0, x20
	bl	_MaximumFan
	ldr	w8, [sp, #8]
	ldp	x9, x10, [sp, #16]
	cmp	w8, #1
	csel	x21, x10, x22, gt
	csel	x22, x9, x20, gt
	csinc	w23, w8, wzr, gt
	ldr	x0, [x20, #8]
	add	x8, sp, #8
	bl	_MaximumFan
	ldr	w8, [sp, #8]
	ldp	x9, x10, [sp, #16]
	cmp	w8, w23
	csel	w23, w8, w23, gt
	csel	x21, x10, x21, gt
	csel	x22, x9, x22, gt
	ldr	x0, [x20]
	add	x8, sp, #8
	bl	_MaximumFan
	ldr	w8, [sp, #8]
	ldp	x9, x10, [sp, #16]
	cmp	w8, w23
	csel	w23, w8, w23, gt
	csel	x21, x10, x21, gt
	csel	x22, x9, x22, gt
	add	x8, sp, #8
	mov	x0, x20
	bl	_MaximumStrip
	ldr	w8, [sp, #8]
	ldp	x9, x10, [sp, #16]
	cmp	w8, w23
	csel	w23, w8, w23, gt
	csel	x24, x10, x21, gt
	csel	x25, x9, x22, gt
	ldr	x0, [x20, #8]
	add	x8, sp, #8
	bl	_MaximumStrip
	ldr	w8, [sp, #8]
	ldp	x9, x10, [sp, #16]
	cmp	w8, w23
	csel	w21, w8, w23, gt
	csel	x22, x10, x24, gt
	csel	x23, x9, x25, gt
	ldr	x0, [x20]
	add	x8, sp, #8
	bl	_MaximumStrip
	ldr	w8, [sp, #8]
	cmp	w8, w21
	b.le	LBB0_4
; %bb.3:
	ldp	x20, x22, [sp, #16]
	mov	x21, x8
	b	LBB0_5
LBB0_4:
	mov	x20, x23
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_RenderMaximumFaceGroup
.subsections_via_symbols
