	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pmove                          ## -- Begin function Pmove
	.p2align	4, 0x90
_Pmove:                                 ## @Pmove
	.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
	movl	4(%rdi), %r14d
	movq	16(%rdi), %rdx
	movl	(%rdx), %eax
	cmpl	%eax, %r14d
	jl	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	leal	1000(%rax), %ecx
	cmpl	%ecx, %r14d
	jle	LBB0_3
## %bb.2:
	leal	-1000(%r14), %eax
	movl	%eax, (%rdx)
LBB0_3:
	movl	4(%rdx), %esi
	incl	%esi
	movq	_PS_PMOVEFRAMECOUNTBITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$-1, %edi
	shll	%cl, %edi
	notl	%edi
	andl	%esi, %edi
	movl	%edi, 4(%rdx)
	cmpl	%eax, %r14d
	jne	LBB0_4
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PMF_JUMP_HELD@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %ecx
	subl	%eax, %ecx
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$66, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	addl	%eax, %edx
	movl	%edx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_PmoveSingle
	movq	16(%rbx), %rax
	movl	(%r15), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$20, 8(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_PMOVEFRAMECOUNTBITS,4,2     ## @PS_PMOVEFRAMECOUNTBITS
	.comm	_PMF_JUMP_HELD,4,2              ## @PMF_JUMP_HELD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pmove                          ; -- Begin function Pmove
	.p2align	2
_Pmove:                                 ; @Pmove
	.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
	ldr	w20, [x0, #4]
	ldr	x9, [x0, #16]
	ldr	w8, [x9]
	cmp	w20, w8
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	add	w10, w8, #1000
	cmp	w20, w10
	b.le	LBB0_3
; %bb.2:
	sub	w8, w20, #1000
	str	w8, [x9]
LBB0_3:
	ldr	w10, [x9, #4]
	add	w10, w10, #1
Lloh0:
	adrp	x11, _PS_PMOVEFRAMECOUNTBITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PS_PMOVEFRAMECOUNTBITS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	mov	w12, #-1
	lsl	w11, w12, w11
	bic	w10, w10, w11
	str	w10, [x9, #4]
	cmp	w20, w8
	b.ne	LBB0_5
LBB0_4:
	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
LBB0_5:
Lloh3:
	adrp	x21, _PMF_JUMP_HELD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PMF_JUMP_HELD@GOTPAGEOFF]
	mov	w22, #20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w20, w8
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x19]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #66
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, w10
	csel	w9, w9, w10, lt
	add	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_PmoveSingle
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
	ldr	w10, [x21]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w22, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_PMOVEFRAMECOUNTBITS,4,2     ; @PS_PMOVEFRAMECOUNTBITS
	.comm	_PMF_JUMP_HELD,4,2              ; @PMF_JUMP_HELD
.subsections_via_symbols
