	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpt_pd_insert
_mpt_pd_insert:                         ## @mpt_pd_insert
	.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	%rsi, %r15
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%r15), %rsi
	xorl	%r14d, %r14d
	movl	%r8d, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addb	$3, %al
	cmpq	%rbx, %r8
	jne	LBB0_3
## %bb.6:
	movl	%r8d, %ebx
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_7:
	cmpl	%ebx, %r8d
	jle	LBB0_14
## %bb.8:
	movslq	%r8d, %r9
	movl	%r9d, %ecx
	subl	%ebx, %ecx
	movq	%rbx, %r8
	notq	%r8
	addq	%r9, %r8
	testb	$3, %cl
	je	LBB0_9
## %bb.10:
	movzbl	%al, %ecx
	andl	$3, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r9), %rax
	movq	8(%r15), %r10
	movq	-8(%r10,%r9,8), %rsi
	movq	%rsi, (%r10,%r9,8)
	movq	%rax, %r9
	decq	%rcx
	jne	LBB0_11
## %bb.12:
	cmpq	$2, %r8
	jbe	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	-8(%rcx,%rax,8), %rsi
	movq	%rsi, (%rcx,%rax,8)
	movq	8(%r15), %rcx
	movq	-16(%rcx,%rax,8), %rsi
	movq	%rsi, -8(%rcx,%rax,8)
	movq	8(%r15), %rcx
	movq	-24(%rcx,%rax,8), %rsi
	movq	%rsi, -16(%rcx,%rax,8)
	movq	8(%r15), %rcx
	movq	-32(%rcx,%rax,8), %rsi
	movq	%rsi, -24(%rcx,%rax,8)
	leaq	-4(%rax), %rcx
	movq	%rcx, %rax
	cmpq	%rbx, %rcx
	jg	LBB0_13
LBB0_14:
	xorl	%r14d, %r14d
	movq	%rdx, %rsi
	xorl	%edx, %edx
	callq	_mpt_pd_info
	movq	8(%r15), %rcx
	movl	%ebx, %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%r15), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_15
## %bb.16:
	incl	(%r15)
	jmp	LBB0_17
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r9, %rax
	cmpq	$2, %r8
	ja	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_mpt_pd_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpt_pd_insert
_mpt_pd_insert:                         ; @mpt_pd_insert
	.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, x1
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, #0
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	ldr	x10, [x10]
	cmp	x10, x2
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.5:
	mov	x20, x8
	b	LBB0_11
LBB0_6:
	mov	w20, #0
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	b	LBB0_14
LBB0_8:
	cmp	w8, w20
	b.le	LBB0_11
; %bb.9:
	sxtw	x8, w8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x8, lsl #3
	sub	x10, x8, #1
	ldur	x8, [x9, #-8]
	str	x8, [x9]
	mov	x8, x10
	cmp	x10, x20
	b.gt	LBB0_10
LBB0_11:
	mov	x1, x2
	mov	x2, #0
	bl	_mpt_pd_info
	ldr	x8, [x19, #8]
	mov	w9, w20
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_mpt_pd_insert
.subsections_via_symbols
