	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_RehashBans_f
_SV_RehashBans_f:                       ## @SV_RehashBans_f
	.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	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_com_sv_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_27
## %bb.1:
	movq	_serverBansCount@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	movq	_sv_banFile@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_27
## %bb.3:
	xorl	%eax, %eax
	callq	_FS_GetCurrentGameDir
	movq	(%r12), %rcx
	movq	(%rcx), %r8
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_Com_sprintf
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdi
	callq	_FS_SV_FOpenFileRead
	testl	%eax, %eax
	js	LBB0_27
## %bb.4:
	movl	%eax, %ebx
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_FS_FCloseFile
	jmp	LBB0_27
LBB0_6:
	movl	%ebx, %edi
	callq	_Z_Malloc
	movq	%rax, %r12
	movl	-52(%rbp), %edx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_FS_Read
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	callq	_FS_FCloseFile
	movq	_SERVER_MAXBANS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	jle	LBB0_26
## %bb.7:
	cmpl	$3, %ebx
	jl	LBB0_26
## %bb.8:
	movslq	%ebx, %r14
	addq	%r12, %r14
	movq	%r12, %rdi
	addq	$2, %rdi
	xorl	%ecx, %ecx
	movq	_NA_UNSPEC@GOTPCREL(%rip), %rdx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rdi, %r12
	cmpq	%r14, %rdi
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rdi, %r12
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, (%r12)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%r12
	cmpq	%r14, %r12
	jb	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	1(%r12), %rbx
	cmpq	%r14, %rbx
	jae	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, (%r12)
	addq	$2, %r12
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, -1(%r12)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	leaq	1(%r12), %rax
	cmpq	%r14, %r12
	movq	%rax, %r12
	jb	LBB0_15
	jmp	LBB0_25
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movb	$0, -1(%r12)
	movq	_serverBans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r13
	shlq	$4, %r13
	leaq	(%rax,%r13), %rsi
	addq	$8, %rsi
	movl	(%rdx), %edx
	callq	_NET_StringToAdr
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$48, (%rcx)
	setne	%al
	movq	_serverBans@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx,%r13)
	movq	%rbx, %rdi
	callq	_atoi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%rdi,%r13)
	movq	8(%rdi,%r13), %rcx
	movq	_NA_IP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	-33(%rax), %esi
	movl	$32, %edx
	cmpl	$-32, %esi
	jb	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_NA_IP6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	addl	$-129, %eax
	movl	$128, %edx
	cmpl	$-129, %eax
	ja	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%rdi,%r13), %rax
	addq	$4, %rax
	movl	%edx, (%rax)
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_SERVER_MAXBANS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	_serverBansCount@GOTPCREL(%rip), %r13
	jge	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	2(%r12), %rdi
	movq	%r12, %rsi
	cmpq	%r14, %rdi
	movq	_NA_UNSPEC@GOTPCREL(%rip), %rdx
	jb	LBB0_9
LBB0_25:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_26:
	movl	%ecx, (%r13)
	movq	%r12, %rdi
	callq	_Z_Free
LBB0_27:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_com_sv_running,8,3             ## @com_sv_running
	.comm	_serverBansCount,4,2            ## @serverBansCount
	.comm	_sv_banFile,8,3                 ## @sv_banFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_SERVER_MAXBANS,4,2             ## @SERVER_MAXBANS
	.comm	_serverBans,8,3                 ## @serverBans
	.comm	_NA_UNSPEC,4,2                  ## @NA_UNSPEC
	.comm	_NA_IP,8,3                      ## @NA_IP
	.comm	_NA_IP6,8,3                     ## @NA_IP6
	.no_dead_strip	_SV_RehashBans_f
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_RehashBans_f
_SV_RehashBans_f:                       ; @SV_RehashBans_f
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _com_sv_running@GOTPAGE
Lloh9:
	ldr	x8, [x8, _com_sv_running@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
Lloh11:
	adrp	x22, _serverBansCount@GOTPAGE
Lloh12:
	ldr	x22, [x22, _serverBansCount@GOTPAGEOFF]
	str	wzr, [x22]
Lloh13:
	adrp	x23, _sv_banFile@GOTPAGE
Lloh14:
	ldr	x23, [x23, _sv_banFile@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.3:
	bl	_FS_GetCurrentGameDir
	mov	x3, x0
	ldr	x8, [x23]
	ldr	x4, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_Com_sprintf
	sub	x1, x29, #92
	mov	x0, x20
	bl	_FS_SV_FOpenFileRead
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x20, x0
	cmp	w0, #1
	b.hi	LBB0_6
; %bb.5:
	ldur	w0, [x29, #-92]
	bl	_FS_FCloseFile
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_Z_Malloc
	mov	x27, x0
	ldur	w2, [x29, #-92]
	mov	x1, x20
	bl	_FS_Read
	mov	x20, x0
	ldur	w0, [x29, #-92]
	bl	_FS_FCloseFile
Lloh17:
	adrp	x28, _SERVER_MAXBANS@GOTPAGE
Lloh18:
	ldr	x28, [x28, _SERVER_MAXBANS@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	ccmp	w20, #3, #8, ge
	b.ge	LBB0_11
; %bb.7:
	mov	w23, #0
LBB0_8:
	str	w23, [x22]
	mov	x0, x27
	bl	_Z_Free
LBB0_9:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x23, #0
	sxtw	x8, w20
	add	x25, x27, x8
	add	x0, x27, #2
Lloh22:
	adrp	x11, _NA_UNSPEC@GOTPAGE
Lloh23:
	ldr	x11, [x11, _NA_UNSPEC@GOTPAGEOFF]
	sub	x13, x25, #1
	mov	x19, x27
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	mov	x26, x19
	mov	x8, x0
	cmp	x0, x25
	b.hs	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x9, x25, x0
	mov	x8, x0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x8]
	cmp	w10, #32
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x8, x8, #1
	subs	x9, x9, #1
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, x25
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x8, #1
	cmp	x20, x25
	b.hs	LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, x8
	strb	wzr, [x19], #2
	sub	x8, x13, x8
LBB0_19:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w9, [x19, #-1]
	cmp	w9, #10
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x19, x19, #1
	subs	x8, x8, #1
	b.ne	LBB0_19
	b	LBB0_8
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	stur	x13, [x29, #-104]               ; 8-byte Folded Spill
	sturb	wzr, [x19, #-1]
Lloh24:
	adrp	x8, _serverBans@GOTPAGE
Lloh25:
	ldr	x8, [x8, _serverBans@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	add	x8, x8, x23, lsl #4
	add	x1, x8, #8
	mov	x24, x11
	ldr	w2, [x11]
	bl	_NET_StringToAdr
	cbz	x0, LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x26]
	cmp	w8, #48
	cset	w8, ne
Lloh27:
	adrp	x9, _serverBans@GOTPAGE
Lloh28:
	ldr	x9, [x9, _serverBans@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x26, x9, x23, lsl #4
	str	w8, [x26]
	mov	x0, x20
	bl	_atoi
	str	w0, [x26, #4]!
	ldur	x8, [x26, #4]
Lloh30:
	adrp	x9, _NA_IP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NA_IP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w9, w0, #33
	cmn	w9, #32
	b.hs	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #32
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh33:
	adrp	x9, _NA_IP6@GOTPAGE
Lloh34:
	ldr	x9, [x9, _NA_IP6@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w8, w0, #129
	cmn	w8, #129
	b.hi	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #128
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w8, [x26]
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x28]
	add	x0, x19, #2
	cmp	x23, x8
	ccmp	x0, x25, #2, lt
	mov	x11, x24
	ldur	x13, [x29, #-104]               ; 8-byte Folded Reload
	b.lo	LBB0_12
	b	LBB0_8
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_com_sv_running,8,3             ; @com_sv_running
	.comm	_serverBansCount,4,2            ; @serverBansCount
	.comm	_sv_banFile,8,3                 ; @sv_banFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_SERVER_MAXBANS,4,2             ; @SERVER_MAXBANS
	.comm	_serverBans,8,3                 ; @serverBans
	.comm	_NA_UNSPEC,4,2                  ; @NA_UNSPEC
	.comm	_NA_IP,8,3                      ; @NA_IP
	.comm	_NA_IP6,8,3                     ; @NA_IP6
	.no_dead_strip	_SV_RehashBans_f
.subsections_via_symbols
