	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_cat                       ## -- Begin function pbuf_cat
	.p2align	4, 0x90
_pbuf_cat:                              ## @pbuf_cat
	.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	%rsi, %r14
	movq	%rdi, %r15
	xorl	%esi, %esi
	testq	%rdi, %rdi
	setne	%sil
	leaq	L_.str(%rip), %rdi
	callq	_LWIP_ASSERT
	xorl	%esi, %esi
	testq	%r14, %r14
	setne	%sil
	leaq	L_.str.1(%rip), %rdi
	callq	_LWIP_ASSERT
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	addq	%rcx, (%r15)
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rbx
LBB0_5:
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpq	8(%rbx), %rax
	sete	%sil
	leaq	L_.str.2(%rip), %rdi
	callq	_LWIP_ASSERT
	xorl	%esi, %esi
	cmpq	$0, 16(%rbx)
	sete	%sil
	leaq	L_.str.3(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	(%r14), %rax
	addq	%rax, (%rbx)
	movq	%r14, 16(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h != NULL (programmer violates API)"

L_.str.1:                               ## @.str.1
	.asciz	"t != NULL (programmer violates API)"

L_.str.2:                               ## @.str.2
	.asciz	"p->tot_len == p->len (of last pbuf in chain)"

L_.str.3:                               ## @.str.3
	.asciz	"p->next == NULL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_cat                       ; -- Begin function pbuf_cat
	.p2align	2
_pbuf_cat:                              ; @pbuf_cat
	.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	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w1, ne
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LWIP_ASSERT
	cmp	x19, #0
	cset	w1, ne
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LWIP_ASSERT
	cbz	x20, LBB0_6
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	ldr	x8, [x21, #16]
	mov	x20, x21
	cbnz	x8, LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x21, x20
LBB0_5:
	ldp	x8, x9, [x21]
	cmp	x8, x9
	cset	w1, eq
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LWIP_ASSERT
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w1, eq
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_LWIP_ASSERT
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x8, x9, x8
	str	x8, [x21]
	str	x19, [x21, #16]
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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h != NULL (programmer violates API)"

l_.str.1:                               ; @.str.1
	.asciz	"t != NULL (programmer violates API)"

l_.str.2:                               ; @.str.2
	.asciz	"p->tot_len == p->len (of last pbuf in chain)"

l_.str.3:                               ; @.str.3
	.asciz	"p->next == NULL"

.subsections_via_symbols
