	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmalloc_large
_tmalloc_large:                         ## @tmalloc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %r13
	negq	%r13
	movq	%rsi, %rdi
	callq	_compute_tree_index
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_treebin_at
	movq	(%rax), %r12
	testq	%r12, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	callq	_leftshift_for_tree_index
	movl	%eax, %ecx
	shlq	%cl, %r15
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movq	_SIZE_T_BITSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_SIZE_T_ONE@GOTPCREL(%rip), %rsi
	subl	(%rsi), %edx
	xorl	%esi, %esi
	btq	%rdx, %r15
	setb	%sil
	movq	(%rax,%rsi,8), %r12
	cmpq	%r12, %rcx
	movq	%rcx, %rax
	cmoveq	%rbx, %rax
	testq	%rcx, %rcx
	cmovneq	%rax, %rbx
	addq	%r15, %r15
	testq	%r12, %r12
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_chunksize
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	cmpq	%r13, %rax
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	%r12, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%r13d, %r13d
	movq	%r12, %rbx
	movq	%r12, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_7:
	movq	%rbx, %rax
	orq	%r14, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_10
## %bb.8:
	callq	_idx2bit
	movl	%eax, %edi
	callq	_left_bits
	andq	(%r15), %rax
	je	LBB0_21
## %bb.9:
	movq	%rax, %rdi
	callq	_least_bit
	movq	%rax, %rdi
	callq	_compute_bit2idx
	movq	%r15, %rdi
	callq	_treebin_at
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_chunksize
	subq	%r12, %rax
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	cmovbq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_leftmost_child
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	testq	%r14, %r14
	je	LBB0_21
## %bb.13:
	movq	8(%r15), %rax
	subq	%r12, %rax
	cmpq	%rax, %r13
	jae	LBB0_21
## %bb.14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ok_address
	movl	%eax, %edi
	callq	_RTCHECK
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_chunk_plus_offset
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_chunksize
	addq	%r13, %rbx
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ok_next
	movl	%eax, %edi
	callq	_RTCHECK
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_unlink_large_chunk
	movq	_MIN_CHUNK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_set_inuse_and_pinuse
	jmp	LBB0_19
LBB0_20:
	movq	%r15, %rdi
	callq	_CORRUPTION_ERROR_ACTION
LBB0_21:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_set_size_and_pinuse_of_inuse_chunk
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_set_size_and_pinuse_of_free_chunk
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_insert_chunk
LBB0_19:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chunk2mem                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_T_BITSIZE,8,3             ## @SIZE_T_BITSIZE
	.comm	_SIZE_T_ONE,8,3                 ## @SIZE_T_ONE
	.comm	_MIN_CHUNK_SIZE,8,3             ## @MIN_CHUNK_SIZE
	.no_dead_strip	_tmalloc_large
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmalloc_large
_tmalloc_large:                         ; @tmalloc_large
	.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	x21, x1
	mov	x19, x0
	neg	x20, x1
	mov	x0, x1
	bl	_compute_tree_index
	mov	x0, x19
	bl	_treebin_at
	ldr	x24, [x0]
	cbz	x24, LBB0_6
; %bb.1:
	bl	_leftshift_for_tree_index
	mov	x23, #0
	mov	x22, #0
	lsl	x25, x21, x0
Lloh0:
	adrp	x26, _SIZE_T_BITSIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SIZE_T_BITSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _SIZE_T_ONE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SIZE_T_ONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x8, #8]
	ldr	x10, [x26]
	ldr	x11, [x27]
	sub	x10, x10, x11
	lsr	x10, x25, x10
	and	x10, x10, #0x1
	ldr	x24, [x8, x10, lsl #3]
	cmp	x9, x24
	ccmp	x9, #0, #4, ne
	csel	x23, x23, x9, eq
	lsl	x25, x25, #1
	cbz	x24, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_chunksize
	sub	x8, x0, x21
	cmp	x8, x20
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x8
	mov	x22, x24
	cbnz	x8, LBB0_2
; %bb.5:
	mov	x23, x24
	mov	x22, x24
	b	LBB0_11
LBB0_6:
	mov	x23, #0
	mov	x22, #0
LBB0_7:
	orr	x8, x23, x22
	cbnz	x8, LBB0_10
; %bb.8:
	bl	_idx2bit
	bl	_left_bits
	ldr	x8, [x19]
	ands	x0, x8, x0
	b.eq	LBB0_19
; %bb.9:
	bl	_least_bit
	bl	_compute_bit2idx
	mov	x0, x19
	bl	_treebin_at
	mov	x22, #0
	ldr	x23, [x0]
LBB0_10:
	cbz	x23, LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_chunksize
	sub	x8, x0, x21
	cmp	x8, x20
	csel	x20, x8, x20, lo
	csel	x22, x23, x22, lo
	mov	x0, x23
	bl	_leftmost_child
	mov	x23, x0
	cbnz	x0, LBB0_11
LBB0_12:
	cbz	x22, LBB0_19
; %bb.13:
	ldr	x8, [x19, #8]
	sub	x8, x8, x21
	cmp	x20, x8
	b.hs	LBB0_19
; %bb.14:
	mov	x0, x19
	mov	x1, x22
	bl	_ok_address
	bl	_RTCHECK
	cbz	x0, LBB0_18
; %bb.15:
	mov	x0, x22
	mov	x1, x21
	bl	_chunk_plus_offset
	mov	x23, x0
	mov	x0, x22
	bl	_chunksize
	add	x24, x20, x21
	cmp	x0, x24
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	x1, x23
	bl	_ok_next
	bl	_RTCHECK
	cbz	x0, LBB0_18
; %bb.16:
	mov	x0, x19
	mov	x1, x22
	bl	_unlink_large_chunk
Lloh4:
	adrp	x8, _MIN_CHUNK_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MIN_CHUNK_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x20, x8
	b.hs	LBB0_20
; %bb.17:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_set_inuse_and_pinuse
	b	LBB0_21
LBB0_18:
	mov	x0, x19
	bl	_CORRUPTION_ERROR_ACTION
LBB0_19:
	mov	x0, #0
	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_20:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x23
	mov	x1, x20
	bl	_set_size_and_pinuse_of_free_chunk
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_insert_chunk
LBB0_21:
	mov	x0, x22
	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	_chunk2mem
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_T_BITSIZE,8,3             ; @SIZE_T_BITSIZE
	.comm	_SIZE_T_ONE,8,3                 ; @SIZE_T_ONE
	.comm	_MIN_CHUNK_SIZE,8,3             ; @MIN_CHUNK_SIZE
	.no_dead_strip	_tmalloc_large
.subsections_via_symbols
