	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_ChangeSector               ## -- Begin function PIT_ChangeSector
	.p2align	4, 0x90
_PIT_ChangeSector:                      ## @PIT_ChangeSector
	.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
	movq	%rdi, %rbx
	callq	_P_ThingHeightClip
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, (%rbx)
	jle	LBB0_2
## %bb.3:
	movl	8(%rbx), %eax
	movq	_MF_DROPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_P_RemoveMobj
	jmp	LBB0_9
LBB0_2:
	movq	_S_GIBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_P_SetMobjState
	movq	_MF_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	$0, 12(%rbx)
	movq	$0, 40(%rbx)
	jmp	LBB0_9
LBB0_5:
	movq	_MF_SHOOTABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	movq	_nofit@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_crushchange@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_leveltime@GOTPCREL(%rip), %rax
	testb	$3, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$10, %ecx
	callq	_P_DamageMobj
	movl	36(%rbx), %edi
	movl	12(%rbx), %eax
	movl	32(%rbx), %esi
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rdx
	addq	24(%rbx), %rdx
	movq	_MT_BLOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_P_SpawnMobj
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$12, %ebx
	movl	%ebx, 16(%r14)
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$12, %ebx
	movl	%ebx, 20(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_S_GIBS,4,2                     ## @S_GIBS
	.comm	_MF_SOLID,4,2                   ## @MF_SOLID
	.comm	_MF_DROPPED,4,2                 ## @MF_DROPPED
	.comm	_MF_SHOOTABLE,4,2               ## @MF_SHOOTABLE
	.comm	_nofit,4,2                      ## @nofit
	.comm	_crushchange,8,3                ## @crushchange
	.comm	_leveltime,4,2                  ## @leveltime
	.comm	_MT_BLOOD,4,2                   ## @MT_BLOOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_ChangeSector               ; -- Begin function PIT_ChangeSector
	.p2align	2
_PIT_ChangeSector:                      ; @PIT_ChangeSector
	.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
	mov	x19, x0
	bl	_P_ThingHeightClip
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_5
; %bb.3:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _MF_DROPPED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MF_DROPPED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_P_RemoveMobj
	b	LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _S_GIBS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_GIBS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_P_SetMobjState
Lloh6:
	adrp	x8, _MF_SOLID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MF_SOLID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	stp	w8, wzr, [x19, #8]
	str	xzr, [x19, #40]
	b	LBB0_1
LBB0_6:
Lloh9:
	adrp	x9, _MF_SHOOTABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MF_SHOOTABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.7:
Lloh12:
	adrp	x8, _nofit@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nofit@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
Lloh15:
	adrp	x8, _crushchange@GOTPAGE
Lloh16:
	ldr	x8, [x8, _crushchange@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.8:
Lloh18:
	adrp	x8, _leveltime@GOTPAGE
Lloh19:
	ldr	x8, [x8, _leveltime@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, #0x3
	b.ne	LBB0_1
; %bb.9:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	w3, #10
	bl	_P_DamageMobj
	ldp	w1, w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x2, x8, w9, sxtw
Lloh20:
	adrp	x8, _MT_BLOOD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_BLOOD@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	bl	_P_SpawnMobj
	mov	x19, x0
	bl	_P_Random
	mov	x20, x0
	bl	_P_Random
	sub	w8, w20, w0
	lsl	w8, w8, #12
	str	w8, [x19, #16]
	bl	_P_Random
	mov	x20, x0
	bl	_P_Random
	sub	w8, w20, w0
	lsl	w8, w8, #12
	str	w8, [x19, #20]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_S_GIBS,4,2                     ; @S_GIBS
	.comm	_MF_SOLID,4,2                   ; @MF_SOLID
	.comm	_MF_DROPPED,4,2                 ; @MF_DROPPED
	.comm	_MF_SHOOTABLE,4,2               ; @MF_SHOOTABLE
	.comm	_nofit,4,2                      ; @nofit
	.comm	_crushchange,8,3                ; @crushchange
	.comm	_leveltime,4,2                  ; @leveltime
	.comm	_MT_BLOOD,4,2                   ; @MT_BLOOD
.subsections_via_symbols
