	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmalloc_small
_tmalloc_small:                         ## @tmalloc_small
	.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, %r14
	movl	(%rdi), %edi
	callq	_least_bit
	movl	%eax, %edi
	callq	_compute_bit2idx
	movq	%r14, %rdi
	callq	_treebin_at
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_chunksize
	movq	%rax, %r13
	subq	%r15, %r13
	movl	%r12d, %edi
	callq	_leftmost_child
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_chunksize
	subq	%r15, %rax
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	cmovbl	%ebx, %r12d
	movl	%ebx, %edi
	callq	_leftmost_child
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ok_address
	movl	%eax, %edi
	callq	_RTCHECK
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_chunk_plus_offset
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_chunksize
	leaq	(%r15,%r13), %rcx
	xorl	%edi, %edi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	sete	%dil
	callq	_assert
	movl	%r12d, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_ok_next
	movl	%eax, %edi
	callq	_RTCHECK
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_unlink_large_chunk
	movq	_MIN_CHUNK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_set_inuse_and_pinuse
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_CORRUPTION_ERROR_ACTION
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_set_size_and_pinuse_of_inuse_chunk
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_set_size_and_pinuse_of_free_chunk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_replace_dv
LBB0_8:
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chunk2mem                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_CHUNK_SIZE,8,3             ## @MIN_CHUNK_SIZE
	.no_dead_strip	_tmalloc_small
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmalloc_small
_tmalloc_small:                         ; @tmalloc_small
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_least_bit
	bl	_compute_bit2idx
	mov	x0, x19
	bl	_treebin_at
	ldr	w20, [x0]
	mov	x0, x20
	bl	_chunksize
	sub	x22, x0, x21
	mov	x0, x20
	bl	_leftmost_child
	cbz	w0, LBB0_3
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_chunksize
	sub	x8, x0, x21
	cmp	x8, x22
	csel	x22, x8, x22, lo
	csel	w20, w23, w20, lo
	mov	x0, x23
	bl	_leftmost_child
	mov	x23, x0
	cbnz	w0, LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ok_address
	bl	_RTCHECK
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_chunk_plus_offset
	mov	x23, x0
	mov	x0, x20
	bl	_chunksize
	add	x24, x22, x21
	cmp	x0, x24
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	x1, x23
	bl	_ok_next
	bl	_RTCHECK
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_unlink_large_chunk
Lloh0:
	adrp	x8, _MIN_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	b.hs	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_set_inuse_and_pinuse
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_CORRUPTION_ERROR_ACTION
	mov	x0, #0
	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
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_set_size_and_pinuse_of_inuse_chunk
	mov	x0, x23
	mov	x1, x22
	bl	_set_size_and_pinuse_of_free_chunk
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_replace_dv
LBB0_9:
	mov	x0, x20
	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
	b	_chunk2mem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_CHUNK_SIZE,8,3             ; @MIN_CHUNK_SIZE
	.no_dead_strip	_tmalloc_small
.subsections_via_symbols
