	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slipif_input
_slipif_input:                          ## @slipif_input
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_sio_recv
	cmpl	$131, %eax
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_1
	jmp	LBB0_7
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	callq	_sio_recv
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$131, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r14
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$130, %r12d
	testq	%r15, %r15
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SLIP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_LWIP_DEBUGF
	movq	_PBUF_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PBUF_POOL_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PBUF_POOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pbuf_alloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LINK_STATS_INC
	movq	_SLIP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_LWIP_DEBUGF
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pbuf_cat
	movq	%r15, %rax
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r15
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movl	%r12d, (%rax,%rcx,4)
	incl	%ebx
	incl	%ecx
	cmpl	(%r14), %ecx
	movl	$0, %eax
	cmovgeq	%rax, %r14
	cmovgel	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	jmp	LBB0_1
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pbuf_realloc
	movq	_link@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	callq	_LINK_STATS_INC
	movq	_SLIP_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_LWIP_DEBUGF
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_link,8,2                       ## @link
	.comm	_SLIP_DEBUG,4,2                 ## @SLIP_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slipif: Got packet\n"

L_.str.1:                               ## @.str.1
	.asciz	"slipif_input: alloc\n"

	.comm	_PBUF_LINK,4,2                  ## @PBUF_LINK
	.comm	_PBUF_POOL_BUFSIZE,4,2          ## @PBUF_POOL_BUFSIZE
	.comm	_PBUF_POOL,4,2                  ## @PBUF_POOL
L_.str.2:                               ## @.str.2
	.asciz	"slipif_input: no new pbuf! (DROP)\n"

	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.no_dead_strip	_slipif_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slipif_input
_slipif_input:                          ; @slipif_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	mov	x25, #0
	mov	x19, #0
	mov	w20, #0
	mov	w27, #0
Lloh0:
	adrp	x26, _SLIP_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SLIP_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x23, _link@GOTPAGE
Lloh3:
	ldr	x23, [x23, _link@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MAX_SIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MAX_SIZE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_sio_recv
	cmp	w0, #131
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w20, LBB0_1
	b	LBB0_14
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	cmp	w0, #130
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	bl	_sio_recv
	cmp	w0, #129
	mov	w8, #131
	csel	w8, w0, w8, ne
	cmp	w0, #128
	mov	w9, #130
	csel	w24, w9, w8, eq
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	x25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x25
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_LWIP_DEBUGF
Lloh8:
	adrp	x8, _PBUF_LINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PBUF_LINK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _PBUF_POOL_BUFSIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PBUF_POOL_BUFSIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _PBUF_POOL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PBUF_POOL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_pbuf_alloc
	mov	x22, x0
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	bl	_LINK_STATS_INC
	ldr	w0, [x26]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_LWIP_DEBUGF
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	cbz	x19, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_pbuf_cat
	mov	x0, x19
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, #0
	mov	x19, x0
	cbz	x22, LBB0_1
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	mov	x25, x22
	cmp	w20, w8
	b.ge	LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x22, #8]
	str	w24, [x8, w27, sxtw #2]
	add	w20, w20, #1
	add	w8, w27, #1
	ldr	w9, [x22]
	cmp	w8, w9
	csel	x25, x22, xzr, lt
	csinc	w27, wzr, w27, ge
	b	LBB0_1
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_pbuf_realloc
	ldr	w0, [x23, #4]
	bl	_LINK_STATS_INC
	ldr	w0, [x26]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LWIP_DEBUGF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_link,8,2                       ; @link
	.comm	_SLIP_DEBUG,4,2                 ; @SLIP_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slipif: Got packet\n"

l_.str.1:                               ; @.str.1
	.asciz	"slipif_input: alloc\n"

	.comm	_PBUF_LINK,4,2                  ; @PBUF_LINK
	.comm	_PBUF_POOL_BUFSIZE,4,2          ; @PBUF_POOL_BUFSIZE
	.comm	_PBUF_POOL,4,2                  ; @PBUF_POOL
l_.str.2:                               ; @.str.2
	.asciz	"slipif_input: no new pbuf! (DROP)\n"

	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.no_dead_strip	_slipif_input
.subsections_via_symbols
