	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_MapTorsoToWeaponFrame
_CG_MapTorsoToWeaponFrame:              ## @CG_MapTorsoToWeaponFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_TORSO_DROP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_3
## %bb.1:
	leal	9(%rcx), %edx
	cmpl	%esi, %edx
	jle	LBB0_3
## %bb.2:
	subl	%ecx, %esi
	addl	$6, %esi
	jmp	LBB0_8
LBB0_3:
	movq	_TORSO_ATTACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_5
## %bb.4:
	leal	6(%rcx), %edx
	cmpl	%esi, %edx
	jg	LBB0_7
LBB0_5:
	movq	_TORSO_ATTACK2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	jg	LBB0_9
## %bb.6:
	leal	6(%rcx), %edx
	cmpl	%esi, %edx
	jle	LBB0_9
LBB0_7:
	subl	%ecx, %esi
	incl	%esi
LBB0_8:
	movl	%esi, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TORSO_DROP,8,3                 ## @TORSO_DROP
	.comm	_TORSO_ATTACK,8,3               ## @TORSO_ATTACK
	.comm	_TORSO_ATTACK2,8,3              ## @TORSO_ATTACK2
	.no_dead_strip	_CG_MapTorsoToWeaponFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_MapTorsoToWeaponFrame
_CG_MapTorsoToWeaponFrame:              ; @CG_MapTorsoToWeaponFrame
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TORSO_DROP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TORSO_DROP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w9, #9
	cmp	w9, w1
	ccmp	w10, w1, #4, le
	b.gt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _TORSO_ATTACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TORSO_ATTACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	add	w10, w9, #6
	cmp	w9, w1
	ccmp	w10, w1, #4, le
	b.gt	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _TORSO_ATTACK2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TORSO_ATTACK2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	add	w9, w8, #6
	sub	w10, w1, w8
	cmp	w8, w1
	ccmp	w9, w1, #4, le
	csinc	w0, wzr, w10, le
	ret
LBB0_3:
	sub	w8, w1, w9
	add	w0, w8, #6
	ret
LBB0_4:
	sub	w8, w1, w9
	add	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TORSO_DROP,8,3                 ; @TORSO_DROP
	.comm	_TORSO_ATTACK,8,3               ; @TORSO_ATTACK
	.comm	_TORSO_ATTACK2,8,3              ; @TORSO_ATTACK2
	.no_dead_strip	_CG_MapTorsoToWeaponFrame
.subsections_via_symbols
