	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_extent_alloc_large       ## -- Begin function arena_extent_alloc_large
	.p2align	4, 0x90
_arena_extent_alloc_large:              ## @arena_extent_alloc_large
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_EXTENT_HOOKS_INITIALIZER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_witness_assert_depth_to_rank
	movq	%r15, %rdi
	callq	_sz_size2index
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, -44(%rbp)
	leaq	8(%r12), %rcx
	movq	_sz_large_pad@GOTPCREL(%rip), %r11
	leaq	-44(%rbp), %r10
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	pushq	%r10
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	pushq	%rbx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	pushq	%rax
	pushq	$0
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	pushq	%r13
	movq	%r11, %r13
	pushq	(%r11)
	callq	_extents_alloc
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	(%r13), %r13
	addq	%r15, %r13
	movq	%r15, %r8
	jmp	LBB0_4
LBB0_2:
	leaq	4(%r12), %rcx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	(%r13)
	callq	_extents_alloc
	addq	$48, %rsp
	movq	(%r13), %r9
	leaq	(%r9,%r15), %r13
	testq	%rax, %rax
	movq	%r15, %r8
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
LBB0_4:
	movq	_config_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	je	LBB0_11
LBB0_8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r8, %r14
	movq	%rdx, %rbx
	callq	_arena_stats_lock
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_arena_large_malloc_stats_update
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_arena_stats_add_zu
LBB0_10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_arena_stats_unlock
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	movq	_LG_PAGE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_arena_nactive_add
LBB0_12:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	subq	$8, %rsp
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	leaq	-44(%rbp), %rax
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_extent_alloc_wrapper
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	_config_stats@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r13, %rdx
	movq	%rax, %rbx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_8
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ## @EXTENT_HOOKS_INITIALIZER
	.comm	_WITNESS_RANK_CORE,4,2          ## @WITNESS_RANK_CORE
	.comm	_sz_large_pad,8,3               ## @sz_large_pad
	.comm	_config_stats,8,3               ## @config_stats
	.comm	_LG_PAGE,8,3                    ## @LG_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arena_extent_alloc_large       ; -- Begin function arena_extent_alloc_large
	.p2align	2
_arena_extent_alloc_large:              ; @arena_extent_alloc_large
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_tsdn_witness_tsdp_get
Lloh3:
	adrp	x8, _WITNESS_RANK_CORE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WITNESS_RANK_CORE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_witness_assert_depth_to_rank
	mov	x0, x21
	bl	_sz_size2index
	mov	x25, x0
	mov	w8, #1
	str	w8, [sp, #36]
	add	x3, x19, #8
Lloh6:
	adrp	x26, _sz_large_pad@GOTPAGE
Lloh7:
	ldr	x26, [x26, _sz_large_pad@GOTPAGEOFF]
	ldr	x6, [x26]
	add	x27, sp, #36
	stp	x24, x27, [sp, #8]
	stp	wzr, w0, [sp]
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	mov	x5, x21
	mov	x7, x22
	bl	_extents_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	x8, [x26]
	add	x26, x8, x21
	b	LBB0_4
LBB0_2:
	add	x3, x19, #4
	ldr	x6, [x26]
	stp	x24, x27, [sp, #8]
	add	x2, sp, #40
	stp	wzr, w25, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	mov	x5, x21
	mov	x7, x22
	bl	_extents_alloc
	ldr	x5, [x26]
	add	x26, x5, x21
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
LBB0_4:
	mov	x22, #0
Lloh8:
	adrp	x8, _config_stats@GOTPAGE
Lloh9:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_arena_stats_lock
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_arena_large_malloc_stats_update
	cbz	x22, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	x3, x22
	bl	_arena_stats_add_zu
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_arena_stats_unlock
LBB0_8:
Lloh11:
	adrp	x8, _LG_PAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LG_PAGE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	lsr	x1, x26, x8
	mov	x0, x19
	bl	_arena_nactive_add
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	add	x8, sp, #36
	stp	x24, x8, [sp, #8]
	str	w25, [sp]
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	x4, x21
	mov	x6, x22
	mov	w7, #0
	bl	_extent_alloc_wrapper
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.11:
Lloh14:
	adrp	x8, _config_stats@GOTPAGE
Lloh15:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	mov	x22, x26
	cbnz	x8, LBB0_5
	b	LBB0_8
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ; @EXTENT_HOOKS_INITIALIZER
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.comm	_sz_large_pad,8,3               ; @sz_large_pad
	.comm	_config_stats,8,3               ; @config_stats
	.comm	_LG_PAGE,8,3                    ; @LG_PAGE
.subsections_via_symbols
