	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_ralloc                   ## -- Begin function arena_ralloc
	.p2align	4, 0x90
_arena_ralloc:                          ## @arena_ralloc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, %rdi
	callq	_sz_s2u
	movq	%rax, %rbx
	testq	%rax, %rax
	sete	%al
	movq	_LARGE_MAXCLASS@GOTPCREL(%rip), %rcx
	cmpq	%r13, (%rcx)
	setb	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_2:
	movq	%r12, %rax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_SMALL_MAXCLASS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setbe	%dil
	callq	_likely
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	movl	16(%rbp), %r9d
	callq	_arena_ralloc_no_move
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movq	24(%rbp), %r9
	movq	_LARGE_MINCLASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	ja	LBB0_9
## %bb.7:
	cmpq	%rax, %rbx
	jb	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r9, %r15
	callq	_iealloc
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	16(%rbp), %r9d
	callq	_large_ralloc
	jmp	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rbp), %r8d
	callq	_arena_ralloc_move_helper
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rax, %r13
	cmpq	%r15, %rbx
	cmovaeq	%r15, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	24(%rbp), %rcx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_isdalloct
	movq	%r13, %r12
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_LARGE_MAXCLASS,8,3             ## @LARGE_MAXCLASS
	.comm	_SMALL_MAXCLASS,8,3             ## @SMALL_MAXCLASS
	.comm	_LARGE_MINCLASS,8,3             ## @LARGE_MINCLASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_ralloc                   ; -- Begin function arena_ralloc
	.p2align	2
_arena_ralloc:                          ; @arena_ralloc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x23, x6
	mov	x24, x5
	mov	x27, x4
	mov	x22, x3
	mov	x20, x2
	mov	x26, x1
	mov	x21, x0
	mov	x0, x4
	bl	_sz_s2u
	mov	x25, x0
	cmp	x0, #0
Lloh0:
	adrp	x8, _LARGE_MAXCLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LARGE_MAXCLASS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ccmp	x8, x27, #0, ne
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x20, #0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _SMALL_MAXCLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMALL_MAXCLASS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x25, x8
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x25
	mov	w4, #0
	mov	x5, x23
	bl	_arena_ralloc_no_move
	cbz	w0, LBB0_2
LBB0_5:
Lloh6:
	adrp	x8, _LARGE_MINCLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LARGE_MINCLASS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x22
	mov	x0, x21
	ccmp	x25, x8, #0, ls
	b.hs	LBB0_8
; %bb.6:
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x19
	bl	_arena_ralloc_move_helper
	cbz	x0, LBB0_1
; %bb.7:
	mov	x23, x0
	cmp	x25, x22
	csel	x2, x25, x22, lo
	mov	x1, x20
	bl	_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, #0
	mov	w5, #1
	bl	_isdalloct
	mov	x20, x23
	b	LBB0_2
LBB0_8:
	mov	x1, x20
	bl	_iealloc
	mov	x2, x0
	mov	x0, x21
	mov	x1, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	mov	x6, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_large_ralloc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LARGE_MAXCLASS,8,3             ; @LARGE_MAXCLASS
	.comm	_SMALL_MAXCLASS,8,3             ; @SMALL_MAXCLASS
	.comm	_LARGE_MINCLASS,8,3             ; @LARGE_MINCLASS
.subsections_via_symbols
