	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CreateFlareSurface
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CreateFlareSurface
	.p2align	4, 0x90
_CreateFlareSurface:                    ## @CreateFlareSurface
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_AllocDrawSurf
	movq	%rax, %r14
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_ShaderInfoForShader
	movq	%rax, 16(%r14)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	8(%r15), %rax
	movl	8(%rax), %edi
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	callq	_VectorCopy
	movl	24(%r14), %edi
	callq	_VectorClear
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r14), %edi
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%edi, %edx
	callq	_VectorAdd
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	24(%r14), %edi
	cvtsi2sd	%eax, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movl	%edi, %esi
	callq	_VectorScale
	movl	24(%r14), %ecx
	movq	8(%r14), %rax
	movl	8(%rax), %edx
	movl	%ecx, %edi
	movl	$2, %esi
	callq	_VectorMA
	movq	16(%r15), %rax
	movl	8(%rax), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VectorCopy                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flareshader"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateFlareSurface             ; -- Begin function CreateFlareSurface
	.p2align	2
_CreateFlareSurface:                    ; @CreateFlareSurface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_AllocDrawSurf
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_ShaderInfoForShader
	str	x0, [x20, #16]
Lloh2:
	adrp	x8, _qtrue@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	bl	_VectorCopy
	ldr	w0, [x20, #24]
	bl	_VectorClear
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #24]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x21, lsl #2]
	mov	x2, x0
	bl	_VectorAdd
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	w0, [x20, #24]
	scvtf	d0, w8
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	mov	x1, x0
	bl	_VectorScale
	ldr	w0, [x20, #24]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #8]
	mov	w1, #2
	mov	x3, x0
	bl	_VectorMA
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_VectorCopy
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flareshader"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
