	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function realloc_buff
_realloc_buff:                          ## @realloc_buff
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_ALLOC_SECURITY_MARGIN@GOTPCREL(%rip), %rax
	addq	(%rdi), %rbx
	movq	(%rax), %rax
	addq	%rbx, %rax
	xorl	%r14d, %r14d
	cmpq	8(%rdi), %rax
	jbe	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	_ALLOC_CHUNK@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	16(%rdi), %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	24(%r15), %rcx
	subq	16(%r15), %rcx
	addq	%rax, %rcx
	movq	%rcx, 24(%r15)
	movq	%rax, 16(%r15)
	movq	%rbx, 8(%r15)
	movb	$1, -1(%rbx,%rax)
	jmp	LBB0_4
LBB0_2:
	movq	$0, 16(%r15)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALLOC_SECURITY_MARGIN,8,3      ## @ALLOC_SECURITY_MARGIN
	.comm	_ALLOC_CHUNK,8,3                ## @ALLOC_CHUNK
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_realloc_buff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function realloc_buff
_realloc_buff:                          ; @realloc_buff
	.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
Lloh0:
	adrp	x8, _ALLOC_SECURITY_MARGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALLOC_SECURITY_MARGIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	x8, x10, [x0]
	add	x8, x8, x1
	add	x9, x8, x9
	cmp	x9, x10
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _ALLOC_CHUNK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALLOC_CHUNK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x20, x8, x9
	ldr	x0, [x0, #16]
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldp	x10, x9, [x19, #16]
	sub	x9, x9, x10
	add	x9, x8, x9
	stp	x8, x9, [x19, #16]
	str	x20, [x19, #8]
	add	x8, x20, x8
	mov	w9, #1
	sturb	w9, [x8, #-1]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #16]
Lloh6:
	adrp	x8, _EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ALLOC_SECURITY_MARGIN,8,3      ; @ALLOC_SECURITY_MARGIN
	.comm	_ALLOC_CHUNK,8,3                ; @ALLOC_CHUNK
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_realloc_buff
.subsections_via_symbols
