	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InsertReceivedBlockToQueue     ## -- Begin function InsertReceivedBlockToQueue
	.p2align	4, 0x90
_InsertReceivedBlockToQueue:            ## @InsertReceivedBlockToQueue
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CONNECTION_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movl	8(%r15), %ecx
	addl	%ecx, 4(%rax)
	movl	(%r15), %ecx
	addl	%ecx, (%rax)
LBB0_4:
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_LockQueue
LBB0_6:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_MAX_STORED_QUEUE_NUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	%r15, %rsi
	callq	_InsertQueue
	testl	%r14d, %r14d
	je	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_FreeBlock
	testl	%r14d, %r14d
	jne	LBB0_10
LBB0_11:
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UnlockQueue                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTION_TCP,8,3             ## @CONNECTION_TCP
	.comm	_MAX_STORED_QUEUE_NUM,8,3       ## @MAX_STORED_QUEUE_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InsertReceivedBlockToQueue     ; -- Begin function InsertReceivedBlockToQueue
	.p2align	2
_InsertReceivedBlockToQueue:            ; @InsertReceivedBlockToQueue
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CONNECTION_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONNECTION_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	q0, [x21]
	ldr	d1, [x8]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	str	d0, [x8]
LBB0_4:
	cbnz	w20, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_LockQueue
LBB0_6:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MAX_STORED_QUEUE_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_STORED_QUEUE_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.7:
	mov	x1, x21
	bl	_InsertQueue
	cbz	w20, LBB0_10
LBB0_8:
	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_9:
	mov	x0, x21
	bl	_FreeBlock
	cbnz	w20, LBB0_8
LBB0_10:
	ldr	x0, [x19, #8]
	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	_UnlockQueue
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTION_TCP,8,3             ; @CONNECTION_TCP
	.comm	_MAX_STORED_QUEUE_NUM,8,3       ; @MAX_STORED_QUEUE_NUM
.subsections_via_symbols
