	.file	"extr_xdr_mbuf.c_xdrmbuf_getall.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"xdrmbuf_append: invalid XDR stream"
	.text
	.p2align 4
	.globl	xdrmbuf_getall
	.type	xdrmbuf_getall, @function
xdrmbuf_getall:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rax, xdrmbuf_ops[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 32[rbx], rax
	je	.L15
.L2:
	lea	rsi, .LC0[rip]
	call	KASSERT@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	r12, QWORD PTR 16[rbx]
	cmp	rax, r12
	je	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, rax
	mov	rax, QWORD PTR [rax]
	cmp	rax, r12
	jne	.L4
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR 16[rbx], 0
.L5:
	test	r12, r12
	je	.L16
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	call	m_adj@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	edi, edi
	mov	rax, QWORD PTR XDR_DECODE[rip]
	cmp	QWORD PTR [rbx], rax
	sete	dil
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR MT_DATA[rip]
	mov	edi, DWORD PTR M_WAITOK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	m_get@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xdrmbuf_getall, .-xdrmbuf_getall
	.comm	xdrmbuf_ops,4,4
	.comm	XDR_DECODE,8,8
	.comm	M_WAITOK,4,4
	.comm	MT_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_xdr_mbuf.c_xdrmbuf_getall.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xdrmbuf_append: invalid XDR stream\000"
	.text
	.align	2
	.global	xdrmbuf_getall
	.syntax unified
	.arm
	.fpu softvfp
	.type	xdrmbuf_getall, %function
xdrmbuf_getall:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #16]
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	ldreq	r3, .L15+4
	mov	r5, r0
	ldreq	r3, [r3]
	ldreq	r0, [r0]
	movne	r0, #0
	subeq	r0, r0, r3
	clzeq	r0, r0
	ldr	r1, .L15+8
	lsreq	r0, r0, #5
	bl	KASSERT
	ldr	r3, [r5, #12]
	ldr	r4, [r5, #8]
	cmp	r3, r4
	beq	.L3
.L4:
	mov	r2, r3
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L4
	mov	r3, #0
	cmp	r4, #0
	str	r3, [r2]
	str	r3, [r5, #8]
	beq	.L14
.L11:
	mov	r0, r4
	ldr	r1, [r5, #4]
	bl	m_adj
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	mov	r3, #0
	cmp	r4, #0
	str	r3, [r5, #12]
	str	r3, [r5, #8]
	bne	.L11
.L14:
	pop	{r4, r5, r6, lr}
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	b	m_get
.L16:
	.align	2
.L15:
	.word	xdrmbuf_ops
	.word	XDR_DECODE
	.word	.LC0
	.word	MT_DATA
	.word	M_WAITOK
	.size	xdrmbuf_getall, .-xdrmbuf_getall
	.comm	xdrmbuf_ops,4,4
	.comm	XDR_DECODE,4,4
	.comm	M_WAITOK,4,4
	.comm	MT_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
