	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_UnsetThingPosition           ## -- Begin function P_UnsetThingPosition
	.p2align	4, 0x90
_P_UnsetThingPosition:                  ## @P_UnsetThingPosition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_MF_NOSECTOR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.1:
	movq	32(%rdi), %rcx
	movq	48(%rdi), %rdx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	%rdx, (%rcx)
LBB0_3:
	testq	%rdx, %rdx
	jne	LBB0_5
## %bb.4:
	movq	40(%rdi), %rdx
	movq	(%rdx), %rdx
LBB0_5:
	movq	%rcx, (%rdx)
LBB0_6:
	movq	_MF_NOBLOCKMAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_16:
	popq	%rbp
	retq
LBB0_7:
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rcx, (%rax)
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_10
LBB0_15:
	movq	%rax, (%rcx)
	popq	%rbp
	retq
LBB0_10:
	movq	_bmaporgx@GOTPCREL(%rip), %rcx
	movl	4(%rdi), %edx
	subl	(%rcx), %edx
	movq	_MAPBLOCKSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	8(%rdi), %esi
	movq	_bmaporgy@GOTPCREL(%rip), %rdi
	subl	(%rdi), %esi
	sarl	%cl, %esi
	testl	%edx, %edx
	js	LBB0_16
## %bb.11:
	movq	_bmapwidth@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_16
## %bb.12:
	testl	%esi, %esi
	js	LBB0_16
## %bb.13:
	movq	_bmapheight@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	jge	LBB0_16
## %bb.14:
	movq	_blocklinks@GOTPCREL(%rip), %rdi
	imull	%esi, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	shlq	$3, %rcx
	addq	(%rdi), %rcx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_NOSECTOR,4,2                ## @MF_NOSECTOR
	.comm	_MF_NOBLOCKMAP,4,2              ## @MF_NOBLOCKMAP
	.comm	_bmaporgx,4,2                   ## @bmaporgx
	.comm	_MAPBLOCKSHIFT,4,2              ## @MAPBLOCKSHIFT
	.comm	_bmaporgy,4,2                   ## @bmaporgy
	.comm	_bmapwidth,4,2                  ## @bmapwidth
	.comm	_bmapheight,4,2                 ## @bmapheight
	.comm	_blocklinks,8,3                 ## @blocklinks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_UnsetThingPosition           ; -- Begin function P_UnsetThingPosition
	.p2align	2
_P_UnsetThingPosition:                  ; @P_UnsetThingPosition
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MF_NOSECTOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MF_NOSECTOR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.1:
	ldr	x9, [x0, #32]
	ldr	x10, [x0, #48]
	cbz	x9, LBB0_3
; %bb.2:
	str	x10, [x9]
LBB0_3:
	cbnz	x10, LBB0_5
; %bb.4:
	ldr	x10, [x0, #40]
	ldr	x10, [x10]
LBB0_5:
	str	x9, [x10]
LBB0_6:
Lloh3:
	adrp	x9, _MF_NOBLOCKMAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MF_NOBLOCKMAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	ret
LBB0_8:
	ldp	x8, x9, [x0, #16]
	cbz	x8, LBB0_10
; %bb.9:
	str	x9, [x8]
LBB0_10:
	cbz	x9, LBB0_12
; %bb.11:
	str	x8, [x9]
	ret
LBB0_12:
	ldr	w9, [x0, #4]
Lloh6:
	adrp	x10, _bmaporgx@GOTPAGE
Lloh7:
	ldr	x10, [x10, _bmaporgx@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	sub	w9, w9, w10
Lloh9:
	adrp	x10, _MAPBLOCKSHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAPBLOCKSHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x10]
	asr	w9, w9, w11
	tbnz	w9, #31, LBB0_7
; %bb.13:
Lloh12:
	adrp	x10, _bmapwidth@GOTPAGE
Lloh13:
	ldr	x10, [x10, _bmapwidth@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_7
; %bb.14:
	ldr	w12, [x0, #8]
Lloh15:
	adrp	x13, _bmaporgy@GOTPAGE
Lloh16:
	ldr	x13, [x13, _bmaporgy@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
	sub	w12, w12, w13
	asr	w11, w12, w11
	tbnz	w11, #31, LBB0_7
; %bb.15:
Lloh18:
	adrp	x12, _bmapheight@GOTPAGE
Lloh19:
	ldr	x12, [x12, _bmapheight@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ge	LBB0_7
; %bb.16:
Lloh21:
	adrp	x12, _blocklinks@GOTPAGE
Lloh22:
	ldr	x12, [x12, _blocklinks@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	madd	w9, w10, w11, w9
	add	x9, x12, w9, sxtw #3
	str	x8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_NOSECTOR,4,2                ; @MF_NOSECTOR
	.comm	_MF_NOBLOCKMAP,4,2              ; @MF_NOBLOCKMAP
	.comm	_bmaporgx,4,2                   ; @bmaporgx
	.comm	_MAPBLOCKSHIFT,4,2              ; @MAPBLOCKSHIFT
	.comm	_bmaporgy,4,2                   ; @bmaporgy
	.comm	_bmapwidth,4,2                  ; @bmapwidth
	.comm	_bmapheight,4,2                 ; @bmapheight
	.comm	_blocklinks,8,3                 ; @blocklinks
.subsections_via_symbols
