	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_Netchan_TransmitNextFragment ## -- Begin function SV_Netchan_TransmitNextFragment
	.p2align	4, 0x90
_SV_Netchan_TransmitNextFragment:       ## @SV_Netchan_TransmitNextFragment
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_Netchan_TransmitNextFragment
	cmpl	$0, 16(%rbx)
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_4
	jmp	LBB0_8
LBB0_2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_DPrintf
	movq	(%rbx), %r15
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_SV_Netchan_Encode
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	%r14, %rdi
	callq	_Netchan_Transmit
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_Com_DPrintf
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_Com_DPrintf
	movq	%rbx, 8(%rbx)
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Z_Free                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment\n"

L_.str.1:                               ## @.str.1
	.asciz	"#462 Netchan_TransmitNextFragment: popping a queued message for transmit\n"

L_.str.2:                               ## @.str.2
	.asciz	"#462 Netchan_TransmitNextFragment: emptied queue\n"

L_.str.3:                               ## @.str.3
	.asciz	"#462 Netchan_TransmitNextFragment: remaining queued message\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_Netchan_TransmitNextFragment ; -- Begin function SV_Netchan_TransmitNextFragment
	.p2align	2
_SV_Netchan_TransmitNextFragment:       ; @SV_Netchan_TransmitNextFragment
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_Netchan_TransmitNextFragment
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
	b	LBB0_1
LBB0_4:
Lloh0:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	x8, [x19]
	cbz	x8, LBB0_1
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_DPrintf
	ldr	x21, [x19]
	add	x1, x21, #8
	mov	x0, x19
	bl	_SV_Netchan_Encode
	ldp	w2, w1, [x21, #8]
	mov	x0, x20
	bl	_Netchan_Transmit
	ldr	x8, [x21]
	str	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_DPrintf
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_DPrintf
	str	x19, [x19, #8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Z_Free
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment\n"

l_.str.1:                               ; @.str.1
	.asciz	"#462 Netchan_TransmitNextFragment: popping a queued message for transmit\n"

l_.str.2:                               ; @.str.2
	.asciz	"#462 Netchan_TransmitNextFragment: emptied queue\n"

l_.str.3:                               ; @.str.3
	.asciz	"#462 Netchan_TransmitNextFragment: remaining queued message\n"

.subsections_via_symbols
