	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function growalloc
_growalloc:                             ## @growalloc
	.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	%rdi, %r15
	movl	(%rcx), %eax
	cmpl	%edx, %eax
	jle	LBB0_1
## %bb.4:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	_PTRDIFF_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WORK_AROUND_QTBUG_53071@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movq	_SIZE_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovgel	%edx, %ecx
	decl	%ecx
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	cmpl	%eax, %ecx
	jge	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_memory_exhausted
	movl	(%rbx), %eax
LBB0_3:
	movl	%eax, %ecx
	sarl	%ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	movl	%edi, (%rbx)
	movq	%r14, %rsi
	callq	_size_product
	movq	%r15, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_erealloc                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRDIFF_MAX,4,2                ## @PTRDIFF_MAX
	.comm	_WORK_AROUND_QTBUG_53071,4,2    ## @WORK_AROUND_QTBUG_53071
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"integer overflow"

	.no_dead_strip	_growalloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function growalloc
_growalloc:                             ; @growalloc
	.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	x19, x0
	ldr	w8, [x3]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	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
LBB0_2:
	mov	x21, x3
	mov	x20, x1
Lloh0:
	adrp	x9, _PTRDIFF_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTRDIFF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _WORK_AROUND_QTBUG_53071@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WORK_AROUND_QTBUG_53071@GOTPAGEOFF]
Lloh5:
	adrp	x11, _SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	ldr	w11, [x11]
	sub	w9, w9, w10
	cmp	w9, w11
	csel	w9, w9, w11, lt
	sub	w9, w9, #1
	mov	w10, #21846
	movk	w10, #21845, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	cmp	w8, w9, lsl #1
	b.le	LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_memory_exhausted
	ldr	w8, [x21]
LBB0_4:
	add	w8, w8, w8, asr #1
	add	w0, w8, #1
	str	w0, [x21]
	mov	x1, x20
	bl	_size_product
	mov	x1, x0
	mov	x0, x19
	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
	b	_erealloc
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRDIFF_MAX,4,2                ; @PTRDIFF_MAX
	.comm	_WORK_AROUND_QTBUG_53071,4,2    ; @WORK_AROUND_QTBUG_53071
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"integer overflow"

	.no_dead_strip	_growalloc
.subsections_via_symbols
