	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqCheckOutBufferSpace          ## -- Begin function pqCheckOutBufferSpace
	.p2align	4, 0x90
_pqCheckOutBufferSpace:                 ## @pqCheckOutBufferSpace
	.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), %eax
	movslq	%eax, %r13
	xorl	%r14d, %r14d
	cmpq	%rdi, %r13
	jae	LBB0_15
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	leal	(%rcx,%rcx), %ebx
	movslq	%ebx, %rdx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %rdx
	jb	LBB0_2
LBB0_4:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.5:
	cmpq	%r12, %rdx
	jb	LBB0_8
## %bb.6:
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.16:
	movq	%rax, 8(%r15)
	movl	%ebx, (%r15)
	jmp	LBB0_15
LBB0_7:
	movl	(%r15), %eax
	movslq	%eax, %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addq	$8192, %r13                     ## imm = 0x2000
	cmpl	$-8191, %eax                    ## imm = 0xE001
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r12, %r13
	jb	LBB0_8
LBB0_10:
	cmpl	$-8191, %eax                    ## imm = 0xE001
	jl	LBB0_14
## %bb.11:
	cmpq	%r12, %r13
	jb	LBB0_14
## %bb.12:
	movq	8(%r15), %rdi
	movl	%r13d, %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, 8(%r15)
	movl	%r13d, (%r15)
	jmp	LBB0_15
LBB0_14:
	addq	$16, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_printfPQExpBuffer
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	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 output 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	_pqCheckOutBufferSpace          ; -- Begin function pqCheckOutBufferSpace
	.p2align	2
_pqCheckOutBufferSpace:                 ; @pqCheckOutBufferSpace
	.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	w8, [x1]
	sxtw	x20, w8
	cmp	x20, x0
	b.hs	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	x22, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x22
	lsl	w22, w22, #1
	sxtw	x10, w22
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x10, x21
	b.lo	LBB0_2
LBB0_4:
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.5:
	cmp	x10, x21
	b.lo	LBB0_10
; %bb.6:
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_9
; %bb.7:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	str	w22, [x19]
	b	LBB0_17
LBB0_8:
	mov	w0, #0
	b	LBB0_17
LBB0_9:
	ldr	w8, [x19]
	sxtw	x20, w8
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_10:
	mov	w9, #-8191
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #2, lsl #12           ; =8192
	cmp	w8, w9
	ccmp	x20, x21, #2, ge
	b.lo	LBB0_11
; %bb.12:
	mov	w9, #-8191
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.13:
	cmp	x20, x21
	b.lo	LBB0_16
; %bb.14:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_16
; %bb.15:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	str	w20, [x19]
	b	LBB0_17
LBB0_16:
	add	x0, x19, #16
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]
LBB0_17:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate memory for output buffer\n"

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