	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ThingHeightClip              ## -- Begin function P_ThingHeightClip
	.p2align	4, 0x90
_P_ThingHeightClip:                     ## @P_ThingHeightClip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%rdi), %r15
	movl	36(%rdi), %esi
	movl	32(%rdi), %edx
	callq	_P_CheckPosition
	movq	_tmfloorz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_tmceilingz@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	cmpq	%r15, %r14
	jne	LBB0_2
## %bb.1:
	movq	%rax, (%rbx)
	movq	24(%rbx), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	24(%rbx), %rdx
	movq	(%rbx), %rsi
	addq	%rdx, %rsi
	cmpq	%rcx, %rsi
	jle	LBB0_4
## %bb.3:
	movq	%rcx, %rsi
	subq	%rdx, %rsi
	movq	%rsi, (%rbx)
LBB0_4:
	subq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	setge	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tmfloorz,8,3                   ## @tmfloorz
	.comm	_tmceilingz,8,3                 ## @tmceilingz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ThingHeightClip              ; -- Begin function P_ThingHeightClip
	.p2align	2
_P_ThingHeightClip:                     ; @P_ThingHeightClip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x20, x21, [x0]
	ldp	w2, w1, [x0, #32]
	bl	_P_CheckPosition
Lloh0:
	adrp	x8, _tmfloorz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tmfloorz@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _tmceilingz@GOTPAGE
Lloh4:
	ldr	x9, [x9, _tmceilingz@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x8, x9, [x19, #8]
	cmp	x20, x21
	b.ne	LBB0_2
; %bb.1:
	str	x8, [x19]
	ldr	x10, [x19, #24]
	b	LBB0_4
LBB0_2:
	ldr	x11, [x19]
	ldr	x10, [x19, #24]
	add	x11, x10, x11
	cmp	x11, x9
	b.le	LBB0_4
; %bb.3:
	sub	x11, x9, x10
	str	x11, [x19]
LBB0_4:
	sub	x8, x9, x8
	cmp	x8, x10
	cset	w0, ge
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tmfloorz,8,3                   ; @tmfloorz
	.comm	_tmceilingz,8,3                 ; @tmceilingz
.subsections_via_symbols
