	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmp_unserialize
_gmp_unserialize:                       ## @gmp_unserialize
	.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	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	_FAILURE@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	callq	_PHP_VAR_UNSERIALIZE_INIT
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gmp_create
	movq	%rbx, %rdi
	callq	_Z_OBJ_P
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)
	addq	%r12, %r13
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_var_tmp_var
	movq	%rax, %rbx
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_php_var_unserialize
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	-48(%rbp), %edi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_convert_to_gmp
	cmpl	(%r14), %eax
	jne	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_zend_throw_exception
LBB0_11:
	movl	-44(%rbp), %edi
	callq	_PHP_VAR_UNSERIALIZE_DESTROY
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_var_tmp_var
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_php_var_unserialize
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_Z_TYPE_P
	movq	_IS_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_Z_ARRVAL_P
	movl	%eax, %edi
	callq	_zend_hash_num_elements
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_zend_std_get_properties
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_Z_ARRVAL_P
	movq	_zval_add_ref@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_zend_hash_copy
LBB0_10:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not unserialize number"

	.comm	_IS_ARRAY,8,3                   ## @IS_ARRAY
L_.str.1:                               ## @.str.1
	.asciz	"Could not unserialize properties"

	.comm	_zval_add_ref,8,3               ## @zval_add_ref
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_gmp_unserialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmp_unserialize
_gmp_unserialize:                       ; @gmp_unserialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x23, _FAILURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FAILURE@GOTPAGEOFF]
	ldr	w19, [x23]
	bl	_PHP_VAR_UNSERIALIZE_INIT
	add	x1, sp, #28
	mov	x0, x20
	bl	_gmp_create
	mov	x0, x20
	bl	_Z_OBJ_P
	mov	x20, x0
	str	x22, [sp, #16]
	add	x21, x22, x21
	add	x0, sp, #12
	bl	_var_tmp_var
	mov	x22, x0
	add	x1, sp, #16
	add	x3, sp, #12
	mov	x2, x21
	bl	_php_var_unserialize
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x22
	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_3
; %bb.2:
	ldr	w0, [sp, #28]
	mov	x1, x22
	mov	w2, #10
	bl	_convert_to_gmp
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, #0
	mov	w2, #0
	bl	_zend_throw_exception
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_PHP_VAR_UNSERIALIZE_DESTROY
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_6:
	add	x0, sp, #12
	bl	_var_tmp_var
	mov	x22, x0
	add	x1, sp, #16
	add	x3, sp, #12
	mov	x2, x21
	bl	_php_var_unserialize
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x22
	bl	_Z_TYPE_P
Lloh7:
	adrp	x8, _IS_ARRAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IS_ARRAY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x22
	bl	_Z_ARRVAL_P
	bl	_zend_hash_num_elements
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_zend_std_get_properties
	mov	x19, x0
	mov	x0, x22
	bl	_Z_ARRVAL_P
	mov	x1, x0
Lloh10:
	adrp	x8, _zval_add_ref@GOTPAGE
Lloh11:
	ldr	x8, [x8, _zval_add_ref@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_zend_hash_copy
LBB0_10:
Lloh13:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_11:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not unserialize number"

	.comm	_IS_ARRAY,8,3                   ; @IS_ARRAY
l_.str.1:                               ; @.str.1
	.asciz	"Could not unserialize properties"

	.comm	_zval_add_ref,8,3               ; @zval_add_ref
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_gmp_unserialize
.subsections_via_symbols
