	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_icmpinput                  ## -- Begin function uip_icmpinput
	.p2align	4, 0x90
_uip_icmpinput:                         ## @uip_icmpinput
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_UIP_IPH_HL
	movl	%eax, %ebx
	shll	$2, %ebx
	movl	%ebx, %esi
	negl	%esi
	movq	%r12, %rdi
	callq	_uip_pbuf_header
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$7, (%r12)
	ja	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_16:
	callq	_UIP_LOG
LBB0_17:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_pbuf_free                  ## TAILCALL
LBB0_3:
	movq	8(%r12), %rax
	cmpl	$128, (%rax)
	jne	LBB0_15
## %bb.4:
	leaq	8(%r14), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ip_addr_isbroadcast
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_ip_addr_ismulticast
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_7:
	cmpl	$11, (%r12)
	ja	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_9:
	movq	8(%r12), %r13
	movq	%r12, %rdi
	callq	_uip_ipchksum_pbuf
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_16
LBB0_11:
	movl	(%r14), %eax
	movl	8(%r14), %ecx
	movl	%ecx, (%r14)
	movl	%eax, 8(%r14)
	movq	_UIP_ICMP_ER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_UIP_ICMPH_TYPE_SET
	movl	4(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$32767, %edi                    ## imm = 0x7FFF
	callq	_htons
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_htons
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, -48(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_12
## %bb.13:
	movl	%eax, %ecx
	movl	4(%r13), %eax
	jmp	LBB0_14
LBB0_12:
	incl	%eax
	movl	4(%r13), %ecx
LBB0_14:
	addl	%eax, %ecx
	movl	%ecx, 4(%r13)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_uip_pbuf_header
	movq	%r14, %rdi
	callq	_UIP_IPH_TTL
	movq	_UIP_PROTO_ICMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_uip_ipoutput_if
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_icmpinput: short ICMP received.\n"

L_.str.1:                               ## @.str.1
	.asciz	"uip_icmpinput: Not echoing to broadcast pings.\n"

L_.str.2:                               ## @.str.2
	.asciz	"uip_icmpinput: bad ICMP echo received.\n"

L_.str.3:                               ## @.str.3
	.asciz	"uip_icmpinput: checksum failed for received ICMP echo.\n"

	.comm	_UIP_ICMP_ER,4,2                ## @UIP_ICMP_ER
	.comm	_UIP_PROTO_ICMP,4,2             ## @UIP_PROTO_ICMP
L_.str.4:                               ## @.str.4
	.asciz	"uip_icmpinput: ICMP type/code not supported.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_icmpinput                  ; -- Begin function uip_icmpinput
	.p2align	2
_uip_icmpinput:                         ; @uip_icmpinput
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_UIP_IPH_HL
	lsl	w22, w0, #2
	neg	w1, w22
	mov	x0, x19
	bl	_uip_pbuf_header
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #7
	b.hi	LBB0_5
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_UIP_LOG
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_uip_pbuf_free
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.6:
	add	x23, x21, #8
	mov	x0, x23
	mov	x1, x20
	bl	_ip_addr_isbroadcast
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_ip_addr_ismulticast
	cbz	w0, LBB0_10
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_9:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #11
	b.hi	LBB0_12
; %bb.11:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_12:
	ldr	x23, [x19, #8]
	mov	x0, x19
	bl	_uip_ipchksum_pbuf
	cbz	w0, LBB0_14
; %bb.13:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_14:
	ldr	w8, [x21]
	ldr	w9, [x21, #8]
	str	w9, [x21]
	str	w8, [x21, #8]
Lloh10:
	adrp	x8, _UIP_ICMP_ER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UIP_ICMP_ER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_UIP_ICMPH_TYPE_SET
	ldr	w25, [x23, #4]
	mov	w0, #32767
	bl	_htons
	mov	x24, x0
	mov	w0, #32768
	bl	_htons
	cmp	w25, w24
	b.ge	LBB0_16
; %bb.15:
	ldr	w8, [x23, #4]
	b	LBB0_17
LBB0_16:
	add	w8, w0, #1
	ldr	w0, [x23, #4]
LBB0_17:
	add	w8, w8, w0
	str	w8, [x23, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_uip_pbuf_header
	mov	x0, x21
	bl	_UIP_IPH_TTL
	mov	x3, x0
Lloh13:
	adrp	x8, _UIP_PROTO_ICMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UIP_PROTO_ICMP@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	w4, #0
	mov	x6, x20
	bl	_uip_ipoutput_if
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_icmpinput: short ICMP received.\n"

l_.str.1:                               ; @.str.1
	.asciz	"uip_icmpinput: Not echoing to broadcast pings.\n"

l_.str.2:                               ; @.str.2
	.asciz	"uip_icmpinput: bad ICMP echo received.\n"

l_.str.3:                               ; @.str.3
	.asciz	"uip_icmpinput: checksum failed for received ICMP echo.\n"

	.comm	_UIP_ICMP_ER,4,2                ; @UIP_ICMP_ER
	.comm	_UIP_PROTO_ICMP,4,2             ; @UIP_PROTO_ICMP
l_.str.4:                               ; @.str.4
	.asciz	"uip_icmpinput: ICMP type/code not supported.\n"

.subsections_via_symbols
