	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_AddTouchEnt                 ## -- Begin function PM_AddTouchEnt
	.p2align	4, 0x90
_PM_AddTouchEnt:                        ## @PM_AddTouchEnt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ENTITYNUM_WORLD@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_pm@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movslq	(%r8), %rcx
	movq	_MAXTOUCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_7
## %bb.2:
	movl	%ecx, %edx
	movq	8(%r8), %rsi
	testl	%edx, %edx
	jle	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rsi,%rax,4)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_5
LBB0_6:
	movl	%edi, (%rsi,%rcx,4)
	incl	(%r8)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTITYNUM_WORLD,4,2            ## @ENTITYNUM_WORLD
	.comm	_pm,8,3                         ## @pm
	.comm	_MAXTOUCH,4,2                   ## @MAXTOUCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PM_AddTouchEnt                 ; -- Begin function PM_AddTouchEnt
	.p2align	2
_PM_AddTouchEnt:                        ; @PM_AddTouchEnt
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ENTITYNUM_WORLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTITYNUM_WORLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _pm@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pm@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _MAXTOUCH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MAXTOUCH@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.2:
	ldr	x10, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x11, x9
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w13, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #4
	subs	x11, x11, #1
	b.ne	LBB0_4
LBB0_6:
	sxtw	x9, w9
	str	w0, [x10, x9, lsl #2]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTITYNUM_WORLD,4,2            ; @ENTITYNUM_WORLD
	.comm	_pm,8,3                         ; @pm
	.comm	_MAXTOUCH,4,2                   ; @MAXTOUCH
.subsections_via_symbols
