	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_room
_prepare_room:                          ## @prepare_room
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movslq	%esi, %rax
	shlq	$2, %rax
	addq	16(%rdi), %rax
	movq	24(%rdi), %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	subq	%rdi, %rbx
	shrq	$2, %rbx
	movq	_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rsi,%rax,2), %ecx
	decl	%ecx
	negl	%eax
	andl	%ecx, %eax
	addl	%eax, %ebx
	movl	%ebx, %esi
	callq	_px_realloc
	leaq	(%rax,%rbx,4), %rcx
	movq	%rcx, 24(%r14)
	movq	16(%r14), %rcx
	movq	(%r14), %rdx
	movq	8(%r14), %rsi
	subq	%rdx, %rcx
	addq	%rax, %rcx
	movq	%rcx, 16(%r14)
	subq	%rdx, %rsi
	addq	%rax, %rsi
	movq	%rsi, 8(%r14)
	movq	%rax, (%r14)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STEP,4,2                       ## @STEP
	.no_dead_strip	_prepare_room
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_room
_prepare_room:                          ; @prepare_room
	.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
	ldp	x9, x8, [x0, #16]
	add	x9, x9, w1, sxtw #2
	cmp	x9, x8
	b.ls	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	sub	x8, x8, x0
	lsr	x8, x8, #2
Lloh0:
	adrp	x9, _STEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STEP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w10, w1, w9, lsl #1
	sub	w10, w10, #1
	neg	w9, w9
	and	w9, w10, w9
	add	w20, w9, w8
	mov	x1, x20
	bl	_px_realloc
	add	x8, x0, w20, uxtw #2
	ldp	x11, x9, [x19, #8]
	ldr	x10, [x19]
	sub	x9, x9, x10
	add	x9, x0, x9
	stp	x9, x8, [x19, #16]
	sub	x8, x11, x10
	add	x8, x0, x8
	stp	x0, x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STEP,4,2                       ; @STEP
	.no_dead_strip	_prepare_room
.subsections_via_symbols
