	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_ptr_heap_insert
_spl_ptr_heap_insert:                   ## @spl_ptr_heap_insert
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movslq	4(%rdi), %rbx
	cmpl	%ebx, %r13d
	jl	LBB0_2
## %bb.1:
	imulq	8(%r12), %rbx
	movq	32(%r12), %rdi
	leal	(%rbx,%rbx), %esi
	callq	_erealloc
	movq	%rax, 32(%r12)
	leaq	(%rax,%rbx), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	shll	4(%r12)
	movl	(%r12), %r13d
LBB0_2:
	testl	%r13d, %r13d
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	leal	-1(%r13), %r14d
	movl	%r14d, %ebx
	shrl	%ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	*%r15
	testq	%rax, %rax
	jns	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_spl_heap_elem
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_spl_heap_elem_copy
	movl	%ebx, %r13d
	cmpl	$1, %r14d
	ja	LBB0_4
	jmp	LBB0_7
LBB0_3:
	movl	%r13d, %ebx
	jmp	LBB0_8
LBB0_5:
	movl	%r13d, %ebx
LBB0_7:
	movl	(%r12), %r13d
LBB0_8:
	incl	%r13d
	movl	%r13d, (%r12)
	movq	_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SPL_HEAP_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
LBB0_10:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spl_heap_elem_copy             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_exception,4,2                  ## @exception
	.comm	_SPL_HEAP_CORRUPTED,4,2         ## @SPL_HEAP_CORRUPTED
	.no_dead_strip	_spl_ptr_heap_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spl_ptr_heap_insert
_spl_ptr_heap_insert:                   ; @spl_ptr_heap_insert
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w23, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w23, w8
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x20, #8]
	mul	x22, x9, x8
	ldr	x0, [x20, #32]
	lsl	w1, w22, #1
	bl	_erealloc
	str	x0, [x20, #32]
	add	x0, x0, x22
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldp	w23, w8, [x20]
	lsl	w8, w8, #1
	str	w8, [x20, #4]
LBB0_2:
	cmp	w23, #1
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20, #16]
	sub	w24, w23, #1
	lsr	w22, w24, #1
	mov	x0, x20
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x1, x19
	mov	x2, x21
	blr	x25
	tbz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_spl_heap_elem
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_spl_heap_elem_copy
	mov	x23, x22
	cmp	w24, #1
	b.hi	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	x22, x23
	b	LBB0_8
LBB0_6:
	mov	x22, x23
LBB0_7:
	ldr	w23, [x20]
LBB0_8:
	add	w8, w23, #1
	str	w8, [x20]
Lloh0:
	adrp	x8, _exception@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exception@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_EG
	cbz	x0, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _SPL_HEAP_CORRUPTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPL_HEAP_CORRUPTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spl_heap_elem_copy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_exception,4,2                  ; @exception
	.comm	_SPL_HEAP_CORRUPTED,4,2         ; @SPL_HEAP_CORRUPTED
	.no_dead_strip	_spl_ptr_heap_insert
.subsections_via_symbols
