	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_WriteBans
_SV_WriteBans:                          ## @SV_WriteBans
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	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	_sv_banFile@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_FS_GetCurrentGameDir
	movq	(%r15), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_Com_sprintf
	movq	%r14, %rdi
	callq	_FS_SV_FOpenFileWrite
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r12d
	movq	_serverBansCount@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.4:
	movl	$8, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_serverBans@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-4(%r15,%r13), %edi
	movl	(%r15,%r13), %ebx
	callq	_NET_AdrToString
	movl	-8(%r15,%r13), %r9d
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_Com_sprintf
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_FS_Write
	movq	_serverBansCount@GOTPCREL(%rip), %rax
	incq	%r14
	movslq	(%rax), %rax
	addq	$12, %r13
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_6:
	movl	%r12d, %edi
	callq	_FS_FCloseFile
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_sv_banFile,8,3                 ## @sv_banFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_serverBansCount,4,2            ## @serverBansCount
	.comm	_serverBans,8,3                 ## @serverBans
L_.str.1:                               ## @.str.1
	.asciz	"%d %s %d\n"

	.no_dead_strip	_SV_WriteBans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_WriteBans
_SV_WriteBans:                          ; @SV_WriteBans
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #144
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
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	x21, _sv_banFile@GOTPAGE
Lloh9:
	ldr	x21, [x21, _sv_banFile@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	bl	_FS_GetCurrentGameDir
	mov	x3, x0
	ldr	x8, [x21]
	ldr	w4, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_Com_sprintf
	mov	x0, x20
	bl	_FS_SV_FOpenFileWrite
	cbz	w0, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh12:
	adrp	x22, _serverBansCount@GOTPAGE
Lloh13:
	ldr	x22, [x22, _serverBansCount@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	mov	x24, #0
Lloh14:
	adrp	x25, _serverBans@GOTPAGE
Lloh15:
	ldr	x25, [x25, _serverBans@GOTPAGEOFF]
Lloh16:
	adrp	x20, l_.str.1@PAGE
Lloh17:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x26, x8, x23
	ldp	w0, w21, [x26, #4]
	bl	_NET_AdrToString
	mov	x4, x0
	ldr	w8, [x26]
	str	x8, [sp, #-16]!
	sub	x0, x29, #200
	mov	w1, #128
	mov	x2, x20
	mov	x3, x21
	bl	_Com_sprintf
	add	sp, sp, #16
	sub	x0, x29, #200
	bl	_strlen
	mov	x1, x0
	sub	x0, x29, #200
	mov	x2, x19
	bl	_FS_Write
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #12
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_FS_FCloseFile
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_sv_banFile,8,3                 ; @sv_banFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_serverBansCount,4,2            ; @serverBansCount
	.comm	_serverBans,8,3                 ; @serverBans
l_.str.1:                               ; @.str.1
	.asciz	"%d %s %d\n"

	.no_dead_strip	_SV_WriteBans
.subsections_via_symbols
