	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_RegisterClientSkin
_CG_RegisterClientSkin:                 ## @CG_RegisterClientSkin
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r10
	movq	%rbx, %rdi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	%r10
	callq	_CG_FindClientModelFile
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_trap_R_RegisterSkin
	movq	%r13, %r12
	movq	%rax, 16(%r13)
	jmp	LBB0_3
LBB0_1:
	movq	%r13, %r12
	movq	16(%r13), %rax
LBB0_3:
	movq	%rbx, %r14
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_Com_Printf
LBB0_5:
	leaq	L_.str.3(%rip), %r10
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	leaq	L_.str.1(%rip), %rax
	pushq	%rax
	pushq	%r10
	callq	_CG_FindClientModelFile
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_trap_R_RegisterSkin
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_Com_Printf
LBB0_10:
	leaq	L_.str.5(%rip), %r10
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	leaq	L_.str.1(%rip), %rax
	pushq	%rax
	pushq	%r10
	callq	_CG_FindClientHeadFile
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_trap_R_RegisterSkin
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_15
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	callq	_Com_Printf
LBB0_15:
	movq	_qfalse@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%r12)
	je	LBB0_20
## %bb.16:
	cmpq	$0, 8(%r12)
	je	LBB0_20
## %bb.17:
	cmpq	$0, (%r12)
	jne	LBB0_18
## %bb.19:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_6:
	movq	8(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_11:
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_18:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lower"

L_.str.1:                               ## @.str.1
	.asciz	"skin"

L_.str.2:                               ## @.str.2
	.asciz	"Leg skin load failure: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"upper"

L_.str.4:                               ## @.str.4
	.asciz	"Torso skin load failure: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"head"

L_.str.6:                               ## @.str.6
	.asciz	"Head skin load failure: %s\n"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_CG_RegisterClientSkin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_RegisterClientSkin
_CG_RegisterClientSkin:                 ; @CG_RegisterClientSkin
	.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, #16
	mov	x21, x5
	mov	x22, x4
	mov	x25, x3
	mov	x26, x2
	mov	x23, x1
	mov	x19, x0
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	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x6, l_.str@PAGE
Lloh9:
	add	x6, x6, l_.str@PAGEOFF
Lloh10:
	adrp	x7, l_.str.1@PAGE
Lloh11:
	add	x7, x7, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, x23
	mov	x4, x26
	mov	x5, x25
	bl	_CG_FindClientModelFile
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_trap_R_RegisterSkin
	str	x0, [x19, #16]
	cbnz	x0, LBB0_3
LBB0_2:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_Com_Printf
LBB0_3:
Lloh14:
	adrp	x6, l_.str.3@PAGE
Lloh15:
	add	x6, x6, l_.str.3@PAGEOFF
Lloh16:
	adrp	x7, l_.str.1@PAGE
Lloh17:
	add	x7, x7, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, x23
	mov	x4, x26
	mov	x5, x25
	bl	_CG_FindClientModelFile
	cbz	x0, LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_trap_R_RegisterSkin
	str	x0, [x19, #8]
	cbnz	x0, LBB0_6
LBB0_5:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_Com_Printf
LBB0_6:
Lloh20:
	adrp	x6, l_.str.5@PAGE
Lloh21:
	add	x6, x6, l_.str.5@PAGEOFF
Lloh22:
	adrp	x7, l_.str.1@PAGE
Lloh23:
	add	x7, x7, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_CG_FindClientHeadFile
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x20
	bl	_trap_R_RegisterSkin
	str	x0, [x19]
	cbz	x0, LBB0_14
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
LBB0_9:
	ldr	x9, [x19, #8]
Lloh24:
	adrp	x8, _qfalse@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	cbz	x9, LBB0_16
; %bb.10:
	ldr	x9, [x19]
Lloh26:
	adrp	x10, _qtrue@GOTPAGE
Lloh27:
	ldr	x10, [x10, _qtrue@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	b	LBB0_16
LBB0_11:
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_12:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_6
	b	LBB0_5
LBB0_13:
	ldr	x0, [x19]
	cbnz	x0, LBB0_8
LBB0_14:
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_Com_Printf
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
LBB0_15:
Lloh30:
	adrp	x8, _qfalse@GOTPAGE
Lloh31:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lower"

l_.str.1:                               ; @.str.1
	.asciz	"skin"

l_.str.2:                               ; @.str.2
	.asciz	"Leg skin load failure: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"upper"

l_.str.4:                               ; @.str.4
	.asciz	"Torso skin load failure: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"head"

l_.str.6:                               ; @.str.6
	.asciz	"Head skin load failure: %s\n"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_CG_RegisterClientSkin
.subsections_via_symbols
