	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function particle_engine
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_particle_engine:                       ## @particle_engine
	.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
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_15
## %bb.1:
	movq	_MAX_PARTICLES@GOTPCREL(%rip), %r15
	movq	_particles@GOTPCREL(%rip), %r12
	movq	_min_age@GOTPCREL(%rip), %r13
	movq	_BIRTH_INTERVAL@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	ucomiss	LCPI0_0(%rip), %xmm1
	jbe	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movq	_MIN_DELTA_T@GOTPCREL(%rip), %rax
	minss	(%rax), %xmm1
	movl	(%r15), %eax
	testl	%eax, %eax
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movaps	%xmm1, %xmm0
	callq	_update_particle
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BIRTH_INTERVAL@GOTPCREL(%rip), %r14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	movss	%xmm0, (%r13)
	movss	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	subss	%xmm1, %xmm0
	movss	%xmm0, (%r13)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r12), %rdi
	movl	%eax, %eax
	shlq	$2, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$0, (%rdi,%rbx)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	addq	$4, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_9
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	cvtss2sd	%xmm0, %xmm0
	addsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	addq	%rbx, %rdi
	callq	_init_particle
	addq	(%r12), %rbx
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	callq	_update_particle
	movss	(%r13), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	ucomiss	%xmm1, %xmm0
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_DELTA_T,4,2                ## @MIN_DELTA_T
	.comm	_MAX_PARTICLES,4,2              ## @MAX_PARTICLES
	.comm	_particles,8,3                  ## @particles
	.comm	_min_age,4,2                    ## @min_age
	.comm	_BIRTH_INTERVAL,4,2             ## @BIRTH_INTERVAL
	.no_dead_strip	_particle_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function particle_engine
_particle_engine:                       ; @particle_engine
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	fcmp	s1, #0.0
	b.le	LBB0_14
; %bb.1:
	fmov	s8, s1
	fmov	d9, d0
Lloh0:
	adrp	x19, _MIN_DELTA_T@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MIN_DELTA_T@GOTPAGEOFF]
Lloh2:
	adrp	x20, _MAX_PARTICLES@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_PARTICLES@GOTPAGEOFF]
Lloh4:
	adrp	x21, _particles@GOTPAGE
Lloh5:
	ldr	x21, [x21, _particles@GOTPAGEOFF]
Lloh6:
	adrp	x22, _min_age@GOTPAGE
Lloh7:
	ldr	x22, [x22, _min_age@GOTPAGEOFF]
Lloh8:
	adrp	x23, _BIRTH_INTERVAL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _BIRTH_INTERVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	fsub	s8, s8, s10
	fcmp	s8, #0.0
	b.le	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	s0, [x19]
	fcmp	s8, s0
	fcsel	s10, s8, s0, mi
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	add	x0, x8, x24
	fmov	s0, s10
	bl	_update_particle
	add	x25, x25, #1
	ldrsw	x8, [x20]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	s0, [x22]
	fadd	s0, s10, s0
	str	s0, [x22]
	ldr	s1, [x23]
	fcmp	s0, s1
	b.lt	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	fsub	s0, s0, s1
	str	s0, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, #0
	ldr	x9, [x21]
	mov	w8, w8
	lsl	x8, x8, #2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x9, x24]
	cbz	w10, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x24, x24, #4
	cmp	x8, x24
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	fcvt	d0, s0
	fadd	d0, d0, d9
	add	x0, x9, x24
	bl	_init_particle
	ldr	x8, [x21]
	add	x0, x8, x24
	ldr	s0, [x22]
	bl	_update_particle
	ldr	s0, [x22]
	ldr	s1, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	fcmp	s0, s1
	b.lt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x20]
	b	LBB0_7
LBB0_14:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_DELTA_T,4,2                ; @MIN_DELTA_T
	.comm	_MAX_PARTICLES,4,2              ; @MAX_PARTICLES
	.comm	_particles,8,3                  ; @particles
	.comm	_min_age,4,2                    ; @min_age
	.comm	_BIRTH_INTERVAL,4,2             ; @BIRTH_INTERVAL
	.no_dead_strip	_particle_engine
.subsections_via_symbols
