	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_pbuf_header                ## -- Begin function uip_pbuf_header
	.p2align	4, 0x90
_uip_pbuf_header:                       ## @uip_pbuf_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	movq	_UIP_PBUF_FLAG_POOL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movq	_UIP_PBUF_FLAG_RAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.6:
	movq	_UIP_PBUF_FLAG_ROM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.7:
	movq	_UIP_PBUF_FLAG_REF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
LBB0_8:
	movl	$1, %eax
	testq	%rsi, %rsi
	js	LBB0_9
LBB0_12:
	popq	%rbp
	retq
LBB0_4:
	leaq	(,%rsi,4), %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rdx, (%rdi)
	leaq	128(%rdi), %rax
	cmpq	%rax, %rdx
	jae	LBB0_11
## %bb.5:
	movq	%rcx, (%rdi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_9:
	cmpq	%rsi, 16(%rdi)
	jl	LBB0_12
## %bb.10:
	leaq	(,%rsi,4), %rax
	subq	%rax, %rcx
	movq	%rcx, (%rdi)
LBB0_11:
	addl	%esi, 24(%rdi)
	addq	%rsi, 16(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_PBUF_FLAG_POOL,8,3         ## @UIP_PBUF_FLAG_POOL
	.comm	_UIP_PBUF_FLAG_RAM,8,3          ## @UIP_PBUF_FLAG_RAM
	.comm	_UIP_PBUF_FLAG_ROM,8,3          ## @UIP_PBUF_FLAG_ROM
	.comm	_UIP_PBUF_FLAG_REF,8,3          ## @UIP_PBUF_FLAG_REF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_pbuf_header                ; -- Begin function uip_pbuf_header
	.p2align	2
_uip_pbuf_header:                       ; @uip_pbuf_header
	.cfi_startproc
; %bb.0:
	mov	w8, #0
	cbz	x0, LBB0_12
; %bb.1:
	cbz	x1, LBB0_12
; %bb.2:
	ldp	x8, x9, [x0]
Lloh0:
	adrp	x10, _UIP_PBUF_FLAG_POOL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UIP_PBUF_FLAG_POOL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _UIP_PBUF_FLAG_RAM@GOTPAGE
Lloh4:
	ldr	x11, [x11, _UIP_PBUF_FLAG_RAM@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
; %bb.3:
	sub	x9, x8, x1, lsl #2
	mov	x10, x0
	str	x9, [x10], #128
	cmp	x9, x10
	b.hs	LBB0_11
; %bb.4:
	str	x8, [x0]
	mov	w0, #1
	ret
LBB0_5:
Lloh6:
	adrp	x10, _UIP_PBUF_FLAG_ROM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _UIP_PBUF_FLAG_ROM@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _UIP_PBUF_FLAG_REF@GOTPAGE
Lloh10:
	ldr	x11, [x11, _UIP_PBUF_FLAG_REF@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_11
; %bb.6:
	tbnz	x1, #63, LBB0_8
; %bb.7:
	mov	w0, #1
	ret
LBB0_8:
	ldr	x9, [x0, #16]
	cmp	x9, x1
	b.ge	LBB0_10
; %bb.9:
	mov	w0, #1
	ret
LBB0_10:
	sub	x8, x8, x1, lsl #2
	str	x8, [x0]
LBB0_11:
	mov	w8, #0
	ldr	w9, [x0, #24]
	add	w9, w9, w1
	str	w9, [x0, #24]
	ldr	x9, [x0, #16]
	add	x9, x9, x1
	str	x9, [x0, #16]
LBB0_12:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_PBUF_FLAG_POOL,8,3         ; @UIP_PBUF_FLAG_POOL
	.comm	_UIP_PBUF_FLAG_RAM,8,3          ; @UIP_PBUF_FLAG_RAM
	.comm	_UIP_PBUF_FLAG_ROM,8,3          ; @UIP_PBUF_FLAG_ROM
	.comm	_UIP_PBUF_FLAG_REF,8,3          ; @UIP_PBUF_FLAG_REF
.subsections_via_symbols
