	.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_16
## %bb.1:
	movq	_backEnd@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.2:
	movq	8(%r14), %r15
	xorl	%ebx, %ebx
	movq	_tr@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdx
	movl	$1, %esi
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r8d, %esi
	cmovel	%ebx, %esi
	movl	8(%r15), %ecx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%r8d, %r8d
	callq	_RB_AddFlare
	incl	%r13d
	addq	$16, %r15
	cmpl	(%r14), %r13d
	jge	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r12), %rax
	movl	(%rax), %r8d
	cmpl	$1, %r8d
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %r9
	movq	(%r15), %rdx
	movq	(%rdx), %rdi
	movl	$1, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%rsi
	cmpq	%rsi, %r8
	je	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r9,%rsi,8), %rax
	movq	(%rax), %rbx
	cmpq	(%rbx), %rdi
	jl	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rax), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rdx), %rcx
	cmpq	8(%rbx), %rcx
	jl	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	8(%rax), %rcx
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%rdx), %rcx
	cmpq	16(%rbx), %rcx
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	16(%rax), %rcx
	jg	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %esi
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_16:
	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	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
Lloh0:
	adrp	x8, _r_flares@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_flares@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _backEnd@GOTPAGE
Lloh4:
	ldr	x20, [x20, _backEnd@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, #0
	ccmp	w9, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	mov	w21, #0
	ldr	x19, [x20, #8]
Lloh5:
	adrp	x22, _tr@GOTPAGE
Lloh6:
	ldr	x22, [x22, _tr@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19]
	mov	w9, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w8
	csel	w1, wzr, w9, eq
	ldr	w3, [x19, #8]
	mov	x0, x19
	mov	x4, #0
	bl	_RB_AddFlare
	add	w21, w21, #1
	add	x19, x19, #16
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x22]
	ldr	w8, [x9]
	cmp	w8, #1
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x9, #8]
	ldr	x2, [x19]
	ldr	x11, [x2]
	mov	w9, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x10, x9, lsl #3]
	ldr	x12, [x13]
	ldr	x14, [x12]
	cmp	x11, x14
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x13, [x13, #8]
	ldr	x14, [x13]
	cmp	x11, x14
	b.gt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x14, [x2, #8]
	ldr	x15, [x12, #8]
	cmp	x14, x15
	b.lt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x15, [x13, #8]
	cmp	x14, x15
	b.gt	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x14, [x2, #16]
	ldr	x12, [x12, #16]
	cmp	x14, x12
	b.lt	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x12, [x13, #16]
	cmp	x14, x12
	b.gt	LBB0_7
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_r_flares,8,3                   ; @r_flares
	.comm	_backEnd,16,3                   ; @backEnd
	.comm	_tr,8,3                         ; @tr
.subsections_via_symbols
