	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_SendPacket                 ## -- Begin function Sys_SendPacket
	.p2align	4, 0x90
_Sys_SendPacket:                        ## @Sys_SendPacket
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	%rdx, -40(%rbp)
	movq	_NA_BROADCAST@GOTPCREL(%rip), %rcx
	movq	_ip_socket@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_NA_IP@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_NA_IPX@GOTPCREL(%rip), %rcx
	movq	_ipx_socket@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_NA_BROADCAST_IPX@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_4
## %bb.8:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Error                      ## TAILCALL
LBB0_4:
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	leaq	-40(%rbp), %rdi
	leaq	-48(%rbp), %r12
	movq	%r12, %rsi
	callq	_NetadrToSockadr
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	$4, %r9d
	callq	_sendto
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_NET_ErrorString
	movl	%eax, %ebx
	movq	-40(%rbp), %rdi
	callq	_NET_AdrToString
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_Com_Printf
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NA_BROADCAST,8,3               ## @NA_BROADCAST
	.comm	_ip_socket,4,2                  ## @ip_socket
	.comm	_NA_IP,8,3                      ## @NA_IP
	.comm	_NA_IPX,8,3                     ## @NA_IPX
	.comm	_ipx_socket,4,2                 ## @ipx_socket
	.comm	_NA_BROADCAST_IPX,8,3           ## @NA_BROADCAST_IPX
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NET_SendPacket: bad address type"

L_.str.1:                               ## @.str.1
	.asciz	"NET_SendPacket ERROR: %s to %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_SendPacket                 ; -- Begin function Sys_SendPacket
	.p2align	2
_Sys_SendPacket:                        ; @Sys_SendPacket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	str	x2, [sp, #8]
Lloh0:
	adrp	x8, _NA_BROADCAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NA_BROADCAST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NA_IP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NA_IP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ip_socket@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ip_socket@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	cbnz	w21, LBB0_4
	b	LBB0_6
LBB0_2:
Lloh9:
	adrp	x8, _NA_IPX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NA_IPX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _NA_BROADCAST_IPX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NA_BROADCAST_IPX@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh15:
	adrp	x8, _ipx_socket@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ipx_socket@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	cbz	w21, LBB0_6
LBB0_4:
	add	x0, sp, #8
	mov	x1, sp
	bl	_NetadrToSockadr
	mov	x4, sp
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	w5, #4
	bl	_sendto
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	bl	_NET_ErrorString
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_NET_AdrToString
	mov	x2, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh20:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_Com_Error
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NA_BROADCAST,8,3               ; @NA_BROADCAST
	.comm	_ip_socket,4,2                  ; @ip_socket
	.comm	_NA_IP,8,3                      ; @NA_IP
	.comm	_NA_IPX,8,3                     ; @NA_IPX
	.comm	_ipx_socket,4,2                 ; @ipx_socket
	.comm	_NA_BROADCAST_IPX,8,3           ; @NA_BROADCAST_IPX
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NET_SendPacket: bad address type"

l_.str.1:                               ; @.str.1
	.asciz	"NET_SendPacket ERROR: %s to %s\n"

.subsections_via_symbols
