	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function dmlab_advance
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dmlab_advance:                         ## @dmlab_advance
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_re@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movq	40(%r12), %r13
	movl	(%r13), %edi
	callq	*48(%r13)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	jne	LBB0_2
## %bb.1:
	movq	_RO_TOP_LEFT@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	_RO_BOTTOM_LEFT@GOTPCREL(%rip), %rbx
LBB0_3:
	callq	_SCR_SkipRendering
	movl	(%rbx), %edi
	callq	_SCR_RenderOrigin
	movl	$0, (%r12)
	movl	(%r13), %edi
	callq	*40(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.4:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_get_engine_score
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movl	(%r13), %edi
	callq	*32(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_get_engine_score
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_load_map
	movq	32(%r12), %rcx
	movq	(%rcx), %rcx
	movq	_DMLAB_RECORDING_ERROR_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	callq	*8(%r13)
	testq	%rax, %rax
	jne	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	*24(%r13)
	xorl	%eax, %eax
	callq	_get_engine_score
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	-56(%rbp), %xmm1                ## 8-byte Folded Reload
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	4(%r12)
	movq	_cl@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	xorl	%eax, %eax
	callq	_IN_Frame
	xorl	%eax, %eax
	callq	_Com_Frame
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	imull	4(%r12), %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	subl	%ebx, %eax
	addl	12(%r12), %eax
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, 12(%r12)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movl	(%r13), %edi
	movq	_kEngineTimePerExternalTime@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	divsd	%xmm1, %xmm0
	callq	*16(%r13)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_Com_Frame
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_clc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CA_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_get_engine_score
	subsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	16(%r12), %xmm1                 ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 16(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addsd	(%rax), %xmm0
	movsd	%xmm0, (%rax)
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 24(%r12)
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_19:
	movl	$0, (%r12)
	testl	%ebx, %ebx
	movq	_EnvCApi_EnvironmentStatus_Terminated@GOTPCREL(%rip), %rax
	jne	LBB0_25
	jmp	LBB0_21
LBB0_20:
	movl	$0, (%r12)
LBB0_21:
	movq	_EnvCApi_EnvironmentStatus_Running@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movq	_EnvCApi_EnvironmentStatus_Error@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	_EnvCApi_EnvironmentStatus_Terminated@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_re,8,3                         ## @re
	.comm	_RO_BOTTOM_LEFT,4,2             ## @RO_BOTTOM_LEFT
	.comm	_RO_TOP_LEFT,4,2                ## @RO_TOP_LEFT
	.comm	_DMLAB_RECORDING_ERROR_NONE,8,3 ## @DMLAB_RECORDING_ERROR_NONE
	.comm	_EnvCApi_EnvironmentStatus_Error,4,2 ## @EnvCApi_EnvironmentStatus_Error
	.comm	_EnvCApi_EnvironmentStatus_Terminated,4,2 ## @EnvCApi_EnvironmentStatus_Terminated
	.comm	_cl,4,2                         ## @cl
	.comm	_kEngineTimePerExternalTime,8,3 ## @kEngineTimePerExternalTime
	.comm	_clc,8,3                        ## @clc
	.comm	_CA_ACTIVE,8,3                  ## @CA_ACTIVE
	.comm	_EnvCApi_EnvironmentStatus_Running,4,2 ## @EnvCApi_EnvironmentStatus_Running
	.no_dead_strip	_dmlab_advance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmlab_advance
_dmlab_advance:                         ; @dmlab_advance
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _re@GOTPAGE
Lloh1:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	blr	x8
	ldr	x23, [x19, #40]
	ldr	x8, [x23, #48]
	ldr	w0, [x23]
	blr	x8
	cmp	x0, #0
	cset	w0, eq
Lloh3:
	adrp	x8, _RO_TOP_LEFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RO_TOP_LEFT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _RO_BOTTOM_LEFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RO_BOTTOM_LEFT@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	bl	_SCR_SkipRendering
	ldr	w0, [x22]
	bl	_SCR_RenderOrigin
	str	wzr, [x19]
	ldr	x8, [x23, #40]
	ldr	w0, [x23]
	blr	x8
	str	xzr, [x20]
	cmp	w21, #0
	b.le	LBB0_18
; %bb.1:
Lloh7:
	adrp	x25, _cl@GOTPAGE
Lloh8:
	ldr	x25, [x25, _cl@GOTPAGEOFF]
	mov	w27, #1
	mov	x28, #70368744177664
	movk	x28, #16527, lsl #48
Lloh9:
	adrp	x24, _clc@GOTPAGE
Lloh10:
	ldr	x24, [x24, _clc@GOTPAGEOFF]
Lloh11:
	adrp	x26, _CA_ACTIVE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _CA_ACTIVE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_get_engine_score
	fmov	d8, d0
	ldr	x8, [x23, #32]
	ldr	w0, [x23]
	blr	x8
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_get_engine_score
	fmov	d9, d0
	mov	x0, x19
	bl	_load_map
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _DMLAB_RECORDING_ERROR_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMLAB_RECORDING_ERROR_NONE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	ldr	w0, [x23]
	blr	x8
	cbnz	x0, LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #24]
	ldr	w0, [x23]
	mov	w1, #0
	blr	x8
	bl	_get_engine_score
	fsub	d1, d9, d8
	fsub	d8, d0, d1
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w22, [x25]
	bl	_IN_Frame
	bl	_Com_Frame
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x19, #12]
	sub	w8, w8, w22
	add	w8, w8, w9
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w8, [x19, #12]
	ldr	x9, [x23, #16]
	ldr	w0, [x23]
	scvtf	d0, w8
Lloh16:
	adrp	x8, _kEngineTimePerExternalTime@GOTPAGE
Lloh17:
	ldr	x8, [x8, _kEngineTimePerExternalTime@GOTPAGEOFF]
Lloh18:
	ldr	d1, [x8]
	fmov	d2, x28
	fmul	d1, d1, d2
	fdiv	d0, d0, d1
	blr	x9
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_Com_Frame
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_get_engine_score
	fsub	d0, d0, d8
	ldr	d1, [x19, #16]
	fadd	d1, d1, d0
	str	d1, [x19, #16]
	ldr	d1, [x20]
	fadd	d0, d0, d1
	str	d0, [x20]
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x19, #24]
	cmp	w27, w21
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, #1
	cbz	w22, LBB0_2
LBB0_16:
	str	wzr, [x19]
	cbz	w22, LBB0_19
LBB0_17:
Lloh19:
	adrp	x8, _EnvCApi_EnvironmentStatus_Terminated@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EnvCApi_EnvironmentStatus_Terminated@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	str	wzr, [x19]
LBB0_19:
Lloh21:
	adrp	x8, _EnvCApi_EnvironmentStatus_Running@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EnvCApi_EnvironmentStatus_Running@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh23:
	adrp	x8, _EnvCApi_EnvironmentStatus_Error@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EnvCApi_EnvironmentStatus_Error@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_re,8,3                         ; @re
	.comm	_RO_BOTTOM_LEFT,4,2             ; @RO_BOTTOM_LEFT
	.comm	_RO_TOP_LEFT,4,2                ; @RO_TOP_LEFT
	.comm	_DMLAB_RECORDING_ERROR_NONE,8,3 ; @DMLAB_RECORDING_ERROR_NONE
	.comm	_EnvCApi_EnvironmentStatus_Error,4,2 ; @EnvCApi_EnvironmentStatus_Error
	.comm	_EnvCApi_EnvironmentStatus_Terminated,4,2 ; @EnvCApi_EnvironmentStatus_Terminated
	.comm	_cl,4,2                         ; @cl
	.comm	_kEngineTimePerExternalTime,8,3 ; @kEngineTimePerExternalTime
	.comm	_clc,8,3                        ; @clc
	.comm	_CA_ACTIVE,8,3                  ; @CA_ACTIVE
	.comm	_EnvCApi_EnvironmentStatus_Running,4,2 ; @EnvCApi_EnvironmentStatus_Running
	.no_dead_strip	_dmlab_advance
.subsections_via_symbols
