	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamVote                  ## -- Begin function CheckTeamVote
	.p2align	4, 0x90
_CheckTeamVote:                         ## @CheckTeamVote
	.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
	movl	%edi, %r14d
	movq	_TEAM_RED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	%r14d, (%rax)
	jne	LBB0_12
LBB0_3:
	movq	_level@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	8(%r15), %rcx
	subq	%rax, %rcx
	movq	_VOTE_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_10
## %bb.5:
	movq	16(%r15), %rcx
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, (%rcx,%rbx,4)
	jle	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_trap_SendServerCommand
	movq	40(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	leaq	L_.str.2(%rip), %rdi
	movl	$6, %edx
	callq	_Q_strncmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	40(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SendConsoleCommand
	jmp	LBB0_11
LBB0_9:
	movq	32(%r15), %rcx
	cmpl	%eax, (%rcx,%rbx,4)
	jge	LBB0_10
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_trap_SendServerCommand
LBB0_11:
	movq	(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_CS_TEAMVOTE_TIME@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_SetConfigstring           ## TAILCALL
LBB0_7:
	movq	40(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$7, %rdi
	callq	_atoi
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SetLeader
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_level,48,3                     ## @level
	.comm	_VOTE_TIME,8,3                  ## @VOTE_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"print \"Team vote failed.\n\""

L_.str.1:                               ## @.str.1
	.asciz	"print \"Team vote passed.\n\""

L_.str.2:                               ## @.str.2
	.asciz	"leader"

	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

	.comm	_CS_TEAMVOTE_TIME,8,3           ## @CS_TEAMVOTE_TIME
L_.str.4:                               ## @.str.4
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamVote                  ; -- Begin function CheckTeamVote
	.p2align	2
_CheckTeamVote:                         ; @CheckTeamVote
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _TEAM_BLUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.3:
	mov	w20, #1
LBB0_4:
Lloh6:
	adrp	x21, _level@GOTPAGE
Lloh7:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x9, [x21, #8]
Lloh8:
	adrp	x10, _VOTE_TIME@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VOTE_TIME@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	sub	x8, x9, x8
	cmp	x8, x10
	b.ge	LBB0_11
; %bb.6:
	lsl	x8, x20, #2
	ldp	x9, x10, [x21, #16]
	ldr	w9, [x9, x8]
	ldr	w8, [x10, x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w9, w8
	b.le	LBB0_9
; %bb.7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_trap_SendServerCommand
	ldr	x8, [x21, #40]
	ldr	x1, [x8, x20, lsl #3]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #6
	bl	_Q_strncmp
	cbz	w0, LBB0_13
; %bb.8:
Lloh15:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh17:
	ldr	w19, [x8]
	ldr	x8, [x21, #40]
	ldr	x1, [x8, x20, lsl #3]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SendConsoleCommand
	b	LBB0_12
LBB0_9:
	ldr	x9, [x21, #32]
	ldr	w9, [x9, x20, lsl #2]
	cmp	w9, w8
	b.ge	LBB0_11
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
LBB0_11:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_trap_SendServerCommand
LBB0_12:
	ldr	x8, [x21]
	str	xzr, [x8, x20, lsl #3]
Lloh22:
	adrp	x8, _CS_TEAMVOTE_TIME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CS_TEAMVOTE_TIME@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, x20
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	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	_trap_SetConfigstring
LBB0_13:
	ldr	x8, [x21, #40]
	ldr	x8, [x8, x20, lsl #3]
	add	x0, x8, #7
	bl	_atoi
	mov	x1, x0
	mov	x0, x19
	bl	_SetLeader
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_level,48,3                     ; @level
	.comm	_VOTE_TIME,8,3                  ; @VOTE_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"print \"Team vote failed.\n\""

l_.str.1:                               ; @.str.1
	.asciz	"print \"Team vote passed.\n\""

l_.str.2:                               ; @.str.2
	.asciz	"leader"

	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

	.comm	_CS_TEAMVOTE_TIME,8,3           ; @CS_TEAMVOTE_TIME
l_.str.4:                               ; @.str.4
	.space	1

.subsections_via_symbols
