	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ChangeSector                 ## -- Begin function P_ChangeSector
	.p2align	4, 0x90
_P_ChangeSector:                        ## @P_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_nofit@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_crushchange@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	(%rdi), %rcx
	movq	_BOXLEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %r15d
	movq	_BOXRIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpl	(%rcx,%rdx,4), %r15d
	jg	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	_BOXTOP@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_BOXBOTTOM@GOTPCREL(%rip), %rdi
	movq	_PIT_ChangeSector@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r15), %esi
	cmpl	(%rcx,%rdx,4), %r15d
	movl	%esi, %r15d
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%rdi), %rsi
	movl	(%rcx,%rsi,4), %ebx
	cmpl	(%rcx,%rax,4), %ebx
	jg	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_P_BlockThingsIterator
	leal	1(%rbx), %edx
	movq	(%r14), %rcx
	movq	(%r12), %rax
	cmpl	(%rcx,%rax,4), %ebx
	movl	%edx, %ebx
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BOXRIGHT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_BOXBOTTOM@GOTPCREL(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	_nofit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nofit,4,2                      ## @nofit
	.comm	_crushchange,4,2                ## @crushchange
	.comm	_BOXLEFT,8,3                    ## @BOXLEFT
	.comm	_BOXRIGHT,8,3                   ## @BOXRIGHT
	.comm	_BOXBOTTOM,8,3                  ## @BOXBOTTOM
	.comm	_BOXTOP,8,3                     ## @BOXTOP
	.comm	_PIT_ChangeSector,4,2           ## @PIT_ChangeSector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ChangeSector                 ; -- Begin function P_ChangeSector
	.p2align	2
_P_ChangeSector:                        ; @P_ChangeSector
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w0, #0
Lloh0:
	adrp	x22, _nofit@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nofit@GOTPAGEOFF]
	str	wzr, [x22]
Lloh2:
	adrp	x8, _crushchange@GOTPAGE
Lloh3:
	ldr	x8, [x8, _crushchange@GOTPAGEOFF]
Lloh4:
	str	w1, [x8]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _BOXLEFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BOXLEFT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
Lloh8:
	adrp	x23, _BOXRIGHT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _BOXRIGHT@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w10, [x8, x9, lsl #2]
	cmp	w20, w10
	b.gt	LBB0_7
; %bb.1:
Lloh10:
	adrp	x24, _BOXTOP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _BOXTOP@GOTPAGEOFF]
	ldr	x10, [x24]
Lloh12:
	adrp	x25, _BOXBOTTOM@GOTPAGE
Lloh13:
	ldr	x25, [x25, _BOXBOTTOM@GOTPAGEOFF]
Lloh14:
	adrp	x26, _PIT_ChangeSector@GOTPAGE
Lloh15:
	ldr	x26, [x26, _PIT_ChangeSector@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w11, w20, #1
	ldr	w12, [x8, x9, lsl #2]
	cmp	w20, w12
	mov	x20, x11
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x11, [x25]
	ldr	w21, [x8, x11, lsl #2]
	ldr	w11, [x8, x10, lsl #2]
	cmp	w21, w11
	b.gt	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x21
	bl	_P_BlockThingsIterator
	add	w9, w21, #1
	ldr	x8, [x19]
	ldr	x10, [x24]
	ldr	w11, [x8, x10, lsl #2]
	cmp	w21, w11
	mov	x21, x9
	b.lt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23]
	b	LBB0_2
LBB0_6:
	ldr	w0, [x22]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_nofit,4,2                      ; @nofit
	.comm	_crushchange,4,2                ; @crushchange
	.comm	_BOXLEFT,8,3                    ; @BOXLEFT
	.comm	_BOXRIGHT,8,3                   ; @BOXRIGHT
	.comm	_BOXBOTTOM,8,3                  ; @BOXBOTTOM
	.comm	_BOXTOP,8,3                     ; @BOXTOP
	.comm	_PIT_ChangeSector,4,2           ; @PIT_ChangeSector
.subsections_via_symbols
