	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdrmbuf_append                 ## -- Begin function xdrmbuf_append
	.p2align	4, 0x90
_xdrmbuf_append:                        ## @xdrmbuf_append
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	xorl	%edi, %edi
	cmpq	_xdrmbuf_ops@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_XDR_ENCODE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_m_length
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	%r14, 8(%rax)
	movq	%r14, %rdi
	callq	_m_last
	movq	%rax, 16(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_m_freem                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xdrmbuf_ops,4,2                ## @xdrmbuf_ops
	.comm	_XDR_ENCODE,8,3                 ## @XDR_ENCODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xdrmbuf_append: invalid XDR stream"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdrmbuf_append                 ; -- Begin function xdrmbuf_append
	.p2align	2
_xdrmbuf_append:                        ; @xdrmbuf_append
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
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_ENCODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XDR_ENCODE@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
	mov	x0, x20
	mov	x1, #0
	bl	_m_length
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	str	x20, [x8, #8]
	mov	x0, x20
	bl	_m_last
	str	x0, [x19, #16]
	ldr	w8, [x0]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_m_freem
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_xdrmbuf_ops,4,2                ; @xdrmbuf_ops
	.comm	_XDR_ENCODE,8,3                 ; @XDR_ENCODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xdrmbuf_append: invalid XDR stream"

.subsections_via_symbols
