	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckVote                      ## -- Begin function CheckVote
	.p2align	4, 0x90
_CheckVote:                             ## @CheckVote
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_level@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	8(%rbx), %rax
	jge	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	36(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SendConsoleCommand
LBB0_3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	8(%rbx), %rcx
	subq	%rax, %rcx
	movq	_VOTE_TIME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_8
## %bb.5:
	movl	28(%rbx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cmpl	%eax, 24(%rbx)
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_trap_SendServerCommand
	movl	$3000, %eax                     ## imm = 0xBB8
	addq	8(%rbx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_7:
	cmpl	%eax, 32(%rbx)
	jge	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_trap_SendServerCommand
LBB0_9:
	movq	$0, 16(%rbx)
	movq	_CS_VOTE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_SetConfigstring           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_level,40,3                     ## @level
	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_VOTE_TIME,8,3                  ## @VOTE_TIME
L_.str.1:                               ## @.str.1
	.asciz	"print \"Vote failed.\n\""

L_.str.2:                               ## @.str.2
	.asciz	"print \"Vote passed.\n\""

	.comm	_CS_VOTE_TIME,4,2               ## @CS_VOTE_TIME
L_.str.3:                               ## @.str.3
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckVote                      ; -- Begin function CheckVote
	.p2align	2
_CheckVote:                             ; @CheckVote
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _level@GOTPAGE
Lloh1:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	ldp	x8, x9, [x20]
	cmp	x8, #0
	ccmp	x8, x9, #0, ne
	b.ge	LBB0_2
; %bb.1:
	str	xzr, [x20]
Lloh2:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	ldr	w1, [x20, #36]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SendConsoleCommand
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x20, #8]
Lloh7:
	adrp	x10, _VOTE_TIME@GOTPAGE
Lloh8:
	ldr	x10, [x10, _VOTE_TIME@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	sub	x8, x9, x8
	cmp	x8, x10
	b.ge	LBB0_8
; %bb.4:
	ldp	w9, w8, [x20, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	w9, w8
	b.le	LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_trap_SendServerCommand
	ldr	x8, [x20, #8]
	add	x8, x8, #3000
	str	x8, [x20]
	b	LBB0_9
LBB0_6:
	ldr	w9, [x20, #32]
	cmp	w9, w8
	b.ge	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_trap_SendServerCommand
LBB0_9:
Lloh14:
	adrp	x8, _CS_VOTE_TIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CS_VOTE_TIME@GOTPAGEOFF]
	str	xzr, [x20, #16]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_SetConfigstring
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_level,40,3                     ; @level
	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_VOTE_TIME,8,3                  ; @VOTE_TIME
l_.str.1:                               ; @.str.1
	.asciz	"print \"Vote failed.\n\""

l_.str.2:                               ; @.str.2
	.asciz	"print \"Vote passed.\n\""

	.comm	_CS_VOTE_TIME,4,2               ; @CS_VOTE_TIME
l_.str.3:                               ; @.str.3
	.space	1

.subsections_via_symbols
