	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LinkPaGetNextPacket            ## -- Begin function LinkPaGetNextPacket
	.p2align	4, 0x90
_LinkPaGetNextPacket:                   ## @LinkPaGetNextPacket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	cmpq	$0, 16(%r14)
	jne	LBB0_3
## %bb.5:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_3:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edi
	callq	_LockQueue
	movl	(%r14), %edi
	callq	_GetNext
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	(%rax), %rbx
	subl	%ebx, 4(%r14)
	movq	%rax, %rdi
	callq	_Free
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	(%r14), %edi
	callq	_UnlockQueue
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,8,3                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LinkPaGetNextPacket            ; -- Begin function LinkPaGetNextPacket
	.p2align	2
_LinkPaGetNextPacket:                   ; @LinkPaGetNextPacket
	.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_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	ldr	x21, [x8]
	cbz	x21, LBB0_5
; %bb.3:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
LBB0_6:
	mov	x0, x20
	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_7:
	ldr	w0, [x21]
	bl	_LockQueue
	ldr	w0, [x21]
	bl	_GetNext
	cbz	x0, LBB0_9
; %bb.8:
	ldp	x20, x8, [x0]
	str	x8, [x19]
	ldr	w8, [x21, #4]
	sub	w8, w8, w20
	str	w8, [x21, #4]
	bl	_Free
	b	LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
	ldr	w0, [x21]
	bl	_UnlockQueue
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,8,3                   ; @INFINITE
.subsections_via_symbols
