	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __resize
___resize:                              ## @__resize
	.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
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r13
	cmpl	$0, (%rsi)
	je	LBB0_9
## %bb.3:
	movq	%r13, %rdi
	callq	__io_malloc_sz
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	__io_malloc_off
	cmpq	%r12, %rax
	jg	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	__io_malloc_buf
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_R_MIN
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcpy
	cmpq	%r14, %r12
	jge	LBB0_8
## %bb.7:
	leaq	(%r15,%r12,4), %rdi
	movq	%r14, %rdx
	subq	%r12, %rdx
	xorl	%esi, %esi
	callq	_memset
LBB0_8:
	movq	%r13, %rdi
	callq	__io_malloc_buf
	movl	%eax, %edi
	callq	_free
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__io_malloc_set_buf
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	__io_malloc_set_sz
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __resize
___resize:                              ; @__resize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	w0, #0
	cbz	x2, LBB0_5
; %bb.2:
	mov	x20, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	__io_malloc_sz
	mov	x22, x0
	mov	x0, x20
	bl	__io_malloc_off
	cmp	x0, x22
	b.le	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_malloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	__io_malloc_buf
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_R_MIN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_memcpy
	cmp	x22, x19
	b.ge	LBB0_9
; %bb.8:
	add	x0, x21, x22, lsl #2
	sub	x2, x19, x22
	mov	w1, #0
	bl	_memset
LBB0_9:
	mov	x0, x20
	bl	__io_malloc_buf
	bl	_free
	mov	x0, x20
	mov	x1, x21
	bl	__io_malloc_set_buf
	mov	x0, x20
	mov	x1, x19
	bl	__io_malloc_set_sz
	mov	w0, #1
	b	LBB0_5
LBB0_10:
	mov	w0, #-1
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___resize
.subsections_via_symbols
