	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getstring                   ## -- Begin function pq_getstring
	.p2align	4, 0x90
_pq_getstring:                          ## @pq_getstring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	_PqCommReadingMsg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Assert
	movl	%r13d, %edi
	callq	_resetStringInfo
	movq	_PqRecvPointer@GOTPCREL(%rip), %r14
	movq	_PqRecvLength@GOTPCREL(%rip), %r15
	movq	_PqRecvBuffer@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_pq_recvbuf
	testq	%rax, %rax
	jne	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movslq	(%r14), %rcx
	movslq	(%r15), %rdx
	cmpl	%ecx, %edx
	jle	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rsi
	movl	$1, %eax
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rsi,%rdi)
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	%rdi
	incl	%eax
	cmpq	%rdx, %rdi
	jl	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rcx, %rsi
	subl	%ecx, %edx
	movl	%r13d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_appendBinaryStringInfo
	movl	(%r15), %eax
	movl	%eax, (%r14)
	jmp	LBB0_1
LBB0_4:
	addq	%rcx, %rsi
	leal	(%rcx,%rax), %ebx
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_appendBinaryStringInfo
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PqCommReadingMsg,4,2           ## @PqCommReadingMsg
	.comm	_PqRecvPointer,4,2              ## @PqRecvPointer
	.comm	_PqRecvLength,4,2               ## @PqRecvLength
	.comm	_EOF,4,2                        ## @EOF
	.comm	_PqRecvBuffer,8,3               ## @PqRecvBuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getstring                   ; -- Begin function pq_getstring
	.p2align	2
_pq_getstring:                          ; @pq_getstring
	.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
	mov	x0, x19
	bl	_resetStringInfo
Lloh3:
	adrp	x20, _PqRecvPointer@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PqRecvPointer@GOTPAGEOFF]
Lloh5:
	adrp	x21, _PqRecvLength@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PqRecvLength@GOTPAGEOFF]
Lloh7:
	adrp	x22, _PqRecvBuffer@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PqRecvBuffer@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_pq_recvbuf
	cbnz	x0, LBB0_9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldrsw	x8, [x20]
	ldrsw	x9, [x21]
	cmp	w9, w8
	b.le	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, #0
	ldr	x11, [x22]
	add	x12, x11, x8
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w13, [x12, x10]
	cbz	w13, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x10, x10, #1
	add	x13, x8, x10
	cmp	x13, x9
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x11, x8
	sub	w2, w9, w8
	mov	x0, x19
	bl	_appendBinaryStringInfo
	ldr	w8, [x21]
	str	w8, [x20]
	b	LBB0_2
LBB0_7:
	add	x1, x11, x8
	add	w8, w8, w10
	add	w21, w8, #1
	add	w2, w10, #1
	mov	x0, x19
	bl	_appendBinaryStringInfo
	mov	w0, #0
	str	w21, [x20]
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:
Lloh9:
	adrp	x8, _EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PqCommReadingMsg,4,2           ; @PqCommReadingMsg
	.comm	_PqRecvPointer,4,2              ; @PqRecvPointer
	.comm	_PqRecvLength,4,2               ; @PqRecvLength
	.comm	_EOF,4,2                        ; @EOF
	.comm	_PqRecvBuffer,8,3               ; @PqRecvBuffer
.subsections_via_symbols
