	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	_level@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%r15)
	jne	LBB0_5
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	callq	_ScorePlum
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%r14d, (%rax,%rcx,4)
	movq	_g_gametype@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GT_TEAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rcx
	movq	_PERS_TEAM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rax,%rdx,4), %rax
	addl	%r14d, (%rcx,%rax,4)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CalculateRanks                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	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	x8, [x0]
Lloh0:
	adrp	x21, _level@GOTPAGE
Lloh1:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	x9, [x21, #8]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.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	x19, x2
	mov	x20, x0
	bl	_ScorePlum
	ldr	x8, [x20]
	ldr	x8, [x8]
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, w19
	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_4
; %bb.3:
	ldr	x9, [x21]
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, w19
	str	w10, [x9, x8]
LBB0_4:
	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
	.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
