	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_growbuf
_ps_growbuf:                            ## @ps_growbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	addq	%rsi, %rdx
	movq	8(%rax), %rcx
	cmpq	%rcx, %rdx
	jbe	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_PS_BUFSLOP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rsi, %rdx
	cmovaq	%rdx, %rsi
	addq	%rcx, %rsi
	movq	%rsi, 8(%rax)
	movl	16(%rax), %edi
	callq	_mandoc_realloc
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_BUFSLOP,8,3                 ## @PS_BUFSLOP
	.no_dead_strip	_ps_growbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_growbuf
_ps_growbuf:                            ; @ps_growbuf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldp	x10, x9, [x8]
	add	x10, x10, x1
	cmp	x10, x9
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x10, _PS_BUFSLOP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PS_BUFSLOP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x10, x1
	csel	x10, x10, x1, hi
	add	x1, x10, x9
	str	x1, [x8, #8]
	ldr	w0, [x8, #16]
	bl	_mandoc_realloc
	ldr	x8, [x19]
	str	w0, [x8, #16]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_BUFSLOP,8,3                 ; @PS_BUFSLOP
	.no_dead_strip	_ps_growbuf
.subsections_via_symbols
