	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_grow                    ## -- Begin function strbuf_grow
	.p2align	4, 0x90
_strbuf_grow:                           ## @strbuf_grow
	.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, %r14
	movq	%rdi, %rbx
	movl	16(%rdi), %r15d
	movl	$1, %esi
	movq	%r14, %rdi
	callq	_unsigned_add_overflows
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	1(%r14), %rsi
	callq	_unsigned_add_overflows
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	jmp	LBB0_6
LBB0_5:
	movq	$0, 8(%rbx)
	xorl	%edi, %edi
LBB0_6:
	movq	(%rbx), %rax
	leaq	(%r14,%rax), %rsi
	incq	%rsi
	movl	16(%rbx), %edx
	callq	_ALLOC_GROW
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movb	$0, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"you want to use way too much memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_grow                    ; -- Begin function strbuf_grow
	.p2align	2
_strbuf_grow:                           ; @strbuf_grow
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0, #16]
	mov	x0, x1
	mov	w1, #1
	bl	_unsigned_add_overflows
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	add	x1, x20, #1
	bl	_unsigned_add_overflows
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
	str	xzr, [x19, #8]
LBB0_6:
	ldr	x8, [x19]
	add	x8, x20, x8
	add	x1, x8, #1
	ldr	w2, [x19, #16]
	bl	_ALLOC_GROW
	cbnz	w21, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	strb	wzr, [x8]
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"you want to use way too much memory"

.subsections_via_symbols
