	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_gmp
_convert_to_gmp:                        ## @convert_to_gmp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_Z_TYPE_P
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_zval_get_long
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_mpz_set_si
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	cmpl	$3, %eax
	jl	LBB0_11
## %bb.5:
	cmpb	$48, (%r15)
	jne	LBB0_11
## %bb.6:
	testl	$-17, %r14d
	je	LBB0_17
LBB0_7:
	testl	$-3, %r14d
	je	LBB0_19
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	%rax, %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mpz_set_str
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.13:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_15:
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movb	1(%r15), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_7
## %bb.18:
	movl	$2, %eax
	movl	$16, %r14d
	jmp	LBB0_12
LBB0_19:
	movb	1(%r15), %al
	orb	$32, %al
	cmpb	$98, %al
	jne	LBB0_11
## %bb.20:
	movl	$2, %eax
	movl	$2, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to convert variable to GMP - string is not an integer"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Unable to convert variable to GMP - wrong type"

	.no_dead_strip	_convert_to_gmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_gmp
_convert_to_gmp:                        ; @convert_to_gmp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_Z_TYPE_P
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_12
LBB0_3:
	mov	x0, x22
	bl	_zval_get_long
	mov	x1, x0
	mov	x0, x19
	bl	_mpz_set_si
LBB0_4:
Lloh0:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	mov	x0, x22
	bl	_Z_STRVAL_P
	mov	x21, x0
	mov	x0, x22
	bl	_Z_STRLEN_P
	cmp	w0, #3
	b.lt	LBB0_9
; %bb.6:
	ldrb	w8, [x21]
	cmp	w8, #48
	b.ne	LBB0_9
; %bb.7:
	tst	w20, #0xffffffef
	b.eq	LBB0_15
LBB0_8:
	tst	w20, #0xfffffffd
	b.eq	LBB0_17
LBB0_9:
	mov	x8, #0
LBB0_10:
	add	x1, x21, x8
	mov	x0, x19
	mov	x2, x20
	bl	_mpz_set_str
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.11:
Lloh2:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh7:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, #0
	bl	_php_error_docref
Lloh12:
	adrp	x8, _FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldrb	w8, [x21, #1]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_8
; %bb.16:
	mov	w20, #16
	mov	w8, #2
	b	LBB0_10
LBB0_17:
	ldrb	w8, [x21, #1]
	orr	w8, w8, #0x20
	mov	w9, #2
	cmp	w8, #98
	csel	w20, w9, w20, eq
	csel	x8, x9, xzr, eq
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to convert variable to GMP - string is not an integer"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Unable to convert variable to GMP - wrong type"

	.no_dead_strip	_convert_to_gmp
.subsections_via_symbols
