	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zval_get_i64
_zval_get_i64:                          ## @zval_get_i64
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_Z_TYPE_P
	cmpq	$128, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_Z_LVAL_P
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	cmpq	$129, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_Z_DVAL_P
LBB0_9:
	movq	%rax, (%r14)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1, %r8d
	callq	_is_numeric_string
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	movq	-40(%rbp), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	cvttsd2si	-32(%rbp), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_FAILURE,4,2                    ## @FAILURE
	.no_dead_strip	_zval_get_i64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zval_get_i64
_zval_get_i64:                          ; @zval_get_i64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_Z_TYPE_P
	cmp	x0, #128
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_Z_LVAL_P
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_Z_TYPE_P
	cmp	x0, #129
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_Z_DVAL_P
LBB0_4:
	str	x0, [x19]
LBB0_5:
Lloh0:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x20
	bl	_Z_TYPE_P
Lloh2:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_Z_STRVAL_P
	mov	x21, x0
	mov	x0, x20
	bl	_Z_STRLEN_P
	mov	x1, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	mov	w4, #1
	bl	_is_numeric_string
	cmp	w0, #129
	b.eq	LBB0_12
; %bb.9:
	cmp	w0, #128
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [sp, #8]
	b	LBB0_13
LBB0_11:
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	ldr	d0, [sp]
	fcvtzs	x8, d0
LBB0_13:
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_FAILURE,4,2                    ; @FAILURE
	.no_dead_strip	_zval_get_i64
.subsections_via_symbols
