	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_zval_long
_to_zval_long:                          ## @to_zval_long
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_ZVAL_NULL
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FIND_XML_NULL
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%rax), %rcx
	movq	_XML_TEXT_NODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.3:
	cmpq	$0, 16(%rax)
	je	LBB0_4
LBB0_8:
	movq	_E_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_soap_error0
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_ZVAL_NULL
LBB0_10:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rax), %rdi
	callq	_whiteSpace_collapse
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	-20(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_is_numeric_string
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.6:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_ZVAL_LONG
	jmp	LBB0_10
LBB0_7:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movq	%r14, %rdi
	callq	_ZVAL_DOUBLE
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XML_TEXT_NODE,8,3              ## @XML_TEXT_NODE
	.comm	_errno,8,3                      ## @errno
	.comm	_E_ERROR,4,2                    ## @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encoding: Violation of encoding rules"

	.no_dead_strip	_to_zval_long
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_zval_long
_to_zval_long:                          ; @to_zval_long
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	bl	_ZVAL_NULL
	mov	x0, x20
	mov	x1, x19
	bl	_FIND_XML_NULL
	cbz	x20, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _XML_TEXT_NODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _XML_TEXT_NODE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _E_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_soap_error0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ZVAL_NULL
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	x0, [x8, #8]
	bl	_whiteSpace_collapse
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	ldr	x8, [x20]
	ldr	x20, [x8, #8]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x20
	mov	w4, #0
	bl	_is_numeric_string
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.9:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_ZVAL_LONG
	b	LBB0_6
LBB0_10:
	ldr	d0, [sp]
	mov	x0, x19
	bl	_ZVAL_DOUBLE
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XML_TEXT_NODE,8,3              ; @XML_TEXT_NODE
	.comm	_errno,8,3                      ; @errno
	.comm	_E_ERROR,4,2                    ; @E_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encoding: Violation of encoding rules"

	.no_dead_strip	_to_zval_long
.subsections_via_symbols
