	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_ok                      ## -- Begin function packet_ok
	.p2align	4, 0x90
_packet_ok:                             ## @packet_ok
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	(%rdi), %ebx
	shll	$2, %ebx
	movq	_ICMP_MINLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmpl	%esi, %eax
	jle	LBB0_3
## %bb.1:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.2:
	movl	(%rdx), %edi
	callq	_inet_ntoa
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_Printf
	jmp	LBB0_21
LBB0_3:
	movq	%rdi, %r12
	movslq	%ebx, %rax
	leaq	(%rdi,%rax,8), %rsi
	movq	(%rdi,%rax,8), %r14
	movq	8(%rdi,%rax,8), %r9
	movq	_ICMP_UNREACH_NEEDFRAG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %r15
	jne	LBB0_5
## %bb.4:
	movl	32(%rsi), %edi
	movl	%ecx, %r13d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	callq	_ntohs
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	%r13d, %ecx
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	_pmtu@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_ICMP_ECHOREPLY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movq	%r15, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	movq	_proto@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_9
## %bb.8:
	movslq	%ecx, %rsi
	movl	%ecx, %r15d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	callq	*8(%rax)
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	%r15d, %ecx
	movl	$-2, -44(%rbp)                  ## 4-byte Folded Spill
	testq	%rax, %rax
	jne	LBB0_21
LBB0_9:
	subl	%ebx, %r13d
	movq	_ICMP_TIMXCEED@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	xorq	%r14, %rax
	movq	_ICMP_TIMXCEED_INTRANS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorq	%r9, %rdx
	orq	%rax, %rdx
	je	LBB0_11
## %bb.10:
	movq	_ICMP_UNREACH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_15
LBB0_11:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	16(%rsi), %rdi
	movq	_hip@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	leal	-2(%r13), %eax
	movq	_hiplen@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movl	16(%rsi), %eax
	leal	16(,%rax,4), %edx
	cmpl	%r13d, %edx
	jg	LBB0_15
## %bb.12:
	movq	8(%rdi), %rdx
	movq	_proto@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	cmpq	(%r8), %rdx
	jne	LBB0_15
## %bb.13:
	shll	$2, %eax
	cltq
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rdi
	addq	$16, %rdi
	movslq	%ecx, %rsi
	movq	%r9, %r15
	callq	*8(%r8)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rcx
	incl	%ecx
	cmpq	(%rbx), %r14
	movl	$-1, %eax
	cmovnel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_21
LBB0_15:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_inet_ntoa
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_Printf
	movl	4(%r12), %edi
	callq	_inet_ntoa
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_pr_type
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %r8
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_Printf
	movl	%r13d, %eax
	movq	_ICMP_MINLEN@GOTPCREL(%rip), %r12
	subl	(%r12), %eax
	cmpl	$4, %eax
	jl	LBB0_21
## %bb.17:
	movq	%r13, %r15
	movl	$16, %r14d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	-12(%r14), %r13d
	movl	(%rbx,%r14), %edi
	callq	_ntohl
	movslq	%eax, %rdx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_Printf
	movl	%r15d, %eax
	subl	(%r12), %eax
	addq	$4, %r14
	leal	-12(%r14), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_18
	jmp	LBB0_21
LBB0_20:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_21:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICMP_MINLEN,4,2                ## @ICMP_MINLEN
	.comm	_verbose,8,3                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet too short (%d bytes) from %s\n"

	.comm	_ICMP_UNREACH_NEEDFRAG,8,3      ## @ICMP_UNREACH_NEEDFRAG
	.comm	_pmtu,8,3                       ## @pmtu
	.comm	_ICMP_ECHOREPLY,8,3             ## @ICMP_ECHOREPLY
	.comm	_proto,8,3                      ## @proto
	.comm	_IPPROTO_ICMP,8,3               ## @IPPROTO_ICMP
	.comm	_ICMP_TIMXCEED,8,3              ## @ICMP_TIMXCEED
	.comm	_ICMP_TIMXCEED_INTRANS,8,3      ## @ICMP_TIMXCEED_INTRANS
	.comm	_ICMP_UNREACH,8,3               ## @ICMP_UNREACH
	.comm	_hip,8,3                        ## @hip
	.comm	_hiplen,4,2                     ## @hiplen
L_.str.1:                               ## @.str.1
	.asciz	"\n%d bytes from %s to "

L_.str.2:                               ## @.str.2
	.asciz	"%s: icmp type %d (%s) code %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%2d: %8.8x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_ok                      ; -- Begin function packet_ok
	.p2align	2
_packet_ok:                             ; @packet_ok
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x2
	mov	x22, x1
	ldr	w8, [x0]
	lsl	w27, w8, #2
Lloh0:
	adrp	x25, _ICMP_MINLEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ICMP_MINLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w27, w8
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _verbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.2:
	ldr	w0, [x23]
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_Printf
	b	LBB0_19
LBB0_3:
	mov	x24, x3
	mov	x21, x0
	add	x19, x0, w27, sxtw #3
	ldp	x20, x26, [x19]
Lloh7:
	adrp	x8, _ICMP_UNREACH_NEEDFRAG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICMP_UNREACH_NEEDFRAG@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #32]
	bl	_ntohs
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
Lloh10:
	adrp	x8, _pmtu@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pmtu@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
Lloh13:
	adrp	x8, _ICMP_ECHOREPLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICMP_ECHOREPLY@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.7:
Lloh16:
	adrp	x8, _proto@GOTPAGE
Lloh17:
	ldr	x8, [x8, _proto@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x8]
Lloh19:
	adrp	x10, _IPPROTO_ICMP@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IPPROTO_ICMP@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x8, #8]
	sxtw	x1, w24
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #-2
	b	LBB0_20
LBB0_10:
	sub	w22, w22, w27
Lloh22:
	adrp	x27, _ICMP_TIMXCEED@GOTPAGE
Lloh23:
	ldr	x27, [x27, _ICMP_TIMXCEED@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh24:
	adrp	x9, _ICMP_TIMXCEED_INTRANS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ICMP_TIMXCEED_INTRANS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x26, x9
	ccmp	x20, x8, #0, eq
Lloh27:
	adrp	x8, _ICMP_UNREACH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ICMP_UNREACH@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ccmp	x20, x8, #4, ne
	b.ne	LBB0_15
; %bb.11:
	sub	w8, w22, #2
Lloh30:
	adrp	x9, _hiplen@GOTPAGE
Lloh31:
	ldr	x9, [x9, _hiplen@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
	mov	x8, x19
	ldr	w9, [x8, #16]!
Lloh33:
	adrp	x10, _hip@GOTPAGE
Lloh34:
	ldr	x10, [x10, _hip@GOTPAGEOFF]
Lloh35:
	str	x8, [x10]
	lsl	w9, w9, #2
	add	w10, w9, #16
	cmp	w10, w22
	b.gt	LBB0_15
; %bb.12:
	ldr	x11, [x8, #8]
Lloh36:
	adrp	x10, _proto@GOTPAGE
Lloh37:
	ldr	x10, [x10, _proto@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	ldr	x12, [x10]
	cmp	x11, x12
	b.ne	LBB0_15
; %bb.13:
	add	x0, x8, w9, sxtw #3
	ldr	x8, [x10, #8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x1, w24
	blr	x8
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x27]
	cmp	x20, x8
	mov	w8, #-1
	csinc	w0, w8, w26, eq
	b	LBB0_20
LBB0_15:
Lloh39:
	adrp	x8, _verbose@GOTPAGE
Lloh40:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	w0, [x23]
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_Printf
	ldr	w0, [x21, #4]
	bl	_inet_ntoa
	mov	x21, x0
	mov	x0, x20
	bl	_pr_type
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	stp	x0, x8, [sp]
Lloh44:
	adrp	x0, l_.str.2@PAGE
Lloh45:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_Printf
	ldr	w8, [x25]
	sub	w8, w22, w8
	cmp	w8, #4
	b.lt	LBB0_19
; %bb.17:
	mov	w23, #16
Lloh46:
	adrp	x20, l_.str.3@PAGE
Lloh47:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w23, #12
	ldr	w0, [x19, x23]
	bl	_ntohl
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	mov	x0, x20
	mov	x1, x21
	bl	_Printf
	ldr	w8, [x25]
	add	x23, x23, #4
	sub	w9, w23, #12
	sub	w8, w22, w8
	cmp	w9, w8
	b.le	LBB0_18
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ICMP_MINLEN,4,2                ; @ICMP_MINLEN
	.comm	_verbose,8,3                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet too short (%d bytes) from %s\n"

	.comm	_ICMP_UNREACH_NEEDFRAG,8,3      ; @ICMP_UNREACH_NEEDFRAG
	.comm	_pmtu,8,3                       ; @pmtu
	.comm	_ICMP_ECHOREPLY,8,3             ; @ICMP_ECHOREPLY
	.comm	_proto,8,3                      ; @proto
	.comm	_IPPROTO_ICMP,8,3               ; @IPPROTO_ICMP
	.comm	_ICMP_TIMXCEED,8,3              ; @ICMP_TIMXCEED
	.comm	_ICMP_TIMXCEED_INTRANS,8,3      ; @ICMP_TIMXCEED_INTRANS
	.comm	_ICMP_UNREACH,8,3               ; @ICMP_UNREACH
	.comm	_hip,8,3                        ; @hip
	.comm	_hiplen,4,2                     ; @hiplen
l_.str.1:                               ; @.str.1
	.asciz	"\n%d bytes from %s to "

l_.str.2:                               ; @.str.2
	.asciz	"%s: icmp type %d (%s) code %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%2d: %8.8x\n"

.subsections_via_symbols
