	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddScore                       ## -- Begin function AddScore
	.p2align	4, 0x90
_AddScore:                              ## @AddScore
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r9d
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	movq	_level@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%r12)
	jne	LBB0_11
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testq	%r8, %r8
	je	LBB0_3
## %bb.4:
	movq	(%r8), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	(%rdx), %esi
	movl	16(%rdx), %edx
	movq	%rcx, %rdi
	movq	%rax, %rcx
	movl	%r14d, %r8d
	callq	_dmlab_reward_override
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %r15d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ScorePlum
LBB0_8:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%r15d, (%rax,%rcx,4)
	movq	_g_gametype@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GT_TEAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	movq	(%r12), %rcx
	movq	_PERS_TEAM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rax,%rdx,4), %rax
	addl	%r15d, (%rcx,%rax,4)
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CalculateRanks                 ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,16,3                     ## @level
	.comm	_PERS_SCORE,8,3                 ## @PERS_SCORE
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_PERS_TEAM,8,3                  ## @PERS_TEAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddScore                       ; -- Begin function AddScore
	.p2align	2
_AddScore:                              ; @AddScore
	.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
	ldr	x9, [x0]
Lloh0:
	adrp	x22, _level@GOTPAGE
Lloh1:
	ldr	x22, [x22, _level@GOTPAGEOFF]
	ldr	x8, [x22, #8]
	cmp	x9, #0
	ccmp	x8, #0, #0, ne
	b.ne	LBB0_10
; %bb.1:
	mov	x5, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x4, LBB0_3
; %bb.2:
	ldr	x8, [x4]
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	ldr	w1, [x9]
	ldr	w2, [x9, #16]
	mov	x0, x3
	mov	x3, x8
	mov	x4, x20
	bl	_dmlab_reward_override
	cbz	w0, LBB0_10
; %bb.5:
	mov	x21, x0
	cbz	w20, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ScorePlum
LBB0_7:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh2:
	adrp	x9, _PERS_SCORE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PERS_SCORE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w21
	str	w10, [x8, x9]
Lloh5:
	adrp	x9, _g_gametype@GOTPAGE
Lloh6:
	ldr	x9, [x9, _g_gametype@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _GT_TEAM@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GT_TEAM@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	x9, [x22]
Lloh11:
	adrp	x10, _PERS_TEAM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PERS_TEAM@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldrsw	x8, [x8, x10, lsl #2]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w10, w10, w21
	str	w10, [x9, x8]
LBB0_9:
	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	_CalculateRanks
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_level,16,3                     ; @level
	.comm	_PERS_SCORE,8,3                 ; @PERS_SCORE
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_PERS_TEAM,8,3                  ; @PERS_TEAM
.subsections_via_symbols
