	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_GetPacket                  ## -- Begin function Sys_GetPacket
	.p2align	4, 0x90
_Sys_GetPacket:                         ## @Sys_GetPacket
	.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, %rbx
	movq	%rdi, %r14
	movb	$1, %r15b
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_NET_ErrorString
	leaq	L_.str(%rip), %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %esi
	callq	_Com_Printf
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r15b
	movl	$0, %r15d
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ipx_socket@GOTPCREL(%rip), %rax
	testb	$1, %r15b
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ip_socket@GOTPCREL(%rip), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_recvfromCount@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$4, -52(%rbp)
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movl	%r12d, %edi
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %r9
	callq	_recvfrom
	movl	%eax, %r13d
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movq	_WSAEWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_WSAECONNRESET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ip_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_ip_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_usingSocks@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, %r12d
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %rdi
	movq	_socksRelayAddr@GOTPCREL(%rip), %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_16
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_SockadrToNetadr
	xorl	%eax, %eax
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, 12(%rbx)
	cmpl	8(%rbx), %r13d
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_NET_AdrToString
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$10, %r13d
	jl	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 4(%rax)
	jne	LBB0_9
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%rax)
	jne	LBB0_9
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, 12(%rax)
	jne	LBB0_9
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_NA_IP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
	movl	16(%rax), %ecx
	movq	(%r14), %rdx
	movl	%ecx, (%rdx)
	movl	20(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	24(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	28(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movzwl	32(%rax), %eax
	movw	%ax, 8(%r14)
	movl	$10, %eax
	jmp	LBB0_23
LBB0_10:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movl	%r13d, 16(%rbx)
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ip_socket,4,2                  ## @ip_socket
	.comm	_ipx_socket,4,2                 ## @ipx_socket
	.comm	_recvfromCount,4,2              ## @recvfromCount
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
	.comm	_WSAEWOULDBLOCK,4,2             ## @WSAEWOULDBLOCK
	.comm	_WSAECONNRESET,4,2              ## @WSAECONNRESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NET_GetPacket: %s\n"

	.comm	_usingSocks,8,3                 ## @usingSocks
	.comm	_socksRelayAddr,4,2             ## @socksRelayAddr
	.comm	_NA_IP,4,2                      ## @NA_IP
L_.str.1:                               ## @.str.1
	.asciz	"Oversize packet from %s\n"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_GetPacket                  ; -- Begin function Sys_GetPacket
	.p2align	2
_Sys_GetPacket:                         ; @Sys_GetPacket
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _ip_socket@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ip_socket@GOTPAGEOFF]
	mov	w8, #1
Lloh2:
	adrp	x28, _ipx_socket@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ipx_socket@GOTPAGEOFF]
	mov	w26, #4
Lloh4:
	adrp	x21, _recvfromCount@GOTPAGE
Lloh5:
	ldr	x21, [x21, _recvfromCount@GOTPAGEOFF]
Lloh6:
	adrp	x23, _SOCKET_ERROR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SOCKET_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x0, x1, [x20]
	bl	_NET_AdrToString
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_Com_Printf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	tbz	w22, #0, LBB0_20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	tst	w8, #0x1
	csel	x8, x27, x28, ne
	ldr	w25, [x8]
	cbz	w25, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [sp, #4]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x25
	mov	w3, #0
	bl	_recvfrom
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_WSAGetLastError
Lloh10:
	adrp	x8, _WSAEWOULDBLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WSAEWOULDBLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WSAECONNRESET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WSAECONNRESET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_NET_ErrorString
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w25, w8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x27]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x9, _usingSocks@GOTPAGE
Lloh19:
	ldr	x9, [x9, _usingSocks@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w25, w8, #0, ne
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #4]
	add	x0, sp, #8
Lloh21:
	adrp	x1, _socksRelayAddr@GOTPAGE
Lloh22:
	ldr	x1, [x1, _socksRelayAddr@GOTPAGEOFF]
	bl	_memcmp
	cbz	x0, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_SockadrToNetadr
	mov	w8, #0
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19, #12]
	ldr	w8, [x19, #8]
	cmp	w24, w8
	b.eq	LBB0_1
	b	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #10
	b.lt	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8, #12]
	cmp	w9, #1
	b.ne	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x9, _NA_IP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NA_IP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x20, #12]
	ldr	w9, [x8, #16]
	ldr	x10, [x20]
	str	w9, [x10]
	ldr	w9, [x8, #20]
	str	w9, [x10, #4]
	ldr	w9, [x8, #24]
	str	w9, [x10, #8]
	ldr	w9, [x8, #28]
	str	w9, [x10, #12]
	ldrh	w8, [x8, #32]
	strh	w8, [x20, #8]
	mov	w8, #10
	b	LBB0_13
LBB0_20:
Lloh26:
	adrp	x8, _qfalse@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
	str	w24, [x19, #16]
Lloh28:
	adrp	x8, _qtrue@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ip_socket,4,2                  ; @ip_socket
	.comm	_ipx_socket,4,2                 ; @ipx_socket
	.comm	_recvfromCount,4,2              ; @recvfromCount
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
	.comm	_WSAEWOULDBLOCK,4,2             ; @WSAEWOULDBLOCK
	.comm	_WSAECONNRESET,4,2              ; @WSAECONNRESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NET_GetPacket: %s\n"

	.comm	_usingSocks,8,3                 ; @usingSocks
	.comm	_socksRelayAddr,4,2             ; @socksRelayAddr
	.comm	_NA_IP,4,2                      ; @NA_IP
l_.str.1:                               ; @.str.1
	.asciz	"Oversize packet from %s\n"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
