	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_hasSkinForBase              ## -- Begin function UI_hasSkinForBase
	.p2align	4, 0x90
_UI_hasSkinForBase:                     ## @UI_hasSkinForBase
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_Com_sprintf
	movq	_FS_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_trap_FS_FOpenFile
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdx
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_Com_sprintf
	movl	(%r12), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_trap_FS_FOpenFile
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"models/players/%s/%s/lower_default.skin"

	.comm	_FS_READ,4,2                    ## @FS_READ
	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"models/players/characters/%s/%s/lower_default.skin"

	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_hasSkinForBase              ; -- Begin function UI_hasSkinForBase
	.p2align	2
_UI_hasSkinForBase:                     ; @UI_hasSkinForBase
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
	mov	x4, x19
	bl	_Com_sprintf
Lloh5:
	adrp	x22, _FS_READ@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FS_READ@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #8
	mov	w1, #0
	bl	_trap_FS_FOpenFile
Lloh7:
	adrp	x21, _qtrue@GOTPAGE
Lloh8:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
	mov	x4, x19
	bl	_Com_sprintf
	ldr	w2, [x22]
	add	x0, sp, #8
	mov	w1, #0
	bl	_trap_FS_FOpenFile
Lloh11:
	adrp	x8, _qfalse@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
LBB0_2:
	ldr	w0, [x21]
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"models/players/%s/%s/lower_default.skin"

	.comm	_FS_READ,4,2                    ; @FS_READ
	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"models/players/characters/%s/%s/lower_default.skin"

	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
