	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___xdrrec_getrec                ## -- Begin function __xdrrec_getrec
	.p2align	4, 0x90
___xdrrec_getrec:                       ## @__xdrrec_getrec
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 80(%rbx)
	je	LBB0_6
LBB0_1:
	movl	28(%rbx), %edx
	movl	88(%rbx), %edi
	movslq	48(%rbx), %rsi
	subl	%esi, %edx
	addq	40(%rbx), %rsi
	callq	*(%rbx)
	testq	%rax, %rax
	js	LBB0_16
## %bb.2:
	je	LBB0_11
## %bb.3:
	addl	48(%rbx), %eax
	movl	%eax, 48(%rbx)
	cmpl	28(%rbx), %eax
	jne	LBB0_9
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 80(%rbx)
	leaq	20(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	movl	$0, 16(%rbx)
	cmpq	$0, 72(%rbx)
	je	LBB0_9
## %bb.5:
	movl	%eax, 52(%rbx)
	movq	40(%rbx), %rcx
	cltq
	addq	%rcx, %rax
	movq	%rax, 56(%rbx)
	movq	%rcx, 64(%rbx)
	movl	$0, 48(%rbx)
	movl	$0, 28(%rbx)
	movq	_XPRT_MOREREQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_6:
	movl	88(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	$4, %edx
	subl	16(%rbx), %edx
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	js	LBB0_16
## %bb.8:
	addq	%rax, 8(%rbx)
	addl	16(%rbx), %eax
	movl	%eax, 16(%rbx)
	cmpl	$3, %eax
	ja	LBB0_13
LBB0_9:
	movq	_XPRT_MOREREQS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	testq	%r15, %r15
	jne	LBB0_16
## %bb.12:
	movq	_XPRT_IDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movl	20(%rbx), %edi
	callq	_ntohl
	movl	%eax, 20(%rbx)
	movq	_LAST_FRAG@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	%eax, %esi
	je	LBB0_16
## %bb.14:
	movl	24(%rbx), %edx
	cmpl	%edx, %esi
	jg	LBB0_16
## %bb.15:
	addl	28(%rbx), %esi
	cmpl	%edx, %esi
	jle	LBB0_19
LBB0_16:
	movq	_XPRT_DIED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	%eax, (%r14)
	movq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%esi, 28(%rbx)
	cmpl	32(%rbx), %esi
	jle	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_realloc_stream
	movl	20(%rbx), %eax
	movl	(%r15), %ecx
LBB0_21:
	testl	%eax, %ecx
	je	LBB0_23
## %bb.22:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 20(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
LBB0_23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_XPRT_DIED,4,2                  ## @XPRT_DIED
	.comm	_XPRT_IDLE,4,2                  ## @XPRT_IDLE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_XPRT_MOREREQS,4,2              ## @XPRT_MOREREQS
	.comm	_LAST_FRAG,4,2                  ## @LAST_FRAG
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___xdrrec_getrec                ; -- Begin function __xdrrec_getrec
	.p2align	2
___xdrrec_getrec:                       ; @__xdrrec_getrec
	.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, x2
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_6
LBB0_1:
	ldr	x8, [x20]
	ldr	w0, [x20, #88]
	ldr	x9, [x20, #40]
	ldrsw	x10, [x20, #48]
	add	x1, x9, x10
	ldr	w9, [x20, #28]
	sub	w2, w9, w10
	blr	x8
	tbnz	x0, #63, LBB0_14
; %bb.2:
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x20, #48]
	ldr	w9, [x20, #28]
	add	w8, w8, w0
	cmp	w8, w9
	str	w8, [x20, #48]
	b.ne	LBB0_9
; %bb.4:
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [x20, #80]
	add	x9, x20, #20
	str	x9, [x20, #8]
	str	wzr, [x20, #16]
	ldr	x9, [x20, #72]
	cbz	x9, LBB0_9
; %bb.5:
	ldr	x9, [x20, #40]
	add	x10, x9, w8, sxtw
	stp	x10, x9, [x20, #56]
	stp	wzr, w8, [x20, #48]
	str	wzr, [x20, #28]
Lloh3:
	adrp	x8, _XPRT_MOREREQS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPRT_MOREREQS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TRUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
	ldr	w0, [x20, #88]
	ldp	x8, x1, [x20]
	ldr	w9, [x20, #16]
	mov	w10, #4
	sub	w2, w10, w9
	blr	x8
	cbz	x0, LBB0_10
; %bb.7:
	tbnz	x0, #63, LBB0_14
; %bb.8:
	ldr	x8, [x20, #8]
	add	x8, x8, x0
	str	x8, [x20, #8]
	ldr	w8, [x20, #16]
	add	w8, w8, w0
	str	w8, [x20, #16]
	cmp	w8, #3
	b.hi	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _XPRT_MOREREQS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XPRT_MOREREQS@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh10:
	adrp	x8, _XPRT_DIED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XPRT_DIED@GOTPAGEOFF]
Lloh12:
	adrp	x9, _XPRT_IDLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XPRT_IDLE@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	b	LBB0_15
LBB0_11:
	ldr	w0, [x20, #20]
	bl	_ntohl
	str	w0, [x20, #20]
Lloh14:
	adrp	x21, _LAST_FRAG@GOTPAGE
Lloh15:
	ldr	x21, [x21, _LAST_FRAG@GOTPAGEOFF]
	ldr	w8, [x21]
	bics	w9, w0, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	w10, [x20, #24]
	cmp	w9, w10
	b.gt	LBB0_14
; %bb.13:
	ldr	w11, [x20, #28]
	add	w1, w11, w9
	cmp	w1, w10
	b.le	LBB0_17
LBB0_14:
Lloh16:
	adrp	x8, _XPRT_DIED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XPRT_DIED@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _FALSE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
LBB0_16:
	str	w8, [x19]
	ldr	x0, [x9]
	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_17:
	str	w1, [x20, #28]
	ldr	w9, [x20, #32]
	cmp	w1, w9
	b.le	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_realloc_stream
	ldr	w0, [x20, #20]
	ldr	w8, [x21]
LBB0_19:
	tst	w8, w0
	b.eq	LBB0_21
; %bb.20:
	bic	w8, w0, w8
	str	w8, [x20, #20]
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x20, #72]
LBB0_21:
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	x21, [x8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_XPRT_DIED,4,2                  ; @XPRT_DIED
	.comm	_XPRT_IDLE,4,2                  ; @XPRT_IDLE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_XPRT_MOREREQS,4,2              ; @XPRT_MOREREQS
	.comm	_LAST_FRAG,4,2                  ; @LAST_FRAG
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
