	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grow_hunkmax
_grow_hunkmax:                          ## @grow_hunkmax
	.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
	movq	_hunkmax@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %r14d
	movq	_p_line@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_p_len@GOTPCREL(%rip), %r12
	movq	_p_char@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r15)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
	movq	(%r13), %rdi
LBB0_4:
	movl	%ebx, %esi
	shll	$4, %esi
	callq	_reallocf
	movq	%rax, (%r13)
	movq	(%r12), %rdi
	shll	$2, %ebx
	movl	%ebx, %esi
	callq	_reallocf
	movq	%rax, (%r12)
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	_reallocf
	movq	%rax, (%r15)
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_hunkmax@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	jmp	LBB0_11
LBB0_8:
	movq	_using_plan_a@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_10:
	movq	_out_of_mem@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hunkmax,4,2                    ## @hunkmax
	.comm	_p_line,8,3                     ## @p_line
	.comm	_p_len,8,3                      ## @p_len
	.comm	_p_char,8,3                     ## @p_char
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal memory allocation error\n"

	.comm	_using_plan_a,4,2               ## @using_plan_a
L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

	.comm	_out_of_mem,4,2                 ## @out_of_mem
	.no_dead_strip	_grow_hunkmax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grow_hunkmax
_grow_hunkmax:                          ; @grow_hunkmax
	.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
Lloh0:
	adrp	x20, _hunkmax@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hunkmax@GOTPAGEOFF]
	ldr	w24, [x20]
	lsl	w19, w24, #1
Lloh2:
	adrp	x21, _p_line@GOTPAGE
Lloh3:
	ldr	x21, [x21, _p_line@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh4:
	adrp	x22, _p_len@GOTPAGE
Lloh5:
	ldr	x22, [x22, _p_len@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh6:
	adrp	x23, _p_char@GOTPAGE
Lloh7:
	ldr	x23, [x23, _p_char@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	x0, [x21]
LBB0_2:
	lsl	w1, w24, #4
	bl	_reallocf
	str	x0, [x21]
	ldr	x0, [x22]
	lsl	w1, w24, #2
	bl	_reallocf
	str	x0, [x22]
	ldr	x0, [x23]
	mov	x1, x19
	bl	_reallocf
	str	x0, [x23]
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _using_plan_a@GOTPAGE
Lloh11:
	ldr	x8, [x8, _using_plan_a@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_5:
Lloh15:
	adrp	x8, _out_of_mem@GOTPAGE
Lloh16:
	ldr	x8, [x8, _out_of_mem@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
	b	LBB0_7
LBB0_6:
	str	w19, [x20]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_hunkmax,4,2                    ; @hunkmax
	.comm	_p_line,8,3                     ; @p_line
	.comm	_p_len,8,3                      ; @p_len
	.comm	_p_char,8,3                     ; @p_char
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal memory allocation error\n"

	.comm	_using_plan_a,4,2               ; @using_plan_a
l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

	.comm	_out_of_mem,4,2                 ; @out_of_mem
	.no_dead_strip	_grow_hunkmax
.subsections_via_symbols
