	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_heap_object_new_ex
_spl_heap_object_new_ex:                ## @spl_heap_object_new_ex
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$40, %edi
	movq	%r14, %rsi
	callq	_zend_object_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_zend_object_std_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_object_properties_init
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_spl_heap_from_obj
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	36(%rbx), %eax
	movl	%eax, 36(%r12)
	movq	24(%rbx), %rax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_spl_ptr_heap_clone
LBB0_5:
	movq	%rax, 24(%r12)
	movl	32(%rbx), %eax
	movl	%eax, 32(%r12)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r12)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r12)
LBB0_23:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.6:
	movq	_spl_ce_SplPriorityQueue@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_spl_ce_SplMinHeap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_spl_ce_SplMaxHeap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_spl_ce_SplHeap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	$1, %r15b
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %rbx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %rbx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rdx, %rbx
	je	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.18:
	movq	_E_COMPILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_19
LBB0_2:
	movq	_E_COMPILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_23
LBB0_8:
	movq	_spl_ptr_pqueue_elem_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_spl_ptr_heap_pqueue_elem_ctor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_spl_ptr_heap_pqueue_elem_dtor@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	callq	_spl_ptr_heap_init
	movq	%rax, 24(%r12)
	movq	_spl_handler_SplPriorityQueue@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	_SPL_PQUEUE_EXTR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%r13, %rbx
	jmp	LBB0_16
LBB0_12:
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.14:
	movq	_spl_ptr_heap_zval_min_cmp@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_spl_ptr_heap_zval_max_cmp@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	movq	_spl_ptr_heap_zval_ctor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_spl_ptr_heap_zval_dtor@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	callq	_spl_ptr_heap_init
	movq	%rax, 24(%r12)
	movq	_spl_handler_SplHeap@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
LBB0_16:
	testb	$1, %r15b
	jne	LBB0_23
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_zend_hash_str_find_ptr
	movq	%rax, 16(%r12)
	cmpq	%rbx, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	$0, 16(%r12)
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_zend_hash_str_find_ptr
	movq	%rax, 8(%r12)
	cmpq	%rbx, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	$0, 8(%r12)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_spl_ce_SplPriorityQueue,8,3    ## @spl_ce_SplPriorityQueue
	.comm	_spl_ptr_pqueue_elem_cmp,4,2    ## @spl_ptr_pqueue_elem_cmp
	.comm	_spl_ptr_heap_pqueue_elem_ctor,4,2 ## @spl_ptr_heap_pqueue_elem_ctor
	.comm	_spl_ptr_heap_pqueue_elem_dtor,4,2 ## @spl_ptr_heap_pqueue_elem_dtor
	.comm	_spl_handler_SplPriorityQueue,4,2 ## @spl_handler_SplPriorityQueue
	.comm	_SPL_PQUEUE_EXTR_DATA,4,2       ## @SPL_PQUEUE_EXTR_DATA
	.comm	_spl_ce_SplMinHeap,8,3          ## @spl_ce_SplMinHeap
	.comm	_spl_ce_SplMaxHeap,8,3          ## @spl_ce_SplMaxHeap
	.comm	_spl_ce_SplHeap,8,3             ## @spl_ce_SplHeap
	.comm	_spl_ptr_heap_zval_min_cmp,4,2  ## @spl_ptr_heap_zval_min_cmp
	.comm	_spl_ptr_heap_zval_max_cmp,4,2  ## @spl_ptr_heap_zval_max_cmp
	.comm	_spl_ptr_heap_zval_ctor,4,2     ## @spl_ptr_heap_zval_ctor
	.comm	_spl_ptr_heap_zval_dtor,4,2     ## @spl_ptr_heap_zval_dtor
	.comm	_spl_handler_SplHeap,4,2        ## @spl_handler_SplHeap
	.comm	_E_COMPILE_ERROR,4,2            ## @E_COMPILE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal compiler error, Class is not child of SplHeap"

L_.str.1:                               ## @.str.1
	.asciz	"compare"

L_.str.2:                               ## @.str.2
	.asciz	"count"

	.no_dead_strip	_spl_heap_object_new_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spl_heap_object_new_ex
_spl_heap_object_new_ex:                ; @spl_heap_object_new_ex
	.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, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #40
	mov	x1, x20
	bl	_zend_object_alloc
	mov	x19, x0
	mov	x1, x20
	bl	_zend_object_std_init
	mov	x0, x19
	mov	x1, x20
	bl	_object_properties_init
	cbz	x22, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_spl_heap_from_obj
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [x19]
	ldr	w8, [x0, #36]
	str	w8, [x19, #36]
	ldr	x0, [x0, #24]
	cbz	w21, LBB0_3
; %bb.2:
	bl	_spl_ptr_heap_clone
LBB0_3:
	str	x0, [x19, #24]
	ldr	w8, [x20, #32]
	str	w8, [x19, #32]
	ldp	x9, x8, [x20, #8]
	stp	x9, x8, [x19, #8]
LBB0_4:
	mov	x0, x19
	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_5:
	cbz	x20, LBB0_13
; %bb.6:
Lloh0:
	adrp	x8, _spl_ce_SplPriorityQueue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _spl_ce_SplPriorityQueue@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _spl_ce_SplMinHeap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _spl_ce_SplMinHeap@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _spl_ce_SplMaxHeap@GOTPAGE
Lloh7:
	ldr	x9, [x9, _spl_ce_SplMaxHeap@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _spl_ce_SplHeap@GOTPAGE
Lloh10:
	ldr	x10, [x10, _spl_ce_SplHeap@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	mov	w22, #1
	mov	x21, x20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x23
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x21, x8
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x21, x9
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x21, x10
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_7
; %bb.12:
Lloh12:
	adrp	x8, _E_COMPILE_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_COMPILE_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_16
LBB0_13:
Lloh17:
	adrp	x8, _E_COMPILE_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_COMPILE_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_4
LBB0_14:
Lloh22:
	adrp	x8, _spl_ptr_pqueue_elem_cmp@GOTPAGE
Lloh23:
	ldr	x8, [x8, _spl_ptr_pqueue_elem_cmp@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _spl_ptr_heap_pqueue_elem_ctor@GOTPAGE
Lloh26:
	ldr	x8, [x8, _spl_ptr_heap_pqueue_elem_ctor@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _spl_ptr_heap_pqueue_elem_dtor@GOTPAGE
Lloh29:
	ldr	x8, [x8, _spl_ptr_heap_pqueue_elem_dtor@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w3, #4
	bl	_spl_ptr_heap_init
	str	x0, [x19, #24]
Lloh31:
	adrp	x8, _spl_handler_SplPriorityQueue@GOTPAGE
Lloh32:
	ldr	x8, [x8, _spl_handler_SplPriorityQueue@GOTPAGEOFF]
	str	x8, [x19]
Lloh33:
	adrp	x8, _SPL_PQUEUE_EXTR_DATA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SPL_PQUEUE_EXTR_DATA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x21, x23
	tbnz	w22, #0, LBB0_4
	b	LBB0_16
LBB0_15:
Lloh36:
	adrp	x9, _spl_ptr_heap_zval_min_cmp@GOTPAGE
Lloh37:
	ldr	x9, [x9, _spl_ptr_heap_zval_min_cmp@GOTPAGEOFF]
Lloh38:
	adrp	x10, _spl_ptr_heap_zval_max_cmp@GOTPAGE
Lloh39:
	ldr	x10, [x10, _spl_ptr_heap_zval_max_cmp@GOTPAGEOFF]
	cmp	x21, x8
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _spl_ptr_heap_zval_ctor@GOTPAGE
Lloh41:
	ldr	x8, [x8, _spl_ptr_heap_zval_ctor@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _spl_ptr_heap_zval_dtor@GOTPAGE
Lloh44:
	ldr	x8, [x8, _spl_ptr_heap_zval_dtor@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	w3, #4
	bl	_spl_ptr_heap_init
	str	x0, [x19, #24]
Lloh46:
	adrp	x8, _spl_handler_SplHeap@GOTPAGE
Lloh47:
	ldr	x8, [x8, _spl_handler_SplHeap@GOTPAGEOFF]
	str	x8, [x19]
	tbnz	w22, #0, LBB0_4
LBB0_16:
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_zend_hash_str_find_ptr
	str	x0, [x19, #16]
	ldr	x8, [x0]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.17:
	str	xzr, [x19, #16]
LBB0_18:
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_zend_hash_str_find_ptr
	str	x0, [x19, #8]
	ldr	x8, [x0]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.19:
	str	xzr, [x19, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_spl_ce_SplPriorityQueue,8,3    ; @spl_ce_SplPriorityQueue
	.comm	_spl_ptr_pqueue_elem_cmp,4,2    ; @spl_ptr_pqueue_elem_cmp
	.comm	_spl_ptr_heap_pqueue_elem_ctor,4,2 ; @spl_ptr_heap_pqueue_elem_ctor
	.comm	_spl_ptr_heap_pqueue_elem_dtor,4,2 ; @spl_ptr_heap_pqueue_elem_dtor
	.comm	_spl_handler_SplPriorityQueue,4,2 ; @spl_handler_SplPriorityQueue
	.comm	_SPL_PQUEUE_EXTR_DATA,4,2       ; @SPL_PQUEUE_EXTR_DATA
	.comm	_spl_ce_SplMinHeap,8,3          ; @spl_ce_SplMinHeap
	.comm	_spl_ce_SplMaxHeap,8,3          ; @spl_ce_SplMaxHeap
	.comm	_spl_ce_SplHeap,8,3             ; @spl_ce_SplHeap
	.comm	_spl_ptr_heap_zval_min_cmp,4,2  ; @spl_ptr_heap_zval_min_cmp
	.comm	_spl_ptr_heap_zval_max_cmp,4,2  ; @spl_ptr_heap_zval_max_cmp
	.comm	_spl_ptr_heap_zval_ctor,4,2     ; @spl_ptr_heap_zval_ctor
	.comm	_spl_ptr_heap_zval_dtor,4,2     ; @spl_ptr_heap_zval_dtor
	.comm	_spl_handler_SplHeap,4,2        ; @spl_handler_SplHeap
	.comm	_E_COMPILE_ERROR,4,2            ; @E_COMPILE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal compiler error, Class is not child of SplHeap"

l_.str.1:                               ; @.str.1
	.asciz	"compare"

l_.str.2:                               ; @.str.2
	.asciz	"count"

	.no_dead_strip	_spl_heap_object_new_ex
.subsections_via_symbols
