	.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
	pushq	%rax
	.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, %r14
	movq	_ip_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.1:
	movl	$4, -44(%rbp)
	movl	(%r15), %edx
	movl	16(%r15), %esi
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r9
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_recvfrom
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SockadrToNetadr
	movq	$0, 8(%r15)
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.5:
	cmpl	(%r15), %ebx
	jne	LBB0_15
## %bb.6:
	movl	(%r14), %edi
	callq	_NET_AdrToString
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_7
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.3:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.4:
	xorl	%eax, %eax
	callq	_NET_ErrorString
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_NET_AdrToString
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_7:
	movq	_ipx_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_qfalse@GOTPCREL(%rip), %r13
	testl	%edi, %edi
	je	LBB0_14
## %bb.8:
	movl	$4, -44(%rbp)
	movl	(%r15), %edx
	movl	16(%r15), %esi
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %r9
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_recvfrom
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_SockadrToNetadr
	movq	$0, 8(%r15)
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.9:
	cmpl	(%r15), %ebx
	jne	LBB0_15
## %bb.10:
	movl	(%r14), %edi
	callq	_NET_AdrToString
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_14
LBB0_15:
	movl	%ebx, 4(%r15)
	movq	_qtrue@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.12:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_NET_ErrorString
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_NET_AdrToString
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_14:
	movl	(%r13), %eax
	addq	$8, %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	_errno,4,2                      ## @errno
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NET_GetPacket: %s from %s\n"

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, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ip_socket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ip_socket@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_7
; %bb.1:
	mov	w8, #4
	str	w8, [sp, #20]
	ldr	w1, [x20, #16]
	ldr	w2, [x20]
	add	x4, sp, #24
	add	x5, sp, #20
	mov	w3, #0
	bl	_recvfrom
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x19
	bl	_SockadrToNetadr
	str	xzr, [x20, #8]
	cmn	w21, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.3:
	ldr	w0, [x19]
	bl	_NET_AdrToString
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _ECONNREFUSED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ECONNREFUSED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_7
; %bb.5:
	bl	_NET_ErrorString
	mov	x21, x0
	ldr	w0, [x19]
	bl	_NET_AdrToString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
LBB0_6:
	bl	_Com_Printf
LBB0_7:
Lloh16:
	adrp	x8, _ipx_socket@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ipx_socket@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	cbz	w0, LBB0_15
; %bb.8:
	mov	w8, #4
	str	w8, [sp, #20]
	ldr	w1, [x20, #16]
	ldr	w2, [x20]
	add	x4, sp, #24
	add	x5, sp, #20
	mov	w3, #0
	bl	_recvfrom
	mov	x21, x0
	add	x0, sp, #24
	mov	x1, x19
	bl	_SockadrToNetadr
	str	xzr, [x20, #8]
	cmn	w21, #1
	b.eq	LBB0_12
; %bb.9:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x19]
	bl	_NET_AdrToString
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_11:
	str	w21, [x20, #4]
Lloh21:
	adrp	x8, _qtrue@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _EWOULDBLOCK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EWOULDBLOCK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _ECONNREFUSED@GOTPAGE
Lloh30:
	ldr	x10, [x10, _ECONNREFUSED@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_15
; %bb.13:
	bl	_NET_ErrorString
	mov	x20, x0
	ldr	w0, [x19]
	bl	_NET_AdrToString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
LBB0_14:
	bl	_Com_Printf
LBB0_15:
Lloh34:
	adrp	x8, _qfalse@GOTPAGE
Lloh35:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ip_socket,4,2                  ; @ip_socket
	.comm	_ipx_socket,4,2                 ; @ipx_socket
	.comm	_errno,4,2                      ; @errno
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NET_GetPacket: %s from %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Oversize packet from %s\n"

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