	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqCheckInBufferSpace           ## -- Begin function pqCheckInBufferSpace
	.p2align	4, 0x90
_pqCheckInBufferSpace:                  ## @pqCheckInBufferSpace
	.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	(%rsi), %ebx
	movslq	%ebx, %r13
	xorl	%r14d, %r14d
	cmpq	%rdi, %r13
	jae	LBB0_19
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %rsi
	movq	16(%r15), %rdx
	subq	%rsi, %r12
	subq	%rsi, %rdx
	jle	LBB0_4
## %bb.2:
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.3:
	movq	24(%r15), %rdi
	addq	%rdi, %rsi
	callq	_memmove
	movq	8(%r15), %rax
	subq	%rax, 16(%r15)
	subq	%rax, 32(%r15)
	movq	$0, 8(%r15)
LBB0_5:
	cmpq	%r13, %r12
	ja	LBB0_6
	jmp	LBB0_19
LBB0_4:
	leaq	8(%r15), %rax
	movq	$0, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	cmpq	%r13, %r12
	jbe	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	leal	(%rcx,%rcx), %ebx
	movslq	%ebx, %rax
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rax, %r12
	ja	LBB0_6
LBB0_8:
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.9:
	cmpq	%rax, %r12
	ja	LBB0_12
## %bb.10:
	movq	24(%r15), %rdi
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movslq	(%r15), %rax
	movq	%rax, %rdx
	addq	$8192, %rdx                     ## imm = 0x2000
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rcx
	addl	$8192, %ebx                     ## imm = 0x2000
	cmpl	$-8191, %eax                    ## imm = 0xE001
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	8192(%rcx), %rdx
	cmpq	%rcx, %r12
	ja	LBB0_13
LBB0_15:
	cmpl	$-8191, %eax                    ## imm = 0xE001
	jl	LBB0_18
## %bb.16:
	cmpq	%rcx, %r12
	ja	LBB0_18
## %bb.17:
	movq	24(%r15), %rdi
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_18
LBB0_11:
	movq	%rax, 24(%r15)
	movl	%ebx, (%r15)
	jmp	LBB0_19
LBB0_18:
	addq	$40, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_printfPQExpBuffer
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate memory for input buffer\n"

	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqCheckInBufferSpace           ; -- Begin function pqCheckInBufferSpace
	.p2align	2
_pqCheckInBufferSpace:                  ; @pqCheckInBufferSpace
	.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
	ldr	w20, [x1]
	sxtw	x22, w20
	cmp	x22, x0
	b.hs	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x8, x1
	ldp	x9, x10, [x8, #8]!
	sub	x21, x0, x9
	subs	x2, x10, x9
	b.le	LBB0_12
; %bb.2:
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x19, #24]
	add	x1, x0, x9
	bl	_memmove
	ldp	x8, x9, [x19, #8]
	sub	x9, x9, x8
	ldr	x10, [x19, #32]
	sub	x8, x10, x8
	str	x8, [x19, #32]
	stp	xzr, x9, [x19, #8]
LBB0_4:
	cmp	x21, x22
	b.ls	LBB0_13
LBB0_5:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x20
	lsl	w20, w20, #1
	sxtw	x9, w20
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x21, x9
	b.hi	LBB0_6
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.9:
	cmp	x21, x9
	b.hi	LBB0_15
; %bb.10:
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_15
; %bb.11:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #24]
	str	w20, [x19]
	b	LBB0_14
LBB0_12:
	str	xzr, [x19, #32]
	stp	xzr, xzr, [x8]
	cmp	x21, x22
	b.hi	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
	ldrsw	x8, [x19]
	add	x11, x8, #2, lsl #12            ; =8192
	mov	w10, #-8191
	mov	x20, x8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	add	w20, w20, #2, lsl #12           ; =8192
	cmp	w8, w10
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x11, x9, #2, lsl #12            ; =8192
	cmp	x21, x9
	b.hi	LBB0_16
LBB0_18:
	mov	w10, #-8191
	cmp	w8, w10
	b.lt	LBB0_22
; %bb.19:
	cmp	x21, x9
	b.hi	LBB0_22
; %bb.20:
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_22
; %bb.21:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #24]
	str	w20, [x19]
	b	LBB0_14
LBB0_22:
	add	x0, x19, #40
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_printfPQExpBuffer
Lloh2:
	adrp	x8, _EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate memory for input buffer\n"

	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
