	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibuf_realloc                   ## -- Begin function ibuf_realloc
	.p2align	4, 0x90
_ibuf_realloc:                          ## @ibuf_realloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rsi
	addq	%r14, %rsi
	cmpq	8(%rdi), %rsi
	jbe	LBB0_2
## %bb.1:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_4
LBB0_2:
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 24(%rbx)
	addq	(%rbx), %r14
	movq	%r14, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibuf_realloc                   ; -- Begin function ibuf_realloc
	.p2align	2
_ibuf_realloc:                          ; @ibuf_realloc
	.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
	mov	x20, x1
	ldp	x8, x9, [x0]
	add	x1, x8, x1
	cmp	x1, x9
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	add	x9, x9, x20
	stp	x9, x8, [x19, #16]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
