	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdr_shrink_pagelen
_xdr_shrink_pagelen:                    ## @xdr_shrink_pagelen
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	40(%rdi), %r12
	xorl	%edi, %edi
	subq	%rsi, %r15
	setb	%dil
	callq	_BUG_ON
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	movq	32(%rbx), %rdx
	movl	(%rdx), %edx
	addl	%eax, %edx
	cmpl	%edx, %ecx
	je	LBB0_4
## %bb.1:
	movl	(%r12), %eax
	addl	%eax, %edx
	subl	%edx, %ecx
	cmpq	%r14, %rcx
	cmoval	%r14d, %ecx
	addl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	%rcx, %rdx
	subq	%r14, %rdx
	jbe	LBB0_3
## %bb.2:
	movq	8(%r12), %rsi
	leaq	(%rsi,%r14), %rdi
	callq	_memmove
	movq	%r14, %rcx
LBB0_3:
	movq	8(%r12), %rdi
	movl	24(%rbx), %esi
	addq	16(%rbx), %r15
	movq	%r15, %rdx
	callq	__copy_from_pages
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
LBB0_4:
	subl	%r14d, %eax
	movl	%eax, (%rbx)
	subl	%r14d, %ecx
	movl	%ecx, 4(%rbx)
	cmpq	%rcx, 8(%rbx)
	jle	LBB0_6
## %bb.5:
	movq	%rcx, 8(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xdr_shrink_pagelen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdr_shrink_pagelen
_xdr_shrink_pagelen:                    ; @xdr_shrink_pagelen
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	ldr	x22, [x0, #40]
	subs	x21, x8, x1
	cset	w0, lo
	bl	_BUG_ON
	ldr	x8, [x19, #32]
	ldr	w10, [x8]
	ldp	w9, w8, [x19]
	add	w10, w9, w10
	cmp	w8, w10
	b.eq	LBB0_4
; %bb.1:
	ldr	w9, [x22]
	add	w10, w10, w9
	sub	w8, w8, w10
	cmp	x8, x20
	csel	w8, w20, w8, hi
	add	w3, w8, w9
	subs	x2, x3, x20
	str	w3, [x22]
	b.ls	LBB0_3
; %bb.2:
	ldr	x1, [x22, #8]
	add	x0, x1, x20
	bl	_memmove
	mov	x3, x20
LBB0_3:
	ldr	x0, [x22, #8]
	ldr	w1, [x19, #24]
	ldr	x8, [x19, #16]
	add	x2, x21, x8
	bl	__copy_from_pages
	ldp	w9, w8, [x19]
LBB0_4:
	sub	w9, w9, w20
	ldr	x10, [x19, #8]
	sub	w8, w8, w20
	cmp	x10, x8
	stp	w9, w8, [x19]
	b.le	LBB0_6
; %bb.5:
	str	x8, [x19, #8]
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xdr_shrink_pagelen
.subsections_via_symbols
