	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_coalesce                  ## -- Begin function pbuf_coalesce
	.p2align	4, 0x90
_pbuf_coalesce:                         ## @pbuf_coalesce
	.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, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movq	_PBUF_RAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_pbuf_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_pbuf_copy
	movq	_ERR_OK@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	leaq	L_.str(%rip), %rdi
	callq	_LWIP_ASSERT
	movq	%rbx, %rdi
	callq	_pbuf_free
	movq	%r14, %rbx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBUF_RAM,4,2                   ## @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pbuf_copy failed"

	.comm	_ERR_OK,8,3                     ## @ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pbuf_coalesce                  ; -- Begin function pbuf_coalesce
	.p2align	2
_pbuf_coalesce:                         ; @pbuf_coalesce
	.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, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PBUF_RAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PBUF_RAM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_pbuf_alloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	bl	_pbuf_copy
Lloh3:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w1, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LWIP_ASSERT
	mov	x0, x19
	bl	_pbuf_free
	mov	x19, x20
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PBUF_RAM,4,2                   ; @PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pbuf_copy failed"

	.comm	_ERR_OK,8,3                     ; @ERR_OK
.subsections_via_symbols
