	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HSendPacket                    ## -- Begin function HSendPacket
	.p2align	4, 0x90
_HSendPacket:                           ## @HSendPacket
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_NetbufferChecksum
	orl	%ebx, %eax
	movq	_netbuffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.3:
	movq	_demoplayback@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.4:
	movq	_netgame@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
LBB0_6:
	movq	_CMD_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_doomcom@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	%r14d, (%rcx)
	xorl	%eax, %eax
	callq	_NetbufferSize
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	_debugfile@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.7:
	movq	(%r15), %rax
	movq	_NCMD_RETRANSMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.9:
	movl	12(%rax), %edi
	callq	_ExpandTics
	movl	%eax, %r14d
	movq	(%r13), %rbx
	movq	(%r15), %rax
	jmp	LBB0_10
LBB0_1:
	movups	(%rcx), %xmm0
	movq	_reboundstore@GOTPCREL(%rip), %rax
	movups	%xmm0, (%rax)
	movq	_reboundpacket@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$-1, %r14d
LBB0_10:
	movl	8(%rax), %edi
	callq	_ExpandTics
	movq	(%r15), %rcx
	movl	4(%rcx), %ecx
	movq	(%r12), %rdx
	movl	4(%rdx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rax
	cmpl	$0, 4(%rax)
	jle	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	movq	(%r12), %rax
	movslq	4(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I_NetCmd                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_netbuffer,8,3                  ## @netbuffer
	.comm	_reboundstore,16,2              ## @reboundstore
	.comm	_reboundpacket,4,2              ## @reboundpacket
	.comm	_demoplayback,8,3               ## @demoplayback
	.comm	_netgame,4,2                    ## @netgame
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tried to transmit to another node"

	.comm	_CMD_SEND,4,2                   ## @CMD_SEND
	.comm	_doomcom,8,3                    ## @doomcom
	.comm	_debugfile,8,3                  ## @debugfile
	.comm	_NCMD_RETRANSMIT,4,2            ## @NCMD_RETRANSMIT
L_.str.1:                               ## @.str.1
	.asciz	"send (%i + %i, R %i) [%i] "

L_.str.2:                               ## @.str.2
	.asciz	"%i "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HSendPacket                    ; -- Begin function HSendPacket
	.p2align	2
_HSendPacket:                           ; @HSendPacket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	bl	_NetbufferChecksum
	orr	w9, w0, w20
Lloh0:
	adrp	x21, _netbuffer@GOTPAGE
Lloh1:
	ldr	x21, [x21, _netbuffer@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w9, [x8]
	cbz	w19, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _demoplayback@GOTPAGE
Lloh3:
	ldr	x8, [x8, _demoplayback@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_8
; %bb.2:
Lloh5:
	adrp	x8, _netgame@GOTPAGE
Lloh6:
	ldr	x8, [x8, _netgame@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
LBB0_4:
Lloh10:
	adrp	x8, _CMD_SEND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_SEND@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x22, _doomcom@GOTPAGE
Lloh14:
	ldr	x22, [x22, _doomcom@GOTPAGEOFF]
	ldr	x9, [x22]
	str	w8, [x9, #8]
	str	w19, [x9]
	bl	_NetbufferSize
	ldr	x8, [x22]
	str	w0, [x8, #4]
Lloh15:
	adrp	x23, _debugfile@GOTPAGE
Lloh16:
	ldr	x23, [x23, _debugfile@GOTPAGEOFF]
	ldr	x19, [x23]
	cbz	x19, LBB0_14
; %bb.5:
	ldr	x8, [x21]
	ldr	w9, [x8]
Lloh17:
	adrp	x10, _NCMD_RETRANSMIT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _NCMD_RETRANSMIT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.6:
	ldr	w0, [x8, #12]
	bl	_ExpandTics
	mov	x20, x0
	ldr	x19, [x23]
	ldr	x8, [x21]
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x9, _reboundstore@GOTPAGE
Lloh21:
	ldr	x9, [x9, _reboundstore@GOTPAGEOFF]
	ldr	q0, [x8]
Lloh22:
	str	q0, [x9]
Lloh23:
	adrp	x8, _reboundpacket@GOTPAGE
Lloh24:
	ldr	x8, [x8, _reboundpacket@GOTPAGEOFF]
	mov	w9, #1
Lloh25:
	str	w9, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	w20, #-1
LBB0_10:
	ldr	w0, [x8, #8]
	bl	_ExpandTics
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	w8, [x8, #4]
	ldr	w9, [x9, #4]
	stp	x20, x9, [sp, #16]
	stp	x0, x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x8, [x22]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x20, #0
Lloh28:
	adrp	x19, l_.str.2@PAGE
Lloh29:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x21]
	ldr	w8, [x8, x20, lsl #2]
	str	x8, [sp]
	mov	x1, x19
	bl	_fprintf
	add	x20, x20, #1
	ldr	x8, [x22]
	ldrsw	x8, [x8, #4]
	cmp	x20, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	x0, [x23]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_I_NetCmd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_netbuffer,8,3                  ; @netbuffer
	.comm	_reboundstore,16,2              ; @reboundstore
	.comm	_reboundpacket,4,2              ; @reboundpacket
	.comm	_demoplayback,8,3               ; @demoplayback
	.comm	_netgame,4,2                    ; @netgame
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tried to transmit to another node"

	.comm	_CMD_SEND,4,2                   ; @CMD_SEND
	.comm	_doomcom,8,3                    ; @doomcom
	.comm	_debugfile,8,3                  ; @debugfile
	.comm	_NCMD_RETRANSMIT,4,2            ; @NCMD_RETRANSMIT
l_.str.1:                               ; @.str.1
	.asciz	"send (%i + %i, R %i) [%i] "

l_.str.2:                               ; @.str.2
	.asciz	"%i "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

.subsections_via_symbols
