	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function feedback_triangle
LCPI0_0:
	.quad	0x4008000000000000              ## double 3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_feedback_triangle:                     ## @feedback_triangle
	.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	%r8, %r14
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r15
	movq	8(%rdi), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movups	16(%rax), %xmm0
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movq	_GL_POLYGON_TOKEN@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax), %xmm0
	callq	_FEEDBACK_TOKEN
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%rbx, %rdi
	callq	_FEEDBACK_TOKEN
	movq	(%rbx), %rax
	movq	_GL_FLAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movupd	(%rax), %xmm0
	mulpd	-160(%rbp), %xmm0               ## 16-byte Folded Reload
	movapd	%xmm0, -80(%rbp)
	movupd	16(%rax), %xmm0
	mulpd	-144(%rbp), %xmm0               ## 16-byte Folded Reload
	movapd	%xmm0, -64(%rbp)
LBB0_2:
	xorl	%r13d, %r13d
	leaq	-112(%rbp), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %rcx
	movsd	24(%rcx), %xmm4                 ## xmm4 = mem[0],zero
	ucomisd	LCPI0_2(%rip), %xmm4
	movsd	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero
	jne	LBB0_9
	jp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_DEPTH_SCALE@GOTPCREL(%rip), %rdx
	divsd	(%rdx), %xmm2
	movupd	(%rcx), %xmm6
	movddup	%xmm5, %xmm7                    ## xmm7 = xmm5[0,0]
	mulpd	%xmm6, %xmm7
	movapd	%xmm7, -112(%rbp)
	mulsd	16(%rcx), %xmm5
	movsd	%xmm5, -96(%rbp)
	movsd	%xmm4, -88(%rbp)
	movq	32(%r15), %rcx
	xorps	%xmm4, %xmm4
	cvtsi2sdq	(%rcx,%rax,8), %xmm4
	movq	%rbx, %rdi
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdx
	callq	_gl_feedback_vertex
	incq	%r13
	cmpq	$3, %r13
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	$1, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	(%rcx,%rax,8), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rcx), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%rcx), %xmm2                 ## xmm2 = mem[0],zero
	movq	(%rdx,%rax,8), %rcx
	movsd	24(%rcx), %xmm3                 ## xmm3 = mem[0],zero
	movq	(%rbx), %rcx
	movq	_GL_SMOOTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rcx
	movupd	(%rcx), %xmm4
	mulpd	-160(%rbp), %xmm4               ## 16-byte Folded Reload
	movapd	%xmm4, -80(%rbp)
	movupd	16(%rcx), %xmm4
	mulpd	-144(%rbp), %xmm4               ## 16-byte Folded Reload
	movapd	%xmm4, -64(%rbp)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsd	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero
	divsd	%xmm4, %xmm5
	jmp	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_POLYGON_TOKEN,8,3           ## @GL_POLYGON_TOKEN
	.comm	_GL_FLAT,8,3                    ## @GL_FLAT
	.comm	_DEPTH_SCALE,8,3                ## @DEPTH_SCALE
	.comm	_GL_SMOOTH,8,3                  ## @GL_SMOOTH
	.no_dead_strip	_feedback_triangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function feedback_triangle
_feedback_triangle:                     ; @feedback_triangle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x8, x24, [x0, #8]
	ldr	q1, [x8]
	ldr	q0, [x8, #16]
	stp	q0, q1, [sp]                    ; 32-byte Folded Spill
Lloh3:
	adrp	x8, _GL_POLYGON_TOKEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_POLYGON_TOKEN@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	scvtf	d0, d0
	bl	_FEEDBACK_TOKEN
	fmov	d0, #3.00000000
	mov	x0, x22
	bl	_FEEDBACK_TOKEN
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _GL_FLAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_FLAT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	ldp	q0, q1, [x8]
	ldr	q2, [sp, #16]                   ; 16-byte Folded Reload
	fmul.2d	v0, v2, v0
	ldr	q2, [sp]                        ; 16-byte Folded Reload
	fmul.2d	v1, v2, v1
	stp	q0, q1, [sp, #64]
LBB0_2:
	mov	x23, #0
Lloh9:
	adrp	x25, _DEPTH_SCALE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DEPTH_SCALE@GOTPAGEOFF]
Lloh11:
	adrp	x26, _GL_SMOOTH@GOTPAGE
Lloh12:
	ldr	x26, [x26, _GL_SMOOTH@GOTPAGEOFF]
	fmov	d8, #1.00000000
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x10, [x24, #24]
	ldr	x9, [x9, x8]
	ldr	q4, [x9]
	ldp	d6, d5, [x9, #16]
	ldr	d7, [x25]
	fdiv	d2, d2, d7
	fdiv	d7, d8, d5
	fcmp	d5, #0.0
	fcsel	d7, d8, d7, eq
	fmul.2d	v4, v4, v7[0]
	str	q4, [sp, #32]
	fmul	d4, d7, d6
	stp	d4, d5, [sp, #48]
	ldr	d4, [x10, x8]
	scvtf	d4, d4
	add	x1, sp, #64
	add	x2, sp, #32
	mov	x0, x22
	bl	_gl_feedback_vertex
	add	x23, x23, #1
	cmp	x23, #3
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x21
	cbz	x23, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x20
	cmp	x23, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x19
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x9, #3
	ldp	x10, x11, [x24, #8]
	ldr	x10, [x10, x8]
	ldp	d0, d1, [x10]
	ldr	d2, [x10, #16]
	ldr	x10, [x11, x8]
	ldr	d3, [x10, #24]
	ldr	x10, [x22]
	ldr	x11, [x26]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x24]
	ldr	x9, [x10, x9, lsl #3]
	ldp	q4, q5, [x9]
	ldr	q6, [sp, #16]                   ; 16-byte Folded Reload
	fmul.2d	v4, v6, v4
	ldr	q6, [sp]                        ; 16-byte Folded Reload
	fmul.2d	v5, v6, v5
	stp	q4, q5, [sp, #64]
	b	LBB0_3
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_POLYGON_TOKEN,8,3           ; @GL_POLYGON_TOKEN
	.comm	_GL_FLAT,8,3                    ; @GL_FLAT
	.comm	_DEPTH_SCALE,8,3                ; @DEPTH_SCALE
	.comm	_GL_SMOOTH,8,3                  ; @GL_SMOOTH
	.no_dead_strip	_feedback_triangle
.subsections_via_symbols
