	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_ptr_heap_delete_top
_spl_ptr_heap_delete_top:               ## @spl_ptr_heap_delete_top
	.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
	movl	(%rdi), %r15d
	movl	%r15d, %r14d
	subl	$1, %r14d
	jae	LBB0_2
## %bb.1:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spl_heap_elem
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_spl_heap_elem_copy
	jmp	LBB0_5
LBB0_4:
	movq	24(%r12), %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spl_heap_elem
	movq	%rax, %rdi
	callq	*%rbx
LBB0_5:
	movl	(%r12), %esi
	decl	%esi
	movl	%esi, (%r12)
	movq	%r12, %rdi
	callq	_spl_heap_elem
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	cmpl	$3, %r15d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_14
## %bb.6:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r13,%r13), %ebx
	cmpl	(%r12), %ebx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	(%r13,%r13), %r15d
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addl	$2, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_spl_heap_elem
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	*%r14
	testq	%rax, %rax
	jns	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_spl_heap_elem
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_spl_heap_elem_copy
	movl	%ebx, %r13d
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jl	LBB0_7
	jmp	LBB0_14
LBB0_12:
	movl	%r13d, %ebx
LBB0_14:
	movq	_exception@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EG
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_SPL_HEAP_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_16:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_spl_heap_elem_copy
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_exception,4,2                  ## @exception
	.comm	_SPL_HEAP_CORRUPTED,4,2         ## @SPL_HEAP_CORRUPTED
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_spl_ptr_heap_delete_top
.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_delete_top
_spl_ptr_heap_delete_top:               ; @spl_ptr_heap_delete_top
	.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
	ldr	w22, [x0]
	sub	w8, w22, #1
	cmp	w8, #0
	csel	w24, w22, w8, lt
	cbz	w22, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_spl_heap_elem
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_spl_heap_elem_copy
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
	ldr	x21, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_spl_heap_elem
	blr	x21
LBB0_5:
	ldr	w8, [x19]
	sub	w1, w8, #1
	str	w1, [x19]
	mov	x0, x19
	bl	_spl_heap_elem
	mov	x21, x0
	cmp	w22, #3
	b.lt	LBB0_11
; %bb.6:
	mov	w23, #0
	asr	w26, w24, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w22, #1
	bfi	w22, w23, #1, #31
	ldr	w8, [x19]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w8, w23, #1
	ldr	x27, [x19, #8]
	add	w24, w8, #2
	mov	x0, x19
	mov	x1, x24
	bl	_spl_heap_elem
	mov	x25, x0
	mov	x0, x19
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x1, x0
	mov	x0, x25
	mov	x2, x20
	blr	x27
	cmp	x0, #0
	csel	w22, w24, w22, gt
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	blr	x24
	tbz	x0, #63, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_spl_heap_elem
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_spl_heap_elem_copy
	mov	x23, x22
	cmp	w22, w26
	b.lt	LBB0_7
	b	LBB0_13
LBB0_11:
	mov	w22, #0
	b	LBB0_13
LBB0_12:
	mov	x22, x23
LBB0_13:
Lloh2:
	adrp	x8, _exception@GOTPAGE
Lloh3:
	ldr	x8, [x8, _exception@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_EG
	cbz	x0, LBB0_15
; %bb.14:
Lloh5:
	adrp	x8, _SPL_HEAP_CORRUPTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPL_HEAP_CORRUPTED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_15:
	mov	x0, x19
	mov	x1, x22
	bl	_spl_heap_elem
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_spl_heap_elem_copy
Lloh8:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_exception,4,2                  ; @exception
	.comm	_SPL_HEAP_CORRUPTED,4,2         ; @SPL_HEAP_CORRUPTED
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_spl_ptr_heap_delete_top
.subsections_via_symbols
