	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pq_discardbytes
_pq_discardbytes:                       ## @pq_discardbytes
	.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, %r14
	movq	_PqCommReadingMsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	_PqRecvPointer@GOTPCREL(%rip), %rbx
	movq	_PqRecvLength@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	(%r15), %rax
	subq	%rcx, %rax
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_pq_recvbuf
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %rax
	cmovaeq	%r14, %rax
	addq	%rax, %rcx
	movq	%rcx, (%rbx)
	subq	%rax, %r14
	jne	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PqCommReadingMsg,4,2           ## @PqCommReadingMsg
	.comm	_PqRecvPointer,8,3              ## @PqRecvPointer
	.comm	_PqRecvLength,8,3               ## @PqRecvLength
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_pq_discardbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pq_discardbytes
_pq_discardbytes:                       ; @pq_discardbytes
	.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
Lloh0:
	adrp	x8, _PqCommReadingMsg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PqCommReadingMsg@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_Assert
	cbz	x19, LBB0_5
; %bb.1:
Lloh3:
	adrp	x20, _PqRecvPointer@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PqRecvPointer@GOTPAGEOFF]
Lloh5:
	adrp	x21, _PqRecvLength@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PqRecvLength@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	subs	x9, x9, x8
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_pq_recvbuf
	cbz	x0, LBB0_2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, x19
	csel	x9, x9, x19, lo
	add	x8, x9, x8
	str	x8, [x20]
	subs	x19, x19, x9
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PqCommReadingMsg,4,2           ; @PqCommReadingMsg
	.comm	_PqRecvPointer,8,3              ; @PqRecvPointer
	.comm	_PqRecvLength,8,3               ; @PqRecvLength
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_pq_discardbytes
.subsections_via_symbols
