	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ping_err                       ## -- Begin function ping_err
	.p2align	4, 0x90
_ping_err:                              ## @ping_err
	.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, %r15d
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	8(%r13), %rbx
	movl	(%rbx), %eax
	shll	$2, %eax
	movslq	%eax, %r12
	movl	(%rbx,%r12), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx,%r12), %r14
	callq	_dev_net
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx,%r12), %edi
	movl	4(%rbx,%r12), %esi
	callq	_ping_supported
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	addq	%rbx, %r12
	movl	8(%r12), %edi
	callq	_ntohs
	movl	%eax, %r15d
	movl	12(%r12), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	movl	4(%rbx), %r14d
	movl	8(%rbx), %r15d
	movl	8(%r12), %edi
	callq	_ntohs
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rcx
	movl	(%rcx), %r8d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ping_v4_lookup
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_inet_sk
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addl	$-129, %esi
	cmpl	$3, %esi
	ja	LBB0_3
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rdi
	addq	%rdx, %rdi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmpq	*%rdi
LBB0_11:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
LBB0_5:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_6:
	movq	_ICMP_FRAG_NEEDED@GOTPCREL(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpl	(%rdx), %edi
	jne	LBB0_9
## %bb.7:
	movl	4(%rax), %ecx
	movq	_IP_PMTUDISC_DONT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_17
## %bb.8:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_3:
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_9:
	movq	_NR_ICMP_UNREACH@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jg	LBB0_12
## %bb.10:
	movq	_icmp_err_convert@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdi,8), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	(%rcx,%rdi,8), %rcx
	addq	$4, %rcx
LBB0_12:
	movl	(%rcx), %r14d
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r9
	callq	_ip_icmp_error
LBB0_16:
	movl	%r14d, 8(%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
LBB0_17:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_put                       ## TAILCALL
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:
	movq	(%rbx), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ping_err(type=%04x,code=%04x,id=%04x,seq=%04x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"no socket, dropping\n"

L_.str.2:                               ## @.str.2
	.asciz	"err on socket %p\n"

	.comm	_EHOSTUNREACH,4,2               ## @EHOSTUNREACH
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ICMP_FRAG_NEEDED,4,2           ## @ICMP_FRAG_NEEDED
	.comm	_IP_PMTUDISC_DONT,4,2           ## @IP_PMTUDISC_DONT
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_NR_ICMP_UNREACH,4,2            ## @NR_ICMP_UNREACH
	.comm	_icmp_err_convert,8,3           ## @icmp_err_convert
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ping_err                       ; -- Begin function ping_err
	.p2align	2
_ping_err:                              ; @ping_err
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	ldp	x0, x24, [x0]
	ldr	w8, [x24]
	lsl	w8, w8, #2
	add	x21, x24, w8, sxtw
	ldp	w26, w25, [x21]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	bl	_dev_net
	mov	x22, x0
	ldp	w0, w1, [x21]
	bl	_ping_supported
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_ntohs
	mov	x23, x0
	ldr	w0, [x21, #12]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #16]
	stp	x26, x25, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldp	w24, w23, [x24, #4]
	ldr	w0, [x21, #8]
	bl	_ntohs
	mov	x3, x0
	ldr	x8, [x20]
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_ping_v4_lookup
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x22
	bl	_inet_sk
	sub	w8, w26, #129
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.3:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w8, #0
Lloh6:
	adrp	x9, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EREMOTEIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_5:
	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
	add	sp, sp, #112
	ret
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	add	sp, sp, #112
	b	_pr_debug
LBB0_7:
Lloh10:
	adrp	x9, _EPROTO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EPROTO@GOTPAGEOFF]
	mov	w8, #1
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x8, _ICMP_FRAG_NEEDED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICMP_FRAG_NEEDED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x0, #4]
Lloh15:
	adrp	x9, _IP_PMTUDISC_DONT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IP_PMTUDISC_DONT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.10:
Lloh18:
	adrp	x9, _EMSGSIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EMSGSIZE@GOTPAGEOFF]
	mov	w8, #1
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x8, _NR_ICMP_UNREACH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NR_ICMP_UNREACH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w25, w8
	b.le	LBB0_19
LBB0_12:
	mov	w8, #0
Lloh23:
	adrp	x9, _EHOSTUNREACH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EHOSTUNREACH@GOTPAGEOFF]
LBB0_13:
	ldr	w23, [x9]
	ldr	w9, [x0]
	cbz	w9, LBB0_17
; %bb.14:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	mov	w3, #0
	mov	x4, x19
	mov	x5, x21
	bl	_ip_icmp_error
LBB0_15:
	str	w23, [x22, #8]
	ldr	x8, [x22, #16]
	mov	x0, x22
	blr	x8
LBB0_16:
	mov	x0, x22
	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
	add	sp, sp, #112
	b	_sock_put
LBB0_17:
	cbz	w8, LBB0_16
; %bb.18:
	ldr	x8, [x22]
Lloh25:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
	b	LBB0_16
LBB0_19:
Lloh28:
	adrp	x8, _icmp_err_convert@GOTPAGE
Lloh29:
	ldr	x8, [x8, _icmp_err_convert@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x9, x8, x25, lsl #3
	ldr	w8, [x9], #4
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ping_err(type=%04x,code=%04x,id=%04x,seq=%04x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"no socket, dropping\n"

l_.str.2:                               ; @.str.2
	.asciz	"err on socket %p\n"

	.comm	_EHOSTUNREACH,4,2               ; @EHOSTUNREACH
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ICMP_FRAG_NEEDED,4,2           ; @ICMP_FRAG_NEEDED
	.comm	_IP_PMTUDISC_DONT,4,2           ; @IP_PMTUDISC_DONT
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_NR_ICMP_UNREACH,4,2            ; @NR_ICMP_UNREACH
	.comm	_icmp_err_convert,8,3           ; @icmp_err_convert
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
.subsections_via_symbols
