	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ## -- Begin function wmain
	.p2align	4, 0x90
_wmain:                                 ## @wmain
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$46, -44(%rbp)
	xorl	%eax, %eax
	callq	_ConInitStdStreams
	movq	_IpOptions@GOTPCREL(%rip), %rax
	movl	$128, (%rax)
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_ParseCmdLine
	movl	$1, %r13d
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movq	_ConsoleCtrlHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SetConsoleCtrlHandler
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	$2, %edi
	movl	$2, %esi
	callq	_MAKEWORD
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_WSAStartup
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_StdErr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_IDS_WINSOCK_FAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ConResPrintf
	jmp	LBB0_23
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINT
	jmp	LBB0_23
LBB0_5:
	movq	_TargetName@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ResolveTarget
	testl	%eax, %eax
	je	LBB0_22
## %bb.6:
	movq	_Target@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	8(%rax), %edi
	movq	_Address@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-44(%rbp), %r8
	xorl	%edx, %edx
	callq	_WSAAddressToStringW
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	movq	_Family@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_Icmp6CreateFile
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	callq	_IcmpCreateFile
LBB0_12:
	movq	_hIcmpFile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	movl	%eax, %esi
	callq	_DPRINT
LBB0_21:
	movq	(%r14), %rdi
	callq	_FreeAddrInfoW
LBB0_22:
	xorl	%eax, %eax
	callq	_WSACleanup
LBB0_23:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_CanonName@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	$0, (%rdx)
	movq	_StdOut@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	je	LBB0_16
## %bb.15:
	movq	_IDS_PINGING_HOSTNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_ConResPrintf
	jmp	LBB0_17
LBB0_16:
	movq	_IDS_PINGING_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	xorl	%eax, %eax
	callq	_ConResPrintf
LBB0_17:
	movl	(%rbx), %edi
	movq	_IDS_PING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RequestSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ConResPrintf
	xorl	%eax, %eax
	callq	_Ping
	movq	_PingCount@GOTPCREL(%rip), %r12
	cmpl	$2, (%r12)
	jl	LBB0_20
## %bb.18:
	movl	$1, %ebx
	movq	_PingForever@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_Sleep
	xorl	%eax, %eax
	callq	_Ping
	cmpl	$1, (%r15)
	adcl	$0, %ebx
	cmpl	(%r12), %ebx
	jl	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	callq	_PrintStats
	movq	_hIcmpFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_IcmpCloseHandle
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_IpOptions,4,2                  ## @IpOptions
	.comm	_ConsoleCtrlHandler,4,2         ## @ConsoleCtrlHandler
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set control handler: %lu\n"

	.comm	_StdErr,4,2                     ## @StdErr
	.comm	_IDS_WINSOCK_FAIL,4,2           ## @IDS_WINSOCK_FAIL
	.comm	_TargetName,4,2                 ## @TargetName
	.comm	_Target,8,3                     ## @Target
	.comm	_Address,4,2                    ## @Address
L_.str.1:                               ## @.str.1
	.asciz	"WSAAddressToStringW failed: %d\n"

	.comm	_Family,8,3                     ## @Family
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_hIcmpFile,8,3                  ## @hIcmpFile
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"IcmpCreateFile failed: %lu\n"

	.comm	_CanonName,8,3                  ## @CanonName
	.comm	_StdOut,4,2                     ## @StdOut
	.comm	_IDS_PINGING_HOSTNAME,4,2       ## @IDS_PINGING_HOSTNAME
	.comm	_IDS_PINGING_ADDRESS,4,2        ## @IDS_PINGING_ADDRESS
	.comm	_IDS_PING_SIZE,4,2              ## @IDS_PING_SIZE
	.comm	_RequestSize,4,2                ## @RequestSize
	.comm	_PingCount,4,2                  ## @PingCount
	.comm	_PingForever,4,2                ## @PingForever
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmain                          ; -- Begin function wmain
	.p2align	2
_wmain:                                 ; @wmain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #46
	str	w8, [sp, #8]
	bl	_ConInitStdStreams
Lloh0:
	adrp	x8, _IpOptions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IpOptions@GOTPAGEOFF]
	mov	w9, #128
Lloh2:
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ParseCmdLine
	cbz	w0, LBB0_15
; %bb.1:
Lloh3:
	adrp	x8, _ConsoleCtrlHandler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ConsoleCtrlHandler@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SetConsoleCtrlHandler
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #2
	mov	w1, #2
	bl	_MAKEWORD
	add	x1, sp, #12
	bl	_WSAStartup
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh9:
	adrp	x8, _StdErr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _StdErr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IDS_WINSOCK_FAIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDS_WINSOCK_FAIL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_ConResPrintf
	b	LBB0_15
LBB0_4:
	bl	_GetLastError
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	b	LBB0_15
LBB0_5:
Lloh17:
	adrp	x8, _TargetName@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TargetName@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ResolveTarget
	cbz	w0, LBB0_14
; %bb.6:
Lloh20:
	adrp	x19, _Target@GOTPAGE
Lloh21:
	ldr	x19, [x19, _Target@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x8]
Lloh22:
	adrp	x21, _Address@GOTPAGE
Lloh23:
	ldr	x21, [x21, _Address@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #8
	mov	x2, #0
	bl	_WSAAddressToStringW
	cbz	x0, LBB0_8
; %bb.7:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh26:
	adrp	x8, _Family@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Family@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	bl	_Icmp6CreateFile
	b	LBB0_11
LBB0_10:
	bl	_IcmpCreateFile
LBB0_11:
Lloh32:
	adrp	x20, _hIcmpFile@GOTPAGE
Lloh33:
	ldr	x20, [x20, _hIcmpFile@GOTPAGEOFF]
	str	x0, [x20]
Lloh34:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.12:
	bl	_GetLastError
	mov	x1, x0
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DPRINT
	ldr	x0, [x19]
	bl	_FreeAddrInfoW
LBB0_14:
	bl	_WSACleanup
LBB0_15:
	mov	w0, #1
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
Lloh39:
	adrp	x8, _CanonName@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CanonName@GOTPAGEOFF]
Lloh41:
	ldr	x2, [x8]
	ldr	x8, [x2]
Lloh42:
	adrp	x22, _StdOut@GOTPAGE
Lloh43:
	ldr	x22, [x22, _StdOut@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x8, LBB0_19
; %bb.18:
Lloh44:
	adrp	x8, _IDS_PINGING_HOSTNAME@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IDS_PINGING_HOSTNAME@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_20
LBB0_19:
Lloh47:
	adrp	x8, _IDS_PINGING_ADDRESS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IDS_PINGING_ADDRESS@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w2, [x21]
LBB0_20:
	bl	_ConResPrintf
	ldr	w0, [x22]
Lloh50:
	adrp	x8, _IDS_PING_SIZE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IDS_PING_SIZE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _RequestSize@GOTPAGE
Lloh54:
	ldr	x8, [x8, _RequestSize@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	bl	_ConResPrintf
	bl	_Ping
Lloh56:
	adrp	x21, _PingCount@GOTPAGE
Lloh57:
	ldr	x21, [x21, _PingCount@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_23
; %bb.21:
	mov	w22, #1
Lloh58:
	adrp	x23, _PingForever@GOTPAGE
Lloh59:
	ldr	x23, [x23, _PingForever@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	bl	_Sleep
	bl	_Ping
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w22, w22, eq
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_22
LBB0_23:
	bl	_PrintStats
	ldr	x0, [x20]
	bl	_IcmpCloseHandle
	ldr	x0, [x19]
	bl	_FreeAddrInfoW
	bl	_WSACleanup
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_IpOptions,4,2                  ; @IpOptions
	.comm	_ConsoleCtrlHandler,4,2         ; @ConsoleCtrlHandler
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set control handler: %lu\n"

	.comm	_StdErr,4,2                     ; @StdErr
	.comm	_IDS_WINSOCK_FAIL,4,2           ; @IDS_WINSOCK_FAIL
	.comm	_TargetName,4,2                 ; @TargetName
	.comm	_Target,8,3                     ; @Target
	.comm	_Address,4,2                    ; @Address
l_.str.1:                               ; @.str.1
	.asciz	"WSAAddressToStringW failed: %d\n"

	.comm	_Family,8,3                     ; @Family
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_hIcmpFile,8,3                  ; @hIcmpFile
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"IcmpCreateFile failed: %lu\n"

	.comm	_CanonName,8,3                  ; @CanonName
	.comm	_StdOut,4,2                     ; @StdOut
	.comm	_IDS_PINGING_HOSTNAME,4,2       ; @IDS_PINGING_HOSTNAME
	.comm	_IDS_PINGING_ADDRESS,4,2        ; @IDS_PINGING_ADDRESS
	.comm	_IDS_PING_SIZE,4,2              ; @IDS_PING_SIZE
	.comm	_RequestSize,4,2                ; @RequestSize
	.comm	_PingCount,4,2                  ; @PingCount
	.comm	_PingForever,4,2                ; @PingForever
.subsections_via_symbols
