	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientSkin                     ## -- Begin function ClientSkin
	.p2align	4, 0x90
_ClientSkin:                            ## @ClientSkin
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	_CS_PLAYERS@GOTPCREL(%rip), %rax
	movl	%ebx, %edi
	addq	(%rax), %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_trap_GetConfigstring
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_Info_ValueForKey
	movslq	%r14d, %rbx
	leaq	-1(%rbx), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strncpy
	movb	$0, -1(%r15,%rbx)
	jmp	LBB0_4
LBB0_2:
	movq	_PRT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_BotAI_Print
	leaq	L_.str.1(%rip), %r15
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ClientSkin: client out of range\n"

L_.str.1:                               ## @.str.1
	.asciz	"[client out of range]"

	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
L_.str.2:                               ## @.str.2
	.asciz	"model"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientSkin                     ; -- Begin function ClientSkin
	.p2align	2
_ClientSkin:                            ; @ClientSkin
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _CS_PLAYERS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CS_PLAYERS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x0, x8, w0, uxtw
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_trap_GetConfigstring
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_Info_ValueForKey
	mov	x1, x0
	sxtw	x8, w20
	sub	x20, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_strncpy
	strb	wzr, [x19, x20]
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x8, _PRT_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PRT_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BotAI_Print
Lloh21:
	adrp	x19, l_.str.1@PAGE
Lloh22:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	sub	sp, x29, #32
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ClientSkin: client out of range\n"

l_.str.1:                               ; @.str.1
	.asciz	"[client out of range]"

	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
l_.str.2:                               ; @.str.2
	.asciz	"model"

.subsections_via_symbols
