	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hurt_touch                     ## -- Begin function hurt_touch
	.p2align	4, 0x90
_hurt_touch:                            ## @hurt_touch
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 20(%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, (%rdi)
	jg	LBB0_7
## %bb.2:
	movq	%rsi, %r14
	movl	8(%rbx), %eax
	movl	$1000, %edx                     ## imm = 0x3E8
	testb	$16, %al
	jne	LBB0_4
## %bb.3:
	movq	_FRAMETIME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_4:
	addq	%rcx, %rdx
	movq	%rdx, (%rbx)
	testb	$4, %al
	jne	LBB0_6
## %bb.5:
	movq	_CHAN_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_G_Sound
	movl	8(%rbx), %eax
LBB0_6:
	shll	$28, %eax
	sarl	$31, %eax
	movq	_DAMAGE_NO_PROTECTION@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	12(%rbx), %r9d
	movq	_MOD_TRIGGER_HURT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	%rax
	callq	_G_Damage
	addq	$16, %rsp
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,3                      ## @level
	.comm	_FRAMETIME,8,3                  ## @FRAMETIME
	.comm	_CHAN_AUTO,4,2                  ## @CHAN_AUTO
	.comm	_DAMAGE_NO_PROTECTION,4,2       ## @DAMAGE_NO_PROTECTION
	.comm	_MOD_TRIGGER_HURT,4,2           ## @MOD_TRIGGER_HURT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hurt_touch                     ; -- Begin function hurt_touch
	.p2align	2
_hurt_touch:                            ; @hurt_touch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1, #20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _level@GOTPAGE
Lloh1:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x1
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x10, _FRAMETIME@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FRAMETIME@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	tst	w8, #0x10
	mov	w11, #1000
	csel	x10, x10, x11, eq
	add	x9, x10, x9
	str	x9, [x19]
	tbnz	w8, #2, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _CHAN_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAN_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_G_Sound
	ldr	w8, [x19, #8]
LBB0_5:
	lsl	w8, w8, #28
Lloh9:
	adrp	x9, _DAMAGE_NO_PROTECTION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DAMAGE_NO_PROTECTION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w6, w9, w8, asr #31
	ldr	w5, [x19, #12]
Lloh12:
	adrp	x8, _MOD_TRIGGER_HURT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MOD_TRIGGER_HURT@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_Damage
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,3                      ; @level
	.comm	_FRAMETIME,8,3                  ; @FRAMETIME
	.comm	_CHAN_AUTO,4,2                  ; @CHAN_AUTO
	.comm	_DAMAGE_NO_PROTECTION,4,2       ; @DAMAGE_NO_PROTECTION
	.comm	_MOD_TRIGGER_HURT,4,2           ; @MOD_TRIGGER_HURT
.subsections_via_symbols
