	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RunItem                      ## -- Begin function G_RunItem
	.p2align	4, 0x90
_G_RunItem:                             ## @G_RunItem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$-1, 32(%rdi)
	movq	40(%rdi), %rax
	jne	LBB0_3
## %bb.1:
	movq	_TR_GRAVITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.2:
	movq	%rcx, 40(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%rcx, %rax
LBB0_3:
	movq	_TR_STATIONARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.14:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_G_RunThink                     ## TAILCALL
LBB0_4:
	leaq	40(%rbx), %rdi
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BG_EvaluateTrajectory
	movq	_MASK_PLAYERSOLID@GOTPCREL(%rip), %rax
	movq	_CONTENTS_BODY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	(%rax), %edi
	movl	(%rbx), %eax
	testl	%eax, %eax
	cmovnel	%eax, %edi
	movl	16(%rbx), %esi
	movl	28(%rbx), %edx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r9d
	movl	%edi, (%rsp)
	leaq	-32(%rbp), %rdi
	callq	_trap_Trace
	movl	-16(%rbp), %edi
	movl	16(%rbx), %esi
	callq	_VectorCopy
	cmpq	$0, -24(%rbp)
	je	LBB0_6
## %bb.5:
	movl	$0, -32(%rbp)
LBB0_6:
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	movq	%rbx, %rdi
	callq	_G_RunThink
	cmpl	$1, -32(%rbp)
	je	LBB0_13
## %bb.7:
	movl	16(%rbx), %edi
	movl	$-1, %esi
	callq	_trap_PointContents
	movq	_CONTENTS_NODROP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.8:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rax
	movq	_IT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_Team_FreeEntity
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_G_FreeEntity
	jmp	LBB0_13
LBB0_12:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_G_BounceItem
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TR_GRAVITY,8,3                 ## @TR_GRAVITY
	.comm	_level,4,2                      ## @level
	.comm	_TR_STATIONARY,8,3              ## @TR_STATIONARY
	.comm	_MASK_PLAYERSOLID,4,2           ## @MASK_PLAYERSOLID
	.comm	_CONTENTS_BODY,4,2              ## @CONTENTS_BODY
	.comm	_CONTENTS_NODROP,4,2            ## @CONTENTS_NODROP
	.comm	_IT_TEAM,8,3                    ## @IT_TEAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RunItem                      ; -- Begin function G_RunItem
	.p2align	2
_G_RunItem:                             ; @G_RunItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w9, [x0, #32]
	ldr	x8, [x0, #40]
	cmn	w9, #1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _TR_GRAVITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TR_GRAVITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	str	x9, [x19, #40]
Lloh3:
	adrp	x8, _level@GOTPAGE
Lloh4:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	mov	x8, x9
LBB0_3:
Lloh6:
	adrp	x9, _TR_STATIONARY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TR_STATIONARY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_G_RunThink
LBB0_5:
	add	x0, x19, #40
Lloh9:
	adrp	x8, _level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_BG_EvaluateTrajectory
Lloh12:
	adrp	x8, _MASK_PLAYERSOLID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MASK_PLAYERSOLID@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _CONTENTS_BODY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CONTENTS_BODY@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	bic	w8, w8, w10
	cmp	w9, #0
	csel	w6, w8, w9, eq
	ldp	w3, w2, [x19, #24]
	ldp	w1, w5, [x19, #16]
	add	x0, sp, #8
	bl	_trap_Trace
	ldr	w0, [sp, #24]
	ldr	w1, [x19, #16]
	bl	_VectorCopy
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.6:
	str	wzr, [sp, #8]
LBB0_7:
	mov	x0, x19
	bl	_trap_LinkEntity
	mov	x0, x19
	bl	_G_RunThink
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.eq	LBB0_14
; %bb.8:
	ldr	w0, [x19, #16]
	mov	w1, #-1
	bl	_trap_PointContents
Lloh18:
	adrp	x8, _CONTENTS_NODROP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONTENTS_NODROP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _IT_TEAM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IT_TEAM@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_Team_FreeEntity
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_G_FreeEntity
	b	LBB0_14
LBB0_13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_G_BounceItem
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TR_GRAVITY,8,3                 ; @TR_GRAVITY
	.comm	_level,4,2                      ; @level
	.comm	_TR_STATIONARY,8,3              ; @TR_STATIONARY
	.comm	_MASK_PLAYERSOLID,4,2           ; @MASK_PLAYERSOLID
	.comm	_CONTENTS_BODY,4,2              ; @CONTENTS_BODY
	.comm	_CONTENTS_NODROP,4,2            ; @CONTENTS_NODROP
	.comm	_IT_TEAM,8,3                    ; @IT_TEAM
.subsections_via_symbols
