	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_TryPushingEntity             ## -- Begin function G_TryPushingEntity
	.p2align	4, 0x90
_G_TryPushingEntity:                    ## @G_TryPushingEntity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EF_MOVER_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_15
LBB0_2:
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, %r12
	movq	_pushed_p@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_pushed@GOTPCREL(%rip), %rcx
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$5, %rdx
	addq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_G_Error
	movq	(%r15), %rax
LBB0_4:
	movq	%rbx, 24(%rax)
	leaq	32(%rbx), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	32(%rbx), %rdi
	movq	8(%rax), %rsi
	callq	_VectorCopy
	movq	24(%rbx), %rdi
	movq	(%r15), %rax
	movq	(%rax), %rsi
	callq	_VectorCopy
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rax), %rcx
	movq	_YAW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	(%r15), %rdx
	movl	%ecx, 16(%rdx)
	movq	(%rax), %rdi
	movq	8(%rdx), %rsi
	callq	_VectorCopy
LBB0_6:
	addq	$32, (%r15)
	leaq	-112(%rbp), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_G_CreateRotationMatrix
	leaq	-80(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_G_TransposeMatrix
	movq	40(%rbx), %rax
	testq	%rax, %rax
	movq	-128(%rbp), %r13                ## 8-byte Reload
	cmoveq	%r13, %rax
	movq	(%rax), %rdi
	movq	48(%r14), %rsi
	callq	_VectorSubtract
	callq	_VectorCopy
	movq	%r15, %rsi
	callq	_G_RotatePoint
	callq	_VectorSubtract
	movq	32(%rbx), %rdi
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	32(%rbx), %rdi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	40(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	_YAW@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%r12,%rax,4), %edi
	callq	_ANGLE2SHORT
	movq	40(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	(%r15), %rdx
	addl	%eax, (%rcx,%rdx,4)
LBB0_8:
	movq	8(%rbx), %rax
	cmpq	16(%r14), %rax
	je	LBB0_10
## %bb.9:
	movq	_ENTITYNUM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_G_TestEntityPosition
	testq	%rax, %rax
	movq	_pushed_p@GOTPCREL(%rip), %r14
	je	LBB0_16
## %bb.11:
	movq	(%r14), %rax
	movq	-24(%rax), %rdi
	movq	32(%rbx), %rsi
	callq	_VectorCopy
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rcx
	movq	-24(%rcx), %rdi
	movq	(%rax), %rsi
	callq	_VectorCopy
LBB0_13:
	movq	(%r14), %rax
	movq	-32(%rax), %rdi
	movq	24(%rbx), %rsi
	callq	_VectorCopy
	movq	%rbx, %rdi
	callq	_G_TestEntityPosition
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	40(%rbx), %rax
	movq	48(%rbx), %rsi
	testq	%rax, %rax
	cmovneq	%rax, %r13
	movq	(%r13), %rdi
	callq	_VectorCopy
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	jmp	LBB0_18
LBB0_17:
	movq	_ENTITYNUM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	addq	$-32, (%r14)
LBB0_18:
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EF_MOVER_STOP,4,2              ## @EF_MOVER_STOP
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_pushed_p,8,3                   ## @pushed_p
	.comm	_pushed,8,3                     ## @pushed
	.comm	_MAX_GENTITIES,8,3              ## @MAX_GENTITIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pushed_p > &pushed[MAX_GENTITIES]"

	.comm	_YAW,8,3                        ## @YAW
	.comm	_ENTITYNUM_NONE,8,3             ## @ENTITYNUM_NONE
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_TryPushingEntity             ; -- Begin function G_TryPushingEntity
	.p2align	2
_G_TryPushingEntity:                    ; @G_TryPushingEntity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _EF_MOVER_STOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EF_MOVER_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_2:
Lloh6:
	adrp	x23, _pushed_p@GOTPAGE
Lloh7:
	ldr	x23, [x23, _pushed_p@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh8:
	adrp	x9, _pushed@GOTPAGE
Lloh9:
	ldr	x9, [x9, _pushed@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _MAX_GENTITIES@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MAX_GENTITIES@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #5
	cmp	x8, x9
	b.ls	LBB0_4
; %bb.3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_Error
	ldr	x8, [x23]
LBB0_4:
	str	x19, [x8, #24]
	mov	x24, x19
	ldr	x0, [x24, #32]!
	ldr	x1, [x8, #8]
	bl	_VectorCopy
	ldr	x0, [x19, #24]
	ldr	x8, [x23]
	ldr	x1, [x8]
	bl	_VectorCopy
	ldr	x8, [x19, #40]
Lloh16:
	adrp	x25, _YAW@GOTPAGE
Lloh17:
	ldr	x25, [x25, _YAW@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [x8, #8]
	ldr	x10, [x25]
	ldr	w9, [x9, x10, lsl #2]
	ldr	x10, [x23]
	str	w9, [x10, #16]
	ldr	x0, [x8]
	ldr	x1, [x10, #8]
	bl	_VectorCopy
LBB0_6:
	ldr	x8, [x23]
	add	x8, x8, #32
	str	x8, [x23]
	add	x1, sp, #8
	mov	x0, x21
	bl	_G_CreateRotationMatrix
	add	x0, sp, #8
	add	x1, sp, #32
	bl	_G_TransposeMatrix
	ldr	x8, [x19, #40]
	cmp	x8, #0
	csel	x8, x24, x8, eq
	ldr	x0, [x8]
	ldr	x1, [x20, #48]
	bl	_VectorSubtract
	bl	_VectorCopy
	add	x1, sp, #32
	bl	_G_RotatePoint
	bl	_VectorSubtract
	ldr	x0, [x19, #32]
	mov	x1, x22
	mov	x2, x0
	bl	_VectorAdd
	ldr	x0, [x19, #32]
	mov	x2, x0
	bl	_VectorAdd
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x8]
	mov	x1, x22
	mov	x2, x0
	bl	_VectorAdd
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
	mov	x2, x0
	bl	_VectorAdd
	ldr	x8, [x25]
	ldr	w0, [x21, x8, lsl #2]
	bl	_ANGLE2SHORT
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	ldr	x9, [x25]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _ENTITYNUM_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENTITYNUM_NONE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_10:
	mov	x0, x19
	bl	_G_TestEntityPosition
	cbz	x0, LBB0_15
; %bb.11:
	ldr	x8, [x23]
	ldur	x0, [x8, #-24]
	ldr	x1, [x19, #32]
	bl	_VectorCopy
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x9, [x23]
	ldur	x0, [x9, #-24]
	ldr	x1, [x8]
	bl	_VectorCopy
LBB0_13:
	ldr	x8, [x23]
	ldur	x0, [x8, #-32]
	ldr	x1, [x19, #24]
	bl	_VectorCopy
	mov	x0, x19
	bl	_G_TestEntityPosition
	cbz	x0, LBB0_16
LBB0_14:
Lloh21:
	adrp	x8, _qfalse@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	ldp	x8, x1, [x19, #40]
	cmp	x8, #0
	csel	x8, x24, x8, eq
	ldr	x0, [x8]
	bl	_VectorCopy
	mov	x0, x19
	bl	_trap_LinkEntity
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _ENTITYNUM_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENTITYNUM_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x8, [x23]
	sub	x8, x8, #32
	str	x8, [x23]
LBB0_17:
Lloh26:
	adrp	x8, _qtrue@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	ldr	x8, [sp, #56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EF_MOVER_STOP,4,2              ; @EF_MOVER_STOP
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_pushed_p,8,3                   ; @pushed_p
	.comm	_pushed,8,3                     ; @pushed
	.comm	_MAX_GENTITIES,8,3              ; @MAX_GENTITIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pushed_p > &pushed[MAX_GENTITIES]"

	.comm	_YAW,8,3                        ; @YAW
	.comm	_ENTITYNUM_NONE,8,3             ; @ENTITYNUM_NONE
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
