	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HGetPacket                     ## -- Begin function HGetPacket
	.p2align	4, 0x90
_HGetPacket:                            ## @HGetPacket
	.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	_reboundpacket@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_netbuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_reboundstore@GOTPCREL(%rip), %rdx
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rcx)
	movq	_doomcom@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rcx)
	movl	$0, (%rax)
	movl	$1, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_netgame@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_23
## %bb.3:
	movq	_demoplayback@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.4:
	movq	_CMD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_doomcom@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	%eax, 8(%rcx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_I_NetCmd
	movq	(%r13), %rax
	cmpl	$-1, (%rax)
	je	LBB0_23
## %bb.5:
	movl	4(%rax), %r14d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NetbufferSize
	cmpl	%eax, %r14d
	jne	LBB0_6
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NetbufferChecksum
	movq	_netbuffer@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movq	_NCMD_CHECKSUM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	movq	_debugfile@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	cmpl	%esi, %eax
	jne	LBB0_9
## %bb.11:
	movl	$1, %ebx
	testq	%r14, %r14
	je	LBB0_23
## %bb.12:
	movq	_NCMD_SETUP@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	jmp	LBB0_22
LBB0_6:
	movq	_debugfile@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.7:
	movq	(%r13), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
LBB0_9:
	testq	%r14, %r14
	je	LBB0_23
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	jmp	LBB0_22
LBB0_15:
	movq	_NCMD_RETRANSMIT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_16
## %bb.17:
	movl	12(%rcx), %edi
	callq	_ExpandTics
	movq	(%r12), %r14
	movl	%eax, %r12d
	movq	(%r15), %rcx
	jmp	LBB0_18
LBB0_16:
	movl	$-1, %r12d
LBB0_18:
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rcx), %edi
	callq	_ExpandTics
	movq	(%r15), %rcx
	movl	4(%rcx), %r8d
	movq	(%r13), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rax
	cmpl	$0, 4(%rax)
	movq	_debugfile@GOTPCREL(%rip), %r12
	jle	LBB0_21
## %bb.19:
	movq	%r15, %r14
	xorl	%r15d, %r15d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%r14), %rax
	movl	(%rax,%r15,4), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r15
	movq	(%r13), %rax
	movslq	4(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_20
LBB0_21:
	movq	(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
LBB0_22:
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_reboundpacket,4,2              ## @reboundpacket
	.comm	_netbuffer,8,3                  ## @netbuffer
	.comm	_reboundstore,16,2              ## @reboundstore
	.comm	_doomcom,8,3                    ## @doomcom
	.comm	_netgame,4,2                    ## @netgame
	.comm	_demoplayback,8,3               ## @demoplayback
	.comm	_CMD_GET,4,2                    ## @CMD_GET
	.comm	_debugfile,8,3                  ## @debugfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad packet length %i\n"

	.comm	_NCMD_CHECKSUM,4,2              ## @NCMD_CHECKSUM
L_.str.1:                               ## @.str.1
	.asciz	"bad packet checksum\n"

	.comm	_NCMD_SETUP,4,2                 ## @NCMD_SETUP
L_.str.2:                               ## @.str.2
	.asciz	"setup packet\n"

	.comm	_NCMD_RETRANSMIT,4,2            ## @NCMD_RETRANSMIT
L_.str.3:                               ## @.str.3
	.asciz	"get %i = (%i + %i, R %i)[%i] "

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HGetPacket                     ; -- Begin function HGetPacket
	.p2align	2
_HGetPacket:                            ; @HGetPacket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, _reboundpacket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reboundpacket@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _netbuffer@GOTPAGE
Lloh3:
	ldr	x9, [x9, _netbuffer@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _reboundstore@GOTPAGE
Lloh6:
	ldr	x10, [x10, _reboundstore@GOTPAGEOFF]
Lloh7:
	ldr	q0, [x10]
	str	q0, [x9]
Lloh8:
	adrp	x9, _doomcom@GOTPAGE
Lloh9:
	ldr	x9, [x9, _doomcom@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	wzr, [x9]
	str	wzr, [x8]
LBB0_2:
	mov	w0, #1
	b	LBB0_16
LBB0_3:
Lloh11:
	adrp	x8, _netgame@GOTPAGE
Lloh12:
	ldr	x8, [x8, _netgame@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _demoplayback@GOTPAGE
Lloh15:
	ldr	x9, [x9, _demoplayback@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_15
; %bb.4:
Lloh17:
	adrp	x8, _CMD_GET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_GET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x21, _doomcom@GOTPAGE
Lloh21:
	ldr	x21, [x21, _doomcom@GOTPAGEOFF]
	ldr	x9, [x21]
	str	w8, [x9, #8]
	bl	_I_NetCmd
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmn	w9, #1
	b.eq	LBB0_15
; %bb.5:
	ldr	w19, [x8, #4]
	bl	_NetbufferSize
	cmp	w19, w0
	b.ne	LBB0_10
; %bb.6:
	bl	_NetbufferChecksum
Lloh22:
	adrp	x22, _netbuffer@GOTPAGE
Lloh23:
	ldr	x22, [x22, _netbuffer@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
Lloh24:
	adrp	x10, _NCMD_CHECKSUM@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NCMD_CHECKSUM@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh27:
	adrp	x23, _debugfile@GOTPAGE
Lloh28:
	ldr	x23, [x23, _debugfile@GOTPAGEOFF]
	ldr	x19, [x23]
	cmp	w0, w10
	b.ne	LBB0_12
; %bb.7:
	cbz	x19, LBB0_2
; %bb.8:
Lloh29:
	adrp	x10, _NCMD_SETUP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _NCMD_SETUP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.9:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_24
LBB0_10:
Lloh34:
	adrp	x8, _debugfile@GOTPAGE
Lloh35:
	ldr	x8, [x8, _debugfile@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_12:
	cbz	x19, LBB0_15
; %bb.13:
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_14:
	bl	_fprintf
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	add	sp, sp, #112
	ret
LBB0_17:
Lloh41:
	adrp	x10, _NCMD_RETRANSMIT@GOTPAGE
Lloh42:
	ldr	x10, [x10, _NCMD_RETRANSMIT@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_19
; %bb.18:
	ldr	w0, [x8, #12]
	bl	_ExpandTics
	mov	x20, x0
	ldr	x19, [x23]
	ldr	x8, [x22]
	b	LBB0_20
LBB0_19:
	mov	w20, #-1
LBB0_20:
	ldr	x9, [x21]
	ldr	w0, [x8, #8]
	ldr	w24, [x9]
	bl	_ExpandTics
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	w8, [x8, #4]
	ldr	w9, [x9, #4]
	stp	x20, x9, [sp, #24]
	stp	x0, x8, [sp, #8]
	str	x24, [sp]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.21:
	mov	x20, #0
Lloh46:
	adrp	x19, l_.str.4@PAGE
Lloh47:
	add	x19, x19, l_.str.4@PAGEOFF
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x22]
	ldr	w8, [x8, x20, lsl #2]
	str	x8, [sp]
	mov	x1, x19
	bl	_fprintf
	add	x20, x20, #1
	ldr	x8, [x21]
	ldrsw	x8, [x8, #4]
	cmp	x20, x8
	b.lt	LBB0_22
LBB0_23:
	ldr	x0, [x23]
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_24:
	bl	_fprintf
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_reboundpacket,4,2              ; @reboundpacket
	.comm	_netbuffer,8,3                  ; @netbuffer
	.comm	_reboundstore,16,2              ; @reboundstore
	.comm	_doomcom,8,3                    ; @doomcom
	.comm	_netgame,4,2                    ; @netgame
	.comm	_demoplayback,8,3               ; @demoplayback
	.comm	_CMD_GET,4,2                    ; @CMD_GET
	.comm	_debugfile,8,3                  ; @debugfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad packet length %i\n"

	.comm	_NCMD_CHECKSUM,4,2              ; @NCMD_CHECKSUM
l_.str.1:                               ; @.str.1
	.asciz	"bad packet checksum\n"

	.comm	_NCMD_SETUP,4,2                 ; @NCMD_SETUP
l_.str.2:                               ; @.str.2
	.asciz	"setup packet\n"

	.comm	_NCMD_RETRANSMIT,4,2            ; @NCMD_RETRANSMIT
l_.str.3:                               ; @.str.3
	.asciz	"get %i = (%i + %i, R %i)[%i] "

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

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

.subsections_via_symbols
