	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_reader_read             ## -- Begin function packet_reader_read
	.p2align	4, 0x90
_packet_reader_read:                    ## @packet_reader_read
	.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	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	cmpq	$0, 64(%rdi)
	je	LBB0_1
## %bb.10:
	movq	$0, 64(%rbx)
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_1:
	leaq	52(%rbx), %r14
	leaq	48(%rbx), %r15
	leaq	32(%rbx), %r12
	movl	56(%rbx), %edi
	movq	16(%rbx), %rcx
	movl	44(%rbx), %r8d
	movl	40(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %r9
	callq	_packet_read_with_status
	movl	%eax, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.2:
	leaq	-52(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	36(%rbx), %edi
	movq	16(%rbx), %rsi
	movl	32(%rbx), %edx
	movl	$1, %ecx
	leaq	-48(%rbp), %r8
	movq	%r13, %r9
	callq	_demultiplex_sideband
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	56(%rbx), %edi
	movq	16(%rbx), %rcx
	movl	44(%rbx), %r8d
	movl	40(%rbx), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %r9
	callq	_packet_read_with_status
	movl	%eax, (%rbx)
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %eax
LBB0_6:
	movslq	%eax, %rcx
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rbx)
	setne	%cl
	shlq	$2, %rcx
	addq	16(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	$0, 8(%rbx)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_PACKET_READ_NORMAL,8,3         ## @PACKET_READ_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_reader_read             ; -- Begin function packet_reader_read
	.p2align	2
_packet_reader_read:                    ; @packet_reader_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #64]
	ldr	w0, [x19]
	b	LBB0_9
LBB0_2:
	add	x20, x19, #52
	add	x21, x19, #48
	add	x22, x19, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #56]
	ldr	x3, [x19, #16]
	ldp	w6, w4, [x19, #40]
	mov	x1, x20
	mov	x2, x21
	mov	x5, x22
	bl	_packet_read_with_status
	str	w0, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19, #16]
	ldp	w2, w0, [x19, #32]
	add	x4, sp, #8
	add	x5, sp, #4
	mov	w3, #1
	bl	_demultiplex_sideband
	cbz	x0, LBB0_3
; %bb.5:
	ldr	w0, [x19]
LBB0_6:
Lloh3:
	adrp	x8, _PACKET_READ_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET_READ_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, w0, sxtw
	b.ne	LBB0_8
; %bb.7:
	ldp	x9, x8, [x19, #16]
	cmp	x8, #0
	cset	w8, ne
	add	x8, x9, w8, uxtw #2
	str	x8, [x19, #8]
	b	LBB0_9
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_PACKET_READ_NORMAL,8,3         ; @PACKET_READ_NORMAL
.subsections_via_symbols
