	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadCharacterSkill          ## -- Begin function BotLoadCharacterSkill
	.p2align	4, 0x90
_BotLoadCharacterSkill:                 ## @BotLoadCharacterSkill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_DEFAULT_CHARACTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BotLoadCachedCharacter
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_LibVarGetValue
	movq	%rbx, %rdi
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %esi
	callq	_BotLoadCachedCharacter
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_botcharacters@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_BotDefaultCharacteristics
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_CHARACTER,8,3          ## @DEFAULT_CHARACTER
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bot_reloadcharacters"

	.comm	_botcharacters,8,3              ## @botcharacters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotLoadCharacterSkill          ; -- Begin function BotLoadCharacterSkill
	.p2align	2
_BotLoadCharacterSkill:                 ; @BotLoadCharacterSkill
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	s8, s0
	mov	x20, x0
Lloh0:
	adrp	x8, _DEFAULT_CHARACTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_CHARACTER@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_BotLoadCachedCharacter
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LibVarGetValue
	mov	x1, x0
	mov	x0, x20
	fmov	s0, s8
	bl	_BotLoadCachedCharacter
	mov	x20, x0
	cmp	w19, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _botcharacters@GOTPAGE
Lloh9:
	ldr	x8, [x8, _botcharacters@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w0, [x8, w20, sxtw #2]
	ldr	w1, [x8, w19, sxtw #2]
	bl	_BotDefaultCharacteristics
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_CHARACTER,8,3          ; @DEFAULT_CHARACTER
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bot_reloadcharacters"

	.comm	_botcharacters,8,3              ; @botcharacters
.subsections_via_symbols
