	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdrmbuf_getall                 ## -- Begin function xdrmbuf_getall
	.p2align	4, 0x90
_xdrmbuf_getall:                        ## @xdrmbuf_getall
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	xorl	%edi, %edi
	cmpq	_xdrmbuf_ops@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	_XDR_DECODE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	16(%r14), %rbx
	movq	24(%r14), %rax
	cmpq	%rbx, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.4:
	movq	$0, (%rcx)
	jmp	LBB0_6
LBB0_5:
	movq	$0, 24(%r14)
LBB0_6:
	movq	$0, 16(%r14)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_m_adj
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_m_get                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xdrmbuf_ops,4,2                ## @xdrmbuf_ops
	.comm	_XDR_DECODE,8,3                 ## @XDR_DECODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xdrmbuf_append: invalid XDR stream"

	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_MT_DATA,4,2                    ## @MT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdrmbuf_getall                 ; -- Begin function xdrmbuf_getall
	.p2align	2
_xdrmbuf_getall:                        ; @xdrmbuf_getall
	.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, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _xdrmbuf_ops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _xdrmbuf_ops@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _XDR_DECODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XDR_DECODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldp	x20, x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.5:
	str	xzr, [x9]
	str	xzr, [x19, #16]
	cbz	x20, LBB0_8
LBB0_6:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_m_adj
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	xzr, [x19, #24]
	str	xzr, [x19, #16]
	cbnz	x20, LBB0_6
LBB0_8:
Lloh7:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _MT_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_m_get
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_xdrmbuf_ops,4,2                ; @xdrmbuf_ops
	.comm	_XDR_DECODE,8,3                 ; @XDR_DECODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xdrmbuf_append: invalid XDR stream"

	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_MT_DATA,4,2                    ; @MT_DATA
.subsections_via_symbols
