	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_read_list
_packet_read_list:                      ## @packet_read_list
	.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
	movl	$0, -44(%rbp)
	movq	_rbu_data@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r13
	movl	8(%rax), %r12d
	movq	_packet_data_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.3:
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_do_packet_read
	addl	%eax, %r12d
	subl	%eax, %r13d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cltq
	addq	%rax, %r15
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	_rbu_data@GOTPCREL(%rip), %rsi
	movslq	8(%rsi), %rax
	movslq	%r12d, %rcx
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, (%rax)
	movl	%ecx, 8(%rsi)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rbu_data,16,3                  ## @rbu_data
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_packet_data_head,8,3           ## @packet_data_head
	.no_dead_strip	_packet_read_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_read_list
_packet_read_list:                      ; @packet_read_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _rbu_data@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rbu_data@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x1]
	ldr	w20, [x24, #8]
Lloh2:
	adrp	x8, _packet_data_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _packet_data_head@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_list_empty
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_do_packet_read
	add	w20, w0, w20
	subs	w22, w22, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w0, sxtw
	ldr	x23, [x23]
	b	LBB0_2
LBB0_5:
	mov	w0, #0
	ldrsw	x8, [x24, #8]
	sxtw	x9, w20
	sub	x8, x9, x8
	str	x8, [x19]
	str	w20, [x24, #8]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_rbu_data,16,3                  ; @rbu_data
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_packet_data_head,8,3           ; @packet_data_head
	.no_dead_strip	_packet_read_list
.subsections_via_symbols
