	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdr_read_pages                 ## -- Begin function xdr_read_pages
	.p2align	4, 0x90
_xdr_read_pages:                        ## @xdr_read_pages
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	40(%rdi), %r15
	movl	%esi, %edi
	callq	_XDR_QUADLEN
	movq	%rax, %rbx
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leal	(,%rax,4), %ecx
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	cmovbl	%ecx, %r12d
	movq	24(%r15), %rax
	movl	8(%rax), %esi
	addl	(%rax), %esi
	subl	24(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_xdr_shrink_bufhead
LBB0_3:
	movl	(%r15), %esi
	subl	%r12d, %esi
	jbe	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_xdr_shrink_pagelen
LBB0_5:
	shll	$2, %ebx
	subl	%r12d, %ebx
	movq	16(%r15), %rax
	movq	%rax, 32(%r14)
	movl	(%rax), %ecx
	movl	4(%r15), %edx
	subl	8(%r15), %edx
	movl	%ecx, %edi
	subl	%edx, %edi
	addl	%ebx, %edx
	cmpl	%edx, %ecx
	cmovbel	%ebx, %edi
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, 24(%r14)
	addq	%rdi, %rax
	movq	%rax, 16(%r14)
	movq	$0, 8(%r14)
	subl	%ecx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_XDR_QUADLEN
	movl	%eax, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdr_read_pages                 ; -- Begin function xdr_read_pages
	.p2align	2
_xdr_read_pages:                        ; @xdr_read_pages
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #40]
	mov	x0, x1
	bl	_XDR_QUADLEN
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	lsl	w9, w8, #2
	cmp	w8, w0
	csel	w22, w8, w0, lo
	csel	w21, w9, w21, lo
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #8]
	ldr	w8, [x8]
	ldr	w10, [x19, #24]
	add	w8, w9, w8
	sub	w1, w8, w10
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_xdr_shrink_bufhead
LBB0_3:
	ldr	w8, [x20]
	subs	w1, w8, w21
	b.ls	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_xdr_shrink_pagelen
LBB0_5:
	lsl	w8, w22, #2
	sub	w8, w8, w21
	ldr	x9, [x20, #16]
	ldr	w10, [x9]
	ldp	w11, w12, [x20, #4]
	sub	w11, w11, w12
	add	w12, w11, w8
	sub	w11, w10, w11
	cmp	w10, w12
	csel	w10, w11, w8, hi
	ldr	x11, [x9, #8]
	sub	w0, w10, w8
	add	x8, x11, w8, sxtw
	stp	x8, x9, [x19, #24]
	add	x8, x11, x10
	stp	xzr, x8, [x19, #8]
	bl	_XDR_QUADLEN
	str	w0, [x19]
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
.subsections_via_symbols
