	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_AddDlightFlares             ## -- Begin function RB_AddDlightFlares
	.p2align	4, 0x90
_RB_AddDlightFlares:                    ## @RB_AddDlightFlares
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_r_flares@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.1:
	movq	_backEnd@GOTPCREL(%rip), %r14
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rax), %rbx
	cmpl	$0, (%r14)
	jg	LBB0_5
	jmp	LBB0_20
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	jle	LBB0_20
LBB0_5:
	movq	8(%r14), %r13
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r9d, %esi
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r9d, %esi
	cmovel	%r12d, %esi
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdx
	movl	8(%r13), %ecx
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%r8d, %r8d
	callq	_RB_AddFlare
	incl	%r15d
	addq	$16, %r13
	cmpl	(%r14), %r15d
	jge	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %r9d
	movl	$1, %esi
	cmpl	$2, %r9d
	jl	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rcx), %rcx
	movq	(%r13), %r8
	movq	(%r8), %rdx
	addq	$8, %rcx
	movl	$1, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	leaq	8(%rbx), %rcx
	cmpq	%rsi, %r9
	je	LBB0_17
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rbx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	cmpq	(%rdi), %rdx
	jl	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rcx), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r8), %rax
	cmpq	8(%rdi), %rax
	jl	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	8(%rcx), %rax
	jg	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	16(%r8), %rax
	cmpq	16(%rdi), %rax
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	16(%rcx), %rax
	jg	LBB0_16
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_flares,8,3                   ## @r_flares
	.comm	_backEnd,16,3                   ## @backEnd
	.comm	_tr,8,3                         ## @tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_AddDlightFlares             ; -- Begin function RB_AddDlightFlares
	.p2align	2
_RB_AddDlightFlares:                    ; @RB_AddDlightFlares
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _r_flares@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_flares@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.1:
Lloh3:
	adrp	x20, _backEnd@GOTPAGE
Lloh4:
	ldr	x20, [x20, _backEnd@GOTPAGEOFF]
Lloh5:
	adrp	x21, _tr@GOTPAGE
Lloh6:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x23, [x8, #8]
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.5:
	mov	w22, #0
	ldr	x19, [x20, #8]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w1, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
	mov	x0, x19
	mov	x4, #0
	bl	_RB_AddFlare
	add	w22, w22, #1
	add	x19, x19, #16
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_21
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cbz	x23, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21]
	ldr	w8, [x9]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x9, #8]
	ldr	x10, [x19]
	add	x23, x9, #8
	sub	w9, w8, #2
	add	x11, x23, w9, uxtw #3
	ldr	x12, [x10]
	mov	w9, #1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x9, #1
	add	x23, x23, #8
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x23]
	ldr	x13, [x14]
	ldr	x15, [x13]
	cmp	x12, x15
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x14, [x14, #8]
	ldr	x15, [x14]
	cmp	x12, x15
	b.gt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x15, [x10, #8]
	ldr	x16, [x13, #8]
	cmp	x15, x16
	b.lt	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x16, [x14, #8]
	cmp	x15, x16
	b.gt	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x15, [x10, #16]
	ldr	x13, [x13, #16]
	cmp	x15, x13
	b.lt	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x14, #16]
	cmp	x15, x13
	b.gt	LBB0_11
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x8
	mov	x23, x11
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, w8
	csel	w1, wzr, w9, eq
	b	LBB0_7
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_r_flares,8,3                   ; @r_flares
	.comm	_backEnd,16,3                   ; @backEnd
	.comm	_tr,8,3                         ; @tr
.subsections_via_symbols
